bluepill + delayed_job

101 views
Skip to first unread message

nit_s

unread,
Feb 22, 2011, 4:42:43 PM2/22/11
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!

nit_s

unread,
Feb 22, 2011, 4:43:07 PM2/22/11
to Bluepill

Rutger

unread,
Feb 26, 2011, 2:02:16 PM2/26/11
to Bluepill
Hi, it might be the trailing slash you're using in "app_home". At
least that's what i see checking your log. It states, "/u/apps/aras/
current//tmp/pids/delayed_job.pid".
Reply all
Reply to author
Forward
0 new messages