After a fresh Ubuntu 13.10 install, I encountered the following error
[Fri Nov 01 20:06:50.239664 2013] [core:notice] [pid 59440] AH00094: Command line: '/usr/sbin/apache2' [ pid=59448 thr=19153000 file=utils.rb:176 time=2013-11-01 20:06:51.996 ]: *** Exception LoadError in PhusionPassenger::ClassicRails::ApplicationSpawner (Please install the mysql adapter: `gem install activerecord-mysql-adapter` (cannot load such file -- mysql)) (process 59448, thread #):
I tried several fix and I finally get Redmine working :
- install activerecord-mysql2-adapter
gem install activerecord-mysql2-adapter -- --with-mysql-config=$(which mysql_config)
- update your redmine database adapter (/etc/redmine/default/database.yml)
production: adapter: mysql2
If you have updated redmine, don’t forget to update your database :
cd /usr/share/redmine rake db:migrate RAILS_ENV=production rake redmine:plugins:migrate RAILS_ENV=production rake tmp:cache:clear rake tmp:sessions:clear
In case you get a 500 error when you sign in, there’s a workaround.
You can find an error like this in redmine production log :
NoMethodError (undefined method `options' for {:user_id=>1, :ctime=>1383335524, :atime=>1383335524}:Hash): /usr/lib/ruby/vendor_ruby/rack/session/abstract/id.rb:329:in `commit_session'
It seems the default rack version (1.5.2) is not compatible. Just install a previous version and update redmine’s Gemfile :
gem install rack --version 1.4.5
Add the following line in Gemfile :
gem 'rack', '1.4.5'
Pingback: Redmine unter Ubuntu 13.10 | My personal memory hook!()
Pingback: ubuntu 13.10安装redmine | DTkun()