<?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: 500 Internal Server Error in Security</title>
    <link>https://community.splunk.com/t5/Security/500-Internal-Server-Error/m-p/477686#M15266</link>
    <description>&lt;P&gt;&lt;STRONG&gt;My web.conf file had an error - needed to add [settings]:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;# location of splunkd; don't include http[s]:// in this anymore.&lt;BR /&gt;
 mgmtHostPort = 10.72.10.XXX:8089&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;The correct config is:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;# location of splunkd; don't include http[s]:// in this anymore.&lt;BR /&gt;
[settings]&lt;BR /&gt;
mgmtHostPort = 10.72.10.XXX:8089&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2019 20:37:40 GMT</pubDate>
    <dc:creator>aoleske</dc:creator>
    <dc:date>2019-11-21T20:37:40Z</dc:date>
    <item>
      <title>500 Internal Server Error</title>
      <link>https://community.splunk.com/t5/Security/500-Internal-Server-Error/m-p/477677#M15257</link>
      <description>&lt;P&gt;Good morning,&lt;BR /&gt;
I am trying to figure out an error 500 error on 6 new Centos 7 servers. Here is my scenario: Splunk Web comes up without an issue. I can connect to the URL and get a login screen. When I put the admin/password in, it immediately pops  a "500 Internal Server Error" error screen. An interesting side note is that if I put the initial password in wrong it keeps prompting me for the correct password, so Splunk appears to be resolving the password. I have tried changing the password using " splunk edit user admin -password newPassowrd  -auth admin:changeme" and also the method of using  user-seed.conf to no avail. I am getting the following error in the web_service.log:&lt;/P&gt;

&lt;P&gt;2019-11-07 14:47:28,051 INFO    [5dc490f00a7f11b0320f50] error:323 - GET /en-US/ 127.0.0.1 8065&lt;BR /&gt;
2019-11-07 14:47:28,051 INFO    [5dc490f00a7f11b0320f50] error:324 - 500 Internal Server Error The server encountered an unexpected condition which prevented it from fulfilling the request.&lt;BR /&gt;
2019-11-07 14:47:28,051 ERROR   [5dc490f00a7f11b0320f50] error:325 - Traceback (most recent call last):&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/cherrypy/&lt;EM&gt;cprequest.py", line 606, in respond&lt;BR /&gt;
    cherrypy.response.body = self.handler()&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/htmlinjectiontoolfactory.py", line 72, in wrapper&lt;BR /&gt;
    resp = handler(*args, **kwargs)&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/cherrypy/_cpdispatch.py", line 25, in __call&lt;/EM&gt;_&lt;BR /&gt;
    return self.callable(*self.args, **self.kwargs)&lt;BR /&gt;
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 38, in rundecs&lt;BR /&gt;
    return fn(*a, **kw)&lt;BR /&gt;
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 119, in check&lt;BR /&gt;
    return fn(self, *a, **kw)&lt;BR /&gt;
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 167, in validate_ip&lt;BR /&gt;
    return fn(self, *a, **kw)&lt;BR /&gt;
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 246, in preform_sso_check&lt;BR /&gt;
    update_session_user(sessionKey, remote_user)&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 189, in update_session_user&lt;BR /&gt;
    en = splunk.entity.getEntity('authentication/users', user, sessionKey=sessionKey)&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/entity.py", line 265, in getEntity&lt;BR /&gt;
    serverResponse, serverContent = rest.simpleRequest(uri, getargs=kwargs, sessionKey=sessionKey, raiseAllErrors=True)&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/site-packages/splunk/rest/&lt;STRONG&gt;init&lt;/STRONG&gt;.py", line 500, in simpleRequest&lt;BR /&gt;
    raise splunk.SplunkdConnectionException('Error connecting to %s: %s' % (path, str(e)))&lt;BR /&gt;
SplunkdConnectionException: Splunkd daemon is not responding: ('Error connecting to /services/authentication/users/admin: [Errno 111] Connection refused',)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;My splunk-launch.conf file:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#   Version 7.3.2

# Modify the following line to suit the location of your Splunk install.
# If unset, Splunk will use the parent of the directory containing the splunk
# CLI executable.
#
 SPLUNK_HOME=/opt/splunk

# By default, Splunk stores its indexes under SPLUNK_HOME in the
# var/lib/splunk subdirectory.  This can be overridden
# here:
#
# SPLUNK_DB=/opt/splunk-home/var/lib/splunk
SPLUNK_DB=/indexes/splunk
# Splunkd daemon name
SPLUNK_SERVER_NAME=splunkd

