Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Unable to start resque, there is no log file created. #112

Open
sahil290791 opened this issue Nov 14, 2016 · 0 comments
Open

Unable to start resque, there is no log file created. #112

sahil290791 opened this issue Nov 14, 2016 · 0 comments

Comments

@sahil290791
Copy link

sahil290791 commented Nov 14, 2016

I am also unable to start resque workers in my code. I do not get any error messages but there is no resque worker running in background. I have also posted this question on stack overflow.

Versions used

capistrano-resque  => 0.2.2
resque => 1.25.2
ruby=> 2.1.0

There is no log file created for resque. I even tried creating a log file and then trying to start resque but it didn't work.

config/deploy/capistrano_test.rb

set :use_sudo, true

server 'ruby2', user: 'ubuntu', roles: %w{web app db}
set :ssh_options, { forward_agent: true }

set :branch, 'capistrano_test'
set :deploy_to, '/var/www/test_cap'

role :resque_worker, 'ruby2'

set :workers, { 
    ruby2: {"file_serve"=>1,"*" => 1,"tasks_queue"=>1,"sunspot"=>1} 
}

after "deploy:restart", "resque:restart"

deploy.rb

lock '3.6.1'

set :application, 'test_app'
set :repo_url, 'sample.git'
set :resque_log_file, "log/resque.log"

set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system')

logs

In logs its clear that resque:restart is called but it does not start a worker.

** Invoke deploy:published (first_time)
** Execute deploy:published
** Invoke resque:restart (first_time)
** Execute resque:restart
** Invoke resque:stop (first_time)
** Execute resque:stop
** Invoke resque:start (first_time)
** Execute resque:start
** Invoke deploy:finishing (first_time)
** Execute deploy:finishing
** Invoke deploy:cleanup (first_time)
** Execute deploy:cleanup
01:23 deploy:cleanup
      Keeping 5 of 6 deployed releases on ruby2
      01 rm -rf /var/www/test_cap/releases/20161111045128
    ✔ 01 ubuntu@ruby2 3.018s
** Invoke deploy:finished (first_time)
** Execute deploy:finished
** Invoke deploy:log_revision (first_time)
** Execute deploy:log_revision
01:28 deploy:log_revision
      01 echo "Branch capistrano_test (at af938c9c04998d97176886462eac94701292bcfd) deployed as release 20161114030844 by venkat" >> /var/www/test_ca…
    ✔ 01 ubuntu@ruby2 1.909s
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant