Bug#619007: Fwd: Re: Bug#619007: otrs2: fails to install

March 30th, 2012 - 11:30 am ET by Andreas Beckmann | Report spam
The BTS ate my comments, but it processed the commands ...

Andreas

Subject: Re: Bug#619007: otrs2: fails to install
Date: Fri, 23 Mar 2012 10:23:27 +0100
From: Andreas Beckmann <debian@abeckmann.de>
To: 619007@bugs.debian.org, control@bugs.debian.org

reopen 619007
found 619007 2.4.9+dfsg1-3+squeeze1
fixed 619007 2.4.9+dfsg1-5
tag 619007 squeeze
retitle 619007 otrs2: fails to install - otrs.RebuildConfig.pl fails
thanks

On Wednesday, 23. March 2011 00:01:34 Holger Levsen wrote:

On Dienstag, 22. Màrz 2011, Patrick Matthài wrote:
> Hmm what's wrong with calling:
> invoke-rc.d apache2 force-reload
> in postinst?
>
|| true



Thats a bogus fix that was done in 2.4.9+dfsg1-5.
invoke-rc.d does not produce that error, it just produced the last line of
output before the error. Therefore that || true should be removed again (if
it's still there).

Running the postinst script (from the version currently in stable) with
set -x
reveals:

...
+ setup_apache
+
[ -e /etc/otrs/apache2-httpd.include.conf -a ! -e
/etc/apache2/conf.d/otrs2 ]
+
ucf --three-way --debconf-ok
/usr/share/otrs/scripts/apache2-httpd-new.include.conf
/etc/apache2/conf.d/otrs2
+ [ -f /etc/apache2/mods-available/perl.load ]
+ a2enmod perl
Module perl already enabled
+ a2enmod rewrite
Module rewrite already enabled
+ db_stop
+ echo STOP
+ invoke-rc.d apache2 force-reload
invoke-rc.d: policy-rc.d denied execution of force-reload.
+ setup_ZZZ
+ [ ! -f /var/lib/otrs/Config/ZZZAuto.pm ]
+ [ -f /etc/otrs/database.pm ]
+ /usr/share/otrs/bin/otrs.RebuildConfig.pl
dpkg: error processing otrs2 (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
otrs2

So it's otrs.RebuildConfig.pl that fails (silently).

I'm reopening the bug for squeeze (-3+s1), keeping the old fixed version
(-5,
which is probably incorrect but I don't want to bisect it) as the
problem is
fixed in the versions in wheezy+sid.

Andreas



To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 2 repliesReplies Make a reply

Similar topics

Replies

#1 Andreas Beckmann
March 30th, 2012 - 11:40 am ET | Report spam
On 2012-03-30 18:22, Patrick Matthài wrote:
Doesn't piuparts setup the database?



Postgres gets installed and is running.

If there is a database-unreachable problem the RebuildConfig.pl script
could be a bit more verbose (= not silent) about this.

Andreas



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Replies Reply to this message
#2 Andreas Beckmann
April 04th, 2012 - 02:30 pm ET | Report spam
On 2012-03-30 17:32, Andreas Beckmann wrote:
On 2012-03-30 18:22, Patrick Matthài wrote:
Doesn't piuparts setup the database?



Postgres gets installed and is running.



Got it: the squeeze version defaults to mysql, the wheezy version to
postgresql. I'm now installing both before testing otrs and this seems
to work.

If there is a database-unreachable problem the RebuildConfig.pl script
could be a bit more verbose (= not silent) about this.



An error message output by RebuildConfig.pl would have helped ...


Andreas



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search