'redmine' 'redmine-mysql' fail to install with 'ruby' (1.9.3)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
redmine (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hello,
To sum things up, I think the 'redmine' 2.3.1-1 package is not compatible with 'ruby' (indirectly the latest 'ruby1.9.1' 1.9.3.194-
System:
---
$ lsb_release -rd
Description: Ubuntu 13.10
Release: 13.10
$ sudo apt-cache policy redmine
redmine:
Installed: 2.3.1-1
Candidate: 2.3.1-1
Version table:
*** 2.3.1-1 0
500 http://
100 /var/lib/
---
Supposed-expected and actual:
---
Expected: install succeeds and '/etc/redmine/
Actual: install fails (E: Sub-process /usr/bin/dpkg returned an error code (1)), and '/etc/redmine/
---
Going into details, I meet this error when 'sudo aptitude install redmine redmine-mysql' on Saucy 13.10:
---
Creating config file /etc/redmine/
A new secret session key has been generated in /etc/redmine/
Populating database for redmine instance "default".
This may take a while.
rake aborted!
Please install the mysql adapter: `gem install activerecord-
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
Error when running rake db:migrate, check database configuration.
dpkg: error processing redmine (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin ...
Errors were encountered while processing:
redmine
E: Sub-process /usr/bin/dpkg returned an error code (1)
---
Looking for the 'redmine' and 'activerecord-
---
http://
http://
---
And indeed, before purging the failed install, here is the '/etc/redmine/
---
$ sudo cat /etc/redmine/
production:
adapter: mysql
database: redmine_default
host: localhost
port:
username: redmine
password:
encoding: utf8
---
By the way, I'm still a linux rookie, and an erroneous packages management on my side could be the cause.
Here is my install context:
---
1/ initial install: Raring 13.04, in a virtualbox guest with snapshots taken after each successfull configuration or before each unmastered one
2/ 'redmine' install through repositories
3/ flawless (it seems) upgrade to Saucy 13.10, including the 'redmine' upgrade, in order to have more ruby1.9.3-related dependencies
4/ purge of 'redmine', in order to purge 'ruby' 1.8 and upgrade it to 1.9.1 (1.9.3.
5/ flawless manual install of gitlab, relying on the repositories ruby 1.9.1 (1.9.3.
6/ failed new install of redmine
---
So I try to only install ruby1.9.1-related packages only, not to mess up with its 1.8 version, but it doesn't seem to be possible, since the 'redmine' package, and the 'libapache2-
Feel free to ask me more useful info if needed: I stay tuned :) Thanks for free software
After purging all ruby, rails, rake and apache2 mod passenger installs, all from ubuntu repositories, then purging redmine and ensuring the database and its user are deleted, plus a reboot, I went on a new install.
I got the exact same error, which demonstrates that the 'redmine' package indeed brings ruby 1.9.3 with him (dependency), and that the 'adapter: mysql' found in the '/etc/redmine/ default/ database. yml' config file is erroneous (should be 'adapter: mysql2' for the reason stated in the initial bug report message).
--- actionmailer- 3.2 ruby-actionpack-3.2 ruby-activemode l-3.2 activerecord- 3.2 ruby-activereso urce-3. 2 ruby-activesupp ort-3.2 net-http- persistent ruby-net-ldap ruby-openid ruby-passenger integration passenger- doc treetop ruby1.8-examples ri1.8 ruby-switch 9.1-examples ri1.9.1 graphviz er-3.2 ruby-actionpack-3.2 activemodel- 3.2 ruby-activereco rd-3.2 ruby-activereso urce-3. 2 activesupport- 3.2 ruby-arel ruby-blankslate ruby-builder ruby-coderay net-http- persistent ruby-net-ldap ruby-openid ruby-passenger integration fr.archive. ubuntu. com/ubuntu/ saucy/main libruby1.9.1 amd64 1.9.3.194- 8.1ubuntu2 [4 105 kB] fr.archive. ubuntu. com/ubuntu/ saucy/main ruby1.9.1 amd64 1.9.3.194- 8.1ubuntu2 [37,2 kB] fr.archive. ubuntu. com/ubuntu/ saucy/main libruby1.8 amd64 1.8.7.358-7ubuntu2 [1 789 kB] fr.archive. ubuntu. com/ubuntu/ saucy/main ruby1.8 amd64 1.8.7.358-7ubuntu2 [34,4 kB] fr.archive. ubuntu. com/ubuntu/ saucy/universe ruby-i18n all 0.6.4-1 [39,9 kB]
$ sudo apt-get install redmine-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
bundler libev4 libfcgi-ruby1.9.1 libruby1.8 libruby1.9.1 rake redmine ruby
ruby-
ruby-
ruby-arel ruby-blankslate ruby-builder ruby-coderay ruby-dev ruby-erubis
ruby-eventmachine ruby-fastercsv ruby-hike ruby-hmac ruby-i18n ruby-journey
ruby-mail ruby-mime-types ruby-multi-json ruby-mysql2
ruby-
ruby-polyglot ruby-rack ruby-rack-cache ruby-rack-openid ruby-rack-ssl
ruby-rack-test ruby-rails-3.2 ruby-railties-3.2 ruby-sprockets ruby-thor
ruby-tilt ruby-treetop ruby-tzinfo ruby-yajl ruby1.8 ruby1.8-dev ruby1.9.1
ruby1.9.1-dev rubygems rubygems-
Suggested packages:
ruby-rmagick bzr cvs darcs mercurial subversion ri ruby-bcrypt rails
ruby-
ruby1.
The following NEW packages will be installed:
bundler libev4 libfcgi-ruby1.9.1 libruby1.8 libruby1.9.1 rake redmine
redmine-mysql ruby ruby-actionmail
ruby-
ruby-
ruby-dev ruby-erubis ruby-eventmachine ruby-fastercsv ruby-hike ruby-hmac
ruby-i18n ruby-journey ruby-mail ruby-mime-types ruby-multi-json ruby-mysql2
ruby-
ruby-polyglot ruby-rack ruby-rack-cache ruby-rack-openid ruby-rack-ssl
ruby-rack-test ruby-rails-3.2 ruby-railties-3.2 ruby-sprockets ruby-thor
ruby-tilt ruby-treetop ruby-tzinfo ruby-yajl ruby1.8 ruby1.8-dev ruby1.9.1
ruby1.9.1-dev rubygems rubygems-
0 upgraded, 55 newly installed, 0 to remove and 0 not upgraded.
Need to get 9 000 kB/18,0 MB of archives.
After this operation, 63,5 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 ht...