splunk / ansible-role-for-splunk

Splunk@Splunk's Ansible role for installing Splunk, upgrading Splunk, and installing apps/addons on Splunk deployments (VM/bare metal)
Apache License 2.0
147 stars 103 forks source link

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

Open samweisgamdschie opened 1 year ago

samweisgamdschie commented 1 year ago

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?

treyperrone commented 2 months ago

I am seeing this issue a year later and updates on 9.1.4 and now to 9.2.2 still toss this sus msg