Installation

Getting errors when trying to start Splunk.

Schmaeddes
Engager

I am getting this message, when i want to start splunk.

This appears to be your first time running this version of Splunk.
Traceback (most recent call last):
File "/www/htdocs/v137538/splunk/lib/python2.7/site-packages/splunk/clilib/cli.py", line 17, in
import splunk.clilib.cli_common as comm
File "/www/htdocs/v137538/splunk/lib/python2.7/site-packages/splunk/clilib/cli_common.py", line 5, in
import xml.etree.cElementTree as et
File "/usr/lib/python2.6/xml/etree/cElementTree.py", line 3, in
from _elementtree import *
File "", line 147, in
AttributeError: 'module' object has no attribute 'fromstringlist'

So i cant start splunk.

Labels (1)

highsplunker
Contributor

Clear now. The problem disappeared when I did "./splunk start" with user splunk.

0 Karma

chris
Motivator

For some reason Splunk imports xml.etree.cElementTree in cli_common.py from /usr/lib/python2.6 instead of /www/htdocs/v137538/splunk/lib/python2.7/xml/etree/cElementTree.py (where you installed Splunk)

Is there a chance that your PYTHONPATH is somehow set to /usr/lib/python2.6/?

Maybe this will help:

#export PYTHONPATH=/www/htdocs/v137538/splunk/lib/python2.7/
#/www/htdocs/v137538/splunk/bin/splunk start
0 Karma
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

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 ...