http://techwiki.co.uk/index.php?title=Troubleshooting_Bacula&feed=atom&action=historyTroubleshooting Bacula - Revision history2024-03-29T13:10:34ZRevision history for this page on the wikiMediaWiki 1.34.0http://techwiki.co.uk/index.php?title=Troubleshooting_Bacula&diff=110&oldid=prevAdam.birds: Created page with "===Initial Steps=== '''1. Firstly check that Bacula is installed and running.''' The version on Windows needs to be 5.0.3 (or potentially greater). If it's 3.0.3a then you'll..."2016-04-28T11:19:57Z<p>Created page with "===Initial Steps=== '''1. Firstly check that Bacula is installed and running.''' The version on Windows needs to be 5.0.3 (or potentially greater). If it's 3.0.3a then you'll..."</p>
<p><b>New page</b></p><div>===Initial Steps===<br />
'''1. Firstly check that Bacula is installed and running.'''<br />
<br />
The version on Windows needs to be 5.0.3 (or potentially greater). If it's 3.0.3a then you'll need to re-install with the correct version.<br />
<br />
<br />
'''2. Check server is on IPv6.'''<br />
<br />
A server needs a spare NIC to move onto an IPv6 backup network. If all NICs are in use then you'll need to add a USB Nic.<br />
<br />
'''FYI: USB NICs are incompatible with VMWare Hardware Nodes!!'''<br />
<br />
You should then be able to follow this KB:<br />
<br />
[[Bacula Linux IPv6 Setup]]<br />
<br />
'''3. Check the client can communicate to the backup server on 9103'''<br />
<br />
telnet backupserverIPv6address 9103<br />
<br />
Connection refused - Outbound 9103 on the client is blocked. Check ip6tables and Windows Firewall.<br />
<br />
Check here for ip6tables: <br />
[[Bacula Linux IP6Tables Rules]]<br />
<br />
A lot of CPanel servers are now running the ConfigServer Firewall which will automatically start ip6tables. You can check using 'ps aufx | grep lfd'. If they are, give them the IPv6 address of the backup server and ask them to open 9102 inbound and 9103 outbound to/from this address.<br />
<br />
'''4. Check the backup server can connect to the client on 9102.'''<br />
<br />
<pre>telnet clientserverIPv6address 9102</pre><br />
<br />
Connection refused - 9102 is blocked inbound. Check software firewalls as above.<br />
<br />
'''5. Check a status client'''<br />
<br />
If the server connects over IPv4 check all of the above, and rebuild_backups. You should see it then connects over IPv6.<br />
<br />
<pre>Connecting to Client srv-94_229_167_17 at 2a02:22d0:bac:0:20e:cff:fe31:8801:9102</pre><br />
<br />
===Common backup errors===<br />
'''1. Network connection error'''<br />
<br />
This one is obvious, but is often caused by reboots. Check the uptime on the server. <br />
<br />
Ensure you're able to run status client successfully. Run a test backup if necessary to ensure data is able to transfer.<br />
<br />
'''2. Bad Response to Open Command'''<br />
<br />
This can be caused by the hostname in the bacula-fd.conf file not being set to a FQDN. Ensure this is set to the hostname of the server.<br />
'''3. Input/Output Error'''<br />
<br />
I've only ever seen this as a result of a busy disk on the client. In this case it's worth seeing if we can check disk I/O at the time backups run, and to see if there's a more suitable time the backup can be run at.<br />
<br />
This can also be caused by a corrupt volume on the backup server which can be resolved by deleting the error-ed volumes from within bconsole.<br />
<br />
'''4. bconsole can't connect to the director '''<br />
<br />
Firstly check if the disk is full (if it is, move MySQL to /home and run the reclaim backups script). It may also be caused by /boot being full as well.<br />
<br />
To help clear out the '''/boot''' partition you can clear out the old kernels. To do this take a look at the following page:<br />
<br />
[[Clear Out Old Kernels]]<br />
<br />
To move MySQL to the '''/home''' partition you can take a look at the following page:<br />
<br />
[[Move MySQL To Home Partition]]<br />
<br />
'''BSMTP Tickets'''<br />
<br />
You can test bsmtp by calling it directly with the debug flag<br />
<br />
<pre>/usr/sbin/bsmtp -h 127.0.0.1 -f example@example.com -s "Bacula: %t %e of %c %l" %r -d 50</pre><br />
<br />
This should output any errors or show if it's sending out correctly.<br />
<br />
[[Category:Bacula]]<br />
[[Category:Backups]]<br />
[[Category:Linux]]<br />
[[Category:Windows]]<br />
[[Category:Contents]]</div>Adam.birds