# Splunkweb daemon name
SPLUNK_WEB_NAME=splunkweb

# Changing the default bind from 127.0.0.1 to actual IP
SPLUNK_BINDIP=10.72.10.XXX

# If SPLUNK_OS_USER is set, then Splunk service will only start
# if the 'splunk [re]start [splunkd]' command is invoked by a user who
# is, or can effectively become via setuid(2), $SPLUNK_OS_USER.
# (This setting can be specified as username or as UID.)
#
 SPLUNK_OS_USER=splunk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My web.conf file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# location of splunkd; don't include http[s]:// in this anymore.
mgmtHostPort = 10.72.10.XXX:8089
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;NOTE:&lt;/STRONG&gt;&lt;BR /&gt;
I tried adding "server.socket_host = 10.72.10.106" as one Answers response suggested for a similar problem - it has no effect.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;My server.conf:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[general]
serverName = splunk-idx1.FQDN.com
pass4SymmKey = $7$qKGYODrBHTX/iU48JAtICIiYzLSTkJ/cJV0WReqxkB==

[sslConfig]
sslPassword = $7$yq5VWVVe1wXyurxFgpnBOQZx8XjykeVyg4xmW4Q9KOK8==

[lmpool:auto_generated_pool_download-trial]
description = auto_generated_pool_download-trial
quota = MAX
slaves = *
stack_id = download-trial

[lmpool:auto_generated_pool_forwarder]
description = auto_generated_pool_forwarder
quota = MAX
slaves = *
stack_id = forwarder

[lmpool:auto_generated_pool_free]
description = auto_generated_pool_free
quota = MAX
slaves = *
stack_id = free
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;It seems like it is having an authentication issue within Splunk itself, but I am not sure where to look at this point:&lt;/STRONG&gt;&lt;BR /&gt;
SplunkdConnectionException: Splunkd daemon is not responding: ('Error connecting to /services/authentication/users/admin: [Errno 111] Connection refused',)&lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:51:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/500-Internal-Server-Error/m-p/477677#M15257</guid>
      <dc:creator>aoleske</dc:creator>
      <dc:date>2020-09-30T02:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: 500 Internal Server Error</title>
      <link>https://community.splunk.com/t5/Security/500-Internal-Server-Error/m-p/477678#M15258</link>
      <description>&lt;P&gt;Probably you installed a universal forwarder in the same server. &lt;/P&gt;

&lt;P&gt;Could you please run the following command in your CentOS server:&lt;/P&gt;

&lt;P&gt;$ ps -A | grep splunk &lt;/P&gt;

&lt;P&gt;And show me the output please?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 17:07:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/500-Internal-Server-Error/m-p/477678#M15258</guid>
      <dc:creator>fernanlee</dc:creator>
      <dc:date>2019-11-08T17:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: 500 Internal Server Error</title>
      <link>https://community.splunk.com/t5/Security/500-Internal-Server-Error/m-p/477679#M15259</link>
      <description>&lt;P&gt;thanks for the response!&lt;BR /&gt;
No forwarder installed... This is a new install and the only thing installed is Splunk Enterprise:&lt;BR /&gt;
splunk-7.2.0-8c86330ac18-Linux-x86_64.tgz&lt;/P&gt;

&lt;P&gt;$ ps -A | grep splunk&lt;BR /&gt;
 9515 ?        00:00:11 splunkd&lt;BR /&gt;
 9517 ?        00:00:00 splunkd&lt;BR /&gt;
 9732 ?        00:00:01 splunkd&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 17:30:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/500-Internal-Server-Error/m-p/477679#M15259</guid>
      <dc:creator>aoleske</dc:creator>
      <dc:date>2019-11-08T17:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: 500 Internal Server Error</title>
      <link>https://community.splunk.com/t5/Security/500-Internal-Server-Error/m-p/477680#M15260</link>
      <description>&lt;P&gt;&lt;STRONG&gt;It looks like the certificate is fine, and I can make a connection with curl:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[user@splunk-XXX network-scripts]$ curl -k --user admin:XXXXX --trace-ascii dump.txt &lt;A href="https://splunk-XXX:8089/services/authentication/users" target="_blank"&gt;https://splunk-XXX:8089/services/authentication/users&lt;/A&gt;&lt;BR /&gt;
