tag #728301 + pending
thanks

Thanks, fixed in svn:

Index: debian/changelog
===================================================================
--- debian/changelog    (Revision 4899)
+++ debian/changelog    (Arbeitskopie)
@@ -1,3 +1,10 @@
+otrs2 (3.2.11-2) UNRELEASED; urgency=high
+
+  * Allow otrs.DeleteCache.pl to fail in postinst.
+    Closes: #728301
+
+ -- Patrick Matthäi <pmatth...@debian.org>  Wed, 30 Oct 2013 14:17:03 +0100
+
 otrs2 (3.2.11-1) unstable; urgency=low

   * New upstream release.
Index: debian/otrs2.postinst
===================================================================
--- debian/otrs2.postinst       (Revision 4899)
+++ debian/otrs2.postinst       (Arbeitskopie)
@@ -78,7 +78,7 @@
                setup_ZZZ
                if [ -f /etc/otrs/database.pm ]; then
cd $OTRSHOME && ./bin/otrs.RebuildConfig.pl > /dev/null - cd $OTRSHOME && ./bin/otrs.DeleteCache.pl > /dev/null + cd $OTRSHOME && ./bin/otrs.DeleteCache.pl > /dev/null || true
                fi
                if [ -f $OTRS_VAR/Config/Files/ZZZAAuto.pm ]; then
chown root:www-data $OTRS_VAR/Config/Files/ZZZAAuto.pm


Am 30.10.2013 13:17, schrieb Andreas Beckmann:
Package: otrs2
Version: 3.2.11-1
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package failed to install,
remove (but not purge), and install again.
Before the second installation the package is in config-files-remaining
state. The configuration is remaining from the last version that was
successfully configured - which is the same version that is going to be
installed again.

Like a plain failure on initial install this makes the package too buggy
for a release, thus the severity.

From the attached log (scroll to the bottom...):

0m49.2s DEBUG: Starting command: ['chroot', '/tmp/piupartss/tmpbKbXxi', 
'apt-get', '-y', 'install', 'otrs2=3.2.11-1']
0m54.2s DUMP:
   Reading package lists...
   Building dependency tree...
   Reading state information...
   Suggested packages:
     otrs2-doc-en otrs2-doc-de libnet-ldap-perl libjson-xs-perl
     libnet-smtp-tls-butmaintained-perl libtext-csv-xs-perl
     libencode-hanextra-perl
   Recommended packages:
     procmail maildrop aspell ispell
   The following NEW packages will be installed:
     otrs2
   0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
   Need to get 4451 kB of archives.
   After this operation, 60.5 MB of additional disk space will be used.
   Get:1 http://ftp.de.debian.org/debian/ sid/main otrs2 all 3.2.11-1 [4451 kB]
   debconf: delaying package configuration, since apt-utils is not installed
   Fetched 4451 kB in 0s (29.3 MB/s)
   Selecting previously unselected package otrs2.
   (Reading database ... 15282 files and directories currently installed.)
   Unpacking otrs2 (from .../otrs2_3.2.11-1_all.deb) ...
   Warning: The home dir /usr/share/otrs you specified can't be accessed: No 
