cannot connect to mongrel running typo

B

bradphelan

I just installed Typo 4 on my Ubuntu box. I run
Starting Typo on port 4821

I then try
but no connection is made. Same problem in firefox. No connection.

The mongrel log is
** Starting Mongrel listening at 0.0.0.0:4821
** Starting Rails with production environment...
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready. TERM => stop. USR2 => restart. INT => stop (no
restart).
** Rails signals registered. HUP => reload (without restart). It
might not work well.
** Mongrel available at 0.0.0.0:4821
** Writing PID file to
/usr/home/brad/projects/ruby/typo/foo/tmp/pid.txt


Strange IP address 0.0.0.0 ???? Is that correct?

typo has started mongrel as

10085 ? Rl 0:01 /usr/local/bin/ruby
/usr/local/bin/mongrel_rails start
/usr/home/brad/projects/ruby/typo/foo -d false -e production -P
/usr/home/brad/projects/ruby/typo/foo/tmp/pid.txt -p 4821

Does anybody have an idea what is up here?

Regards

Brad




and it
 
J

Jan Svitok

I just installed Typo 4 on my Ubuntu box. I run

Starting Typo on port 4821

I then try

but no connection is made. Same problem in firefox. No connection.

The mongrel log is
** Starting Mongrel listening at 0.0.0.0:4821
** Starting Rails with production environment...
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready. TERM => stop. USR2 => restart. INT => stop (no
restart).
** Rails signals registered. HUP => reload (without restart). It
might not work well.
** Mongrel available at 0.0.0.0:4821
** Writing PID file to
/usr/home/brad/projects/ruby/typo/foo/tmp/pid.txt


Strange IP address 0.0.0.0 ???? Is that correct?

typo has started mongrel as

10085 ? Rl 0:01 /usr/local/bin/ruby
/usr/local/bin/mongrel_rails start
/usr/home/brad/projects/ruby/typo/foo -d false -e production -P
/usr/home/brad/projects/ruby/typo/foo/tmp/pid.txt -p 4821

Does anybody have an idea what is up here?

just a 'generic' hints:

0.0.0.0 means 'any' or 'all' addresses, i.e. if your box has two
addresses, mongrel will listen on both

try netstat -an to see whether it really listens on the port
 
B

bradphelan

0.0.0.0 means 'any' or 'all' addresses, i.e. if your box has two
addresses, mongrel will listen on both

try netstat -an to see whether it really listens on the port

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address
State
tcp 0 0 0.0.0.0:4821 0.0.0.0:*
LISTEN
tcp 0 1 192.168.1.5:55526 127.0.0.1:631
SYN_SENT
tcp 1 1 192.168.1.5:59149 82.211.81.138:80
LAST_ACK
tcp 1 1 192.168.1.5:43522 82.211.81.240:80
LAST_ACK
tcp 0 0 192.168.1.5:32889 63.245.209.21:80
ESTABLISHED
tcp 0 0 192.168.1.5:53454 207.7.108.149:993
ESTABLISHED
tcp 0 0 192.168.1.5:53457 207.7.108.149:993
ESTABLISHED
tcp 0 0 192.168.1.5:44193 64.233.167.147:80
ESTABLISHED
tcp 0 0 192.168.1.5:44192 64.233.167.147:80
ESTABLISHED
tcp 0 0 192.168.1.5:37849 72.14.217.104:80
ESTABLISHED
tcp 0 0 192.168.1.5:37850 72.14.217.104:80
ESTABLISHED
tcp 0 1 192.168.1.5:37587 127.0.0.1:4821
SYN_SENT
udp 0 0 0.0.0.0:68 0.0.0.0:*

raw 0 0 0.0.0.0:1 0.0.0.0:* 7


So it seems to be listening but neither firefox or wget can make a
connection ??
 
J

Jan Svitok

So it seems to be listening but neither firefox or wget can make a
connection ??

Right. The output seems fine. I don't have a clue what could be the
problem. Some more tips:

1. try running mongrel with specific address: -a 127.0.0.1
2. try using your outer address (-a 192.186.1.5)
3. are you using some kind of firewall that could block the traffic?
4. try using webrick instead of mongrel
 
B

Brad Phelan

Jan said:
Right. The output seems fine. I don't have a clue what could be the
problem. Some more tips:

1. try running mongrel with specific address: -a 127.0.0.1
2. try using your outer address (-a 192.186.1.5) I gave that a go but no joy
3. are you using some kind of firewall that could block the traffic?
4. try using webrick instead of mongrel

It is very strange because here at work I have an ubuntu box running
pretty much the same setup except it has ethernet instead of WIFI and
desktop instead of laptop. I had no troubles.

at home my firewall is at the wireless router, no clever software
firewall stuff installed by me.

However you give me one idea. I have installed vmware player and
everytime I run apt-get the player tries to reconfigure it's network
connections. Perhapps the setup for vmware player has done some
ugly stuff to my settings. I am not running vmware player during
the typo tries but perhapps there are some daemons running anyways
causing havoc.

I will try the other suggestions too when I get home tonight.

Ta for the suggestions.
 
B

bradphelan

Jan said:
Right. The output seems fine. I don't have a clue what could be the
problem. Some more tips:

1. try running mongrel with specific address: -a 127.0.0.1
2. try using your outer address (-a 192.186.1.5)
3. are you using some kind of firewall that could block the traffic?
4. try using webrick instead of mongrel

Tried webbrick and that still doesn't work. I am puzzled!

Brad
 
M

Mark T

Howsabout running ethereal to see if traffic is getting to the IP
address (firstly).

Markt
 
B

Brad Phelan

Mark said:
Howsabout running ethereal to see if traffic is getting to the IP
address (firstly).

Markt

Seems to be a bigger problem not just with mongrel. I tried in one
terminal

netcat -l -p 3000

and then in another

netcat localhost 3000

and started typing away. Again on my work machine the stuff goes through
and my home machine it doesn't. I guess I should start cross posting to
an Ubuntu / Linux newsgroup.

I'll have a look at etheral again when I get home.

Ta for the tip.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,795
Messages
2,569,644
Members
45,357
Latest member
RuthEsteve

Latest Threads

Top