I'm new here, and I wasn't sure where to put this question.
So forgive me if this is the wrong place.
The problem I have is that when I open a second, different, rails app
on
one server, the ruby proces crashes. When I checkout the ruby process
this is the loop it hangs in:
I've searched google for "EADDRINUSE (Address already in use)" but I
can't find a solution.. So I hope anyone has experienced this before,
and solved it.. If you need some more information, please ask for it.
The problem I have is that when I open a second, different, rails app
on
one server, the ruby proces crashes.
I've searched google for "EADDRINUSE (Address already in use)" but I
can't find a solution..
Seriously? It means exactly what it says; one process is using the
ip/port that the second one tried to bind to. That can't work.
Change one.
Start one instance with ‘script/server -p 3004’ or something like that
to make it use a different port. You then would access the app on the
corresponding port.
I can see now that the problem is I need to run the different
applications on different ports..
The only thing is, I've heard it has to be possible to run more
applications on one port, I want to use port 80.
I'm using a webserver.. What are your ideas about this? Do you run all
your web-applications on different ports?
It looks like you're using passenger, you can certainly serve multiple
apps from a single install of apache. It's easiest if you have
separate virtual hosts but you can mount different rails apps at
different paths (although it's a bit more involved)
I can see now that the problem is I need to run the different
applications on different ports..
The only thing is, I've heard it has to be possible to run more
applications on one port, I want to use port 80.
I'm using a webserver.. What are your ideas about this? Do you run all
your web-applications on different ports?
It looks like you're using passenger, you can certainly serve multiple
apps from a single install of apache. It's easiest if you have
separate virtual hosts but you can mount different rails apps at
different paths (although it's a bit more involved)
Fred
I am using Ruby Enterprice Edition which includes passenger.. I am
allready using seperate virtual hosts. Someone looked into that, and
said the settings for that were good. Can the problem be because of
DirectAdmin? Does anyone has experience with R.E.E. in combination with
CentOS and DirectAdmin?
Many thanks for the help so far, I hope we can figure this out, it's
really anoying, because I have to get the second application up and
running..
I can see now that the problem is I need to run the different
applications on different ports..
The only thing is, I've heard it has to be possible to run more
applications on one port, I want to use port 80.
I'm using a webserver.. What are your ideas about this? Do you run all
your web-applications on different ports?
If you're using vhosts and Passenger, then just edit the Passenger
config file appropriately (see the docs). You don't need to start the
Rails server processes explicitly; Passenger takes care of that.
I can see now that the problem is I need to run the different
applications on different ports..
The only thing is, I've heard it has to be possible to run more
applications on one port, I want to use port 80.
I'm using a webserver.. What are your ideas about this? Do you run all
your web-applications on different ports?
If you're using vhosts and Passenger, then just edit the Passenger
config file appropriately (see the docs). You don't need to start the
Rails server processes explicitly; Passenger takes care of that.
I've checked the settings.. But without any progress, I'll just try
mongrel with Mongrel Cluster for now.. Let's see what that is going to
do..
No! Get Passenger working -- it's far easier than Mongrel Cluster.
Reread the docs -- it shouldn't be difficult. Under what circumstances
are you getting the "Port already in use" error? What command do you
type that causes it?
We've installed the whole thing again now.. Still the same error..
It's actually not when loading 2 different sites, but it happens if a
site is clicked too many times..
We use 'webistrano' to upload our projects, and when we connect with
two different browsers to it,
and start clicking fast, rails gets in this loop, posted above..
We left it there for a while, but we still need to get it fixed..
So I hope someone passes by that had the same problem..