such file or directory
   Adding system user `otrs' (UID 151) ...
   Adding new user `otrs' (UID 151) with group `www-data' ...
   Not creating home directory `/usr/share/otrs'.
   Setting up otrs2 (3.2.11-1) ...
   dbconfig-common: writing config to /etc/dbconfig-common/otrs2.conf

   Creating config file /etc/dbconfig-common/otrs2.conf with new version

   Creating config file /etc/otrs/database.pm with new version
   granting access to database otrs2 for otrs@localhost: success.
   verifying access for otrs@localhost: success.
   creating database otrs2: success.
   verifying database otrs2 exists: success.
   populating database via sql...  done.
   dbconfig-common: flushing administrative password

   Creating config file /etc/otrs/Kernel/Config.pm with new version

   Creating config file /etc/otrs/Kernel/Config/GenericAgent.pm with new version

   Creating config file /etc/otrs/maintenance.html with new version

   Creating config file /etc/otrs/cron with new version

   Creating config file /etc/otrs/fetchmailrc with new version
   apache2_invoke perl: already enabled
   invoke-rc.d: policy-rc.d denied execution of restart.
   apache2_invoke: Enable module rewrite
   invoke-rc.d: policy-rc.d denied execution of restart.
   apache2_invoke: Enable module headers
   invoke-rc.d: policy-rc.d denied execution of restart.
   apache2_invoke deflate: already enabled
   invoke-rc.d: policy-rc.d denied execution of restart.
   Subroutine Load redefined at (eval 20) line 2.
   apache2_invoke: Enable configuration otrs2.conf
   invoke-rc.d: policy-rc.d denied execution of reload.
   invoke-rc.d: policy-rc.d denied execution of start.
0m54.2s DEBUG: Command ok: ['chroot', '/tmp/piupartss/tmpbKbXxi', 'apt-get', 
'-y', 'install', 'otrs2=3.2.11-1']
0m54.2s INFO: Running scripts post_install
0m54.2s DEBUG: Starting command: ['chroot', '/tmp/piupartss/tmpbKbXxi', 
'apt-get', 'remove', 'otrs2']
0m54.9s DUMP:
   Reading package lists...
   Building dependency tree...
   Reading state information...
   The following packages were automatically installed and are no longer 
required:
[...]
   Use 'apt-get autoremove' to remove them.
   The following packages will be REMOVED:
     otrs2
   0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
   After this operation, 60.5 MB disk space will be freed.
   (Reading database ... 17780 files and directories currently installed.)
   Removing otrs2 ...
   invoke-rc.d: policy-rc.d denied execution of stop.
0m54.9s DEBUG: Command ok: ['chroot', '/tmp/piupartss/tmpbKbXxi', 'apt-get', 
'remove', 'otrs2']
0m54.9s INFO: Reinstalling after remove
[...]
0m55.6s DEBUG: Starting command: ['chroot', '/tmp/piupartss/tmpbKbXxi', 
'apt-get', '-y', 'install', 'otrs2=3.2.11-1']
0m59.6s DUMP:
   Reading package lists...
   Building dependency tree...
   Reading state information...
   Suggested packages:
     otrs2-doc-en otrs2-doc-de libnet-ldap-perl libjson-xs-perl
     libnet-smtp-tls-butmaintained-perl libtext-csv-xs-perl
     libencode-hanextra-perl
   Recommended packages:
     procmail maildrop aspell ispell
   The following NEW packages will be installed:
     otrs2
   debconf: delaying package configuration, since apt-utils is not installed
   0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
   Need to get 0 B/4451 kB of archives.
   After this operation, 60.5 MB of additional disk space will be used.
   Selecting previously unselected package otrs2.
   (Reading database ... 15292 files and directories currently installed.)
   Unpacking otrs2 (from .../otrs2_3.2.11-1_all.deb) ...
   Warning: The home dir /usr/share/otrs you specified can't be accessed: No 
such file or directory
   The system user `otrs' already exists. Exiting.
   Setting up otrs2 (3.2.11-1) ...
   dbconfig-common: writing config to /etc/dbconfig-common/otrs2.conf
   Replacing config file /etc/otrs/database.pm with new version
   dbconfig-common: flushing administrative password
   apache2_invoke perl: already enabled
   invoke-rc.d: policy-rc.d denied execution of restart.
   apache2_invoke rewrite: already enabled
   invoke-rc.d: policy-rc.d denied execution of restart.
   apache2_invoke headers: already enabled
   invoke-rc.d: policy-rc.d denied execution of restart.
   apache2_invoke deflate: already enabled
   invoke-rc.d: policy-rc.d denied execution of restart.
   Subroutine Load redefined at (eval 20) line 2.
   dpkg: error processing otrs2 (--configure):
    subprocess installed post-installation script returned error exit status 1
   Errors were encountered while processing:
    otrs2
   E: Sub-process /usr/bin/dpkg returned an error code (1)
0m59.6s ERROR: Command failed (status=100): ['chroot', 
'/tmp/piupartss/tmpbKbXxi', 'apt-get', '-y', 'install', 'otrs2=3.2.11-1']


The "Subroutine Load redefined at (eval 20) line 2." message appears in both
the first and the second installation, so there must be a different reason
for the failure.


cheers,

Andreas



--
/*
Mit freundlichem Gruß / With kind regards,
 Patrick Matthäi
 GNU/Linux Debian Developer

  Blog: http://www.linux-dev.org/
E-Mail: pmatth...@debian.org
        patr...@linux-dev.org
*/


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to