Splunk Dev

Problem in Restartting/Reloading of splunk

Madhan45
Path Finder

While Restartting/Reloading of splunk it showed some error in splunk/lib/python2.7. So I deleted the entire directory python2.7 now it is showing below errors

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

What could be the root cause?

0 Karma

ddrillic
Ultra Champion

If you are not on the latest version, you might consider upgrading. splunk/lib/python2.7 should be re-created.

0 Karma

renjith_nair
Legend

splunk/lib/python2.7 has all the libraries splunk basically uses and splunk will not be able to work without them.Removing the lib folder is almost same as removing entire splunk installation. In other words, starting a vehicle after removing it's engine :-). You might need to reinstall splunk to make it working again since the binaries are strongly coupled.

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

Madhan45
Path Finder

What if I copy the same python2.7 from some other Splunk?

Will it crash existing Splunk ?

0 Karma

renjith_nair
Legend

you can from the same version though never tried that

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

Madhan45
Path Finder

Its working.. but now the problem is im not able to reload. But start/stop/restarting is working fine

0 Karma

renjith_nair
Legend

What you mean by reload? what are the actions and error messages?

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma
Get Updates on the Splunk Community!

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...