bconsole does not connect to bacula-director
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Server papercuts |
Fix Released
|
Medium
|
Ante Karamatić | ||
bacula (Ubuntu) |
Fix Released
|
Medium
|
Ante Karamatić |
Bug Description
Binary package hint: bacula
Description: Ubuntu lucid (development branch)
Release: 10.04
ii bacula-client 3.0.2-3ubuntu1 network backup, recovery and verification -
ii bacula-common 3.0.2-3ubuntu1 network backup, recovery and verification -
ii bacula-common-mysql 3.0.2-3ubuntu1 network backup, recovery and verification -
ii bacula-console 3.0.2-3ubuntu1 network backup, recovery and verification -
ii bacula-
ii bacula-
ii bacula-doc 2.4.4-1 Documentation for Bacula
ii bacula-fd 3.0.2-3ubuntu1 network backup, recovery and verification -
ii bacula-sd 3.0.2-3ubuntu1 network backup, recovery and verification -
ii bacula-sd-mysql 3.0.2-3ubuntu1 network backup, recovery and verification -
ii bacula-server 3.0.2-3ubuntu1 network backup, recovery and verification -
ii bacula-traymonitor 3.0.2-3ubuntu1 network backup, recovery and verification -
How to reproduce:
1. Install bacula and dependencies, make sure everything is up and running.
2. try to connect to bacula director with bconsole. The connection will fail after some time exausting:
root@localhost:~# bconsole
Connecting to Director localhost:9101
Director authorization problem.
Most likely the passwords do not agree.
If you are using TLS, there may have been a certificate validation error during the TLS handshake.
Please see http://
MySQL is up and running, "bacula"-datebase is accessible for user "bacula":
root@aesculap:~# mysql -hlocalhost -ubacula -ppontresina bacula
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 58
Server version: 5.1.37-1ubuntu7 (Ubuntu)
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show tables;
+------
| Tables_in_bacula |
+------
| BaseFiles |
| CDImages |
| Client |
| Counters |
| Device |
| File |
| FileSet |
| Filename |
| Job |
| JobHisto |
| JobMedia |
| Location |
| LocationLog |
| Log |
| Media |
| MediaType |
| Path |
| Pool |
| Status |
| Storage |
| UnsavedFiles |
| Version |
+------
22 rows in set (0,00 sec)
Passwords are the same in "/etc/bacula/
from "/etc/bacula/
Director { # define myself
Name = localhost-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/etc/bacula/
WorkingDirectory = "/var/lib/bacula"
PidDirectory = "/var/run/bacula"
Maximum Concurrent Jobs = 1
Password = "JeZLsj+
Messages = Daemon
DirAddress = 127.0.0.1
}
from "/etc/bacula/
Director {
Name = localhost-dir
DIRport = 9101
address = localhost
Password = "JeZLsj+
}
Bacula does not work at all, even if it starts without any error message! bacula-director is up and running:
bacula-fd 1987 root 3u IPv4 7304 0t0 TCP *:9102 (LISTEN)
bacula-di 2847 bacula 4u IPv4 15926 0t0 TCP 127.0.0.1:9101 (LISTEN)
bacula-di 2847 bacula 5u IPv4 15935 0t0 TCP 127.0.0.
bacula-co 2852 root 3u IPv4 15934 0t0 TCP 127.0.0.
Having bacula-console started I am told a connection is established. But there is not output at all! Testing against a system not having bacula-director running, I am immediately told:
root@localhost:~# bconsole
Connecting to Director localhost:9101
16-Jan 14:29 bconsole JobId 0: Fatal error: bsock.c:135 Unable to connect to Director daemon on localhost:9101. ERR=Connection refused
Related branches
Changed in bacula (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in server-papercuts: | |
status: | New → Fix Released |
Changed in server-papercuts: | |
importance: | Undecided → Medium |
milestone: | none → ubuntu-10.04-beta-1 |
I can confirm this issue. /bugs.launchpad .net/karmic- backports/ +bug/475347.
It seems the same issue as in https:/
If you compile Bacula with LDFLAGS=" ", the console can connect to the director