problem upgrade from 0.6.x to 1.2.1 on ubuntu
Added by abubin hassan almost 13 years ago
I have been trying to upgrade our redmine from 0.6.x to latest version without much success.
Our current server is running ubuntu 8.04 with redmine 0.6.x. Trying to upgrade to 1.2.1. We are running in vmware environment.
At first, attempted to upgrade the redmine directly on existing server. Upgrade all the rails, ruby, gems and so on as suggested in the site with compatible version. However, when I attempted to migrate the database using rake command, it failed. I cannot find any solution to that.
So I try again by creating a new server with ubuntu 10.04 and manage to install redmine 1.2.1. Using guide from http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_Ubuntu using passenger.
I tested the new installation of redmine and seems to be working as I can login to admin account. Then I try to migrate the the db (running mysql) into this new server and ran the rake command to upgrade the database. In the upgrade, I did encounter some warning about deprecated commands but it looks like upgrade is success. So with the old data restored, I tried to login to redmine and it fails. When I use existing users to login, I will get password is wrong. When I use admin to login, no matter what I put in the password, I get internal 500 error.
I am stump. Would really appreaciate any help on how to migrate the db correctly. Is it because of the plugins which I haven't put in the new server yet?
Here is an error from the log:
@Processing AccountController#login (for 192.168.1.20 at 2011-10-19 11:47:13) [POST]
Parameters: {"back_url"=>"http%3A%2F%2F192.168.1.4%2Fredmine%2F", "action"=>"login", "authenticity_token"=>"CxUFr0Wxl5WunUvQzwlZJNukPD1O6Q/M9VK2QYKXe7s=", "username"=>"admin", "controller"=>"account", "password"=>"[FILTERED]", "login"=>"Login »"}
NameError (undefined local variable or method `salt' for #<User:0xb59059d8>):
/usr/lib/ruby/vendor_ruby/active_record/attribute_methods.rb:260:in `method_missing'
app/models/user.rb:220:in `check_password?'
app/models/user.rb:136:in `try_to_login'
app/controllers/account_controller.rb:147:in `password_authentication'
app/controllers/account_controller.rb:142:in `authenticate_user'
app/controllers/account_controller.rb:30:in `login'
/usr/lib/ruby/vendor_ruby/action_controller/base.rb:1333:in `send'
/usr/lib/ruby/vendor_ruby/action_controller/base.rb:1333:in `perform_action_without_filters'
/usr/lib/ruby/vendor_ruby/action_controller/filters.rb:617:in `call_filters'
/usr/lib/ruby/vendor_ruby/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/usr/lib/ruby/vendor_ruby/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/vendor_ruby/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/vendor_ruby/action_controller/rescue.rb:160:in `perform_action_without_flash'
/usr/lib/ruby/vendor_ruby/action_controller/flash.rb:151:in `perform_action'
/usr/lib/ruby/vendor_ruby/action_controller/base.rb:532:in `send'
/usr/lib/ruby/vendor_ruby/action_controller/base.rb:532:in `process_without_filters'
/usr/lib/ruby/vendor_ruby/action_controller/filters.rb:606:in `process'
/usr/lib/ruby/vendor_ruby/action_controller/base.rb:391:in `process'
/usr/lib/ruby/vendor_ruby/action_controller/base.rb:386:in `call'
/usr/lib/ruby/vendor_ruby/action_controller/routing/route_set.rb:438:in `call'
/usr/lib/ruby/vendor_ruby/action_controller/dispatcher.rb:87:in `dispatch'
/usr/lib/ruby/vendor_ruby/action_controller/dispatcher.rb:121:in `_call'
/usr/lib/ruby/vendor_ruby/action_controller/dispatcher.rb:130:in `build_middleware_stack'
/usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:29:in `call'
/usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:29:in `call'
/usr/lib/ruby/vendor_ruby/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:9:in `cache'
/usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:28:in `call'
/usr/lib/ruby/vendor_ruby/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/usr/lib/ruby/vendor_ruby/action_controller/string_coercion.rb:25:in `call'
/usr/lib/ruby/vendor_ruby/rack/head.rb:9:in `call'
/usr/lib/ruby/vendor_ruby/rack/methodoverride.rb:24:in `call'
/usr/lib/ruby/vendor_ruby/action_controller/params_parser.rb:15:in `call'
/usr/lib/ruby/vendor_ruby/action_controller/session/cookie_store.rb:99:in `call'
/usr/lib/ruby/vendor_ruby/action_controller/failsafe.rb:26:in `call'
/usr/lib/ruby/vendor_ruby/rack/lock.rb:15:in `call'
/usr/lib/ruby/vendor_ruby/action_controller/dispatcher.rb:106:in `call'
/usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:95:in `process_request'
/usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:374:in `start_request_handler'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:330:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:209:in `start'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/phusion_passenger/passenger-spawn-server:61
Rendering /usr/share/redmine/public/500.html (500 Internal Server Error)
@
Replies (2)
RE: problem upgrade from 0.6.x to 1.2.1 on ubuntu
-
Added by abubin hassan almost 13 years ago
can't post
RE: problem upgrade from 0.6.x to 1.2.1 on ubuntu
-
Added by abubin hassan almost 13 years ago
Referring to this hxxp://www.redmine.org/issues/8962
I think my db is not migrated properly. Anyone have a link to resolve this?
I have tried:
root@redmine3:/usr/share/redmine# ruby script/server -e production NOTE: SourceIndex.new(hash) is deprecated; From /usr/share/redmine/config/../vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:100:in `new'. /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- rack/handler/-e (MissingSourceFile) from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require' from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:182:in `require' from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:547:in `new_constants_in' from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:182:in `require' from /usr/lib/ruby/vendor_ruby/rack/handler.rb:63:in `try_require' from /usr/lib/ruby/vendor_ruby/rack/handler.rb:16:in `get' from /usr/share/redmine/vendor/rails/railties/lib/commands/server.rb:45 from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require' from script/server:3
root@redmine3:/usr/share/redmine# gem list --local *** LOCAL GEMS *** actionmailer (2.3.5) actionpack (2.3.5) activerecord (2.3.5) activeresource (2.3.5) activesupport (2.3.5) daemon_controller (0.2.6) fastthread (1.0.7) mysql (2.8.1) passenger (3.0.9) rack (1.3.4, 1.0.1) rails (2.3.5) rake (0.9.2, 0.8.7) rdoc (2.4.2)
Am I missing a plugin or something?