Deployment Architecture

Splunk on Ubuntu Server 12.10

miteshvohra
Contributor

After installing Splunk 5.0.2 release on Ubuntu Server 12.10 (with kernel 3.5.0-17), I am frequently getting the following error while trying to access it:

400 Bad Request

Illegal cookie name uid

Traceback (most recent call last):
  File "/opt/splunk/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 581, in respond
    self.process_headers()
  File "/opt/splunk/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 653, in process_headers
    raise cherrypy.HTTPError(400, msg)
HTTPError: (400, 'Illegal cookie name uid')

Powered by CherryPy 3.1.2 

Suggestions / tips to get rid of the error would be helpful.

Thanks, Mitesh Vohra.

Tags (3)
0 Karma

Ayn
Legend

If you're running other web services on the same machine your browser will send the cookies you use for those services as well, which can cause CherryPy (the web server component Splunk uses) to throw this error. More information available for instance in the following threads:

http://splunk-base.splunk.com/answers/8215/illegal-cookie-name
http://splunk-base.splunk.com/answers/3602/can-splunk-accept-cookies-with-colon-embedded

miteshvohra
Contributor

Not possible. The VirtualBox instance was connected over "Virtual-Host Only" mode of network connection. It took the IP Address from the VirtualBox DHCP Server. I have accessing the server in FireFox incognito/private mode.

0 Karma

Ayn
Legend

Perhaps the IP/hostname of your virtual server previously belonged to some other host that ran a web application that issued cookies? It doesn't need to have been recently - as long as the user's web browser keeps sending the cookies (i.e. they haven't expired) you will experience the same problem.

0 Karma

miteshvohra
Contributor

@Ayn: Thanks for the help and the links.

However, the Ubuntu Server is running on Oracle Virtualbox with just OpenSSH-Server running on it and does not have any other service/role configured on it.

I am changing my job by end of this week and, hence, my access to the setup has been revoked. I can no longer troubleshoot the problem stated in the question.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Break the Build: Inside the KubeDoom Lounge at .conf26

    You step up to the machine. The pixelated corridors of a certain 1993 FPS load in front of you, EMP Pulse ...

Splunk Auto Ingestion Parallel Pipeline Scaling

Why this feature matters Many Splunk environments experience ingestion pressure long before the host is fully ...

Best Practices: Splunk auto adjust pipeline queue

When you enable autoAdjustQueue in Splunk, maxSize should be understood as the queue size Splunk starts with ...