Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command runs during deploy, but not when called independently #82

Closed
wedtm opened this issue Jan 7, 2013 · 2 comments
Closed

Command runs during deploy, but not when called independently #82

wedtm opened this issue Jan 7, 2013 · 2 comments

Comments

@wedtm
Copy link

wedtm commented Jan 7, 2013

I have the following in my deploy.rb: https://gist.github.com/4475871

When I run mina deploy, Sidekiq is started just as it should be.

However, if I kill sidekiq, and then run mina sidekiq:start, it never runs. I get this message:

> mina sidekiq:start --verbose                                                                                                                                              1.9.3p194 master@2ac0d22+rebase ✗
-----> Start sidekiq
$ (cd /var/www/site/current && nohup bundle exec sidekiq -e production -C ./config/sidekiq.yml -P /var/www/site/shared/tmp/pids/sidekiq.pid >> ./log/sidekiq.log 2>&1 </dev/null &) 
Connection to devbox.lcl closed.
       Elapsed time: 1.00 seconds
@mikong
Copy link
Member

mikong commented Jul 7, 2013

Sorry for the late reply. You've probably forgotten about this issue.

I'm able to run standalone tasks with Mina just fine. Are you still having this problem?

The message that you're getting seems fine. It looks like it ran your start task in your server, and simply closed the connection because there are no more tasks to run.

I suspect this is an issue with your custom task, so I'm closing this issue, but feel free to re-open it.

@mikong mikong closed this as completed Jul 7, 2013
@jamescook10
Copy link

@wedtm @mikong I realise this is a very old problem that is apparently fixed, but I am also encountering this issue 2 years later on v0.3.2.

For some reason, the issue seems to be caused by Mina closing the connection to the server before Sidekiq can be fully daemonized. The fix I used is to add queue 'sleep 1' after the Sidekiq command in the start task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants