MYSQL problem
Added by klemens Klemens over 12 years ago
After run command: cd ~/http && rake generate_session_store && RAILS_ENV=production rake db:migrate && RAILS_ENV=production rake redmine:load_default_data
(in /home/virtwww/w_hammerofredmine_1effbb7e/http)
(in /home/virtwww/w_hammerofredmine_1effbb7e/http)
SetDocAndFilesNotifications: migrating ==================================
rake aborted!
An error has occurred, all later migrations canceled:
NULL pointer given
(See full trace by running task with --trace)
In /log I see this:
Processing WelcomeController#index (for 81.177.33.4 at 2012-01-18 14:04:56) [GET
Parameters: {"action"=>"index", "controller"=>"welcome"}
ArgumentError (NULL pointer given):
(eval):3:in `each_hash'
(eval):3:in `all_hashes'
app/models/user.rb:513:in `anonymous'
app/models/user.rb:507:in `current'
app/controllers/application_controller.rb:104:in `check_if_login_required'
config/initializers/mongrel.rb:62:in `dispatch_cgi'
Rendering /home/virtwww/w_hammerofredmine_1effbb7e/http/public/500.html (500 Int
1Help 2Save 3Mark 4Replac 5Copy 6Move 7Search 8Delete 9PullDn10Quit
Replies (5)
RE: MYSQL problem
-
Added by Etienne Massip over 12 years ago
Could you please run RAILS_ENV=production rake db:migrate --trace
?
RE: MYSQL problem
-
Added by Etienne Massip over 12 years ago
No clue, might be a MySQL adapter error?
RE: MYSQL problem
-
Added by klemens Klemens over 12 years ago
I have this problem but I don't know the solution.
rubygems 1.3.7
ruby 1.8.7
redmine 1.0
rails 2.3.11
rack 1.0.1
mysql 5.1
Help!