Project

General

Profile

Bug #441

bacula-fd daemon on Toushirou seems unreachable from Korutopi

Added by Pierre-Louis Bonicoli over 4 years ago.

Status:
Resolved
Priority:
Normal
Category:
Service :: Backup
Start date:
2015-02-18
Due date:
% Done:

100%

Estimated time:
Patch Available:
Confirmed:
Yes
Branch:
Entity:
DuckCorp
Security:
No
Help Needed:

Description

After a reboot of Toushirou, bacula-fd daemon on Toushirou seems unreachable from Korutopi:

18-Feb 06:00 Korutopi-dir JobId 12150: Start Backup JobId 12150, Job=Toushirou-critical-data.2015-02-18_06.00.01_19
18-Feb 06:00 Korutopi-dir JobId 12150: There are no more Jobs associated with Volume "Vol-CriticalData-Incr-0301". Marking it purged.
18-Feb 06:00 Korutopi-dir JobId 12150: All records pruned from Volume "Vol-CriticalData-Incr-0301"; marking it "Purged" 
18-Feb 06:00 Korutopi-dir JobId 12150: Recycled volume "Vol-CriticalData-Incr-0301" 
18-Feb 06:00 Korutopi-dir JobId 12150: Using Device "FileStorage" 
18-Feb 06:00 Korutopi-dir JobId 12150: Warning: bsock.c:127 Could not connect to Client: Toushirou-fd on toushirou.duckcorp.org:9102. ERR=Connection refused
Retrying ...
18-Feb 06:03 Korutopi-dir JobId 12150: Fatal error: bsock.c:133 Unable to connect to Client: Toushirou-fd on toushirou.duckcorp.org:9102. ERR=Connection refused
18-Feb 06:03 Korutopi-dir JobId 12150: Fatal error: No Job status returned from FD.
18-Feb 06:03 Korutopi-dir JobId 12150: Error: Bacula Korutopi-dir 5.2.6 (21Feb12):

Bacula-fd was listening on 127.0.1.1 instead of

[root@Toushirou ~]# netstat -lntp |grep 9102
tcp        0      0 127.0.1.1:9102          0.0.0.0:*               LISTEN      6597/bacula-fd  
tcp6       0      0 2001:67c:1740:9001:9102 :::*                    LISTEN      6597/bacula-fd  
[root@Toushirou ~]# /etc/init.d/bacula-fd restart
[ ok ] Stopping Bacula File daemon...: bacula-fd.
[ ok ] Starting Bacula File daemon...: bacula-fd.
[root@Toushirou ~]# netstat -lntp |grep 9102
tcp        0      0 193.200.42.177:9102     0.0.0.0:*               LISTEN      407/bacula-fd   
tcp6       0      0 2001:67c:1740:9001:9102 :::*                    LISTEN      407/bacula-fd   

Same problem is described here.

Workaround (not tested because test need to restart toushirou):
use overrides of insserv, adding $network to Required-Start:

$ cat /etc/insserv/overrides/bacula-fd
### BEGIN INIT INFO
# Provides:          bacula-fd
# Required-Start:    $remote_fs $network $syslog
# Required-Stop:     $remote_fs $syslog
# Should-Start:      bacula-sd
# Should-Stop:       bacula-sd
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start Bacula File Daemon at boot time
# Description:       bacula-fd installes on machine to be backuped up. It is
#                    responsible for providing the file attributes and data
#                    when requested by the Director. It is also responsible
#                    for the file system dependent part of restoring the file
#                    attributes and data during a recovery operation.
### END INIT INFO

Also available in: Atom PDF