[Mongrel] mongrel_rails hang and does not respond

Laurent Marzullo laurent at marzu.org
Tue Sep 18 07:29:28 EDT 2007


Hello,

Yes, my process is running:

-bash-2.05b$ mongrel_rails start -e development -p 3210 -l log/mongrel.3210.log
-P tmp/pids/mongrel.3210.pid -B  -d

-bash-2.05b$ /sbin/fuser -n tcp 3210
3210/tcp:            13746

-bash-2.05b$ ps -fp 13746
UID        PID  PPID  C STIME TTY          TIME CMD
dimnce   13746     1  5 12:51 ?        00:00:01
/exec/products/dimensions/9.1/gconf/usr/bin/ruby
/exec/products/dimensions/9.1/gconf/usr/bin/mongrel_rails start -e

-bash-2.05b$

So after waiting approximatively 20minutes, here what my browser print:
--------------------------------------------------------------------------
500 Server Error
The following error occurred: [code=RESOURCE_RECLAIMED] Internal error. Try
again.
Could not open error file
--------------------------------------------------------------------------


And here the different log:
----------- log/mongrel.3210.log ----------------
** Starting Mongrel listening at 0.0.0.0:3210
** Installing debugging prefixed filters. Look in log/mongrel_debug for the
files.
** Starting Rails with development 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:3210
** Writing PID file to tmp/pids/mongrel.3210.pid
10.173.13.184 - [Tue, 18 Sep 2007 10:53:37 GMT] "GET /delivery/deliver HTTP/1.1"
You have tried to set a null level to root.


----------- log/mongrel_debug/rails.log ----------------
Tue Sep 18 12:53:38 +0200 2007 REQUEST /delivery/deliver
--- !map:Mongrel::HttpParams
SERVER_NAME: 10.196.129.124
PATH_INFO: /delivery/deliver
HTTP_VIA: 1.1 rsc-ras-cache (NetCache NetApp/6.0.1P1D2)
HTTP_ACCEPT_ENCODING: gzip,deflate
HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.6)
Gecko/20070725 Firefox/2.0.0.6
SCRIPT_NAME: /
SERVER_PROTOCOL: HTTP/1.1
HTTP_ACCEPT_LANGUAGE: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_HOST: 10.196.129.124:3210
REMOTE_ADDR: 10.173.13.184
SERVER_SOFTWARE: Mongrel 1.0.1
REQUEST_PATH: /delivery/deliver
HTTP_ACCEPT_CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_COOKIE: _gconf_session_id=77924946c0ef0f5bdfbe7605487ce5e1;
_session_id=81423d670d8000adb260eb809bc55a26
HTTP_VERSION: HTTP/1.1
REQUEST_URI: /delivery/deliver
SERVER_PORT: "3210"
GATEWAY_INTERFACE: CGI/1.2
HTTP_X_FORWARDED_FOR: 10.173.13.184
HTTP_ACCEPT:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_CONNECTION: keep-alive
REQUEST_METHOD: GET


----------- log/mongrel_debug/files.log ----------------
Tue Sep 18 12:53:37 +0200 2007 FILES OPEN BEFORE REQUEST /delivery/deliver
---
/exec/products/dimensions/9.1/gconf/work/devel/gconf/config/../log/development.log:
1
log/mongrel_debug/objects.log: 2
tmp/pids/mongrel.3210.pid: 1
log/mongrel_debug/rails.log: 1
log/mongrel_debug/files.log: 1
log/mongrel_debug/threads.log: 1
log/mongrel_debug/access.log: 1


Any idea, hint, help ?

Thanks all



Selon barsalou <barjunk at attglobal.net>:

> Check to make sure the at least the process started.  Also, do you logs
> have anything to offer?
>
> Mike B.
>
> Quoting Laurent Marzullo <laurent at marzu.org>:
>
> > Hello,
> >
> > I've install ror/mongrel etc, etc on a linux server (rhes).
> >
> > As i'm not root, all package startinf from ruby have been install into
> >
> > ~/gconf/usr
> >
> > ruby-1.8.6
> > and all of this gem package:
> > -r-xr--r--    1 dimnce   dba        168448 Aug  9 14:53 rails-1.2.3.gem
> > -r-xr--r--    1 dimnce   dba         84480 Aug  9 14:56 rake-0.7.3.gem
> > -r-xr--r--    1 dimnce   dba        217088 Aug  9 14:58
> > activesupport-1.4.2.gem
> > -r-xr--r--    1 dimnce   dba        406016 Aug  9 15:04
> > activerecord-1.15.3.gem
> > -r-xr--r--    1 dimnce   dba        607232 Aug  9 15:09
> actionpack-1.13.3.gem
> > -r-xr--r--    1 dimnce   dba         67584 Aug  9 15:13
> > actionwebservice-1.2.3.gem
> > -r-xr--r--    1 dimnce   dba         84480 Aug  9 15:13
> > actionmailer-1.3.3.gem
> > -rwx------    1 dimnce   dba         84480 Sep 14 14:16
> capistrano-2.0.0.gem
> > -rwx------    1 dimnce   dba         19968 Sep 14 14:16
> > mongrel_cluster-1.0.2.gem
> > -rwx------    1 dimnce   dba        159232 Sep 14 14:16 mongrel-1.0.1.gem
> > -rwx------    1 dimnce   dba        150016 Sep 14 14:18 net-ssh-1.0.10.gem
> > -rwx------    1 dimnce   dba        649728 Sep 14 14:19 needle-1.3.0.gem
> > -rwx------    1 dimnce   dba         43520 Sep 14 14:20 net-sftp-1.1.0.gem
> > -rwx------    1 dimnce   dba         54272 Sep 14 14:21 highline-1.4.0.gem
> > -rwx------    1 dimnce   dba         41984 Sep 14 14:22
> gem_plugin-0.2.2.gem
> > -rwx------    1 dimnce   dba         30720 Sep 14 14:24 daemons-1.0.7.gem
> > -rwx------    1 dimnce   dba         20992 Sep 14 14:25 fastthread-1.0.gem
> > -rwx------    1 dimnce   dba          8192 Sep 14 14:26
> > cgi_multipart_eof_fix-2.3.gem
> >
> >
> > I've then compiled and installed httpd-2.2.6. And try to use mongrel with
> > apache.
> >
> >
> > In fact, all is running correctly until I start mongrel_rails with the '-d'
> > option.
> >
> > if I start mongrel with the following command:
> > mongrel_rails start -e production -p 3210
> >
> > my application is running correctly, but if I start mongrel with
> > mongrel_rails start -e production -p 3210 -d
> >
> > (note the -d option), my application does not respond to any request.
> >
> > I've tried to use mongrel directly (without requesting apache) and
> > I've the same
> > behavior.
> >
> > Do you have any hint why -d does not run correctly ?
> >
> > Thanks for your help
> > Regards.
> >
> >
> >
> > +--------------------+
> > + Laurent Marzullo
> > +
> > _______________________________________________
> > Mongrel-users mailing list
> > Mongrel-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/mongrel-users
> >
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>


+--------------------+
+ Laurent Marzullo
+


More information about the Mongrel-users mailing list