bconsole to Bacula Director fails with authorization problem message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bacula (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
* In a plain, new Bacula installation on Ubuntu 16.04 Xenial (packages: bacula-
# 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://
The bug in #508382 sounds very similar, but recompiling with empty LDFLAGS does not fix it.
[Test Case]
* Install bacula-console and attempt to run `bconsole`. It will fail to connect with an "authorization problem" (which is actually not the case). The fixed package will succesfully connect.
[Regression Potential]
* The fix for this bug is to change the linker flags (via DEB_MAINT_
* The regression potential seems low, as it only affects bacula's internal code, which currently does not work at all.
tags: | added: xenial |
Changed in bacula (Ubuntu): | |
importance: | Undecided → Medium |
Changed in bacula (Ubuntu): | |
assignee: | Norvald H. Ryeng (nryeng) → nobody |
Changed in bacula (Ubuntu): | |
assignee: | nobody → Nish Aravamudan (nacc) |
Changed in bacula (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in bacula (Ubuntu Xenial): | |
status: | New → In Progress |
Changed in bacula (Ubuntu): | |
assignee: | Nish Aravamudan (nacc) → nobody |
Changed in bacula (Ubuntu Xenial): | |
assignee: | nobody → Nish Aravamudan (nacc) |
Changed in bacula (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in bacula (Ubuntu Xenial): | |
assignee: | Nish Aravamudan (nacc) → nobody |
The only (debug) message I got from the Director upon an unsuccessful bconsole connection was the one produced in lib/bnet.c:566. So I debugged it and got this backtrace:
#0 init_bsock (jcr=jcr@entry=0x0, sockfd= sockfd@ entry=7, who=who@ entry=0x7efce66 e958b "client", host@entry= 0x7efce32b1320 "127.0.0.1", port=9101, client_ addr=client_ addr@entry= 0x7efce32b0eb0) at bnet.c:565 addr_list@ entry=0x20a65d8 , max_clients=0, wq=client_ wq@entry= 0x688960 <ua_workq>, client_ request= handle_ client_ request@ entry=0x4534b0 <handle_ UA_client_ request( void*)> ) at bnet_server.c:222 entry=0x20a65d8 ) at ua_server.c:69 launcher (x=0x2108498) at lockmgr.c:1091 2700) at pthread_ create. c:333 unix/sysv/ linux/x86_ 64/clone. S:109
host=
#1 0x00007efce66b605e in bnet_thread_server (addr_list=
client_
handle_
#2 0x000000000045312c in connect_thread (arg=arg@
#3 0x00007efce66e6bdf in lmgr_thread_
#4 0x00007efce648966a in start_thread (arg=0x7efce32b
#5 0x00007efce5e3d01d in clone () at ../sysdeps/
It is strange, that bnet_thread_ server( ) had been called with max_clients=0. In the calling location in dird/ua_server.c:69 "director- >MaxConsoleConn ect" is used as a parameter. "MaximumConsole Connections" seems to be the according Director resource configuration variable (bacula-dir.conf) and it was not present in my configuration. While the documentation at http:// www.bacula. org/7.0. x-manuals/ en/main/ Configuring_ Director. html#SECTION001 520000000000000 000 clearly states a default value of 20, bconsole connections suddenly worked after explicitly setting it.
Further problems were an empty scheduled job list and manually started backup jobs just "waiting on max Client jobs". To get Bacula basically working on Xenial it seems, that at least the following configuration variables of bacula-dir.conf need explicit statements:
- In the Director resource: eConnections
MaximumConsol
- In the Job resources:
Enabled
- In the Client resources:
Maximum Concurrent Jobs