LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-30-2016, 12:41 PM   #1
ccar_support
Member
 
Registered: Jan 2007
Posts: 40

Rep: Reputation: 1
Bacula issue on Ubuntu server


Ubuntu server 16.04.1 LTS
Bacula 7.0.5 installed from apt
MySQL up and running
Bacula DIR, FD, and SD processes started and running

When I try to start "bconsole", it says "Connecting to Director" and then just fails with no output. After the fail, the bacula-dir process is dead and the following is found in syslog:

------
bconsole: bsock.c:118 Unable to connect to Director daemon on battlestar:9101. ERR=Connection refused
------

I'm looking for suggestions on what may be wrong here. I brought over my bacula-dir config from an old bacula v5 server and used that as a base for my v7.0.5 bacula-dir. I don't see anything that would cause a problem in the bacula-dir or bconsole.conf files. Thanks
 
Old 08-30-2016, 01:05 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Check "Password = " string in /etc/bacula/bacula-dir.conf and /etc/bacula/bacula-sd.conf.
Should be identical.

See also https://help.ubuntu.com/community/Bacula
 
Old 08-30-2016, 01:32 PM   #3
ccar_support
Member
 
Registered: Jan 2007
Posts: 40

Original Poster
Rep: Reputation: 1
I'm not sure if the passwords are supposed to match or not. This version has passwords set by default upon installation so there are individual passwords for:

DIRPASSWD - director password in bacula-dir.conf
DIRMPASSWD - console monitor password in bacula-dir.conf
SDPASSWD - Storgae daemon password found in bacula-sd.conf and bacula-dir.conf
SDMPASSWD - Restricted Director password in bacula-sd.conf
FDPASSWD - File Daemon password in bacula-fd.conf and bacula-dir.conf
FDMPASSWD - Restricted Director password in bacula-fd.conf

So in the bacula-sd.conf file, under "List Directors who are permitted to contact Storage daemon", it uses the SDPASSWD password. Same goes for the bacula-fd.conf using the FDPASSWD password.

Is that not correct? I assumed it was since that was how the default installation set it up.

Cheers


UPDATE:

On a whim I tried using the DIRPASSWD for all of it and I get the same result. I think the process is being killed before any password authentication happens.

Last edited by ccar_support; 08-30-2016 at 03:09 PM.
 
Old 08-30-2016, 05:10 PM   #4
ccar_support
Member
 
Registered: Jan 2007
Posts: 40

Original Poster
Rep: Reputation: 1
I'm beginning to think this is a database issue. I have the following set in bacula-dir.conf

-------------------------------------------
# Generic catalog service
Catalog {
Name = MyCatalog
dbname = "bacula"; DB Address = "localhost"; dbuser = "bacula"; dbpassword = DATABASEPASSWORD
}
-------------------------------------------



When I log into MySQL using the dbuser and dbpassword above, I see the following:

mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| bacula |
+--------------------+
2 rows in set (0.00 sec)

mysql> use bacula;
Reading table information for completion of table and column names
Database changed

mysql> show tables;
+------------------+
| Tables_in_bacula |
+------------------+
| File |
| Filename |
| MediaType |
| Path |
| RestoreObject |
| Storage |
+------------------+
6 rows in set (0.00 sec)

And the mysql daemon appears to be running but still the director quits and gets killed when I try to run bconsole. This is frustrating.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bacula-dir not starting ; Unit bacula-dir.service entered failed state zalgo Linux - Software 2 04-09-2015 02:32 AM
[SOLVED] Bacula error message:Could not stat "/var/lib/bacula/bacula.sql": ERR=No such file or directory Learnix Linux - Server 2 11-18-2013 10:39 AM
[SOLVED] Bacula: bacula director does not start knilux Linux - Server 13 12-15-2012 12:30 AM
Ubuntu Bacula Tape Dayago05 Linux - Server 2 06-30-2012 02:42 AM
[SOLVED] Ubuntu server 11.04 and Bacula 5.0.3 not working WhoAmI99 Linux - Server 1 04-07-2012 10:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration