SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Backup of remote PC "hangs" but no error message
Author Message
Post Backup of remote PC "hangs" but no error message 
I have got Bacula happily backing up /home directories, MySQL databases (MythTV DB) and the Bacula catalog itself on our main PC to SLR7 tape.

I now want to backup /home directories on a laptop on our home LAN as well. I have installed and configured bacula-fd on the laptop. The laptop firewall has "Bacula Client" (port 9102) open and the main PC has ports 9101-3 open. I can see remote client status fine in Bacula console. I have created a remote backup job - the bootstrap .bsr file exists and has correct ownership and permissions.

When I run the job it starts but nothing happens on either the remote laptop or the main PC (where the Bacula Director and backup storage devices are). There is no sign of any disk or network activity on either system, and no error messages in syslog or other log files, or in the Bacula log. The job just sits there with "Job Bytes" at zero, with nothing happening but no sign of any error message. Same happens with backup to file, so not related to the tape device. The remote laptop fileset is defined in the Director config - the file paths don't specify host, so I assume they are interpreted in the context of the remote bacula-fd. Is this correct?

Anyone have any ideas what I should do / check? I am sure it is something very obvious...

Thanks,
Andrew

View user's profile Send private message
Post Backup of remote PC "hangs" but no error message 
What is returned when you enter bconsole and type status client <your-laptop>? When you start the job, type 'status dir' in your bconsole and post the status of the job.

2012/6/27 AndyW <bacula-forum < at > backupcentral.com ([email]bacula-forum < at > backupcentral.com[/email])>
I have got Bacula happily backing up /home directories, MySQL databases (MythTV DB) and the Bacula catalog itself on our main PC to SLR7 tape.

I now want to backup /home directories on a laptop on our home LAN as well.  I have installed and configured bacula-fd on the laptop.  The laptop firewall has "Bacula Client" (port 9102) open and the main PC has ports 9101-3 open.  I can see remote client status fine in Bacula console.  I have created a remote backup job - the bootstrap .bsr file exists and has correct ownership and permissions.

When I run the job it starts but nothing happens on either the remote laptop or the main PC (where the Bacula Director and backup storage devices are).  There is no sign of any disk or network activity on either system, and no error messages in syslog or other log files, or in the Bacula log.  The job just sits there with "Job Bytes" at zero, with nothing happening but no sign of any error message.  Same happens with backup to file, so not related to the tape device.  The remote laptop fileset is defined in the Director config - the file paths don't specify host, so I assume they are interpreted in the context of the remote bacula-fd.  Is this correct?

Anyone have any ideas what I should do / check?  I am sure it is something very obvious...

Thanks,
Andrew

+----------------------------------------------------------------------
|This was sent by andrew < at > wasielewski.co.uk ([email]andrew < at > wasielewski.co.uk[/email]) via Backup Central.
|Forward SPAM to abuse < at > backupcentral.com ([email]abuse < at > backupcentral.com[/email]).
+----------------------------------------------------------------------



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net ([email]Bacula-users < at > lists.sourceforge.net[/email])
https://lists.sourceforge.net/lists/listinfo/bacula-users




--
Att.


Post  
Client status output:

bacula-fd Version: 5.0.3 (04 August 2010) i386-redhat-linux-gnu redhat
Daemon started 27-Jun-12 16:39. Jobs: run=0 running=0.
Heap: heap=0 smbytes=16,077 max_bytes=19,460 bufs=60 max_bufs=85
Sizeof: boffset_t=8 size_t=4 debug=0 trace=0


"Status dir" after starting job includes:

Running Jobs:

Console connected at 28-Jun-12 07:09
JobId Level Name Status
======================================================================
1927 Full BackupHomeDir.2012-06-28_07.09.43_19 is waiting for Client bacula-fd-laptop to connect to Storage SLR7
====


View user's profile Send private message
Post Backup of remote PC "hangs" but no error message 
Op 28/06/2012 8:12, AndyW schreef:
Client status output:

bacula-fd Version: 5.0.3 (04 August 2010) i386-redhat-linux-gnu redhat
Daemon started 27-Jun-12 16:39. Jobs: run=0 running=0.
Heap: heap=0 smbytes=16,077 max_bytes=19,460 bufs=60 max_bufs=85
Sizeof: boffset_t=8 size_t=4 debug=0 trace=0

"Status dir" after starting job includes:

Running Jobs:

Console connected at 28-Jun-12 07:09
JobId Level Name Status
======================================================================
1927 Full BackupHomeDir.2012-06-28_07.09.43_19 is waiting for Client bacula-fd-laptop to connect to Storage SLR7
====

Have you tried turning off the firewall on the client completely to see
if it works when you do? It looks like the client is unable to connect
to the SD on it's port on the server, so you might have to allow
outgoing connections for that.
If it still doesn't work, turn off the firewall on the server and test
again, as it looks like either firewall could be the issue.

Regards,
Jeremy

**** DISCLAIMER ****
http://www.schaubroeck.be/maildisclaimer.htm

Post Backup of remote PC "hangs" but no error message 
Dumb question: are all the devices able to find each other on the network, and is bacula bound to the correct IP?

Not sure if that makes sense, but I've had issues where the FD or SD binds to local 127.0.1.1 address instead of the eth0 IP. Which was always an oversight on my part when configuring.
-----Original Message-----
From: AndyW <bacula-forum < at > backupcentral.com>
Date: Wed, 27 Jun 2012 23:12:42
To: <bacula-users < at > lists.sourceforge.net>
Reply-To: bacula-users < at > lists.sourceforge.net
Subject: [Bacula-users] Backup of remote PC "hangs" but no error message

Client status output:

bacula-fd Version: 5.0.3 (04 August 2010) i386-redhat-linux-gnu redhat
Daemon started 27-Jun-12 16:39. Jobs: run=0 running=0.
Heap: heap=0 smbytes=16,077 max_bytes=19,460 bufs=60 max_bufs=85
Sizeof: boffset_t=8 size_t=4 debug=0 trace=0

"Status dir" after starting job includes:

Running Jobs:

Console connected at 28-Jun-12 07:09
JobId Level Name Status
======================================================================
1927 Full BackupHomeDir.2012-06-28_07.09.43_19 is waiting for Client bacula-fd-laptop to connect to Storage SLR7
====

+----------------------------------------------------------------------
|This was sent by andrew < at > wasielewski.co.uk via Backup Central.
|Forward SPAM to abuse < at > backupcentral.com.
+----------------------------------------------------------------------



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Post  
Thanks @Jeremy and @Andre

Turns out I had to set the "SDAddress" property in the bacula-sd config elf-definition to the actual address of the server. If left undefined it binds to the first available IP address, which is presumably localhost. Also needs the actual address to be specified for the SLR7 tape device in the bacula-dir config "Storage" section.

An unrelated question, but one which naturally occurs now...as the laptop will obviously be disconnected at some times, how can I stop the job running if the remote client isn't connected? Otherwise the job will sit there indefinitely and block anything afterwards. Ideally I want it to wait a pre-defined timeout (e.g. 2 mins) and then give up until next scheduled time.

Thanks again,
Andrew

View user's profile Send private message
Post  
Please ignore last para above...it does in fact terminate after approx. 5 mins if not connected - I should have refreshed!

My bad... Embarassed

View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB