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!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...