Newbie problem setting-up cherokee-admin

I followed this tutorial:

http://library.linode.com/web-servers/c … conclusion">http://library.linode.com/web-servers/cherokee/installing-cherokee-ubuntu-10.04-lucid#sph_conclusion

I can browse to http://66.228.39.112/ and verify that Cherokee is running.

Then when I run the following in a Terminal window I am notified that "bind: Address already in use":

root@socrates:~# cherokee-admin &

[1] 4183

root@socrates:~#

Login:

User: admin

One-time Password: v2ICKWcAHXyHgpJb

Web Interface:

URL: http://127.0.0.1:9090/

Cherokee Web Server 0.99.39 (Feb 2 2010): Listening on port 127.0.0.1:9090, TLS

disabled, IPv6 disabled, using epoll, 4096 fds system limit, max. 2041

connections, caching I/O, single thread

root@socrates:~# ssh -L 9090:localhost:9090 root@66.228.39.112 -N

root@66.228.39.112's password:

bind: Address already in use

Additionaly when I browse to http://127.0.0.1:9090/ I get

Firefox can't establish a connection to the server at 127.0.0.1:9090.

Any suggestions? Thank you.

5 Replies

@gmw:

root@socrates:~# ssh -L 9090:localhost:9090 root@66.228.39.112 -N
You need to run this command from your home machine, not on your Linode.

Thanks Vance. I made some progress. Here is what I did:

I open two Terminal windows from my Ubuntu desktop.

In terminal window #1, I logged into my Linode and ran

cherokee-admin &

In terminal window #2, I ran

ssh -L 9090:localhost:9090 root@66.228.39.112 -N

I browsed to http://127.0.0.1:9090 and was asked to supply a username and password by cherokee admin. I entered the ones displayed in terminal window #1: admin / 8UvOHGxran4he5NZ. The Cherokee Admin Welcome page loaded but the server status informed me that: Server is not running.

When I browse to http://66.228.39.112/ the Cherokee test page still loads.

At the moment, I'm not sure what else to try but thanks again for your help.

Also when I click on the Launch button I get:

Could not launch the server

Could not bind() port=80 (UID=0, GID=0)

@gmw:

Could not bind() port=80 (UID=0, GID=0)
This usually is an indication that another web server is already running. If you stop it you should be able to launch Cherokee, I imagine. You can determine this as follows:

# netstat -lvpnut | grep 80
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      32505/apache2

This indicates that apache2, process ID 32505 is listening on port 80.

(Sorry, I don't know anything about Cherokee specifically so can't help you on the details.)

Thanks Vance!!! Your post made me realize what I did wrong. Initially I built my Linode with Apache. When I re-deployed Ubuntu, I didn't use the rebuild option which would have wiped my linode clean. I did notice that after the re-deploy that the apache2 sub-directory was gone but there must have been some setting somewhere that remained. Anyway since I did a rebuild, all is well and my cherokee server is running. Again thanks for helping me figure this out.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct