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"を実行できるような回避策を教えてください。

Labels (1)
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!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...