nit_s
unread,Feb 22, 2011, 4:42:43 PM2/22/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Bluepill
Hi, it looks like this question has been asked before, but I cant find
an answer that works for me.
Im trying to monitor delayed job using bluepill and I cant get
bluepill to start delayed job:
Here is my pill file:
app_home = "/u/apps/aras/current/"
Bluepill.application("mi_delayed_job", :log_file => "#{app_home}/log/
bluepill.log") do |app|
app.process("delayed_job") do |process|
process.working_dir = "#{app_home}"
process.start_grace_time = 30.seconds
process.stop_grace_time = 30.seconds
process.restart_grace_time = 30.seconds
process.daemonize = false
process.start_command = "cd #{app_home} && RAILS_ENV=production
ruby script/delayed_job start"
process.stop_command = "cd #{app_home} && RAILS_ENV=production
ruby script/delayed_job stop"
process.pid_file = "#{app_home}/tmp/pids/delayed_job.pid"
process.uid = "mi"
process.gid = "mi"
end
end
I ge t this error code in the bluepill log file:
# Logfile created on Tue Feb 22 21:35:30 +0000 2011 by logger.rb/22285
W, [2011-02-22T21:35:30.571828 #27940] WARN -- :
[mi_delayed_job:delayed_job] pid_file /u/apps/aras/current//tmp/pids/
delayed_job.pid does not exist or cannot be read
W, [2011-02-22T21:35:30.574029 #27940] WARN -- :
[mi_delayed_job:delayed_job] pid_file /u/apps/aras/current//tmp/pids/
delayed_job.pid does not exist or cannot be read
W, [2011-02-22T21:35:30.574430 #27940] WARN -- :
[mi_delayed_job:delayed_job] pid_file /u/apps/aras/current//tmp/pids/
delayed_job.pid does not exist or cannot be read
W, [2011-02-22T21:35:30.575474 #27940] WARN -- :
[mi_delayed_job:delayed_job] Executing start command: cd /u/apps/aras/
current/ && RAILS_ENV=production ruby script/delayed_job start
W, [2011-02-22T21:35:30.669007 #27940] WARN -- :
[mi_delayed_job:delayed_job] Start command execution returned non-zero
exit code:
W, [2011-02-22T21:35:30.669380 #27940] WARN -- :
[mi_delayed_job:delayed_job] {:exit_code=>1, :stdout=>"", :stderr=>""}
I, [2011-02-22T21:35:30.671011 #27940] INFO -- :
[mi_delayed_job:delayed_job] Going from down => starting
W, [2011-02-22T21:36:00.969268 #27940] WARN -- :
[mi_delayed_job:delayed_job] pid_file /u/apps/aras/current//tmp/pids/
delayed_job.pid does not exist or cannot be read
W, [2011-02-22T21:36:00.969743 #27940] WARN -- :
[mi_delayed_job:delayed_job] pid_file /u/apps/aras/current//tmp/pids/
delayed_job.pid does not exist or cannot be read
I, [2011-02-22T21:36:00.970788 #27940] INFO -- :
[mi_delayed_job:delayed_job] Going from starting => down
W, [2011-02-22T21:36:01.979513 #27940] WARN -- :
[mi_delayed_job:delayed_job] pid_file /u/apps/aras/current//tmp/pids/
delayed_job.pid does not exist or cannot be read
W, [2011-02-22T21:36:01.979957 #27940] WARN -- :
[mi_delayed_job:delayed_job] pid_file /u/apps/aras/current//tmp/pids/
delayed_job.pid does not exist or cannot be read
W, [2011-02-22T21:36:01.980760 #27940] WARN -- :
[mi_delayed_job:delayed_job] Executing start command: cd /u/apps/aras/
current/ && RAILS_ENV=production ruby script/delayed_job start
I can run
cd #{app_home} && RAILS_ENV=production ruby script/delayed_job start
and it works fine. Also when I start delayed_job normally it creates
the pid file.
Any Ideas?
thanks!