[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

cannot connect to mongrel running typo

bradphelan

10/3/2006 10:03:00 PM

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

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

8 Answers

Jano Svitok

10/3/2006 10:17:00 PM

0

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

bradphelan

10/4/2006 6:46:00 AM

0


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

Jano Svitok

10/4/2006 9:22:00 PM

0

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

Brad Phelan

10/5/2006 11:12:00 AM

0

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)
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.

--
Brad Phelan
http://xt...

bradphelan

10/5/2006 8:12:00 PM

0


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

Mark T

10/5/2006 9:08:00 PM

0

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

Brad Phelan

10/6/2006 7:37:00 AM

0

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://xt...

BJACOBY@teranews.com

10/2/2013 12:28:00 AM

0

On Mon, 30 Sep 2013 20:59:23 -0700, GOP_Decline_and_Fall wrote:

> Breitbart notwithstanding,the PA testified that Zimmerman's nose was not
> deviated in the slightest when she saw him.

You just saw the photo, Sheila. What is your theory? Was the photo photo-
shopped? Yeah, that's got to be it! It's the big police conspiracy theory
again! EVERYBODY in the case was lying! Even the prosecution witnesses!
There are only two groups of people who know what went on. One of them is
dead and all the other witnesses are lying with faked data. I wonder why
nobody is interested in pursuing obstruction of justice charges?

Now take a look at that Father-in-law's nose! Now THAT is some obvious
and serious "deviation"! THAT is clearly what a "punch in the nose" does!

Time for your meds again Sheila!