package bacula-director-mysql 2.2.8-5ubuntu7.1 failed to install/upgrade: subprocess post-installation script returned error exit status 1

Bug #240089 reported by master_sleuth
66
This bug affects 4 people
Affects Status Importance Assigned to Milestone
bacula (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: bacula-server

post-install script failed.

ProblemType: Package
Architecture: amd64
Date: Sat Jun 14 21:24:00 2008
DistroRelease: Ubuntu 8.04
ErrorMessage: subprocess post-installation script returned error exit status 1
NonfreeKernelModules: nvidia
Package: bacula-director-mysql 2.2.8-5ubuntu7.1
PackageArchitecture: amd64
SourcePackage: bacula
Title: package bacula-director-mysql 2.2.8-5ubuntu7.1 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.24-19-generic x86_64

Revision history for this message
master_sleuth (jht-samba) wrote :
Revision history for this message
Ante Karamatić (ivoks) wrote :

MySQL wasn't running during bacula installation:

Processing configuration ...Failed to connect to database: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at -e line 5, <> line 1.
Failed to create database (incorrect admin username/password?)
It's also possible that mysql-server wasn't running. After install
is completed, you will need to make sure mysql-server is running
and that you supplied correct information. Try:
sudo dpkg-reconfigure bacula-director-mysql

Is mysql server running?

Changed in bacula:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
master_sleuth (jht-samba) wrote : Re: [Bug 240089] Re: package bacula-director-mysql 2.2.8-5ubuntu7.1 failed to install/upgrade: subprocess post-installation script returned error exit status 1

On Sunday 15 June 2008 02:56:42 Ante Karamatić wrote:
> MySQL wasn't running during bacula installation:
>
> Processing configuration ...Failed to connect to database: Can't connect to
> local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at -e
> line 5, <> line 1. Failed to create database (incorrect admin
> username/password?)
> It's also possible that mysql-server wasn't running. After install
> is completed, you will need to make sure mysql-server is running
> and that you supplied correct information. Try:
> sudo dpkg-reconfigure bacula-director-mysql
>
> Is mysql server running?
>
> ** Changed in: bacula (Ubuntu)
> Importance: Undecided => Medium
> Status: New => Triaged

Ah. Thank-you for assisting with this.

Cheers,
John T.

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

OK to close this bug?

Revision history for this message
master_sleuth (jht-samba) wrote :

On Sunday 15 June 2008 07:56:18 Ante Karamatić wrote:
> OK to close this bug?

Yes. Thank you.

- John T.

Ante Karamatić (ivoks)
Changed in bacula:
status: Triaged → Invalid
Revision history for this message
Matey (mehdi-1) wrote :

Upon apt-get upgrade I get this error exits with error (1)???

/var/lib/dpkg/info/bacula-director-mysql.postinst: line 157: /etc/init.d/bacula-director: No such file or directory
dpkg: error processing bacula-director-mysql (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 bacula-director-mysql
E: Sub-process /usr/bin/dpkg returned an error code (1)

I took those lines out of the file but still get this:

Setting up bacula-director-mysql (2.2.8-5ubuntu7.2) ...
dpkg (subprocess): unable to execute post-installation script: Exec format error
dpkg: error processing bacula-director-mysql (--configure):
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 bacula-director-mysql
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Dave Atkins (dave-h-atkins) wrote :

sudo dpkg-reconfigure bacula-director-mysql

That one worked for me many thanks

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.