== Info: About to connect() to splunk-XXX port 8089 (#0)&lt;BR /&gt;
== Info:   Trying 10.72.10.XXX...&lt;BR /&gt;
== Info: Connected to splunk-XXX (10.72.10.XXX) port 8089 (#0)&lt;BR /&gt;
== Info: Initializing NSS with certpath: sql:/etc/pki/nssdb&lt;BR /&gt;
== Info: skipping SSL peer certificate verification&lt;BR /&gt;
== Info: SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384&lt;BR /&gt;
== Info: Server certificate:&lt;BR /&gt;
== Info:        subject: O=SplunkUser,CN=SplunkServerDefaultCert&lt;BR /&gt;
== Info:        start date: Nov 08 17:11:36 2019 GMT&lt;BR /&gt;
== Info:        expire date: Nov 07 17:11:36 2022 GMT&lt;BR /&gt;
== Info:        common name: SplunkServerDefaultCert&lt;BR /&gt;
== Info:        issuer: E=&lt;A href="mailto:support@splunk.com" target="_blank"&gt;support@splunk.com&lt;/A&gt;,CN=SplunkCommonCA,O=Splunk,L=San Francisco,ST=CA,C=US&lt;BR /&gt;
== Info: Server auth using Basic with user 'admin'&lt;BR /&gt;
=&amp;gt; Send header, 156 bytes (0x9c)&lt;BR /&gt;
0000: GET /services/authentication/users HTTP/1.1&lt;BR /&gt;
002d: Authorization: Basic YWRtaW46c3BsdW5rMjAxOA==&lt;BR /&gt;
005c: User-Agent: curl/7.29.0&lt;BR /&gt;
0075: Host: splunk-XXX:8089&lt;BR /&gt;
008d: Accept: &lt;EM&gt;/&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:51:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/500-Internal-Server-Error/m-p/477680#M15260</guid>
      <dc:creator>aoleske</dc:creator>
      <dc:date>2020-09-30T02:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: 500 Internal Server Error</title>
      <link>https://community.splunk.com/t5/Security/500-Internal-Server-Error/m-p/477681#M15261</link>
      <description>&lt;P&gt;splunk-7.3.2-c60db69f8e32-Linux-x86_64.tgz Is actually what we are currently running. I tried splunk-7.2.0-8c86330ac18-Linux-x86_64.tgz also to see if it made a difference, since we are running it successfully on a test server. splunk7.3.2 is now the only install currently  on the box. I have 6 servers all with the same issue.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:51:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/500-Internal-Server-Error/m-p/477681#M15261</guid>
      <dc:creator>aoleske</dc:creator>
      <dc:date>2020-09-30T02:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: 500 Internal Server Error</title>
      <link>https://community.splunk.com/t5/Security/500-Internal-Server-Error/m-p/477682#M15262</link>
      <description>&lt;P&gt;In this kind of errors we must perform a check list to ensure everything was deploy properly. &lt;/P&gt;

&lt;P&gt;Your HW is compliant with the minimun and recommended specifications?&lt;BR /&gt;
Your server and OS is 64bit?&lt;BR /&gt;
Do you have enough space in your server? &lt;BR /&gt;
If the HW is not enough you will have a lot of problems.&lt;/P&gt;

&lt;P&gt;Please check the following log:&lt;BR /&gt;
$ cat SPLUNK_HOME/var/log/splunk/health.log&lt;/P&gt;

&lt;P&gt;Did you install splunk with a noon root user? &lt;BR /&gt;
$ ls -la $SPLUNK_HOME &lt;/P&gt;

&lt;P&gt;Remember DIAG is your best FRIEND!&lt;/P&gt;

&lt;P&gt;Diag provides insight into your instance:&lt;BR /&gt;
    - How is the isntance configured&lt;BR /&gt;
    - What was the condition up the point that diag ran&lt;BR /&gt;
Gather data based on Splunk components:&lt;BR /&gt;
    - OS setting, internal lgos, configuration files, etc.&lt;BR /&gt;
    - Produces a tar.gz file and diag.log&lt;/P&gt;

&lt;P&gt;No customer data is retrieved. &lt;/P&gt;

&lt;P&gt;$./splunk diag&lt;BR /&gt;
  -&amp;gt; Check for any errors.&lt;/P&gt;

&lt;P&gt;Did you make an Splunk upgrade?&lt;/P&gt;

&lt;P&gt;Check the logs to verify if there was a problem during the process:&lt;BR /&gt;
SPLUNK_HOME/var/log/splunk/migration.log. &lt;/P&gt;

&lt;P&gt;= Notable Logs for crashes =&lt;BR /&gt;
Check if crash*log exists or splunkd_stderr.log &lt;/P&gt;

&lt;P&gt;Hope this help!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 19:46:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/500-Internal-Server-Error/m-p/477682#M15262</guid>
      <dc:creator>fernanlee</dc:creator>
      <dc:date>2019-11-08T19:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: 500 Internal Server Error</title>
      <link>https://community.splunk.com/t5/Security/500-Internal-Server-Error/m-p/477683#M15263</link>
      <description>&lt;P&gt;Your HW is compliant with the minimun and recommended specifications? &lt;STRONG&gt;Yes&lt;/STRONG&gt;&lt;BR /&gt;
Your server and OS is 64bit? &lt;STRONG&gt;Yes (CentOS 7)&lt;/STRONG&gt;&lt;BR /&gt;
Do you have enough space in your server?  &lt;STRONG&gt;Yes&lt;/STRONG&gt;&lt;BR /&gt;
If the HW is not enough you will have a lot of problems.&lt;BR /&gt;
Please check the following log:&lt;BR /&gt;
$ cat SPLUNK_HOME/var/log/splunk/health.log: &lt;STRONG&gt;All green&lt;/STRONG&gt;&lt;BR /&gt;
Did you install splunk with a noon root user? &lt;STRONG&gt;Installed as splunk user&lt;/STRONG&gt;&lt;BR /&gt;
$ ls -la $SPLUNK_HOME:  &lt;STRONG&gt;/opt/splunk&lt;/STRONG&gt;&lt;BR /&gt;
Remember DIAG is your best FRIEND!&lt;BR /&gt;
Diag provides insight into your instance:&lt;BR /&gt;
- How is the isntance configured&lt;BR /&gt;
- What was the condition up the point that diag ran&lt;BR /&gt;
Gather data based on Splunk components:&lt;BR /&gt;
- OS setting, internal lgos, configuration files, etc.&lt;BR /&gt;
- Produces a tar.gz file and diag.log&lt;BR /&gt;
No customer data is retrieved. &lt;BR /&gt;
$./splunk diag&lt;BR /&gt;
-&amp;gt; Check for any errors.&lt;BR /&gt;
Did you make an Splunk upgrade? &lt;STRONG&gt;No Upgrade - fresh install on new VM&lt;/STRONG&gt;&lt;BR /&gt;
Check the logs to verify if there was a problem during the process: No problems reported&lt;BR /&gt;
SPLUNK_HOME/var/log/splunk/migration.log.  &lt;STRONG&gt;N/A&lt;/STRONG&gt;&lt;BR /&gt;
= Notable Logs for crashes =&lt;BR /&gt;
Check if crash*log exists or splunkd_stderr.log: &lt;STRONG&gt;Nothing interesting&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:55:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/500-Internal-Server-Error/m-p/477683#M15263</guid>
      <dc:creator>aoleske</dc:creator>
      <dc:date>2020-09-30T02:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: 500 Internal Server Error</title>
      <link>https://community.splunk.com/t5/Security/500-Internal-Server-Error/m-p/477684#M15264</link>
      <description>&lt;P&gt;Splunk diag?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 21:17:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/500-Internal-Server-Error/m-p/477684#M15264</guid>
      <dc:creator>fernanlee</dc:creator>
      <dc:date>2019-11-08T21:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: 500 Internal Server Error</title>
      <link>https://community.splunk.com/t5/Security/500-Internal-Server-Error/m-p/477685#M15265</link>
      <description>&lt;P&gt;Not sure what you are looking for with splunk diag? It runs without errors. I could pull specific files out if needed and post the results here. I have also opened a ticket with support and uploaded the diag file there.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 21:23:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/500-Internal-Server-Error/m-p/477685#M15265</guid>
      <dc:creator>aoleske</dc:creator>
      <dc:date>2019-11-08T21:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: 500 Internal Server Error</title>
      <link>https://community.splunk.com/t5/Security/500-Internal-Server-Error/m-p/477686#M15266</link>
      <description>&lt;P&gt;&lt;STRONG&gt;My web.conf file had an error - needed to add [settings]:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;# location of splunkd; don't include http[s]:// in this anymore.&lt;BR /&gt;
 mgmtHostPort = 10.72.10.XXX:8089&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;The correct config is:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;# location of splunkd; don't include http[s]:// in this anymore.&lt;BR /&gt;
[settings]&lt;BR /&gt;
mgmtHostPort = 10.72.10.XXX:8089&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 20:37:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/500-Internal-Server-Error/m-p/477686#M15266</guid>
      <dc:creator>aoleske</dc:creator>
      <dc:date>2019-11-21T20:37:40Z</dc:date>
    </item>
  </channel>
</rss>

