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

Capistrano deployment error with whenever 0.8.0 and rails 3.2.9 #269

Closed
SergeyKishenin opened this issue Nov 20, 2012 · 4 comments
Closed

Comments

@SergeyKishenin
Copy link

Well, everything is okay with 0.7.3 whenever version and rails 3.2.9.

After I ran bundle update with 0.8.0 I started getting the following error while deploying:

  * 2012-11-20 17:07:02 executing `whenever:update_crontab'
  * executing "cd /home/deepgun/projects/voodoo/releases/20121120110649 && export LANG=en_US.UTF-8 && /usr/local/bin/bundle exec whenever --update-crontab voodoo --set environment=staging --roles db"
    servers: ["my_server"]
    [my_server] executing command
 ** [out :: my_server] Could not find whenever-0.8.0 in any of the sources
 ** [out :: my_server] Run `bundle install` to install missing gems.

If I run on server bundle install whenever -v '0.8.0' it shows me the error for the next updated gem.
Before that bundler took all the gems from vendor/cache directory but now for some reason it doesn't.

UPD: I'm on Ubuntu 11.10. And my co-worker runs this code on MacOS and everything is ok.

@averyanov
Copy link

It seems that 7ae1009 is the reason of broken deployment.
In earlier versions deployment looked in this way:

   triggering after callbacks for `deploy:finalize_update'
  * executing `bundle:install'
  ...
  * executing `whenever:clear_crontab'
  ...
  * executing `whenever:update_crontab'

Now it looks so:

 * 2012-11-22 16:48:52 16:48:52 == Currently executing `deploy:finalize_update'
    triggering before callbacks for `deploy:finalize_update'
  * 2012-11-22 16:48:52 16:48:52 == Currently executing `whenever:update_crontab'

It seems that whenever:update_crontab task is run BEFORE bundle:install. As a result bundled whenever is not found and deployment process interrupts

@SergeyKishenin
Copy link
Author

Are you going to open a PR?

@jaredbeck
Copy link

I think I may have the same issue. Cap deploy works with 0.7.3:

* 2012-12-12 16:40:53 executing `deploy:finalize_update'
* 2012-12-12 16:40:53 executing `bundle:install'
[snip]
* 2012-12-12 16:40:54 executing `whenever:clear_crontab'

Cap deploy fails with 0.8.0:

* 2012-12-12 16:34:07 executing `deploy:finalize_update'
* 2012-12-12 16:34:07 executing `whenever:update_crontab'
[snip]
Could not find rake-10.0.2 in any of the sources (Bundler::GemNotFound)

@javan
Copy link
Owner

javan commented Dec 13, 2012

Same issue as #275

@javan javan closed this as completed Dec 13, 2012
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

4 participants