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

On 10/4/06, bradphelan [email protected] wrote:

The mongrel log is
/usr/home/brad/projects/ruby/typo/foo/tmp/pid.txt

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

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

On 10/4/06, bradphelan [email protected] 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

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

Markt

Jan S. wrote:

  1. try using webrick instead of mongrel
    Tried webbrick and that still doesn’t work. I am puzzled!

Brad

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs