Displaying 20 results from an estimated 60000 matches similar to: "mongrel_rails cluster::restart from within a controller ?"
2008 May 28
0
mongrel_rails cluster::restart task via capistrano mongrel_cluster/recipes problem.
Hi Guys,
I hope its ok to post to this list. I have a rails on ubuntu deployment stack
which consists of:
locally: cap 2.3.0 and all latest deps
server side: apache 2.3, mongrel_cluster, mod_proxy and git on the
same host.
I am connecting to my remote host via ssh with agent and pass phrase. All is
good until my first mongrel task, deploy:restart task. I have included the
2007 Jul 16
2
mongrel_rails start working mongrel_rails cluster::start not working
Hi everybody,
I have installed mongrel and mongrel cluster in a new linux box .... at the
end of the day I was able to lunch mongrel (mongrel_rails start -e
production) and all is working fine with.
However, when I tried to set a mongrel cluster the command mongrel_rails
cluster::start get the following output :
starting port 8000
starting port 8001
starting port 8002
But when I lunched the
2006 Nov 30
1
Restarting mongrel cluster from other directories
I want to restart my Mongrels from crontab
periodically to free up memory. I tried this:
[admin at mudcrapce ~]$ mongrel_rails cluster::restart -C
/var/www/apps/mudcrapce/current/config/mongrel_cluster.yml
Restarting 5 Mongrel servers...
mongrel_rails restart -P log/mongrel.3040.pid
!!! PID file log/mongrel.3040.pid does not exist. Not
running?
mongrel::restart reported an error. Use
2006 Jun 16
15
Mongrel_rails restart and sudo
Sorry for the newbie question but I''m stumped:
I have an app that requires sudo to run mongrel_rails. For my capistrano
recipe is do it like this:
sudo "mongrel_rails start -e production -p #{application_port} -d -c
#{current_path}"
Which works famously.
Now I have tried several things for my restart task. Here they are:
sudo "cd #{current_path} && sudo
2008 Jun 12
5
mongrel_rails cluster::stop not working
Hi
am a newbie to mongrel. am using mongrel cluster in my ruby application.
When i start mongrel cluster it is working fine and when i stop it it
says already stopped port 8000.
it is giving the error as follows
********* simple selection ********* ********* selection by list
*********
-A all processes -C by command name
-N negate selection -G by real
2007 Jul 16
1
mongrel_rails start working mongrel_rails
Thanks Bill for the answer !
In fact, my application is working well with webrick and also with a
single mongrel instance lunched via
the command : mongrel_rails start
When I check what is the difference in the gem loaded in both cases
(mongrel_rails start and
mongrel_rails cluster::start) it seems that mongrel_rails
cluster::start does not load all the gems that the first command is
loading.
So
2006 Jun 21
2
mongrel_rails restart not working
Hi,
On os x.3.9, with ruby 1.8.4 installed through darwinports and mongrel
through gems,
everything works until I restart:
mongrel_rails restart
adds the logs:
** USR2 signal received.
** Restarting with arguments: ruby
/opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13/bin/mongrel_rails
start -p 3001 -d
/opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13/bin/mongrel_rails:134:
in
2009 Feb 04
1
How to hack a mongrel cluster to restart in an alternating manner?
Hello,
I''ve been trying (unsuccessfully) to hack my mongrel_cluster to re-ststart
in an alternating manner.
Specifically, this soluiton:
http://blog.carlmercier.com/2007/09/07/a-better-approach-to-restarting-a-mongrel-cluster/#content
Which means I an call to mongrel_rails cluster::restart to do this:
mongrel_rails start 8001
mongrel_rails stop 8001
mongrel_rails start 8002
2007 Oct 28
2
cluster::restart doesn''t wait for stop before starting
Hi,
I''m calling restart from my Capistrano task. I have this in my deploy.rb file:
# until mongrel_cluster updates to cap2...
namespace :deploy do
task :start, :roles => :app do start_mongrel_cluster end
task :stop, :roles => :app do stop_mongrel_cluster end
task :restart, :roles => :app do restart_mongrel_cluster end
end
(What''s the scoop on
2006 Nov 05
2
logrotate, mongrel cluster and monit
While I could figure this out, I''m asking here first to see if anyone
has already dealt with/created this. I''m running a mongrel cluster,
running 4 mongrels on ports 8001-4. I''m using capistrano to deploy.
And I''d like to use monit to check to make sure everything is running
nice.
I''d like to have monit restart only single mongrels if they fail, and
2007 Apr 03
2
mongrel cluster restart with capistrano fails but manually works
Hi all,
I am out of my head here...
I have a 3 node cluster with 10 mongrels running on each. When I
deploy, I break all the mongrels every time. I have tried just about
everything. I can restart my mongrels without a hitch manually, it''s
only when I use cap deploy. Maybe I am missing something here... so if
I can get some help it would be appreciated. The errors are the
typical mongrel
2007 Sep 07
3
Fails to restart mongrel cluster after Capistrano rollback (PIDs not deleted)
Hi,
I am deploying a Rails website using Capistrano to a VPS running the
site through Apache and Mongrel.
''cap deploy'' works fine, and mongrels are restarted. When I execute
''cap deploy:rollback'', however, my script fails to restart the
mongrels giving this error:
!!! PID file tmp/pids/mongrel.5000.pid already exists. Mongrel could
be running already.
2007 Jun 15
1
mongrel cluster issues, plain old mongrel OK
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,
2007 Oct 21
1
Reliable cluster::restart
I run into a problem every so often while doing a cluster::restart
where a child sleeps after receiving the KILL, but does not get
restarted. This is caused by mongrel not shutting down until either
all the requests have completed or 60 seconds have passed. The problem
is that when the subsequent start command is issued it comes before
the child has exited, so it never gets restarted. This is
2008 Mar 08
2
restarting cluster without killing in progress file uploads
Hello,
I have a cluster of three Mongrels running behind Pound. All is running
well except when I restart the cluster (mongrel_rails cluster::restart)
any in progress file uploads (handled through mongrel_upload_progress)
stop uploading. That is, if I''m uploading a file (via a web app being
served by the mongrel cluster) during a restart, my browser will
indefinitely pause as if it is
2006 Dec 07
8
Cluster restart leaving orphaned processes?
First off, a big thank you to Zed and the development team for
mongrel and mongrel cluster. I''ve deployed it for two apps (through
an apache 2.2 proxy) and it''s amazing how much snappier everything
is. Previously we were using lighttpd and lighttpd-fastcgi proxying
through apache 2.0, which was turning into a hassle for lots of
reasons, most notably the ruby fcgi
2006 Jun 20
2
cluster::restart vs. stop/start
What''s the difference, architecturally between cluster::restart and
cluster::stop/start (I haven''t looked at the code, which is kinda
lazy of me to ask the question I know)
If they aren''t very different actually, can I put a plug in for
having cluster::restart do a "start" if something''s happened and
mongrel is stopped for that configuration?
2006 May 26
3
mongrel_rails cluster::start problem with multiple runs?
mongrel_rails cluster::start doesn''t seem to pay attention to whether or not
the processes exist or not. If you run it twice, the first set of processes
are created, then then second run will overwrite the log/{pidfiles} files
with the new process numbers. Problem is that the second group of processes
are gone, since the first ones had the port open.
I''d think that the right
2007 Aug 10
10
what is the correct way to stop/start a mongrel instance using monit with mongrel cluster
Hi --
I have been reading documentation and googling around to find the
correct way to do this but I have found many ways that seem to not
work, or the documentation makes no reference to.
I am using mongrel cluster with 10 mongrels for each server. Recently
I installed monit but which lead me to find the correct way to
start/stop mongrel instances one pid at a time. I am assuming one pid
at a
2007 Dec 17
0
"mongrel_rails start" does absolutely nothing.
I''m having a strange issue with Mongrel. Post-install of Mac OS X 10.5, my
Mongrel will not start under any circumstances. I''ve already removed ("sudo
gem uninstall mongrel"), ran "gem cleanup" to remove old versions and then
installed the latest gem version (1.1.2). When I run "mongrel_rails start"
anywhere (inside a fresh Rails app, random place