ansible-role-for-splunk icon indicating copy to clipboard operation
ansible-role-for-splunk copied to clipboard

.bashrc Cannot find expected file ...literals.py

Open samweisgamdschie opened this issue 2 years ago • 1 comments

Hi!

When installing a univeral forwarder in version 9.1.1 (at least) on a fresh system via the ansible-role-for-splunk we get the following error message after a successful login with the splunk user:

$ sudo -i -u splunk
(exit=1) Cannot find expected file /opt/splunkforwarder/lib/python3.7/site-packages/splunk/clilib/literals.py
[splunk@host:/opt/splunkforwarder]$

This message comes from .bashrc's line: . $SPLUNK_HOME/share/splunk/cli-command-completion.sh

What should be done with this error message?

samweisgamdschie avatar Sep 19 '23 09:09 samweisgamdschie