LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-21-2012, 05:25 AM   #1
knilux
Member
 
Registered: Mar 2012
Location: The Netherlands
Distribution: OpenSuSE
Posts: 42

Rep: Reputation: Disabled
Bacula: bacula director does not start


I want to test Bacula, so I installed it with rpm's on a OpenSUSE box. I use Webmin to configure and control most of the system. The problem is that the Bacula Director does not start. The Storage daemon and the File daemon do start.

I have checked if MySQL is running:

mysql -u bacula -p.
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 12
Server version: 5.5.25a-log Source distribution

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

This seems to be OK as far as I understand it.

To make sure Bacula can connect to MySQL through its socket, I deleted the socket file: rm /var/run/mysql/mysql.sock.
After that Bacula complains it cannot connect anymore because of the missing socket. This is correct, so there is a connection. After restarting MySQL the socket is back and the error is gone.

I was trying to find problems in the bacula config files like bacula-dir.conf etc., but I could not find any. It is just a default installation. So I experimented with different hostnames, IP adresses instead of localhost and so on. I used Webmin to configure a new backup and tried to start it then, but no luck. When I try to start Bacula with Webmin it says:
Failed to start Bacula: Failed to start bacula-dir:
Bootup mode systemd not supported

I have tried to find log files with information to figure out what can be wrong, but in /var/log/messages there is no info about bacula. The directory /var/log/bacula stays empty all the time.

I have googled for a week now, but still nothing useful. Can anyone here point me in the right direction how to figure out what is going wrong here? I have no clue. Thanks for any help.
 
Old 11-21-2012, 02:16 PM   #2
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,577
Blog Entries: 1

Rep: Reputation: Disabled
knilux:

Quit deleting stuff. It will never work if you don't stop that now.

Your "understanding" is incomplete.

terminal >
Code:
sudo zypper lr
rpm -qa | grep bacula
mysql -u bacula -p -e "show databases;"
netstat -tuna | grep 910[123]
output please.

References for director password:
bacula-dir.conf:
Director { # define myself
...
...
Password = "wyOBa3MKb3VrjtLTSIimqQpXChOkGjmtV6JwboszhkH4" # Console password
...
}

bconsole.conf:
Director {
Name = bacula-dir
DIRport = 9101
address = localhost
Password = "wyOBa3MKb3VrjtLTSIimqQpXChOkGjmtV6JwboszhkH4"
...
}
That value has to match in both the bacula-dir.conf and bconsole.conf.
Then restart bacula services and check with terminal >
Code:
bconsole > status all
Please let us know.

Subscribed with interest,

JJ

Last edited by Habitual; 11-21-2012 at 03:45 PM.
 
Old 11-22-2012, 08:57 AM   #3
knilux
Member
 
Registered: Mar 2012
Location: The Netherlands
Distribution: OpenSuSE
Posts: 42

Original Poster
Rep: Reputation: Disabled
Habitual:

Thanks for answering. Indeed, my understanding is incomplete. Below is the output of the commands you gave me. It looks like something is wrong with port 9101? Firewall is off.

Hope this info helps diagnosing. Thanks.


Output of zypper lr:
# | Alias | Naam | Ingeschakeld | Vernieuwen
---+---------------------------+------------------------------------+--------------+-----------
1 | Bacula | Bacula | Ja | Ja
2 | downloads@root | downloads@root | Ja | Ja
3 | openSUSE-12.2-1.6 | openSUSE-12.2-1.6 | Ja | Nee
4 | repo-debug | openSUSE-12.2-Debug | Nee | Ja
5 | repo-debug-update | openSUSE-12.2-Update-Debug | Nee | Ja
6 | repo-debug-update-non-oss | openSUSE-12.2-Update-Debug-Non-Oss | Nee | Ja
7 | repo-non-oss | openSUSE-12.2-Non-Oss | Ja | Ja
8 | repo-oss | openSUSE-12.2-Oss | Ja | Ja
9 | repo-source | openSUSE-12.2-Source | Nee | Ja
10 | repo-update | openSUSE-12.2-Update | Ja | Ja
11 | repo-update-non-oss | openSUSE-12.2-Update-Non-Oss | Ja | Ja

--

output of rpm -qa | grep bacula
bacula-fd-5.2.6-1.13.x86_64
bacula-catalog-sqlite3-5.2.6-1.13.x86_64
bacula-bconsole-5.2.6-1.13.x86_64
bacula-tools-5.2.6-1.13.x86_64
bacula-sd-5.2.6-1.13.x86_64
bacula-sql-5.2.6-1.13.x86_64
bacula-updatedb-5.2.6-1.13.x86_64
bacula-libs-5.2.6-1.13.x86_64
bacula-dir-5.2.6-1.13.x86_64
bacula-sqlite3-5.2.6-1.13.x86_64

