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("\\"))

に変更することです。

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...