Hello, If you are using Ubuntu 16.04 (seems like you are) and you are installing the Bacula version that they supply, please be aware that Ubuntu has used some linking options that are not compatible with Bacula and cause it to fail. Either you need to get a corrected version (see their bug reporting system), or if this is the linking bug that I am referring to (it looks like it), there is a workaround. The basic bug causes most (not all) of Bacula's default values to not be set. So, in this particular case, the Maximum Console Connections is 0 rather than the default value of 20 in the director. To work around it, you just need to explicitly specify the Maximum Console Connections in the bacula-dir.conf file. Note, there is a high probability that other default variables for other daemons are also affected.
For more details see: https://bugs.launchpad.net/bugs/1553563 Note, the bug refers to Bacula 7.4.x but the same problem will happen with other versions of Bacula built for Ubuntu 16.04. Best regards, Kern On 07/26/2016 04:13 PM, CRUCIALcane wrote: > My Bacula director is up and running but I can't connect to it with the > console. > > Connecting to Director 127.0.0.1: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://www.bacula.org/en/rel-manual/Bacula_Freque_Asked_Questi.html#SECTION00260000000000000000 > for help. > > > I know that this usualy means that the Passwords do not match, but I have > checked them endless times and also used the default config files with > prefilled passwords and still the same problem. > I have disabled the firewall, and the port appears to be open: 127.0.0.1:9101 > The Service seams to be up and running properly: > > bacula-director.service - LSB: Start Bacula Director at boot time > Loaded: loaded (/etc/init.d/bacula-director; bad; vendor preset: enabled) > Active: active (running) since Di 2016-07-26 15:57:20 CEST; 6min ago > Docs: man:systemd-sysv-generator(8) > Process: 10071 ExecStop=/etc/init.d/bacula-director stop (code=exited, > status=0/SUCCESS) > Process: 6339 ExecReload=/etc/init.d/bacula-director reload (code=exited, > status=0/SUCCESS) > Process: 10482 ExecStart=/etc/init.d/bacula-director start (code=exited, > status=0/SUCCESS) > Tasks: 3 > Memory: 1.1M > CPU: 43ms > CGroup: /system.slice/bacula-director.service > └─10494 /usr/sbin/bacula-dir -c > /etc/bacula/bacula-dir.conf -u bacula -g bacula > > > I am using Ubuntu 16.0.4 with Bacula 7.0.5 > I installed Bacula using apt-get bacula > I tried configuring the config files properly but it didn't help. > Standard configuration yields the same result > I am not using TLS > > Starting bacula in debugmode: > > sudo -H -u root bash -c ' bacula-dir -d 200 -c bacula-dir.conf' > bacula-dir: dird.c:194-0 Debug level = 200 > bacula-dir: address_conf.c:264-0 Initaddr 0.0.0.0:9101 > bacula-dir: runscript.c:284-0 runscript: debug > bacula-dir: runscript.c:285-0 --> RunScript > bacula-dir: runscript.c:286-0 --> > Command=/etc/bacula/scripts/make_catalog_backup.pl MyCatalog > bacula-dir: runscript.c:287-0 --> Target= > bacula-dir: runscript.c:288-0 --> RunOnSuccess=1 > bacula-dir: runscript.c:289-0 --> RunOnFailure=0 > bacula-dir: runscript.c:290-0 --> FailJobOnError=1 > bacula-dir: runscript.c:291-0 --> RunWhen=2 > bacula-dir: runscript.c:284-0 runscript: debug > bacula-dir: runscript.c:285-0 --> RunScript > bacula-dir: runscript.c:286-0 --> > Command=/etc/bacula/scripts/delete_catalog_backup > bacula-dir: runscript.c:287-0 --> Target= > bacula-dir: runscript.c:288-0 --> RunOnSuccess=1 > bacula-dir: runscript.c:289-0 --> RunOnFailure=0 > bacula-dir: runscript.c:290-0 --> FailJobOnError=1 > bacula-dir: runscript.c:291-0 --> RunWhen=1 > bacula-dir: jcr.c:128-0 read_last_jobs seek to 192 > bacula-dir: jcr.c:135-0 Read num_items=0 > bacula-dir: dir_plugins.c:148-0 Load dir plugins > bacula-dir: dir_plugins.c:150-0 No dir plugin dir! > jarvis@Jarvis:~$ bacula-dir: sql_create.c:345-0 In create mediatype > bacula-dir: sql_create.c:349-0 selectmediatype: SELECT MediaTypeId,MediaType > FROM MediaType WHERE MediaType='File1' > bacula-dir: sql_create.c:345-0 In create mediatype > bacula-dir: sql_create.c:349-0 selectmediatype: SELECT MediaTypeId,MediaType > FROM MediaType WHERE MediaType='File2' > Jarvis-dir: dird.c:323-0 Start UA server > Jarvis-dir: bnet_server.c:87-0 Addresses 127.0.0.1:9101 > Jarvis-dir: job.c:1528-0 wstorage=File1 > Jarvis-dir: job.c:1537-0 wstore=File1 where=Job resource > Jarvis-dir: job.c:1211-0 JobId=0 created > Job=*JobMonitor*.2016-07-26_16.07.54_01 > Jarvis-dir: dird.c:334-0 wait for next job > > > > When I try to connect with the bconsole the Debug says: > > > Jarvis-dir: bnet.c:566-0 who=client host=127.0.0.1 port=9101 > > > both director and console are run on the same sytem > > I would really appreciate any help. > > +---------------------------------------------------------------------- > |This was sent by breath1...@googlemail.com via Backup Central. > |Forward SPAM to ab...@backupcentral.com. > +---------------------------------------------------------------------- > > > > ------------------------------------------------------------------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > patterns at an interface-level. Reveals which users, apps, and protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity planning > reports.http://sdm.link/zohodev2dev > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports.http://sdm.link/zohodev2dev _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users