<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Splunk webservice won't start due to Python error? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-webservice-won-t-start-due-to-Python-error/m-p/268419#M3362</link>
    <description>&lt;P&gt;The issue ended up being in the mimestype.py.&lt;/P&gt;

&lt;P&gt;I added the following code in line 254 of the file.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;try:
                    if '\0' in subkeyname: # new
                        print "Skipping bad key: %s" % subkeyname # new
                        continue # new
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;File was checked with &lt;BR /&gt;
&lt;CODE&gt;python -m tabnanny mimestype.py&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 27 Mar 2016 15:25:10 GMT</pubDate>
    <dc:creator>markdflip</dc:creator>
    <dc:date>2016-03-27T15:25:10Z</dc:date>
    <item>
      <title>Splunk webservice won't start due to Python error?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-webservice-won-t-start-due-to-Python-error/m-p/268418#M3361</link>
      <description>&lt;P&gt;I recently installed Splunk on my Windows machine and the process completed. However, when I try to go to the splunk web interface, I am unable to connect. Searching the webservice log provides the following issues. It seems to by Python related, but I am not sure what these errors mean.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2016-03-26 12:09:33,671 ERROR   [-] root:810 - Unable to start splunkweb
2016-03-26 12:09:33,673 ERROR   [-] root:811 - must be string without null bytes or None, not str
Traceback (most recent call last):
  File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\splunk\appserver\mrsparkle\root.py", line 90, in &amp;lt;module&amp;gt;
    splunk.setupSplunkLogger(logger, LOGGING_DEFAULT_CONFIG_FILE, LOGGING_LOCAL_CONFIG_FILE, LOGGING_STANZA_NAME)
  File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\splunk\__init__.py", line 149, in setupSplunkLogger
    levels = getSplunkLoggingConfig(baseLogger, defaultConfigFile, localConfigFile, loggingStanzaName, verbose)
  File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\splunk\__init__.py", line 168, in getSplunkLoggingConfig
    baseLogger.info('Using default logging config file: %s' % defaultConfigFile)
  File "C:\Program Files\Splunk\Python-2.7\Lib\logging\__init__.py", line 1160, in info
    self._log(INFO, msg, args, **kwargs)
  File "C:\Program Files\Splunk\Python-2.7\Lib\logging\__init__.py", line 1278, in _log
    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
  File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\splunk\appserver\mrsparkle\root.py", line 61, in makeRecord
    from splunk.appserver.mrsparkle.lib.util import get_request_id
  File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\splunk\appserver\mrsparkle\__init__.py", line 13, in &amp;lt;module&amp;gt;
    from lib.decorators import *
  File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\splunk\appserver\mrsparkle\lib\decorators.py", line 2, in &amp;lt;module&amp;gt;
    import cherrypy
  File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\cherrypy\__init__.py", line 161, in &amp;lt;module&amp;gt;
    from cherrypy import _cptools
  File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\cherrypy\_cptools.py", line 226, in &amp;lt;module&amp;gt;
    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 &amp;lt;module&amp;gt;
    mimetypes.init()
  File "C:\Program Files\Splunk\Python-2.7\Lib\mimetypes.py", line 351, in init
    db.read_windows_registry()
  File "C:\Program Files\Splunk\Python-2.7\Lib\mimetypes.py", line 254, in read_windows_registry
    with _winreg.OpenKey(hkcr, subkeyname) as subkey:
TypeError: must be string without null bytes or None, not str
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 26 Mar 2016 16:21:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-webservice-won-t-start-due-to-Python-error/m-p/268418#M3361</guid>
      <dc:creator>markdflip</dc:creator>
      <dc:date>2016-03-26T16:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk webservice won't start due to Python error?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-webservice-won-t-start-due-to-Python-error/m-p/268419#M3362</link>
      <description>&lt;P&gt;The issue ended up being in the mimestype.py.&lt;/P&gt;

&lt;P&gt;I added the following code in line 254 of the file.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;try:
                    if '\0' in subkeyname: # new
                        print "Skipping bad key: %s" % subkeyname # new
                        continue # new
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;File was checked with &lt;BR /&gt;
&lt;CODE&gt;python -m tabnanny mimestype.py&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2016 15:25:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-webservice-won-t-start-due-to-Python-error/m-p/268419#M3362</guid>
      <dc:creator>markdflip</dc:creator>
      <dc:date>2016-03-27T15:25:10Z</dc:date>
    </item>
  </channel>
</rss>

