[DRE-maint] Bug#682768: redmine: deprecated feature leads to installation abort

Toni Mueller support at oeko.net
Wed Jul 25 14:48:08 UTC 2012



Hi,

On Wed, Jul 25, 2012 at 04:09:09PM +0200, Jérémy Lal wrote:
> That doesn't say from which version of redmine you are upgrading.

found it:

...
Preparing to replace redmine 1.4.3+dfsg1-1 (using .../redmine_1.4.4+dfsg1-1_all.deb) ...


> > Populating database for redmine instance "default".
> > This may take a while.
> > NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
> > Gem.source_index called from /usr/share/redmine/vendor/rails/railties/lib/rails/gem_dependency.rb:21.
> > rake aborted!
> > production database is not configured
> > 
> > Tasks: TOP => db:migrate => environment
> > (See full trace by running task with --trace)
> > Error when running rake db:migrate, check database configuration.
> 
> A common reason for that kind of failure is a manually installed plugin,
> please make sure you don't have one in /usr/share/redmine/vendor/plugins/.

When I reported the bug, I saw this:

# ls -al  /usr/share/redmine/vendor/plugins
total 72
drwxr-xr-x 18 root root 4096 May 14 03:29 ./
drwxr-xr-x  3 root root 4096 Jun  9 01:16 ../
drwxr-xr-x  3 root root 4096 Jul 25 15:08 acts_as_activity_provider/
drwxr-xr-x  3 root root 4096 Jul 25 15:08 acts_as_attachable/
drwxr-xr-x  3 root root 4096 Jul 25 15:08 acts_as_customizable/
drwxr-xr-x  3 root root 4096 Jul 25 15:08 acts_as_event/
drwxr-xr-x  4 root root 4096 Jul 25 15:08 acts_as_list/
drwxr-xr-x  3 root root 4096 Jul 25 15:08 acts_as_searchable/
drwxr-xr-x  4 root root 4096 Jul 25 15:08 acts_as_tree/
drwxr-xr-x  4 root root 4096 Jul 25 15:08 acts_as_versioned/
drwxr-xr-x  3 root root 4096 Jul 25 15:08 acts_as_watchable/
drwxr-xr-x  5 root root 4096 Jul 25 15:08 awesome_nested_set/
drwxr-xr-x  4 root root 4096 Jul 25 15:08 classic_pagination/
drwxr-xr-x  5 root root 4096 Jul 25 15:08 engines/
drwxr-xr-x  4 root root 4096 Jul 25 15:08 gravatar/
drwxr-xr-x  5 root root 4096 Jul 25 15:08 open_id_authentication/
drwxr-xr-x  2 root root 4096 Jul 25 15:08 prepend_engine_views/
drwxr-xr-x  4 root root 4096 Jul 25 15:08 rfpdf/
#

Then I purged redmine and re-installed (it's a test installation only),
but this time accepting the sqlite backend. Not that directory
looks like 

# ls -al  /usr/share/redmine/vendor/plugins
total 72
drwxr-xr-x 18 root root 4096 Jul 25 16:27 ./
drwxr-xr-x  3 root root 4096 Jul 25 16:27 ../
drwxr-xr-x  3 root root 4096 Jul 25 16:27 acts_as_activity_provider/
drwxr-xr-x  3 root root 4096 Jul 25 16:27 acts_as_attachable/
drwxr-xr-x  3 root root 4096 Jul 25 16:27 acts_as_customizable/
drwxr-xr-x  3 root root 4096 Jul 25 16:27 acts_as_event/
drwxr-xr-x  4 root root 4096 Jul 25 16:27 acts_as_list/
drwxr-xr-x  3 root root 4096 Jul 25 16:27 acts_as_searchable/
drwxr-xr-x  4 root root 4096 Jul 25 16:27 acts_as_tree/
drwxr-xr-x  4 root root 4096 Jul 25 16:27 acts_as_versioned/
drwxr-xr-x  3 root root 4096 Jul 25 16:27 acts_as_watchable/
drwxr-xr-x  5 root root 4096 Jul 25 16:27 awesome_nested_set/
drwxr-xr-x  4 root root 4096 Jul 25 16:27 classic_pagination/
drwxr-xr-x  5 root root 4096 Jul 25 16:27 engines/
drwxr-xr-x  4 root root 4096 Jul 25 16:27 gravatar/
drwxr-xr-x  5 root root 4096 Jul 25 16:27 open_id_authentication/
drwxr-xr-x  2 root root 4096 Jul 25 16:27 prepend_engine_views/
drwxr-xr-x  4 root root 4096 Jul 25 16:27 rfpdf/

Looks much the same to me.

Then I reconfigured redmine with the pgsql backend:

# dpkg-reconfigure -plow redmine
dbconfig-common: writing config to /etc/dbconfig-common/redmine/instances/default.conf

Creating config file /etc/dbconfig-common/redmine/instances/default.conf with new version

Creating config file /etc/redmine/default/database.yml.new with new version
unable to connect to postgresql server.
error encountered creating user:
psql: FATAL: password authentication failed for user "postgres" password retrieved from file "/tmp/dbconfig-common.psql_home.IpuB0D/.pgpass"
dbconfig-common: redmine/instances/default configure: trying again.
dbconfig-common: writing config to /etc/dbconfig-common/redmine/instances/default.conf
Replacing config file /etc/dbconfig-common/redmine/instances/default.conf with new version
dbconfig-common: flushing administrative password

Creating config file /etc/redmine/default/database.yml with new version
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/share/redmine/vendor/rails/railties/lib/rails/gem_dependency.rb:21.

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.
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/share/redmine/vendor/rails/railties/lib/rails/gem_dependency.rb:21.
rake aborted!
FATAL:  password authentication failed for user "redmine"

Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
Error when running rake db:migrate, check database configuration.
#


So it looks more like the problem should actually be in the
redmine-pgsql package, right? Feel free to re-assign.



Kind regards,
--Toni++




More information about the Pkg-ruby-extras-maintainers mailing list