bacula director (mysql) error in generated conf file

Bug #830108 reported by Marek Haluska
48
This bug affects 6 people
Affects Status Importance Assigned to Milestone
bacula (Ubuntu)
Fix Released
Medium
Unassigned
Natty
Won't Fix
Undecided
Unassigned
Oneiric
Won't Fix
Undecided
Unassigned

Bug Description

Description: Ubuntu 11.04
Release: 11.04

bacula-director-mysql:
  Installed: 5.0.3-0ubuntu2
  Candidate: 5.0.3-0ubuntu2
  Version table:
 *** 5.0.3-0ubuntu2 0
        500 http://cz.archive.ubuntu.com/ubuntu/ natty/main amd64 Packages
        100 /var/lib/dpkg/status

Error in initial configuration file /etc/bacula/bacula-dir.conf

I received following log error:

20-Aug 16:46 bacula-dir JobId 0: Fatal error: Could not open Catalog "MyCatalog", database "bacula;".
20-Aug 16:46 bacula-dir JobId 0: Fatal error: mysql.c:194 Unable to connect to MySQL server.
Database=bacula; User=bacula
MySQL connect failed either server not running or your authorization is incorrect.
20-Aug 16:46 bacula-dir ERROR TERMINATION
Please correct configuration file: /etc/bacula/bacula-dir.conf

And it's really easy to fix it:

> diff /etc/bacula/bacula-dir.conf.orig /etc/bacula/bacula-dir.conf
236c236
< dbname = "bacula;" DB Address = ""; dbuser = "bacula"; dbpassword = "bacula"
---
> dbname = "bacula"; DB Address = ""; dbuser = "bacula"; dbpassword = "bacula"

Tags: bacula

Related branches

Revision history for this message
Dave Walker (davewalker) wrote :

Thanks for the bug report, looks like a typo has been introduced with the ;.

/etc/bacula/bacula-dir.conf:
dbname = "bacula;" should be dbname = "bacula";

Changed in bacula (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Foster McLane (fkmclane) wrote :

I had this problem too, has it been fixed?

Revision history for this message
Marek Haluska (marek-haluska) wrote :

Problem is not fixed yet, package is still in same version:

# apt-cache show bacula-director-mysql|grep Version
Version: 5.0.3-0ubuntu2

BTW, this is not problem, only typo in ";" position. So after installation just change line 236:

- setup without dbconfig:
   dbname = ";" DB Address = ""; dbuser = ""; dbpassword = ""
   ->
   dbname = ""; DB Address = ""; dbuser = ""; dbpassword = ""

- setup using dbconfig:

   dbname = "bacula;" DB Address = ""; dbuser = "bacula"; dbpassword = "***"
   ->
   dbname = "bacula"; DB Address = ""; dbuser = "bacula"; dbpassword = "***"

Revision history for this message
Fabian Köster (maestro-alubia) wrote :

The problem persists in Ubuntu Oneiric 11.10 final.

Version of bacula package is 5.0.3-1ubuntu5

Revision history for this message
Kern Sibbald (kern) wrote :

Someone must have fat fingered something because upstream we have never had the semicolon misplaced
as in the above problem.

summary: - bacula director eror in initial conf file
+ bacula director error in initial conf file
summary: - bacula director error in initial conf file
+ bacula director (mysql) error in generated conf file
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bacula (Ubuntu Natty):
status: New → Confirmed
Changed in bacula (Ubuntu Oneiric):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bacula - 5.2.5-0ubuntu3

---------------
bacula (5.2.5-0ubuntu3) precise; urgency=low

  * fix db-common configuration of database name (LP: #830108)

  [ David Stenglein ]
  * improve make_catalog_backup_awk in sqlite3 to dump catalog only once
    rather than for each line in bacula-dir.conf (LP: #614320)
 -- Scott Moser <email address hidden> Fri, 10 Feb 2012 10:04:35 -0500

Changed in bacula (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Rolf Leggewie (r0lf) wrote :

natty has seen the end of its life and is no longer receiving any updates. Marking the natty task for this ticket as "Won't Fix".

Changed in bacula (Ubuntu Natty):
status: Confirmed → Won't Fix
Revision history for this message
Rolf Leggewie (r0lf) wrote :

oneiric has seen the end of its life and is no longer receiving any updates. Marking the oneiric task for this ticket as "Won't Fix".

Changed in bacula (Ubuntu Oneiric):
status: Confirmed → Won't Fix
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.