From lists at ruby-forum.com Wed Oct 1 08:25:24 2008 From: lists at ruby-forum.com (Chris Gers32) Date: Wed, 1 Oct 2008 14:25:24 +0200 Subject: [Mongrel] Mongrel_Cluster unable to access OCI8 library Message-ID: Hi, I'm able to run a ROR application in a Red Hat Enterprise Linux 4.4 environment, as long as I start my mongrel_cluster via the command line: [chris at localhost ~]$ mongrel_cluster_ctl start I take a look at the two mongrel_rails processes that were just created: [chris at localhost log]$ ps -ef | grep mongrel chris 4781 1 5 05:55 ? 00:00:02 /usr/local/bin/ruby /usr/local/bin/mongrel_rails start -d -e production -a 0.0.0.0 -c /home/chris/kitry/FDS_Server --user chris --group chris -p 4001 -P log/mongrel.4001.pid -l log/mongrel.4001.log chris 4784 1 5 05:55 ? 00:00:02 /usr/local/bin/ruby /usr/local/bin/mongrel_rails start -d -e production -a 0.0.0.0 -c /home/chris/kitry/FDS_Server --user chris --group chris -p 4002 -P log/mongrel.4002.pid -l log/mongrel.4002.log _____ Now, if I turn my mongrel_cluster into a service, which starts up at boot time, my two mongrel_rails processes look identical, EXCEPT for the PRIORITY LEVEL (5 by hand, 0 as a service): [chris at localhost ~]$ ps -ef | grep mongrel chris 2759 1 0 06:04 ? 00:00:02 /usr/local/bin/ruby /usr/local/bin/mongrel_rails start -d -e production -a 0.0.0.0 -c /home/chris/kitry/FDS_Server --user chris --group chris -p 4001 -P log/mongrel.4001.pid -l log/mongrel.4001.log chris 2762 1 0 06:04 ? 00:00:02 /usr/local/bin/ruby /usr/local/bin/mongrel_rails start -d -e production -a 0.0.0.0 -c /home/chris/kitry/FDS_Server --user chris --group chris -p 4002 -P log/mongrel.4002.pid -l log/mongrel.4002.log Unfortunately, this time, my application logs the following error message: LoadError (Oracle/OCI libraries could not be loaded: libclntsh.so.11.1: cannot open shared object file: No such file or directory - /usr/local/lib/ruby/site_ruby/1.8/i686-linux/oci8lib.so): ... ... What could be causing the processes to correctly read the library file in the first situation, but not in the second? Both are run by the same user, in the same group. Maybe my "ps -ef" command is insufficient for identifying all differences between the processes; I'm neither a Linux nor a ROR expert... Thanks, Chris. -- Posted via http://www.ruby-forum.com/. From gregbclarke at gmail.com Wed Oct 1 09:19:51 2008 From: gregbclarke at gmail.com (Greg Clarke) Date: Wed, 1 Oct 2008 23:19:51 +1000 Subject: [Mongrel] Mongrel_Cluster unable to access OCI8 library In-Reply-To: References: Message-ID: Just a quick thought Chris. Whenever I've seen this happen it's been because the process starting the mongrel does not have the required Oracle environment variables set. In my case this includes LD_LIBRARY_PATH, which points to the Oracle libraries the error message refers to. A quick comparison between your environment vars and the boot-time process environment vars would be useful. regards Greg On Wed, Oct 1, 2008 at 10:25 PM, Chris Gers32 wrote: > Hi, > > I'm able to run a ROR application in a Red Hat Enterprise Linux 4.4 > environment, as long as I start my mongrel_cluster via the command line: > > [chris at localhost ~]$ mongrel_cluster_ctl start > > I take a look at the two mongrel_rails processes that were just created: > > [chris at localhost log]$ ps -ef | grep mongrel > chris 4781 1 5 05:55 ? 00:00:02 /usr/local/bin/ruby > /usr/local/bin/mongrel_rails start -d -e production -a 0.0.0.0 -c > /home/chris/kitry/FDS_Server --user chris --group chris -p 4001 -P > log/mongrel.4001.pid -l log/mongrel.4001.log > chris 4784 1 5 05:55 ? 00:00:02 /usr/local/bin/ruby > /usr/local/bin/mongrel_rails start -d -e production -a 0.0.0.0 -c > /home/chris/kitry/FDS_Server --user chris --group chris -p 4002 -P > log/mongrel.4002.pid -l log/mongrel.4002.log > > _____ > > Now, if I turn my mongrel_cluster into a service, which starts up at > boot time, my two mongrel_rails processes look identical, EXCEPT for the > PRIORITY LEVEL (5 by hand, 0 as a service): > > [chris at localhost ~]$ ps -ef | grep mongrel > chris 2759 1 0 06:04 ? 00:00:02 /usr/local/bin/ruby > /usr/local/bin/mongrel_rails start -d -e production -a 0.0.0.0 -c > /home/chris/kitry/FDS_Server --user chris --group chris -p 4001 -P > log/mongrel.4001.pid -l log/mongrel.4001.log > chris 2762 1 0 06:04 ? 00:00:02 /usr/local/bin/ruby > /usr/local/bin/mongrel_rails start -d -e production -a 0.0.0.0 -c > /home/chris/kitry/FDS_Server --user chris --group chris -p 4002 -P > log/mongrel.4002.pid -l log/mongrel.4002.log > > Unfortunately, this time, my application logs the following error > message: > > LoadError (Oracle/OCI libraries could not be loaded: libclntsh.so.11.1: > cannot open shared object file: No such file or directory - > /usr/local/lib/ruby/site_ruby/1.8/i686-linux/oci8lib.so): > ... > ... > > What could be causing the processes to correctly read the library file > in the first situation, but not in the second? Both are run by the same > user, in the same group. Maybe my "ps -ef" command is insufficient for > identifying all differences between the processes; I'm neither a Linux > nor a ROR expert... > > Thanks, > > Chris. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > From lists at ruby-forum.com Wed Oct 1 10:20:58 2008 From: lists at ruby-forum.com (Chris Gers32) Date: Wed, 1 Oct 2008 16:20:58 +0200 Subject: [Mongrel] Mongrel_Cluster unable to access OCI8 library In-Reply-To: References: Message-ID: Hi Greg, Yes indeed, I set LD_LIBRARY_PATH in user "chris"'s .bashrc file: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/oracle/11.1.0.1/client/lib But since the processes run as the same user, I thought it would be OK. Where should I set this variable instead, and by the way, how do I list the boot-time environment variables? As you can see, I'm not much of a Linux guru... I appreciate your help, Chris. -- Posted via http://www.ruby-forum.com/. From gregbclarke at gmail.com Wed Oct 1 17:17:41 2008 From: gregbclarke at gmail.com (Greg Clarke) Date: Thu, 2 Oct 2008 07:17:41 +1000 Subject: [Mongrel] Mongrel_Cluster unable to access OCI8 library In-Reply-To: References: Message-ID: .bashrc runs for interactive shells only. To see your full set of interactive env vars enter: env or env | sort You could view and set env vars in the script that is called at boot time to start the mongrels. Inside that script you can examine the process's environment variables (echo $LD_LIBRARY_PATH to the log) and set them using the same syntax as in the .bashrc. I expect you will also have to set some other Oracle-related env vars - grep for ORACLE amongst your env vars to see what you are using interactively. All this should be pretty straightforward to your Oracle DBA if you have one around. On Thu, Oct 2, 2008 at 12:20 AM, Chris Gers32 wrote: > Hi Greg, > > Yes indeed, I set LD_LIBRARY_PATH in user "chris"'s .bashrc file: > > export > LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/oracle/11.1.0.1/client/lib > > But since the processes run as the same user, I thought it would be OK. > > Where should I set this variable instead, and by the way, how do I list > the boot-time environment variables? As you can see, I'm not much of a > Linux guru... > > I appreciate your help, > > Chris. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > From cnk at caltech.edu Wed Oct 1 22:27:31 2008 From: cnk at caltech.edu (Cynthia Kiser) Date: Wed, 1 Oct 2008 19:27:31 -0700 Subject: [Mongrel] Mongrel_Cluster unable to access OCI8 library In-Reply-To: References: Message-ID: <20081002022731.GB22367@blinky.caltech.edu> One thing I have done with success when using daemon tools to manage my mongrels is to put the Oracle environment variables in a wrapper script that then calls the mongrel start command. -- Cynthia Kiser From filipe at icewall.org Wed Oct 1 22:34:34 2008 From: filipe at icewall.org (Filipe Lautert) Date: Wed, 1 Oct 2008 23:34:34 -0300 (BRT) Subject: [Mongrel] Mongrel_Cluster unable to access OCI8 library In-Reply-To: References: Message-ID: When I run as user, my .bashrc has the following line: source /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh At the server, my mongrel_rails script sets the ORACLE_HOME variable (zealots, beware, this hack is really ugly): more /usr/local/bin/mongrel_rails #!/usr/local/bin/ruby # # This file was generated by RubyGems. # # The application 'mongrel' is installed as part of a gem, and # this file is here to facilitate running it. # require 'rubygems' version = ">= 0" ENV['ORACLE_HOME'] = '/usr/lib/oracle/xe/app/oracle/product/10.2.0/server' if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then version = $1 ARGV.shift end gem 'mongrel', version load 'mongrel_rails' # EOF Ugly but works nicely :) Cheers, filipe On Thu, 2 Oct 2008, Greg Clarke wrote: > .bashrc runs for interactive shells only. > > To see your full set of interactive env vars enter: > > env > > or > > env | sort > > > You could view and set env vars in the script that is called at boot > time to start the mongrels. > > Inside that script you can examine the process's environment variables > (echo $LD_LIBRARY_PATH to the log) and set them using the same syntax > as in the .bashrc. > > I expect you will also have to set some other Oracle-related env vars > - grep for ORACLE amongst your env vars to see what you are using > interactively. > > All this should be pretty straightforward to your Oracle DBA if you > have one around. > > On Thu, Oct 2, 2008 at 12:20 AM, Chris Gers32 wrote: >> Hi Greg, >> >> Yes indeed, I set LD_LIBRARY_PATH in user "chris"'s .bashrc file: >> >> export >> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/oracle/11.1.0.1/client/lib >> >> But since the processes run as the same user, I thought it would be OK. >> >> Where should I set this variable instead, and by the way, how do I list >> the boot-time environment variables? As you can see, I'm not much of a >> Linux guru... >> >> I appreciate your help, >> >> Chris. >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Mongrel-users mailing list >> Mongrel-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mongrel-users >> > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > filipe { @ icewall.org GPG 1024D/A6BA423E http://filipe.icewall.org/ } From jos at catnook.com Wed Oct 1 22:58:47 2008 From: jos at catnook.com (Jos Backus) Date: Wed, 1 Oct 2008 19:58:47 -0700 Subject: [Mongrel] Mongrel_Cluster unable to access OCI8 library In-Reply-To: <20081002022731.GB22367@blinky.caltech.edu> References: <20081002022731.GB22367@blinky.caltech.edu> Message-ID: <20081002025847.GB22230@lizzy.catnook.local> On Wed, Oct 01, 2008 at 07:27:31PM -0700, Cynthia Kiser wrote: > One thing I have done with success when using daemon tools to manage > my mongrels is to put the Oracle environment variables in a wrapper > script that then calls the mongrel start command. You could also use envdir: http://cr.yp.to/daemontools/envdir.html -- Jos Backus jos at catnook.com From lists at ruby-forum.com Thu Oct 2 09:38:38 2008 From: lists at ruby-forum.com (Chris Gers32) Date: Thu, 2 Oct 2008 15:38:38 +0200 Subject: [Mongrel] [SOLVED] Mongrel_Cluster unable to access OCI8 library In-Reply-To: <20081002025847.GB22230@lizzy.catnook.local> References: <20081002022731.GB22367@blinky.caltech.edu> <20081002025847.GB22230@lizzy.catnook.local> Message-ID: <86e0f71eb5c8e7ba5a130b2cb98eacae@ruby-forum.com> Thank you all for your help. I ended up setting my LD_LIBRARY_PATH in a new file called /etc/profile.d/oracle_libs.sh, and that solved my problem. Setting the environment variable inside the mongrel_rails script also worked, but the solution above allows me to use SQL*Plus as well. Cheers, Chris. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Oct 3 02:27:02 2008 From: lists at ruby-forum.com (Chris Gers32) Date: Fri, 3 Oct 2008 08:27:02 +0200 Subject: [Mongrel] [SOLVED] Mongrel_Cluster unable to access OCI8 library In-Reply-To: <86e0f71eb5c8e7ba5a130b2cb98eacae@ruby-forum.com> References: <20081002022731.GB22367@blinky.caltech.edu> <20081002025847.GB22230@lizzy.catnook.local> <86e0f71eb5c8e7ba5a130b2cb98eacae@ruby-forum.com> Message-ID: Actually, I've had to do both... So my problem was actually solved by adding LD_LIBRARY_PATH to the mongrel_rails script. -- Posted via http://www.ruby-forum.com/. From joshua at crackcreative.com Fri Oct 3 14:49:58 2008 From: joshua at crackcreative.com (joshua at crackcreative.com) Date: Fri, 3 Oct 2008 11:49:58 -0700 Subject: [Mongrel] mongrel cluster configuration In-Reply-To: <0A7E90A8-66D2-4E13-AB60-54D6DC9C3A69@crackcreative.com> References: <0A7E90A8-66D2-4E13-AB60-54D6DC9C3A69@crackcreative.com> Message-ID: Just one more ping on this. I can't get upload_progress working on my server without it, but no one seems to know how to set it up. I'd appreciate any help. Thanks, j On Sep 30, 2008, at 1:34 PM, joshua at crackcreative.com wrote: > So I'm using ec2onrails which launches mongrels like: > > mongrel_rails cluster::start -C /etc/mongrel_cluster/app.yml -clean $* > > Where app.yml looks like this: > > --- > user: app > cwd: /mnt/app/current > port: "8000" > environment: production > daemon: true > pid_file: log/mongrel.pid > servers: 6 > group: app > > The question is, I have installed the mongrel upload_progress > plugin, and according to the docs I need it to read a script > (mongrel.config) in the config folder of my app: > > uri "/", > :handler => plugin("/handlers/upload", > :frequency => 1, > :drb => 'druby://127.0.0.1:2999', > :path_info => ['/assets.js']), > :in_front => true > > The docs say to use a command like "mongrel_rails start -S config/ > mongrel.config", which works when I hack it into the local rails > script/server process, however the -S options doesn't appear to be > valid for for the mongrel cluster::start command. Can this > information be put in the app.yml file somehow? Is there a way to > get the cluster to read the script file? > > Thanks, > j > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users From joshua at crackcreative.com Fri Oct 3 22:40:02 2008 From: joshua at crackcreative.com (joshua at crackcreative.com) Date: Fri, 3 Oct 2008 19:40:02 -0700 Subject: [Mongrel] mongrel cluster configuration In-Reply-To: References: <0A7E90A8-66D2-4E13-AB60-54D6DC9C3A69@crackcreative.com> Message-ID: P.S. $25 Amazon Gift certificate to anyone who can help me out. j On Oct 3, 2008, at 11:49 AM, joshua at crackcreative.com wrote: > Just one more ping on this. I can't get upload_progress working on > my server without it, but no one seems to know how to set it up. > I'd appreciate any help. > > Thanks, > j > > > On Sep 30, 2008, at 1:34 PM, joshua at crackcreative.com wrote: > >> So I'm using ec2onrails which launches mongrels like: >> >> mongrel_rails cluster::start -C /etc/mongrel_cluster/app.yml -clean >> $* >> >> Where app.yml looks like this: >> >> --- >> user: app >> cwd: /mnt/app/current >> port: "8000" >> environment: production >> daemon: true >> pid_file: log/mongrel.pid >> servers: 6 >> group: app >> >> The question is, I have installed the mongrel upload_progress >> plugin, and according to the docs I need it to read a script >> (mongrel.config) in the config folder of my app: >> >> uri "/", >> :handler => plugin("/handlers/upload", >> :frequency => 1, >> :drb => 'druby://127.0.0.1:2999', >> :path_info => ['/assets.js']), >> :in_front => true >> >> The docs say to use a command like "mongrel_rails start -S config/ >> mongrel.config", which works when I hack it into the local rails >> script/server process, however the -S options doesn't appear to be >> valid for for the mongrel cluster::start command. Can this >> information be put in the app.yml file somehow? Is there a way to >> get the cluster to read the script file? >> >> Thanks, >> j >> _______________________________________________ >> Mongrel-users mailing list >> Mongrel-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mongrel-users > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users From damnbigman at gmail.com Wed Oct 8 17:44:08 2008 From: damnbigman at gmail.com (Glen Holcomb) Date: Wed, 8 Oct 2008 15:44:08 -0600 Subject: [Mongrel] mongrel_service problems Message-ID: <48800a90810081444o2f819274nf32baf4c93f3faa2@mail.gmail.com> I have installed mongrel_service and created a service instance with the -l flag and the -B flag but I still don't get any useful feedback. When trying to connect to my server via Apache I get a 503 error and when connecting directly (http://127.0.0.1:3000) I get a timeout. The files.log just has a list of log files in it for each request and the rest of the log files have nothing but lines saying TRACING but nothing that looks like info to me. The log file I specified in the -l flag isn't appearing. I've tried giving the full path and file name and I've tried a relative path "log/mongrel_service.log" What am I doing wrong? -Glen -- "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can't hear a word you're saying." -Greg Graffin (Bad Religion) -------------- next part -------------- An HTML attachment was scrubbed... URL: From luislavena at gmail.com Wed Oct 8 20:30:56 2008 From: luislavena at gmail.com (Luis Lavena) Date: Wed, 8 Oct 2008 21:30:56 -0300 Subject: [Mongrel] mongrel_service problems In-Reply-To: <48800a90810081444o2f819274nf32baf4c93f3faa2@mail.gmail.com> References: <48800a90810081444o2f819274nf32baf4c93f3faa2@mail.gmail.com> Message-ID: <71166b3b0810081730q1ce1768g79918232317e15dc@mail.gmail.com> On Wed, Oct 8, 2008 at 6:44 PM, Glen Holcomb wrote: > I have installed mongrel_service and created a service instance with the -l > flag and the -B flag but I still don't get any useful feedback. > > When trying to connect to my server via Apache I get a 503 error and when > connecting directly (http://127.0.0.1:3000) I get a timeout. > > The files.log just has a list of log files in it for each request and the > rest of the log files have nothing but lines saying TRACING but nothing that > looks like info to me. > > The log file I specified in the -l flag isn't appearing. I've tried giving > the full path and file name and I've tried a relative path > "log/mongrel_service.log" > > What am I doing wrong? > Right now mongrel_service has a huge drawback: it doesn't let you log to different files. Blame me, blame the no argument parsing of the redirected terminals :-P Did you tried executing your application with mongrel_rails standalone instead of the service first? Also, you can "mimic" what the service does from the terminal, asi described previous in several threads in this list (search google for mongrel_service debug console). Here some pointer: http://rubyforge.org/pipermail/mongrel-users/2007-February/003004.html I should definitely collect a list of that stuff and make a blog post :-P -- Luis Lavena AREA 17 - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams From damnbigman at gmail.com Thu Oct 9 19:47:39 2008 From: damnbigman at gmail.com (Glen Holcomb) Date: Thu, 9 Oct 2008 19:47:39 -0400 Subject: [Mongrel] mongrel_service problems In-Reply-To: <71166b3b0810081730q1ce1768g79918232317e15dc@mail.gmail.com> References: <48800a90810081444o2f819274nf32baf4c93f3faa2@mail.gmail.com> <71166b3b0810081730q1ce1768g79918232317e15dc@mail.gmail.com> Message-ID: <48800a90810091647v518a6094g33a5413b25f15bce@mail.gmail.com> On Wed, Oct 8, 2008 at 8:30 PM, Luis Lavena wrote: > On Wed, Oct 8, 2008 at 6:44 PM, Glen Holcomb wrote: > > I have installed mongrel_service and created a service instance with the > -l > > flag and the -B flag but I still don't get any useful feedback. > > > > When trying to connect to my server via Apache I get a 503 error and when > > connecting directly (http://127.0.0.1:3000) I get a timeout. > > > > The files.log just has a list of log files in it for each request and the > > rest of the log files have nothing but lines saying TRACING but nothing > that > > looks like info to me. > > > > The log file I specified in the -l flag isn't appearing. I've tried > giving > > the full path and file name and I've tried a relative path > > "log/mongrel_service.log" > > > > What am I doing wrong? > > > > Right now mongrel_service has a huge drawback: it doesn't let you log > to different files. > > Blame me, blame the no argument parsing of the redirected terminals :-P > > Did you tried executing your application with mongrel_rails standalone > instead of the service first? > > Also, you can "mimic" what the service does from the terminal, asi > described previous in several threads in this list (search google for > mongrel_service debug console). > > Here some pointer: > > http://rubyforge.org/pipermail/mongrel-users/2007-February/003004.html > > I should definitely collect a list of that stuff and make a blog post :-P > > -- > Luis Lavena > AREA 17 > - > Human beings, who are almost unique in having the ability to learn from > the experience of others, are also remarkable for their apparent > disinclination to do so. > Douglas Adams > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > Thanks for the suggestion running mongrel_rails on it's own led me straight to the problem. -- "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can't hear a word you're saying." -Greg Graffin (Bad Religion) -------------- next part -------------- An HTML attachment was scrubbed... URL: From luislavena at gmail.com Thu Oct 9 19:55:36 2008 From: luislavena at gmail.com (Luis Lavena) Date: Thu, 9 Oct 2008 20:55:36 -0300 Subject: [Mongrel] mongrel_service problems In-Reply-To: <48800a90810091647v518a6094g33a5413b25f15bce@mail.gmail.com> References: <48800a90810081444o2f819274nf32baf4c93f3faa2@mail.gmail.com> <71166b3b0810081730q1ce1768g79918232317e15dc@mail.gmail.com> <48800a90810091647v518a6094g33a5413b25f15bce@mail.gmail.com> Message-ID: <71166b3b0810091655t50c6cc9bm8e3aa098d9904e52@mail.gmail.com> On Thu, Oct 9, 2008 at 8:47 PM, Glen Holcomb wrote: > On Wed, Oct 8, 2008 at 8:30 PM, Luis Lavena wrote: > > Thanks for the suggestion running mongrel_rails on it's own led me straight > to the problem. > Could you please post your findings? Google will help others facing the same situation Thank you -- Luis Lavena AREA 17 - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams From damnbigman at gmail.com Fri Oct 10 10:11:19 2008 From: damnbigman at gmail.com (Glen Holcomb) Date: Fri, 10 Oct 2008 08:11:19 -0600 Subject: [Mongrel] mongrel_service problems In-Reply-To: <71166b3b0810091655t50c6cc9bm8e3aa098d9904e52@mail.gmail.com> References: <48800a90810081444o2f819274nf32baf4c93f3faa2@mail.gmail.com> <71166b3b0810081730q1ce1768g79918232317e15dc@mail.gmail.com> <48800a90810091647v518a6094g33a5413b25f15bce@mail.gmail.com> <71166b3b0810091655t50c6cc9bm8e3aa098d9904e52@mail.gmail.com> Message-ID: <48800a90810100711n5ab6d21ew46df7ce3ca3f5b16@mail.gmail.com> On Thu, Oct 9, 2008 at 5:55 PM, Luis Lavena wrote: > On Thu, Oct 9, 2008 at 8:47 PM, Glen Holcomb wrote: > > On Wed, Oct 8, 2008 at 8:30 PM, Luis Lavena > wrote: > > > > Thanks for the suggestion running mongrel_rails on it's own led me > straight > > to the problem. > > > > Could you please post your findings? Google will help others facing > the same situation > > Thank you > -- > Luis Lavena > AREA 17 > - > Human beings, who are almost unique in having the ability to learn from > the experience of others, are also remarkable for their apparent > disinclination to do so. > Douglas Adams > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > The problem was that I had Mongrel 1.0.1 and 1.1.5 installed. Apparently mongrel_rails was getting confused. I uninstalled 1.0.1 and everything worked fine. -- "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can't hear a word you're saying." -Greg Graffin (Bad Religion) -------------- next part -------------- An HTML attachment was scrubbed... URL: From plynchnlm at gmail.com Fri Oct 10 21:28:18 2008 From: plynchnlm at gmail.com (Paul Lynch) Date: Fri, 10 Oct 2008 21:28:18 -0400 Subject: [Mongrel] Download page for mongrel_cluster? Message-ID: <50d6c72a0810101828y5d377c7cod847274b1f5f7c06@mail.gmail.com> Is there a download page for mongrel_cluster? I see that "gem install mongrel_cluster" works, but I can't see where it's coming from. Usually gems have some sort of project page somewhere. -- Paul Lynch Aquilent, Inc. National Library of Medicine (Contractor) From luislavena at gmail.com Fri Oct 10 21:32:28 2008 From: luislavena at gmail.com (Luis Lavena) Date: Fri, 10 Oct 2008 22:32:28 -0300 Subject: [Mongrel] Download page for mongrel_cluster? In-Reply-To: <50d6c72a0810101828y5d377c7cod847274b1f5f7c06@mail.gmail.com> References: <50d6c72a0810101828y5d377c7cod847274b1f5f7c06@mail.gmail.com> Message-ID: <71166b3b0810101832j63cf7df4r6bdaebcab876ac24@mail.gmail.com> On Fri, Oct 10, 2008 at 10:28 PM, Paul Lynch wrote: > Is there a download page for mongrel_cluster? I see that "gem install > mongrel_cluster" works, but I can't see where it's coming from. > Usually gems have some sort of project page somewhere. > (replace find with grep on *nix) Luis at KEORE (D:\Users\Luis) $ gem spec --remote mongrel_cluster | find "project" rubyforge_project: mongrel Here you will find the gems: http://rubyforge.org/projects/mongrel http://rubyforge.org/frs/shownotes.php?release_id=16359 HTH, -- Luis Lavena AREA 17 - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams From piyush.pr at gmail.com Mon Oct 13 04:30:44 2008 From: piyush.pr at gmail.com (Piyush Ranjan) Date: Mon, 13 Oct 2008 14:00:44 +0530 Subject: [Mongrel] mongrel cluster configuration In-Reply-To: References: <0A7E90A8-66D2-4E13-AB60-54D6DC9C3A69@crackcreative.com> Message-ID: <325148f70810130130q3b00bca1q97a5ce82fef2b9f5@mail.gmail.com> Add config_script: in your mongrel_cluster config On Sat, Oct 4, 2008 at 8:10 AM, joshua at crackcreative.com < joshua at crackcreative.com> wrote: > P.S. $25 Amazon Gift certificate to anyone who can help me out. > > j > > On Oct 3, 2008, at 11:49 AM, joshua at crackcreative.com wrote: > > Just one more ping on this. I can't get upload_progress working on my >> server without it, but no one seems to know how to set it up. I'd >> appreciate any help. >> >> Thanks, >> j >> >> >> On Sep 30, 2008, at 1:34 PM, joshua at crackcreative.com wrote: >> >> So I'm using ec2onrails which launches mongrels like: >>> >>> mongrel_rails cluster::start -C /etc/mongrel_cluster/app.yml -clean $* >>> >>> Where app.yml looks like this: >>> >>> --- >>> user: app >>> cwd: /mnt/app/current >>> port: "8000" >>> environment: production >>> daemon: true >>> pid_file: log/mongrel.pid >>> servers: 6 >>> group: app >>> >>> The question is, I have installed the mongrel upload_progress plugin, and >>> according to the docs I need it to read a script (mongrel.config) in the >>> config folder of my app: >>> >>> uri "/", >>> :handler => plugin("/handlers/upload", >>> :frequency => 1, >>> :drb => 'druby://127.0.0.1:2999', >>> :path_info => ['/assets.js']), >>> :in_front => true >>> >>> The docs say to use a command like "mongrel_rails start -S >>> config/mongrel.config", which works when I hack it into the local rails >>> script/server process, however the -S options doesn't appear to be valid for >>> for the mongrel cluster::start command. Can this information be put in the >>> app.yml file somehow? Is there a way to get the cluster to read the script >>> file? >>> >>> Thanks, >>> j >>> _______________________________________________ >>> Mongrel-users mailing list >>> Mongrel-users at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/mongrel-users >>> >> >> _______________________________________________ >> Mongrel-users mailing list >> Mongrel-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mongrel-users >> > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Anthony.Green at bbc.co.uk Wed Oct 15 05:07:02 2008 From: Anthony.Green at bbc.co.uk (Anthony Green) Date: Wed, 15 Oct 2008 10:07:02 +0100 Subject: [Mongrel] Problems with Mongrel > 1.1 and OS X Message-ID: I've having issues with some part of Mongrel start up process stalling with versions of Mongrel greater than 1.1 Using Mongrel Gem version 1.1 both ./script/server and ./merb boot fine But from gem version 1.1.1 both processes stall immediately I can get it to continue by attempting to force quit with CTRL -C system info Mac OS X 10.5.5 Ruby 1.8.7 (2008-05-31 patchlevel 0) [i686-darwin9.5.0] And Mac OS X 10.5.5 Ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.5.0] Is there a way I can get further information of what is happening in the boot up sequence to investigate further. Thanks -- Anthony Green Client Side Developer Future Media & Technology for BBC Audio & Music Interactive http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From hgparra at gmail.com Thu Oct 16 04:01:52 2008 From: hgparra at gmail.com (Hector Parra) Date: Thu, 16 Oct 2008 01:01:52 -0700 Subject: [Mongrel] Trailing "/" not implicitly added to end of URI Message-ID: <330d49a20810160101td4c5cb6q41f48d3c4e17dafb@mail.gmail.com> I'm running a single mongrel instance with a registered DirHandler. I cannot use relative paths in any HTML that is served (e.g. "images/myimage.png") unless there is an explicit "/" at the end of my URI. So http://mywebsite.com/folder/ (image works) http://mywebsite.com/folder (image does not work) Is this a bug or was it designed this way. Is there an accepted way to get this working? Thanks HGP From joshua at crackcreative.com Thu Oct 16 05:02:55 2008 From: joshua at crackcreative.com (joshua at crackcreative.com) Date: Thu, 16 Oct 2008 02:02:55 -0700 Subject: [Mongrel] mongrel cluster configuration In-Reply-To: <325148f70810130130q3b00bca1q97a5ce82fef2b9f5@mail.gmail.com> References: <0A7E90A8-66D2-4E13-AB60-54D6DC9C3A69@crackcreative.com> <325148f70810130130q3b00bca1q97a5ce82fef2b9f5@mail.gmail.com> Message-ID: <1A31CFB2-62EE-4C0C-A04D-7A7200B57A43@crackcreative.com> Yes, thank you. This turns out to be correct, I had figured it out on my own finally. Nevertheless since you where the only person to answer, much less correctly, you get the prize. I'll email you privately with the gift certificate. Thanks, j On Oct 13, 2008, at 1:30 AM, Piyush Ranjan wrote: > Add > config_script: > in your mongrel_cluster config > > > On Sat, Oct 4, 2008 at 8:10 AM, joshua at crackcreative.com > wrote: > P.S. $25 Amazon Gift certificate to anyone who can help me out. > > j > > On Oct 3, 2008, at 11:49 AM, joshua at crackcreative.com wrote: > > Just one more ping on this. I can't get upload_progress working on > my server without it, but no one seems to know how to set it up. > I'd appreciate any help. > > Thanks, > j > > > On Sep 30, 2008, at 1:34 PM, joshua at crackcreative.com wrote: > > So I'm using ec2onrails which launches mongrels like: > > mongrel_rails cluster::start -C /etc/mongrel_cluster/app.yml -clean $* > > Where app.yml looks like this: > > --- > user: app > cwd: /mnt/app/current > port: "8000" > environment: production > daemon: true > pid_file: log/mongrel.pid > servers: 6 > group: app > > The question is, I have installed the mongrel upload_progress > plugin, and according to the docs I need it to read a script > (mongrel.config) in the config folder of my app: > > uri "/", > :handler => plugin("/handlers/upload", > :frequency => 1, > :drb => 'druby://127.0.0.1:2999', > :path_info => ['/assets.js']), > :in_front => true > > The docs say to use a command like "mongrel_rails start -S config/ > mongrel.config", which works when I hack it into the local rails > script/server process, however the -S options doesn't appear to be > valid for for the mongrel cluster::start command. Can this > information be put in the app.yml file somehow? Is there a way to > get the cluster to read the script file? > > Thanks, > j > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From email at acgreen.co.uk Thu Oct 16 17:25:58 2008 From: email at acgreen.co.uk (Anthony Green) Date: Thu, 16 Oct 2008 22:25:58 +0100 Subject: [Mongrel] Problems with Mongrel > 1.1 and OS X Message-ID: Ok I've narrowed down the bug to lib/mongrel/gems.rb Its the removal of the line unless respond_to? 'gem' That's causing problems If no one has any suggestions as to where the problem lies other that mongrel I'll file it as a bug. Tony From lists at ruby-forum.com Thu Oct 23 04:42:50 2008 From: lists at ruby-forum.com (T.ragahvendra Shet) Date: Thu, 23 Oct 2008 10:42:50 +0200 Subject: [Mongrel] Apache, Mongrel, Authentication In-Reply-To: <48B820D8.9090104@aspgems.com> References: <1086fb5f0801230708v2c10dc54q590203113f855888@mail.gmail.com> <48B7D1A4.5050507@aspgems.com> <48B820D8.9090104@aspgems.com> Message-ID: <6bb8c5e553365d5412b29cb0efc6ec53@ruby-forum.com> Please try using the following in your apache httpd.conf file. ProxyPass / balancer://balancer-manager/ ProxyPassReverse / balancer://balancer-manager/ ProxyPass images balancer://balancer-manager/images ProxyPass javascripts balancer://balancer-manager/javascripts ProxyPass stylesheets balancer://balancer-manager/stylesheets in virtualhost block. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Oct 23 04:47:11 2008 From: lists at ruby-forum.com (T.ragahvendra Shet) Date: Thu, 23 Oct 2008 10:47:11 +0200 Subject: [Mongrel] mod_proxy, mongrel, redirect issue In-Reply-To: <48AC8285.6070509@hotgazpacho.com> References: <1510f05f0808200945l2895f77dr249dcdee49786e00@mail.gmail.com> <7D76F0DC-F833-4630-98B5-C8B6318E3513@mac.com> <1510f05f0808201117u4407e3abn59fce7245d05ced@mail.gmail.com> <48AC8285.6070509@hotgazpacho.com> Message-ID: <8ef4b9e2d19d6b798fb1e3b7e670eb0e@ruby-forum.com> Yes, but to use X_FORWARDED_PROTO header, this you must have two virtual blocks basically one for port=80 and other for port=443 so add this to 443 block, and then the / problems will be solved. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Oct 23 04:51:21 2008 From: lists at ruby-forum.com (T.ragahvendra Shet) Date: Thu, 23 Oct 2008 10:51:21 +0200 Subject: [Mongrel] Mongrel + apache 2.2 + proxy error In-Reply-To: References: <5729527e61082c10eb8e04e3615c2565@ruby-forum.com> <20080114033340.GA3342@sue.caltech.edu> <194949c3201dd2fcf2b0e153bb5053c5@ruby-forum.com> <20080711035810.GX8137@inky.caltech.edu> <0b4d65752aa6a06d281966059e47198c@ruby-forum.com> Message-ID: <083acaf40a3252bf6f6f75421f952377@ruby-forum.com> http://httpd.apache.org/docs/2.0/mod/core.html check this link may be you need to set the timeout options in apache, so the server keeps responding within the time bracket. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Oct 23 04:54:58 2008 From: lists at ruby-forum.com (T.ragahvendra Shet) Date: Thu, 23 Oct 2008 10:54:58 +0200 Subject: [Mongrel] mongrel_rails cluster::stop not working In-Reply-To: References: <05e318561b3dc617b7e8cab6d20d40e7@ruby-forum.com> <48513B54.1050403@jhu.edu> Message-ID: <4067fba3311b88a080150e7cad481170@ruby-forum.com> Mongrel clusters are processes running with determined PID's , so if the server cluster is running the pid is available, you can check this using the grep method, for mongrel or else use the mongrel_rails cluster::stop || mongrel_rails cluster::restart. still if you face problems may be you must contact zedshaw at zedshaw.com -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Oct 24 08:16:57 2008 From: lists at ruby-forum.com (Sunil Patil) Date: Fri, 24 Oct 2008 14:16:57 +0200 Subject: [Mongrel] WEB HOSTING.OVER 350,000 Domains Hosted Message-ID: WEB HOSTING STARTING A WEB SITE & NEED A HOST? Answers As Easy As 1-2-3! OVER 350,000 Domains Hosted In Our Own Data Center in Columbus,OH! Visit website: http://www.ikonnetjobs.com/ixweb/ -- Posted via http://www.ruby-forum.com/. From jfs.world at gmail.com Thu Oct 30 04:18:05 2008 From: jfs.world at gmail.com (Jeffrey 'jf' Lim) Date: Thu, 30 Oct 2008 16:18:05 +0800 Subject: [Mongrel] problem logging in to mongrel.rubyforge.org? Message-ID: <4b3125cc0810300118k1b1477c1t7ecd2abecff3c1da@mail.gmail.com> does anybody have this problem? I've been trying to login to submit a ticket, but no luck so far... Have done several resets, + retries already. -jf -- In the meantime, here is your PSA: "It's so hard to write a graphics driver that open-sourcing it would not help." -- Andrew Fear, Software Product Manager, NVIDIA Corporation http://kerneltrap.org/node/7228