Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Aug 23, 2011 12:43 pm 
Offline
Senior Newbie

Joined: Tue Aug 23, 2011 12:36 pm
Posts: 5
I followed this tutorial:
http://library.linode.com/web-servers/c ... 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.


Top
   
PostPosted: Tue Aug 23, 2011 11:51 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
gmw wrote:
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.


Top
   
 Post subject:
PostPosted: Wed Aug 24, 2011 10:33 am 
Offline
Senior Newbie

Joined: Tue Aug 23, 2011 12:36 pm
Posts: 5
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.


Top
   
 Post subject:
PostPosted: Wed Aug 24, 2011 6:06 pm 
Offline
Senior Newbie

Joined: Tue Aug 23, 2011 12:36 pm
Posts: 5
Also when I click on the Launch button I get:

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


Top
   
 Post subject:
PostPosted: Thu Aug 25, 2011 12:42 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
gmw wrote:
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:
Code:
# 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.)


Top
   
 Post subject:
PostPosted: Thu Aug 25, 2011 10:25 am 
Offline
Senior Newbie

Joined: Tue Aug 23, 2011 12:36 pm
Posts: 5
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group