Cannot connect to mongrel running typo

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

typo install foo

Starting Typo on port 4821

I then try

wget http://127.0.0.1:4821

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

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

···

On 10/4/06, bradphelan <bradphelan@gmail.com> wrote:

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

>> typo install foo
Starting Typo on port 4821

I then try
>> wget http://127.0.0.1:4821

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?

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 ??

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

···

On 10/4/06, bradphelan <bradphelan@gmail.com> wrote:

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

Jan Svitok wrote:

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)

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.

···

On 10/4/06, bradphelan <bradphelan@gmail.com> wrote:

--
Brad Phelan
http://xtargets.com

Jan Svitok wrote:

···

On 10/4/06, bradphelan <bradphelan@gmail.com> wrote:
> 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

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

Brad

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

Markt

···

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

Brad

Mark T wrote:

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

Markt

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

Brad

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.

···

--
Brad Phelan
http://xtargets.com