On 6/15/07, Jason Frankovitz <[EMAIL PROTECTED]> wrote: > Blind guess: are you sure you have an environment.rb in config, and > that's it's readable? >
Yep. It's there and readable by the mongrel user. [config]$ ls -l total 24 -rw-r--r-- 1 mongrel mongrel 1549 Jun 14 22:01 boot.rb -rw-r--r-- 1 mongrel mongrel 941 Jun 14 22:01 database.yml -rw-r--r-- 1 mongrel mongrel 2419 Jun 15 11:44 environment.rb drwxr-xr-x 2 mongrel mongrel 4096 Jun 14 22:01 environments -rw-r--r-- 1 root root 156 Jun 15 12:19 mongrel_cluster.yml -rw-r--r-- 1 mongrel mongrel 970 Jun 14 22:01 routes.rb > > > On Jun 14, 2007, at 7:53 PM, Sean Brown wrote: > > > I just created a test rails app, and am having very wierd issues with > > mongrel cluster. Here's what I'm doing: > > > > rails test > > sudo chown -R mongrel:mongrel test > > cd test > > sudo mongrel_rails \ > > cluster::configure -e production \ > > -p 8000 -N 3 -a 127.0.0.1 --user mongrel \ > > --group mongrel > > > > It correctly writes the mongrel_cluster.yml file to the config > > directory. Now, if I: > > > > sudo mongrel_rails start -d > > > > Everything works like a charm. I can browse to the site on port 3000 > > and everything is both hunky and dory. > > > > However, if I : > > > > sudo mongrel_rails cluster::start > > > > It tells me it's starting 3 mongrels, but nothing happens. The > > mongrel log file shows this (apologies for the long listing): > > > > [EMAIL PROTECTED] log]$ cat mongrel.log > > ** Daemonized, any open files are closed. Look at > > log/mongrel.8000.pid and log/mongrel.log for info. > > ** Starting Mongrel listening at 127.0.0.1:8000 > > ** Changing group to mongrel. > > ** Changing user to mongrel. > > ** Starting Rails with production environment... > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require': no such file to load -- > > /home/limbach/www/test/config/environment (LoadError) > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ > > custom_require.rb:27:in > > `require' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/ > > mongrel/rails.rb:155:in > > `rails' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/ > > mongrel_rails:112:in > > `cloaker_' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/ > > mongrel/configurator.rb:138:in > > `call' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/ > > mongrel/configurator.rb:138:in > > `listener' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/ > > mongrel_rails:98:in > > `cloaker_' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/ > > mongrel/configurator.rb:51:in > > `call' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/ > > mongrel/configurator.rb:51:in > > `initialize' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/ > > mongrel_rails:83:in > > `new' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/ > > mongrel_rails:83:in > > `run' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/ > > mongrel/command.rb:211:in > > `run' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/ > > mongrel_rails:243 > > from /usr/local/bin/mongrel_rails:16:in `load' > > from /usr/local/bin/mongrel_rails:16 > > > > [snip] > > > > That pattern is repeated for each of the three mongrels > > > > In case it helps, here are the gems I've got installed: > > > > [EMAIL PROTECTED] log]$ gem list --local > > > > *** LOCAL GEMS *** > > > > actionmailer (1.3.3) > > Service layer for easy email delivery and testing. > > > > actionpack (1.13.3) > > Web-flow and rendering framework putting the VC in MVC. > > > > actionwebservice (1.2.3) > > Web service support for Action Pack. > > > > activerecord (1.15.3) > > Implements the ActiveRecord pattern for ORM. > > > > activesupport (1.4.2) > > Support and utility classes used by the Rails framework. > > > > cgi_multipart_eof_fix (2.1) > > Fix an exploitable bug in CGI multipart parsing which affects Ruby > > <= 1.8.5 when multipart boundary attribute contains a non-halting > > regular expression string. > > > > daemons (1.0.6) > > A toolkit to create and control daemons in different ways > > > > fastercsv (1.2.0) > > FasterCSV is CSV, but faster, smaller, and cleaner. > > > > fastthread (1.0) > > Optimized replacement for thread.rb primitives > > > > gem_plugin (0.2.2) > > A plugin system based only on rubygems that uses dependencies only > > > > mongrel (1.0.1) > > A small fast HTTP library and server that runs Rails, Camping, > > Nitro > > and Iowa apps. > > > > mongrel_cluster (0.2.1) > > Mongrel plugin that provides commands and Capistrano tasks for > > managing multiple Mongrel processes. > > > > mysql (2.7) > > MySQL/Ruby provides the same functions for Ruby programs that the > > MySQL C API provides for C programs. > > > > rails (1.2.3) > > Web-application framework with template engine, control-flow > > layer, > > and ORM. > > > > rake (0.7.3) > > Ruby based make-like utility. > > > > sources (0.0.1) > > This package provides download sources for remote gem installation > > > > > > > > Thanks in advance for any help. > > > > Sean > > _______________________________________________ > > Mongrel-users mailing list > > Mongrel-users@rubyforge.org > > http://rubyforge.org/mailman/listinfo/mongrel-users > > -- Sean Brown [EMAIL PROTECTED] _______________________________________________ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users