<?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: SSO Debug URL throws 500 Internal Server Error in Security</title>
    <link>https://community.splunk.com/t5/Security/SSO-Debug-URL-throws-500-Internal-Server-Error/m-p/64664#M2150</link>
    <description>&lt;P&gt;It is worth mentioning that the pretty HTTP-header response you see is only available in CherryPy before an error response. I spent a lot of time trying to make Splunk a pretty raw HTTP request like that.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2013 16:00:11 GMT</pubDate>
    <dc:creator>vitalybe</dc:creator>
    <dc:date>2013-09-12T16:00:11Z</dc:date>
    <item>
      <title>SSO Debug URL throws 500 Internal Server Error</title>
      <link>https://community.splunk.com/t5/Security/SSO-Debug-URL-throws-500-Internal-Server-Error/m-p/64661#M2147</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;This is a new setup that I'm trying to get SSO working for.&lt;BR /&gt;
We are currently on a trial license (will purchase in the next couple of weeks). License is still valid. &lt;BR /&gt;
I'm Running Splunk 4.3.2 build 123586 on CentOS release 6.2&lt;/P&gt;

&lt;P&gt;I have read everything at &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Usesinglesign-onwithSplunk" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Usesinglesign-onwithSplunk&lt;/A&gt; and edited my server.conf and web.conf files appropriately.&lt;/P&gt;

&lt;P&gt;When I try to debug by going to this url, http://&lt;SPLUNK-SVR-IP&gt;:8000/en-US/debug/sso&lt;/SPLUNK-SVR-IP&gt;&lt;/P&gt;

&lt;H2&gt;I immediately get the following error (this happens in all browsers):&lt;/H2&gt;

&lt;P&gt;500 Internal Server Error&lt;/P&gt;

&lt;P&gt;Return to Splunk home page&lt;/P&gt;

&lt;P&gt;gaierror: [Errno -2] Name or service not known&lt;/P&gt;

&lt;P&gt;You are using &lt;SPLUNK-SVR-IP&gt;:8000, which is connected to splunkd @123586 at &lt;A href="https://127.0.0.1:8089" target="_blank"&gt;https://127.0.0.1:8089&lt;/A&gt; on Thu May 31 09:11:42 2012.&lt;/SPLUNK-SVR-IP&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;I can also trace this back to a 500 on the splunk web server log:&lt;BR /&gt;
&lt;MY-IP&gt; - admin [31/May/2012:08:56:01.607 -0500] "GET /en-US/debug/sso HTTP/1.1" 500 2592 "" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.52 Safari/536.5" - 4fc778719b7f9a600a86d0 2447ms&lt;/MY-IP&gt;&lt;/P&gt;

&lt;P&gt;Can anyone give me some guidance on this? I'm running out of ideas.. Am I missing something stupid?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;-Joe&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:53:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSO-Debug-URL-throws-500-Internal-Server-Error/m-p/64661#M2147</guid>
      <dc:creator>jchapman_atomic</dc:creator>
      <dc:date>2020-09-28T11:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: SSO Debug URL throws 500 Internal Server Error</title>
      <link>https://community.splunk.com/t5/Security/SSO-Debug-URL-throws-500-Internal-Server-Error/m-p/64662#M2148</link>
      <description>&lt;P&gt;Anyone have any ideas?&lt;BR /&gt;
Thanks&lt;BR /&gt;
-Joe&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 18:19:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSO-Debug-URL-throws-500-Internal-Server-Error/m-p/64662#M2148</guid>
      <dc:creator>jchapman_atomic</dc:creator>
      <dc:date>2012-06-06T18:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: SSO Debug URL throws 500 Internal Server Error</title>
      <link>https://community.splunk.com/t5/Security/SSO-Debug-URL-throws-500-Internal-Server-Error/m-p/64663#M2149</link>
      <description>&lt;P&gt;In case anyone else runs into this error... Here's what happened:&lt;BR /&gt;
I turned on debug and tail'd the corresponding log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;tail -f /opt/splunk/var/log/splunk/web_service.log

2012-06-06 16:30:15,740 INFO    [4fcfcbe55e7fdb8c085a50] _cplogging:55 - [06/Jun/2012:16:30:15] HTTP 
Request Headers:
  COOKIE: session_id_8000=1664104031a3735fc65f445ecacfb5572235fb81; session_id_80=2e8e9f588b3a1cf3b9611be8264d15eae8238a31
  HOST: 10.45.15.90
  ACCEPT: text/html, application/xhtml+xml, */*
  USER-AGENT: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
  CONNECTION: Keep-Alive
  Remote-Addr: 10.45.8.12
  ACCEPT-LANGUAGE: en-US
  ACCEPT-ENCODING: gzip, deflate
2012-06-06 16:30:15,740 DEBUG   [4fcfcbe55e7fdb8c085a50] _cplogging:55 - [06/Jun/2012:16:30:15] HTTP Traceback (most recent call last):
  File "/opt/splunk/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 606, in respond
    cherrypy.response.body = self.handler()
  File "/opt/splunk/lib/python2.7/site-packages/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 38, in rundecs
    return fn(*a, **kw)
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 105, in check
    return fn(self, *a, **kw)
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 154, in validate_ip
    return fn(self, *a, **kw)
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 353, in handle_exceptions
    return fn(self, *a, **kw)
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/controllers/debug.py", line 299, in sso
    'host_ip': socket.gethostbyname(socket.gethostname()),
gaierror: [Errno -2] Name or service not known
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Notice where it dies. my host name for this server wasn't in DNS (nor did I want it to be) so i just put the a host entry for it in /etc/hosts and all was solved!&lt;BR /&gt;
what a pain for such a simple fix &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 22:45:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSO-Debug-URL-throws-500-Internal-Server-Error/m-p/64663#M2149</guid>
      <dc:creator>jchapman_atomic</dc:creator>
      <dc:date>2012-06-06T22:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: SSO Debug URL throws 500 Internal Server Error</title>
      <link>https://community.splunk.com/t5/Security/SSO-Debug-URL-throws-500-Internal-Server-Error/m-p/64664#M2150</link>
      <description>&lt;P&gt;It is worth mentioning that the pretty HTTP-header response you see is only available in CherryPy before an error response. I spent a lot of time trying to make Splunk a pretty raw HTTP request like that.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2013 16:00:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSO-Debug-URL-throws-500-Internal-Server-Error/m-p/64664#M2150</guid>
      <dc:creator>vitalybe</dc:creator>
      <dc:date>2013-09-12T16:00:11Z</dc:date>
    </item>
  </channel>
</rss>

