Your message dated Mon, 02 Apr 2018 12:14:24 +0900
with message-id <1823e513f64ab133399c86da5765d...@duckcorp.org>
and subject line Re: redmine: install after purge fails due to missing ucf(r)
call during postrm
has caused the Debian Bug report #836369,
regarding redmine: install after purge fails due to missing ucf(r) call during
postrm
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
836369: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836369
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: redmine
Version: 3.2.3-1
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
During my investigation of bug 835987¹, I noticed that redmine fails to install
properly if you installed and purged it before. The problem is that redmine
fails to call ucf and ucfr during postrm for the configuration files that are
created by dbconfig-common. The documentation of dbconfig-common contains the
following paragraph (the last paragraph of 3.2.1)¹:
"""
NOTE if you use this feature, you should also ensure that the generated file is
properly removed in the postrm script. dbconfig-common can not handle this
itself, unfortunately, because it may be possible that it is purged before your
package is purged. therefore, you should do the following in your postrm
script:
if [ "$1" = "purge" ]; then
rm -f yourconfigfile
if which ucf >/dev/null 2>&1; then
ucf --purge yourconfigfile
ucfr --purge yourpackage yourconfigfile
fi
fi
"""
Relevant part of the logging:
root@sid:~# DEBIAN_FRONTEND=noninteractive apt-get install redmine
root@sid:~# DEBIAN_FRONTEND=readline apt-get purge redmine
Removing redmine (3.2.3-1) ...
Deconfigure database for redmine/instances/default with dbconfig-common?
[yes/no] yes
Delete the database for redmine/instances/default? [yes/no] yes
dbconfig-common: dumping sqlite3 database redmine_default to
/var/tmp/redmine/instances/default.redmine_default.2016-09-02-08.09.sqlite3.m3LLGd.
dbconfig-common: dropping sqlite3 database redmine_default.
dropping database redmine_default: success.
verifying database redmine_default was dropped: success.
dbconfig-common: revoking privileges for user redmine_default on
redmine_default.
Removing redmine (3.2.3-1) ...
Purging configuration files for redmine (3.2.3-1) ...
root@sid:~# DEBIAN_FRONTEND=noninteractive apt-get install redmine
Setting up redmine (3.2.3-1) ...
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
Not replacing deleted config file /etc/redmine/default/database.yml
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
creating database redmine_default: success.
verifying database redmine_default exists: success.
rake aborted!
Cannot load `Rails.application.database_configuration`:
Could not load database configuration. No such file -
["/usr/share/redmine/instances/default/config/database.yml"]
/usr/share/redmine/lib/plugins/acts_as_activity_provider/init.rb:2:in `block in
<top (required)>'
/usr/share/redmine/config/initializers/00-core_plugins.rb:12:in `eval'
/usr/share/redmine/config/initializers/00-core_plugins.rb:12:in `block in <top
(required)>'
/usr/share/redmine/config/initializers/00-core_plugins.rb:2:in `each'
/usr/share/redmine/config/initializers/00-core_plugins.rb:2:in `<top
(required)>'
/usr/share/redmine/config/environment.rb:14:in `<top (required)>'
Could not load database configuration. No such file -
["/usr/share/redmine/instances/default/config/database.yml"]
/usr/share/redmine/lib/plugins/acts_as_activity_provider/init.rb:2:in `block in
<top (required)>'
/usr/share/redmine/config/initializers/00-core_plugins.rb:12:in `eval'
/usr/share/redmine/config/initializers/00-core_plugins.rb:12:in `block in <top
(required)>'
/usr/share/redmine/config/initializers/00-core_plugins.rb:2:in `each'
/usr/share/redmine/config/initializers/00-core_plugins.rb:2:in `<top
(required)>'
/usr/share/redmine/config/environment.rb:14:in `<top (required)>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
dpkg: error processing package redmine (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
redmine
E: Sub-process /usr/bin/dpkg returned an error code (1)
¹
https://www.debian.org/doc/manuals/dbconfig-common/ch-develguide.html#s-genconfig
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBCAAGBQJXyTZOAAoJEJxcmesFvXUK93IIAMembELcEDWHuO9U9FF1TWAw
sGyNzTjnjWtYNKR6He90lIM+8w0c//fUiXNTlY6xMjqkDjS8b6nqO5QOlnjwX2ei
dFTljA++T5/00T1qNZ9vS70HmDJlZn/lMPRKaT9r/BYCuVQ+WyHIqlVixhvxQFH+
KeD/vZgmV6t66c2un36dERyu01fkOfStHx697ADJoH+1ykBJ1TQxftmFs7BUSKE0
1brxEuOa7KtAqZub8+2D2cwTabn7eefhrSavb8Us86s+duP2ZWMnN8c912zPxgEB
IQ0Q20aHSZfVK3ho4PCCtd0siH0zs1h4+K8RtK8R7JqIyihzow5CDMJ4bognQz4=
=oipi
-----END PGP SIGNATURE-----
--- End Message ---
--- Begin Message ---
Version: 3.3.1-3
Quack,
I see this was already fixed in a previous upload but this BR was not
closed. This other report was closed: #852130.
Thanks for reporting this problem with a solution.
Regards.
\_o<
--
Marc Dequènes
--- End Message ---
_______________________________________________
Pkg-ruby-extras-maintainers mailing list
Pkg-ruby-extras-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers