Refine your search:

On a Solaris machine, I modified $SLUNK_HOME/etc/system/local/web.conf to use httpport = 80
The below error was then presented when trying to start splunk-web:

 Checking prerequisites...
 Checking http port [80]: already bound
 ERROR: The http port [80] is already bound. Splunk needs to use this port.
 Would you like to change ports? [y/n]: n
 Exiting....

The following did not reveal any other port 80 uses

> netstat -an | grep 80
---
> telnet 127.0.0.1 80
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host

I was also unable to telnet to port 80 from another machine TO this machine. Port 80 was not in use. What else might have caused Splunk to report port 80 was already bound?

asked 08 Apr '10, 04:13

bwooden's gravatar image

bwooden ♦
2.1k19
accept rate: 38%


One Answer:

Splunk was not installed by or being started by root.
Splunk was being started by splunkuser.
splunkuser could not start any service on a privileged port (port < 1024)

Resolution:

> usermod -K defaultpriv=basic,net_privaddr splunkuser

This updated the file /etc/user_attr and allowed splunkuser to start a splunk-web instance on port 80.

What if you can't do this due to governance? Check out these alternatives

link

answered 08 Apr '10, 04:19

bwooden's gravatar image

bwooden ♦
2.1k19
accept rate: 38%

edited 08 Apr '10, 04:35

Additionally, "loopback" was being resolved by DNS to another host which was listening on port 80. This was remedied by mapping 127.0.0.1 to loopback in /etc/hosts as well as confirming that the hosts file took precedence over DNS queries in /etc/nsswitch.conf

(08 Apr '10, 04:23) bwooden ♦

This is rather OS-specific. What particular operating system are these instructions valid for?

(08 Apr '10, 04:25) gkanapathy ♦

Yes it is. I started the question with "On a Solaris machine" but should have peppered that in a few more places for clarity.

(08 Apr '10, 04:33) bwooden ♦

"these alternatives" = http://www.splunk.com/support/forum:SplunkAdministration/4191

(08 Apr '10, 04:35) bwooden ♦
Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×309
×104

Asked: 08 Apr '10, 04:13

Seen: 1,674 times

Last updated: 08 Apr '10, 04:35

Copyright © 2005-2012 Splunk, Inc. All rights reserved.