--

output of mysql -u bacula -p -e "show databases;"
Enter password: <password>
+--------------------+
| Database |
+--------------------+
| information_schema |
| bacula |
| mysql |
| performance_schema |
+--------------------+

Output of netstat -tuna | grep 910[123]
tcp 0 0 0.0.0.0:9102 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9103 0.0.0.0:* LISTEN

(note: 9101 is missing here....)

--

Bacula-dir:

Director { # define myself
Name = linux-amuc-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/usr/lib64/bacula/query.sql"
WorkingDirectory = "/var/lib/bacula"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 1
Password = "u45BmKkzEg/ufXD6JCfYNQJDbNmmjlDILNcUzr8e1D/V" # Console password
Messages = Daemon

--

Bconsole:

Director {
Name = linux-amuc-dir
DIRport = 9101
address = 192.168.100.27
Password = "u45BmKkzEg/ufXD6JCfYNQJDbNmmjlDILNcUzr8e1D/V"

(note: passwords match)

--
output of bconsole > status all:

Copyright (C) 2000-2012 Free Software Foundation Europe e.V.

Version: 5.2.6 (21 February 2012) x86_64-suse-linux-gnu suse 5.x

Usage: bconsole [-s] [-c config_file] [-d debug_level]
-D <dir> select a Director
-l list Directors defined
-c <file> set configuration file to file
-d <nn> set debug level to <nn>
-dt print timestamp in debug output
-n no conio
-s no signals
-u <nn> set command execution timeout to <nn> seconds
-t test - read configuration and exit
-? print this message.

I tried bconsole -l:
linux-amuc-dir

--
 
Old 11-23-2012, 08:41 AM   #4
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,577
Blog Entries: 1

Rep: Reputation: Disabled
What version of OpenSUSE are you using and where did these RPMs come from?
Did you install manually, or use something like OBS or another web-enabled install for OpenSUSE?

Do you have to have 5.2.6 of bacula?

Please let me know, and Please use [code][/code] tags around your
Code:
script(s), or script(s)|command output.
Thank you,
 
Old 11-23-2012, 11:10 AM   #5
knilux
Member
 
Registered: Mar 2012
Location: The Netherlands
Distribution: OpenSuSE
Posts: 42

Original Poster
Rep: Reputation: Disabled
I use OpenSUSE 12.2 and Bacula 5.2.6.
I am not sure what you mean by using "code-tags". These tags should be at the beginning and end of the code to emphasize it?

I will start from scratch and rebuild the server. Maybe it is all messed up now. I will post the results on Monday. Hope you can help me then. Thanks.
 
Old 11-24-2012, 07:52 PM   #6
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,577
Blog Entries: 1

Rep: Reputation: Disabled
God, I hope you are not re-installing the OS just because bacula-dir won't start.
 
Old 11-24-2012, 08:05 PM   #7
corp769
Guru
 
Registered: Apr 2005
Posts: 5,814

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
Quote:
Originally Posted by knilux View Post
I use OpenSUSE 12.2 and Bacula 5.2.6.
I am not sure what you mean by using "code-tags". These tags should be at the beginning and end of the code to emphasize it?

I will start from scratch and rebuild the server. Maybe it is all messed up now. I will post the results on Monday. Hope you can help me then. Thanks.
Noooo! Please don't restart from scratch... there is no need, lol.
 
Old 11-25-2012, 09:35 AM   #8
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,577
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by knilux View Post
...I am not sure what you mean by using "code-tags". These tags should be at the beginning and end of the code to emphasize it?...
See http://www.linuxquestions.org/questi...do=bbcode#code
 
Old 11-26-2012, 08:17 AM   #9
knilux
Member
 
Registered: Mar 2012
Location: The Netherlands
Distribution: OpenSuSE
Posts: 42

Original Poster
Rep: Reputation: Disabled
Code:
God, I hope you are not re-installing the OS just because bacula-dir won't start.
Code:
Noooo! Please don't restart from scratch... there is no need, lol.
Oops! I am afraid I did....LOL!
But the good news is: it only takes me 5 minutes to rebuild the server. Before I started I built a very basic server on a VMware ESXi machine. I only had to copy the template to a new virtual machine.

But I think I solved the problem:

I copied my OpenSUSE 12.2 template to a new virtual machine and added Bacula 5.6.2 and MysQL 5.5.25 with Yast. I could start MySQL with the runlevel editor without any problem. But in the standard config there are only sample databases. I figured that there had to be a way to create the Bacula database. I could not find any reference of that on the Bacula site and the documentation. If anybody knows where it is, please let me know. Maybe I have overlooked it.

I looked around in the new system and found a directory with scripts that looked like config scripts. I suppose these are used when Bacula is compiled by hand with "configure" and "make" commands. The directory in OpenSUSE is: /usr/lib64/bacula. I used the scripts:
create_bacula_database
make_bacula_tables
grant_bacula_privileges

After that I could start Bacula-director, Bacula-SD and Bacula-FD. The only problem was that Webmin still was not able to communicate with Bacula. I found out that this had to do with a missing Perl module: perl-DBD-mysql 4.021-2.1.2. After installing that it all worked fine.

I am not sure whether this procedure is the right one or not. So in case anyone has any comment on that, please let me know. I have experimented with different settings through Webmin, but sometimes the director stops running. This has to do with a setting that has some kind of conflict in the configuration file. As soon as I copy back the original (working) /etc/bacula/bacula-dir.conf file, it all works again. I am not sure where this comes from. It may be from Webmin or Bacula. Does anyone know? I want to test the Bacula web interface to see if that works better than Webmin.
 
Old 12-13-2012, 08:41 AM   #10
knilux
Member
 
Registered: Mar 2012
Location: The Netherlands
Distribution: OpenSuSE
Posts: 42

Original Poster
Rep: Reputation: Disabled
Update:

The Webmin error "systemd not supported" was easily solved by using Yast and add the package "sysv". Yast will complain about a conflict with the current systemd, so that package had to be removed. After that and installing the sysv everything worked fine. Now Webmin was able to restart Bacula, which made configuring a lot easier.

Next challenge is to encrypt the data channel to make secure backups over the internet. I will start a new post for that.
 
Old 12-14-2012, 05:18 AM   #11
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,557
Blog Entries: 28

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Quote:
Originally Posted by knilux View Post
I figured that there had to be a way to create the Bacula database. I could not find any reference of that on the Bacula site and the documentation. If anybody knows where it is, please let me know.
Bacula Main Reference, section 38.2 Installing and Configuring MySQL Phase II. Or the equivalent for PostgreSQL or SQLite.
 
Old 12-14-2012, 05:23 AM   #12
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,557
Blog Entries: 28

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Quote:
Originally Posted by knilux View Post
... but sometimes the director stops running.
Any error messages? The log location is dependent on how Bacula was built; I do not have access to the sort of system you are running so do not know where yours might be.

If you are unsure about webmin or Bacula's own web interface, and whether they are causing problems, how about administering Bacula from the command line (as it was originally designed for) to ensure you have a working system before trying a web interface?

Last edited by catkin; 12-14-2012 at 05:24 AM. Reason: webadmin -> webmin
 
Old 12-14-2012, 05:57 AM   #13
knilux
Member
 
Registered: Mar 2012
Location: The Netherlands
Distribution: OpenSuSE
Posts: 42

Original Poster
Rep: Reputation: Disabled
Code:
Bacula Main Reference, section 38.2 Installing and Configuring MySQL  Phase II. Or the equivalent for PostgreSQL or SQLite.
Thanks Catkin! Just what I was looking for at this very moment! (I am writing my "HOWTO" document now for this project)

Code:
Any error messages?
Unfortunately there were no errormessages in the logfile (/var/log/messages) So it was hard to find out what the problem was. I experimented a bit with the commandline to get used to it. But once this all works someone else will have to use the system and then a GUI is more convenient.

Thanks for your suggestions!

(BTW in the meantime I also solved the encryption problem)
 
Old 12-15-2012, 01:30 AM   #14
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,557
Blog Entries: 28

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Quote:
Originally Posted by knilux View Post
[CODE]Unfortunately there were no errormessages in the logfile (/var/log/messages) ...
Bacula logs to its own log file. Depending on how Bacula is packaged for your system it could be in one of several locations, maybe: /opt/bacula/working/*log, /var/opt/bacula/*log, /var/log/bacula/*log. You could try find / -type d -iname '*bacula*' for a list of directories to look in/under.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 with tapes dubnik Linux - Enterprise 7 05-31-2012 03:07 AM
bacula wont start mrjoli021 Linux - Server 2 01-11-2012 04:37 PM
bacula on redhat bulldozers Linux - Software 5 10-27-2009 11:25 AM
Bacula and encryption tqz Linux - Newbie 4 10-02-2009 05:12 AM
Bacula TLS how-to? yanik Linux - Software 1 10-06-2006 03:13 AM


All times are GMT -5. The time now is 04:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration