Installation

アップグレード後の "splunk.exe reload deploy-server" 実行時のエラーについて

cwl
Contributor

Windows上のdeployment serverを6.1.5から6.2.1にアップグレードした後に "splunk.exe reload deploy-server" を実行したところ、以下のエラーが表示されるようになりました。

C:\Splunk\bin>splunk.exe reload deploy-server
Splunk username: admin
Password:
Could not write to auth token file '\\aabbcc\users\.splunk\authToken_xxyyzz_8089'.
An unforeseen error occurred:
Exception: <type 'exceptions.WindowsError'>, Value: [Error 2] The system cannot find the file specified: '\\\\aabbcc\\users\\.splunk\\authToken_xxyyzz_8089'
Traceback (most recent call last):
File "C:\Splunk\Python-2.7\Lib\site-packages\splunk\clilib\cli.py", line 1145, in main
parseAndRun(argsList)
File "C:\Splunk\Python-2.7\Lib\site-packages\splunk\clilib\cli.py", line 872, in parseAndRun
login({}, True)
File "C:\Splunk\Python-2.7\Lib\site-packages\splunk\clilib\cli.py", line 213, in login
authToken = user_friendly_login(username, password, save=True)
File "C:\Splunk\Python-2.7\Lib\site-packages\splunk\clilib\cli.py", line 160, in user_friendly_login
os.unlink(getAuthFilePath())
WindowsError: [Error 2] The system cannot find the file specified: '\\\\aabbcc\\users\\.splunk\\authToken_xxyyzz_8089'

6.2.1で "splunk.exe reload deploy-server"を実行できるような回避策を教えてください。

1 Solution

cwl
Contributor

サポートに問い合わせをしたところ、問題は6.2.3で修正されるみたいです。

原因は、Pythonが「\」があるとうまく処理できないみたいです。

暫定的な回避策としては、C:\Splunk\Python-2.7\Lib\site-packages\splunk\clilib\cli.pyの1070行の

userHome = os.path.join(userHomePrefix, userHome)

userHome = os.path.join(userHomePrefix, userHome.strip("\\"))

に変更することです。

View solution in original post

cwl
Contributor

サポートに問い合わせをしたところ、問題は6.2.3で修正されるみたいです。

原因は、Pythonが「\」があるとうまく処理できないみたいです。

暫定的な回避策としては、C:\Splunk\Python-2.7\Lib\site-packages\splunk\clilib\cli.pyの1070行の

userHome = os.path.join(userHomePrefix, userHome)

userHome = os.path.join(userHomePrefix, userHome.strip("\\"))

に変更することです。

Get Updates on the Splunk Community!

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...