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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...