Splunk Dev

Why ain't Start/stop splunk from deployment-server?

Madhan45
Path Finder

I'm not able to start/stop splunk. And it is passing some error in python2.7 from the directory splunk/lib.

So I just deleted the directory and tried. but still it is not working.

Tags (2)
0 Karma

ryanoconnor
Builder

Do you happen to still have the error? What directory did you delete exactly?

0 Karma

Madhan45
Path Finder

yes still I have this error and i deleted splunk/lib/python2.7

0 Karma

ryanoconnor
Builder

Can you copy and paste the error? Also I might recommend a re-install of Splunk at this point. That's a critical directory.

0 Karma

Madhan45
Path Finder

Below is the error after the deleting that directory:

Could not find platform independent libraries
Could not find platform independent libraries
Consider setting $PYTHONHOME to [:]
ImportError: No module named site

What if I take the directory python2.7 from some other splunk instances ?
Will it lead to splunk crash???

0 Karma

Madhan45
Path Finder

I meant shall I copy & paste that directory from some other splunk instances and then restart?

Will it work?

0 Karma

ryanoconnor
Builder

If you grab that directory from a Splunk install of the same version it theoretically could. Keep in mind though that we may be chasing down two errors now, whatever the original error was and now the error related to a missing python directory in Splunk.

I would say you could give that a shot, but if it doesn't work I'd recommend backing up what's left of the directory, re-installing Splunk, and manually merging back any configs that are important from your backup.

0 Karma

Madhan45
Path Finder

Okay.. I got it..
Proactively I will reinstall splunk. That would be the best option.

Thanks..!!!

0 Karma

ryanoconnor
Builder

Good luck let me know how it works out!

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...