bacula-director-pgsql fails postinst because of missing check for running psql daemon

Bug #325109 reported by Saija
2
Affects Status Importance Assigned to Milestone
Ubuntu Documentation
Invalid
Undecided
Unassigned
Ubuntu Server Guide
Fix Released
Low
Connor Imes
Ubuntu Server papercuts
Invalid
Undecided
Unassigned
bacula (Ubuntu)
Fix Released
Medium
Unassigned
ubuntu-docs (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: bacula

: el subproceso post-installation script devolvio el codigo de salida de error 2

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 8.10
ErrorMessage: el subproceso post-installation script devolvió el código de salida de error 2
NonfreeKernelModules: cisco_ipsec fglrx
Package: bacula-director-pgsql 2.4.2-1ubuntu6
SourcePackage: bacula
Title: package bacula-director-pgsql 2.4.2-1ubuntu6 failed to install/upgrade: el subproceso post-installation script devolvió el código de salida de error 2
Uname: Linux 2.6.27-11-generic i686

Revision history for this message
Saija (julborre) wrote :
Revision history for this message
Iain Lane (laney) wrote :

Thanks for the report. From the log, it looks as if the postinst doesn't check if psql is actually running, which it requires it to be.

Changed in bacula:
status: New → Confirmed
Daniel T Chen (crimsun)
Changed in bacula:
status: Confirmed → Triaged
Revision history for this message
Ante Karamatić (ivoks) wrote :

Well, I can confirm this, but installation of bacula-director-pgsql depends running Postgre database. If database isn't running, bacula can't create tables. You can solve this problem by starting pgsql and running 'dpkg --configure -a'.

Changed in bacula:
importance: Undecided → Medium
Revision history for this message
Saija (julborre) wrote : Re: [Bug 325109] Re: package bacula-director-pgsql 2.4.2-1ubuntu6 failed to install/upgrade

Thanks for the answers, and its right, i don't start the postgresql daemon
at boot time, i just did a chmod -x to the service script, i'll try to start
the service and reinstall the bacula-director-pgsql and let you know if
this(it should...) works.

thank you

2009/2/3 Daniel T Chen <email address hidden>

> ** Changed in: bacula (Ubuntu)
> Status: Confirmed => Triaged
>
> ** Summary changed:
>
> - package bacula-director-pgsql 2.4.2-1ubuntu6 failed to install/upgrade
> + bacula-director-pgsql fails postinst because of missing check for running
> psql daemon
>
> --
> bacula-director-pgsql fails postinst because of missing check for running
> psql daemon
> https://bugs.launchpad.net/bugs/325109
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Julián Andrés Borrero

Revision history for this message
Ante Karamatić (ivoks) wrote :

Even if postgresql was running, reinstallation of bacula-director-pgsql would fail.

I believe this is fixed in ubuntu-bacula PPA for intrepid and hardy:

https://edge.launchpad.net/~ubuntu-bacula/+archive/ppa

and for those that would like to have bacula packages for hardy backported from intrepid, they are at my personal PPA:

https://edge.launchpad.net/~ivoks/+archive/ppa

Please test those packages and report results. Thank you

Revision history for this message
Ante Karamatić (ivoks) wrote :

Attached is patch for 8.04.x. In Jaunty and newer this bug doesn't exist.

Revision history for this message
Ante Karamatić (ivoks) wrote :

Docs should be modified to mention that before installing -mysql or -pgsql version of directors, one should have working mysql or postgresql services. Those services can be on localhost or any other reachable server.

Changed in server-papercuts:
status: New → Invalid
Revision history for this message
Ante Karamatić (ivoks) wrote :

Not a papercut cause it doesn't affect Lucid.

Revision history for this message
Thierry Carrez (ttx) wrote :

Closing as fixreleased in lucid based on previous comment

Changed in bacula (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Connor Imes (ckimes) wrote :

Moving to ubuntu-docs package per doc team policy.

Changed in ubuntu-docs:
status: New → Invalid
Revision history for this message
Matthew East (mdke) wrote :

Adam - can you check if this bug is fixed in the current server guide?

Changed in ubuntu-docs (Ubuntu):
assignee: nobody → Adam Sommer (asommer)
tags: added: serverguide
Revision history for this message
Connor Imes (ckimes) wrote :

The Ubuntu Documentation team has moved the serverguide out of the ubuntu-docs source, it is now under the serverguide project. Moving this bug accordingly.

Changed in serverguide:
assignee: nobody → Adam Sommer (asommer)
Changed in ubuntu-docs (Ubuntu):
assignee: Adam Sommer (asommer) → nobody
status: New → Invalid
Revision history for this message
Connor Imes (ckimes) wrote :

Added a note to the Bacula documentation.

Changed in serverguide:
assignee: Adam Sommer (asommer) → Connor Imes (rocket2dmn)
importance: Undecided → Low
status: New → Fix Committed
Connor Imes (ckimes)
Changed in serverguide:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.