Bacula-users

Re: [Bacula-users] backups failed with gethostbyname() error

2014-09-25 02:12:12
Subject: Re: [Bacula-users] backups failed with gethostbyname() error
From: Luc Van der Veken <lucvdv AT wimionline DOT com>
To: "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Thu, 25 Sep 2014 06:06:24 +0000

Hi Tim,

 

It works now, but it looks like that didn’t work at the time of the backup.

A network problem at that moment, a (dns) server that was down or being rebooted, a power failure with servers running on UPS but one of the switches not, or so?

 

Anyhow, I would look at the error as a symptom, with the cause somewhere outside bacula.  The backup didn’t exactly fail, it couldn’t be started because bacula couldn’t find the server it was supposed to back up.

 

 

From: Tim Dunphy [mailto:bluethundr AT gmail DOT com]
Sent: 24 September 2014 18:50
To: Dimitri Maziuk
Cc: bacula-users AT lists.sourceforge DOT net
Subject: Re: [Bacula-users] backups failed with gethostbyname() error

 

Hey Dmitriy,

 

 Yes, definitely the client host is resolving well in DNS from the bacula server. 

 

 Take a look!

 

[root@ops:~] #host beta-new.mydomain.com

beta-new.mydomain.com has address 162.xx.xx.xx

 

 

 

[root@ops:~] #dig beta-new.mydomain.com

 

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.6 <<>> beta-new.mydomain.com

;; global options:  printcmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35466

;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

 

;; QUESTION SECTION:

;beta-new.mydomain.com.         IN      A

 

;; ANSWER SECTION:

beta-new.mydomain.com.  61      IN      A       162.xx.xx.xx

 

;; Query time: 1 msec

;; SERVER: 172.16.0.23#53(172.16.0.23)

;; WHEN: Wed Sep 24 12:48:16 2014

;; MSG SIZE  rcvd: 55

 

But as mentioned I tried putting the hostname and IP for the remote server I want to backup into the /etc/hosts file on my bacula server. We'll see where that gets us for tonight's run, just in case this was some kind of DNS issue.

 

Thanks!

Tim

 

On Wed, Sep 24, 2014 at 12:37 PM, Dimitri Maziuk <dmaziuk AT bmrb.wisc DOT edu> wrote:

On 09/24/2014 10:01 AM, Tim Dunphy wrote:

> 24-Sep 03:11 ops.mydomain.com JobId 218: Error: bsock.c:194 gethostbyname()
> for host "beta-new.mydomain.com" failed: ERR=Name or service not known

In case it's not clear from other posts, this looks like
ops.mydomain.com can't resolve beta-new.mydomain.com and the check is to
run "host" or "dig" beta-new.mydomain.com on ops.

--
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu


------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users



 

--
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users