[DRE-maint] [Bug 1240705] Re: 'redmine' 'redmine-mysql' fail to install with 'ruby' (1.9.3)
Pascal A.
pavondes at gmail.com
Thu Oct 17 18:11:33 UTC 2013
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).
---
$ 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-actionmailer-3.2 ruby-actionpack-3.2 ruby-activemodel-3.2
ruby-activerecord-3.2 ruby-activeresource-3.2 ruby-activesupport-3.2
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-net-http-persistent ruby-net-ldap ruby-openid ruby-passenger
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-integration
Suggested packages:
ruby-rmagick bzr cvs darcs mercurial subversion ri ruby-bcrypt rails
ruby-passenger-doc treetop ruby1.8-examples ri1.8 ruby-switch
ruby1.9.1-examples ri1.9.1 graphviz
The following NEW packages will be installed:
bundler libev4 libfcgi-ruby1.9.1 libruby1.8 libruby1.9.1 rake redmine
redmine-mysql ruby ruby-actionmailer-3.2 ruby-actionpack-3.2
ruby-activemodel-3.2 ruby-activerecord-3.2 ruby-activeresource-3.2
ruby-activesupport-3.2 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-net-http-persistent ruby-net-ldap ruby-openid ruby-passenger
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-integration
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://fr.archive.ubuntu.com/ubuntu/ saucy/main libruby1.9.1 amd64 1.9.3.194-8.1ubuntu2 [4 105 kB]
Get:2 http://fr.archive.ubuntu.com/ubuntu/ saucy/main ruby1.9.1 amd64 1.9.3.194-8.1ubuntu2 [37,2 kB]
Get:3 http://fr.archive.ubuntu.com/ubuntu/ saucy/main libruby1.8 amd64 1.8.7.358-7ubuntu2 [1 789 kB]
Get:4 http://fr.archive.ubuntu.com/ubuntu/ saucy/main ruby1.8 amd64 1.8.7.358-7ubuntu2 [34,4 kB]
Get:5 http://fr.archive.ubuntu.com/ubuntu/ saucy/universe ruby-i18n all 0.6.4-1 [39,9 kB]
Get:6 http://fr.archive.ubuntu.com/ubuntu/ saucy/main ruby-blankslate all 2.1.2.4-4 [4 512 B]
Get:7 http://fr.archive.ubuntu.com/ubuntu/ saucy/universe ruby-builder all 3.2.0-1 [13,7 kB]
Get:8 http://fr.archive.ubuntu.com/ubuntu/ saucy/universe ruby-tzinfo all 0.3.33-3 [52,6 kB]
Get:9 http://fr.archive.ubuntu.com/ubuntu/ saucy/universe ruby-rack all 1.5.2-1 [95,8 kB]
Get:10 http://fr.archive.ubuntu.com/ubuntu/ saucy/universe ruby-thor all 0.18.1-1 [48,5 kB]
Get:11 http://fr.archive.ubuntu.com/ubuntu/ saucy/universe ruby-net-http-persistent all 2.8-1 [16,1 kB]
Get:12 http://fr.archive.ubuntu.com/ubuntu/ saucy/universe bundler all 1.3.5-2ubuntu1 [137 kB]
Get:13 http://fr.archive.ubuntu.com/ubuntu/ saucy/universe libev4 amd64 1:4.11-1 [29,0 kB]
Get:14 http://fr.archive.ubuntu.com/ubuntu/ saucy/main rubygems all 1.8.24-1ubuntu2 [452 kB]
Get:15 http://fr.archive.ubuntu.com/ubuntu/ saucy/universe ruby-passenger amd64 3.0.13debian-1.2 [1 511 kB]
Get:16 http://fr.archive.ubuntu.com/ubuntu/ saucy/main ruby1.8-dev amd64 1.8.7.358-7ubuntu2 [630 kB]
Get:17 http://fr.archive.ubuntu.com/ubuntu/ saucy/universe rubygems-integration all 1.2 [5 068 B]
Fetched 9 000 kB in 5s (1 649 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously unselected package libruby1.9.1.
(Reading database ... 186541 files and directories currently installed.)
Unpacking libruby1.9.1 (from .../libruby1.9.1_1.9.3.194-8.1ubuntu2_amd64.deb) ...
Selecting previously unselected package ruby1.9.1.
Unpacking ruby1.9.1 (from .../ruby1.9.1_1.9.3.194-8.1ubuntu2_amd64.deb) ...
Selecting previously unselected package ruby.
Unpacking ruby (from .../ruby_1%3a1.9.3_all.deb) ...
Selecting previously unselected package libruby1.8.
Unpacking libruby1.8 (from .../libruby1.8_1.8.7.358-7ubuntu2_amd64.deb) ...
Selecting previously unselected package ruby1.8.
Unpacking ruby1.8 (from .../ruby1.8_1.8.7.358-7ubuntu2_amd64.deb) ...
Selecting previously unselected package ruby-i18n.
Unpacking ruby-i18n (from .../ruby-i18n_0.6.4-1_all.deb) ...
Selecting previously unselected package ruby-multi-json.
Unpacking ruby-multi-json (from .../ruby-multi-json_1.3.6-1_all.deb) ...
Selecting previously unselected package ruby-activesupport-3.2.
Unpacking ruby-activesupport-3.2 (from .../ruby-activesupport-3.2_3.2.13-3_all.deb) ...
Selecting previously unselected package ruby-blankslate.
Unpacking ruby-blankslate (from .../ruby-blankslate_2.1.2.4-4_all.deb) ...
Selecting previously unselected package ruby-builder.
Unpacking ruby-builder (from .../ruby-builder_3.2.0-1_all.deb) ...
Selecting previously unselected package ruby-activemodel-3.2.
Unpacking ruby-activemodel-3.2 (from .../ruby-activemodel-3.2_3.2.13-5_all.deb) ...
Selecting previously unselected package ruby-arel.
Unpacking ruby-arel (from .../ruby-arel_4.0.0-2_all.deb) ...
Selecting previously unselected package ruby-tzinfo.
Unpacking ruby-tzinfo (from .../ruby-tzinfo_0.3.33-3_all.deb) ...
Selecting previously unselected package ruby-activerecord-3.2.
Unpacking ruby-activerecord-3.2 (from .../ruby-activerecord-3.2_3.2.13-4_all.deb) ...
Selecting previously unselected package ruby-rack.
Unpacking ruby-rack (from .../ruby-rack_1.5.2-1_all.deb) ...
Selecting previously unselected package ruby-rack-cache.
Unpacking ruby-rack-cache (from .../ruby-rack-cache_1.2-2_all.deb) ...
Selecting previously unselected package ruby-rack-test.
Unpacking ruby-rack-test (from .../ruby-rack-test_0.6.2-1_all.deb) ...
Selecting previously unselected package ruby-journey.
Unpacking ruby-journey (from .../ruby-journey_1.0.4-1_all.deb) ...
Selecting previously unselected package ruby-hike.
Unpacking ruby-hike (from .../ruby-hike_1.2.1-2_all.deb) ...
Selecting previously unselected package ruby-tilt.
Unpacking ruby-tilt (from .../ruby-tilt_1.4.1-1_all.deb) ...
Selecting previously unselected package ruby-sprockets.
Unpacking ruby-sprockets (from .../ruby-sprockets_2.4.3-1_all.deb) ...
Selecting previously unselected package ruby-erubis.
Unpacking ruby-erubis (from .../ruby-erubis_2.7.0-2_all.deb) ...
Selecting previously unselected package ruby-actionpack-3.2.
Unpacking ruby-actionpack-3.2 (from .../ruby-actionpack-3.2_3.2.13-7_all.deb) ...
Selecting previously unselected package ruby-activeresource-3.2.
Unpacking ruby-activeresource-3.2 (from .../ruby-activeresource-3.2_3.2.13-4_all.deb) ...
Selecting previously unselected package ruby-mime-types.
Unpacking ruby-mime-types (from .../ruby-mime-types_1.23-1_all.deb) ...
Selecting previously unselected package ruby-polyglot.
Unpacking ruby-polyglot (from .../ruby-polyglot_0.3.3-3_all.deb) ...
Selecting previously unselected package ruby-treetop.
Unpacking ruby-treetop (from .../ruby-treetop_1.4.14-1_all.deb) ...
Selecting previously unselected package ruby-mail.
Unpacking ruby-mail (from .../ruby-mail_2.5.4-1_all.deb) ...
Selecting previously unselected package ruby-actionmailer-3.2.
Unpacking ruby-actionmailer-3.2 (from .../ruby-actionmailer-3.2_3.2.13-4_all.deb) ...
Selecting previously unselected package rake.
Unpacking rake (from .../archives/rake_10.0.4-1_all.deb) ...
Selecting previously unselected package ruby-thor.
Unpacking ruby-thor (from .../ruby-thor_0.18.1-1_all.deb) ...
Selecting previously unselected package ruby-rack-ssl.
Unpacking ruby-rack-ssl (from .../ruby-rack-ssl_1.3.2-2_all.deb) ...
Selecting previously unselected package ruby-railties-3.2.
Unpacking ruby-railties-3.2 (from .../ruby-railties-3.2_3.2.13-4.1_all.deb) ...
Selecting previously unselected package ruby-net-http-persistent.
Unpacking ruby-net-http-persistent (from .../ruby-net-http-persistent_2.8-1_all.deb) ...
Selecting previously unselected package bundler.
Unpacking bundler (from .../bundler_1.3.5-2ubuntu1_all.deb) ...
Selecting previously unselected package ruby-rails-3.2.
Unpacking ruby-rails-3.2 (from .../ruby-rails-3.2_3.2.13-2_all.deb) ...
Selecting previously unselected package ruby-eventmachine.
Unpacking ruby-eventmachine (from .../ruby-eventmachine_1.0.3-3_amd64.deb) ...
Selecting previously unselected package ruby-mysql2.
Unpacking ruby-mysql2 (from .../ruby-mysql2_0.3.11-1_amd64.deb) ...
Selecting previously unselected package redmine-mysql.
Unpacking redmine-mysql (from .../redmine-mysql_2.3.1-1_all.deb) ...
Selecting previously unselected package ruby-coderay.
Unpacking ruby-coderay (from .../ruby-coderay_1.0.9-1_all.deb) ...
Selecting previously unselected package ruby-net-ldap.
Unpacking ruby-net-ldap (from .../ruby-net-ldap_0.3.1-2_all.deb) ...
Selecting previously unselected package ruby-fastercsv.
Unpacking ruby-fastercsv (from .../ruby-fastercsv_1.5.5-1_all.deb) ...
Selecting previously unselected package ruby-hmac.
Unpacking ruby-hmac (from .../ruby-hmac_0.4.0-3_all.deb) ...
Selecting previously unselected package ruby-openid.
Unpacking ruby-openid (from .../ruby-openid_2.1.8debian-6_all.deb) ...
Selecting previously unselected package ruby-rack-openid.
Unpacking ruby-rack-openid (from .../ruby-rack-openid_1.3.1-1_all.deb) ...
Selecting previously unselected package redmine.
Unpacking redmine (from .../redmine_2.3.1-1_all.deb) ...
Selecting previously unselected package libfcgi-ruby1.9.1.
Unpacking libfcgi-ruby1.9.1 (from .../libfcgi-ruby1.9.1_0.8.8-1_amd64.deb) ...
Selecting previously unselected package ruby1.9.1-dev.
Unpacking ruby1.9.1-dev (from .../ruby1.9.1-dev_1.9.3.194-8.1ubuntu2_amd64.deb) ...
Selecting previously unselected package ruby-dev.
Unpacking ruby-dev (from .../ruby-dev_1%3a1.9.3_all.deb) ...
Selecting previously unselected package libev4.
Unpacking libev4 (from .../libev4_1%3a4.11-1_amd64.deb) ...
Selecting previously unselected package rubygems.
Unpacking rubygems (from .../rubygems_1.8.24-1ubuntu2_all.deb) ...
Selecting previously unselected package ruby-passenger.
Unpacking ruby-passenger (from .../ruby-passenger_3.0.13debian-1.2_amd64.deb) ...
Selecting previously unselected package ruby-yajl.
Unpacking ruby-yajl (from .../ruby-yajl_1.1.0-2_amd64.deb) ...
Selecting previously unselected package ruby1.8-dev.
Unpacking ruby1.8-dev (from .../ruby1.8-dev_1.8.7.358-7ubuntu2_amd64.deb) ...
Selecting previously unselected package rubygems-integration.
Unpacking rubygems-integration (from .../rubygems-integration_1.2_all.deb) ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 1 added doc-base file...
Registering documents with dwww...
Registering documents with scrollkeeper...
Setting up libruby1.9.1 (1.9.3.194-8.1ubuntu2) ...
Setting up ruby1.9.1 (1.9.3.194-8.1ubuntu2) ...
update-alternatives: using /usr/bin/gem1.9.1 to provide /usr/bin/gem (gem) in auto mode
update-alternatives: using /usr/bin/ruby1.9.1 to provide /usr/bin/ruby (ruby) in auto mode
Setting up ruby (1:1.9.3) ...
Setting up libruby1.8 (1.8.7.358-7ubuntu2) ...
Setting up ruby1.8 (1.8.7.358-7ubuntu2) ...
Setting up ruby-i18n (0.6.4-1) ...
Setting up ruby-multi-json (1.3.6-1) ...
Setting up ruby-activesupport-3.2 (3.2.13-3) ...
Setting up ruby-blankslate (2.1.2.4-4) ...
Setting up ruby-builder (3.2.0-1) ...
Setting up ruby-activemodel-3.2 (3.2.13-5) ...
Setting up ruby-arel (4.0.0-2) ...
Setting up ruby-tzinfo (0.3.33-3) ...
Setting up ruby-activerecord-3.2 (3.2.13-4) ...
Setting up ruby-rack (1.5.2-1) ...
Setting up ruby-rack-cache (1.2-2) ...
Setting up ruby-rack-test (0.6.2-1) ...
Setting up ruby-journey (1.0.4-1) ...
Setting up ruby-hike (1.2.1-2) ...
Setting up ruby-tilt (1.4.1-1) ...
Setting up ruby-sprockets (2.4.3-1) ...
Setting up ruby-erubis (2.7.0-2) ...
Setting up ruby-actionpack-3.2 (3.2.13-7) ...
Setting up ruby-activeresource-3.2 (3.2.13-4) ...
Setting up ruby-mime-types (1.23-1) ...
Setting up ruby-polyglot (0.3.3-3) ...
Setting up ruby-treetop (1.4.14-1) ...
Setting up ruby-mail (2.5.4-1) ...
Setting up ruby-actionmailer-3.2 (3.2.13-4) ...
Setting up rake (10.0.4-1) ...
Setting up ruby-thor (0.18.1-1) ...
Setting up ruby-rack-ssl (1.3.2-2) ...
Setting up ruby-railties-3.2 (3.2.13-4.1) ...
Setting up ruby-net-http-persistent (2.8-1) ...
Setting up bundler (1.3.5-2ubuntu1) ...
Setting up ruby-rails-3.2 (3.2.13-2) ...
Setting up ruby-eventmachine (1.0.3-3) ...
Setting up ruby-mysql2 (0.3.11-1) ...
Setting up ruby-coderay (1.0.9-1) ...
Setting up ruby-net-ldap (0.3.1-2) ...
Setting up ruby-fastercsv (1.5.5-1) ...
Setting up ruby-hmac (0.4.0-3) ...
Setting up ruby-openid (2.1.8debian-6) ...
Setting up ruby-rack-openid (1.3.1-1) ...
Setting up libfcgi-ruby1.9.1 (0.8.8-1) ...
Setting up ruby1.9.1-dev (1.9.3.194-8.1ubuntu2) ...
Setting up ruby-dev (1:1.9.3) ...
Setting up libev4 (1:4.11-1) ...
Setting up rubygems (1.8.24-1ubuntu2) ...
Setting up ruby-passenger (3.0.13debian-1.2) ...
Setting up ruby-yajl (1.1.0-2) ...
Setting up ruby1.8-dev (1.8.7.358-7ubuntu2) ...
Setting up rubygems-integration (1.2) ...
Setting up redmine-mysql (2.3.1-1) ...
Setting up redmine (2.3.1-1) ...
dbconfig-common: writing config to /etc/dbconfig-common/redmine/instances/default.conf
Creating config file /etc/redmine/default/database.yml.new with new version
dbconfig-common: flushing administrative password
Populating database for redmine instance "default".
This may take a while.
rake aborted!
Please install the mysql adapter: `gem install activerecord-mysql-adapter` (cannot load such file -- mysql)
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)
$
---
Before error occurs, it can be read:
---
Creating config file /etc/redmine/default/database.yml.new with new version
---
Would I still have an old '/etc/redmine/default/database.yml' before install, that won't be overwritten by the install process ? After checking, I indeed still have this file.
So I did 'sudo aptitude remove --purge redmine-mysql', 'rm -rf /etc/redmine', 'rm -rf /var/log/redmine'.
When starting a new install, I get this message in a text GUI:
---
A new version of configuration file /etc/redmine/default/session.yml is available, but the version installed currently has been locally modified.
Line by line differences between versions
│
│ --- /dev/null 2013-10-17 19:14:45.363080804 +0200
│ +++ /etc/redmine/default/session.yml.new 2013-10-17 19:37:29.401080288
│ +0200
│ @@ -0,0 +1,22 @@
│ +# This file was generated by 'rake generate_session_store',
│ +# not be made visible to public.
│ +# If you have a load-balancing Redmine cluster, you will need to use
│ the
│ +# same version of this file on each machine. And be sure to restart
│ your
│ +# server when you modify this file.
│ +#
---
I just deleted '/etc/redmine/': how is that possible for the installer to find an older configuration on my OS ?
Maybe is this an issue with 'dbconfig-common' ? It doesn't seem to be in
'redmine' dependencies, but it sures acts during install (it offers to
install the redmine DB).
--
You received this bug notification because you are subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1240705
Title:
'redmine' 'redmine-mysql' fail to install with 'ruby' (1.9.3)
Status in “redmine” package in Ubuntu:
New
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-8.1ubuntu2), but only with the older 'ruby1.8'
(1.8.7.358-7ubuntu2) , which doesn't match with the 'redmine' package
dependencies at the moment.
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://fr.archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages
100 /var/lib/dpkg/status
---
Supposed-expected and actual:
---
Expected: install succeeds and '/etc/redmine/default/database.yml' contains 'adapter: mysql2'
Actual: install fails (E: Sub-process /usr/bin/dpkg returned an error code (1)), and '/etc/redmine/default/database.yml' contains 'adapter: mysql'
---
Going into details, I meet this error when 'sudo aptitude install redmine redmine-mysql' on Saucy 13.10:
---
Creating config file /etc/redmine/default/session.yml with new version
A new secret session key has been generated in /etc/redmine/default/session.yml
Populating database for redmine instance "default".
This may take a while.
rake aborted!
Please install the mysql adapter: `gem install activerecord-mysql-adapter` (cannot load such file -- mysql)
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-mysql-adapter' keywords on the web sent me there:
---
http://stackoverflow.com/questions/9609985/please-install-mysql-adapter-gem-install-activerecord-mysql-adapter
http://www.redmine.org/projects/redmine/wiki/RedmineInstall (look for the "Example for a MySQL database using ruby 1.9 (adapter must be set to mysql2)" pattern in this one)
---
And indeed, before purging the failed install, here is the '/etc/redmine/default/database.yml' content:
---
$ sudo cat /etc/redmine/default/database.yml
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.194-8.1ubuntu2), for a manual gitlab install without having to 'gem install' but installing 'ruby-charlock-holmes' from repositories
5/ flawless manual install of gitlab, relying on the repositories ruby 1.9.1 (1.9.3.194-8.1ubuntu2)
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-mod-passenger' also, both have
some ruby1.8 dependencies.
Feel free to ask me more useful info if needed: I stay tuned :) Thanks
for free software
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/redmine/+bug/1240705/+subscriptions
More information about the Pkg-ruby-extras-maintainers
mailing list