Bug#619007: otrs2: fails to install

2012-03-30 Thread Andreas Beckmann
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 debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#619007: otrs2: fails to install

2012-04-04 Thread Andreas Beckmann
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 debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#619007: otrs2: fails to install

2011-03-22 Thread Patrick Matthäi
Am 20.03.2011 13:34, schrieb Holger Levsen:
> Package: otrs2
> Version: 2.4.9+dfsg1-4
> Severity: serious
> User: debian...@lists.debian.org
> Usertags: piuparts piuparts.d.o
> 
> Hi, 
>

Hmm what's wrong with calling:
invoke-rc.d apache2 force-reload
in postinst?


> during a test with piuparts I noticed your package failed to install. As per 
> definition of the release team this makes the package too buggy for a 
> release, thus the severity.
> 
> From the attached log (scroll to the bottom...):
> 
>   Setting up otrs2 (2.4.9+dfsg1-4) ...
>   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
>   warning: database package not installed?
>   warning: database package not installed?
>   sanity check failed for createuser.
>   error encountered creating user:
>   No pgsql createuser to execute. (have you installed postgresql-client?
>   dbconfig-common: otrs2 configure: noninteractive fail.
>   dbconfig-common: otrs2 configure: ignoring errors from here forwards
>   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
>   
>   Creating config file /etc/apache2/conf.d/otrs2 with new version
>   Module perl already enabled
>   Enabling module rewrite.
>   Run '/etc/init.d/apache2 restart' to activate new configuration!
>   invoke-rc.d: policy-rc.d denied execution of force-reload.
>   dpkg: error processing otrs2 (--configure):
>subprocess installed post-installation script returned error exit status 2
>   configured to not write apport reports
>   Errors were encountered while processing:
>otrs2
>   E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> 
> cheers,
>   Holger


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

E-Mail: pmatth...@debian.org
patr...@linux-dev.org

Comment:
Always if we think we are right,
we were maybe wrong.
*/



signature.asc
Description: OpenPGP digital signature


Bug#619007: otrs2: fails to install

2011-03-22 Thread Holger Levsen
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

if you use -e :-)


signature.asc
Description: This is a digitally signed message part.


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

2012-03-30 Thread Andreas Beckmann
The BTS ate my comments, but it processed the commands ...

Andreas

 Original Message 
Subject: Re: Bug#619007: otrs2: fails to install
Date: Fri, 23 Mar 2012 10:23:27 +0100
From: Andreas Beckmann 
To: 619...@bugs.debian.org, cont...@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-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



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

2012-03-30 Thread Patrick Matthäi

Am 30.03.2012 17:19, schrieb Andreas Beckmann:

The BTS ate my comments, but it processed the commands ...

Andreas

 Original Message 
Subject: Re: Bug#619007: otrs2: fails to install
Date: Fri, 23 Mar 2012 10:23:27 +0100
From: Andreas Beckmann
To: 619...@bugs.debian.org, cont...@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).



Doesn't piuparts setup the database?




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