webistrano icon indicating copy to clipboard operation
webistrano copied to clipboard

Upgrade from 1.2 to 1.5 fails

Open digitaria opened this issue 15 years ago • 3 comments

We have experienced an issue upgrading from 1.2 to 1.5. The code was checked out on a new server, the database was dumped and loaded on the new server. The migrations were run. All dependencies are installed.

Webistrano runs, but when you go to deploy, the following is output to the web interface "Log":

*** is not a class/module
*** /var/www/deploy/webistrano/app/models/project.rb:31:in `tasks'
*** /var/www/deploy/webistrano/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:217:in `send'
*** /var/www/deploy/webistrano/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:217:in `method_missing'
*** /var/www/deploy/webistrano/lib/webistrano/deployer.rb:160:in `load_project_template_tasks'
*** /var/www/deploy/webistrano/lib/webistrano/deployer.rb:118:in `set_up_config'
*** /var/www/deploy/webistrano/lib/webistrano/deployer.rb:65:in `execute!'
*** /var/www/deploy/webistrano/lib/webistrano/deployer.rb:62:in `catch'
*** /var/www/deploy/webistrano/lib/webistrano/deployer.rb:62:in `execute!'
*** /var/www/deploy/webistrano/lib/webistrano/deployer.rb:46:in `invoke_task!'
*** (eval):1
*** /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `eval'
*** /var/www/deploy/webistrano/vendor/rails/railties/lib/commands/runner.rb:48
*** /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
*** /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
*** script/runner:3

The server logs have nothing. This is the only helpful output we can gather.

digitaria avatar Jul 07 '10 01:07 digitaria

By the way, we're running the most recent code:

git remote show origin * remote origin
* remote origin
  Fetch URL: http://github.com/peritor/webistrano.git
  Push  URL: http://github.com/peritor/webistrano.git

With Rails 2.3.5 and ruby 1.8.7 on Ubuntu.

digitaria avatar Jul 07 '10 01:07 digitaria

I would check that all your templates are available on the new server :) Project.all.collect(&:template).uniq - ProjectConfiguration.templates.keys

bradly avatar Jul 08 '10 19:07 bradly

That was it. Thank you.

digitaria avatar Jul 08 '10 20:07 digitaria