Windows 7 x64
Splunk installed from splunk-4.3-115073-x64-release.msi for local system user
From Event Log:
The instance's SvcRun() method failed
File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\win32\win32serviceutil.py", line 785, in SvcRun
self.SvcDoRun()
File "C:\Program Files\Splunk\bin\SplunkWebService.py", line 39, in SvcDoRun
from splunk.appserver.mrsparkle import root
File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\splunk\appserver\mrsparkle_init.py", line 13, in_.py", line 161, in
from lib.decorators import *
File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\splunk\appserver\mrsparkle\lib\decorators.py", line 2, in
import cherrypy
File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\cherrypy__init
from cherrypy import _cptools
File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\cherrypy_cptools.py", line 226, in
from cherrypy.lib import cptools, encoding, auth, static, tidy
File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\cherrypy\lib\static.py", line 2, in
mimetypes.init()
File "C:\Program Files\Splunk\Python-2.7\Lib\mimetypes.py", line 355, in init
db.read_windows_registry()
File "C:\Program Files\Splunk\Python-2.7\Lib\mimetypes.py", line 259, in read_windows_registry
for ctype in enum_types(mimedb):
File "C:\Program Files\Splunk\Python-2.7\Lib\mimetypes.py", line 249, in enum_types
ctype = ctype.encode(default_encoding) # omit in 3.x!
: 'utf8' codec can't decode byte 0xe0 in position 0: invalid continuation byte
This problem is related to Python on Windows. I fixed it like this:
In Splunk install directory, there is a Python-2.7 directory. Go to Python-2.7\Lib, find mimetypes.py. Inside mimetypes.py find function read_windows_registry(). In this function, replace UnicodeEncodeError or UnicodeDecodeError with UnicodeError. Restart Splunkweb and it will start.
This problem is related to Python on Windows. I fixed it like this:
In Splunk install directory, there is a Python-2.7 directory. Go to Python-2.7\Lib, find mimetypes.py. Inside mimetypes.py find function read_windows_registry(). In this function, replace UnicodeEncodeError or UnicodeDecodeError with UnicodeError. Restart Splunkweb and it will start.
i don't have splunk installed anymore, but this looks like it might work
the same problem Windows 7 x64 russian OS
splunk-5.0.4-172409-x64-release.msi
The same problem today for Vista x86 Russian...failed to start the service with the same error in eventlog. Version splunk-4.3.2-123586-x86-release.
language of OS is russian
This looks like a possible brand new defect, I certainly couldn't find it reported in our internal bug database. Out of curiosity, what is the local language of your Windows OS?