Re: [Bacula-users] Hostname not found

2017-02-13 Thread Martin Simmons
Hi Kern, The Open Group's spec of getnameinfo (http://pubs.opengroup.org/onlinepubs/9699919799/functions/getnameinfo.html) doesn't mention protocol-independent but it does say "The salen argument contains the length of the address pointed to by sa." This is getting close to how FreeBSD implements

Re: [Bacula-users] Hostname not found

2017-02-13 Thread Kern Sibbald
Hell Martin, Thanks for bringing this up. I had forgotten about this patch. It was probably that patch that clued me in to the idea that FreeBSD (incorrectly in my opinion) requires an equal match on the size, while no other platform I know does. I have not applied your patch, because the cur

Re: [Bacula-users] Hostname not found

2017-02-13 Thread Martin Simmons
You could try the patch in http://bugs.bacula.org/view.php?id=2083 (I recently attached a fix for 7.4.4 to this bug). > On Sun, 12 Feb 2017 12:09:21 +0100, Kern Sibbald said: > > Hello Dan, > > Well, then we are back to my theory that FreeBSD wants a > particular length in some

Re: [Bacula-users] Hostname not found

2017-02-12 Thread Kern Sibbald
Hello Dan, Well, then we are back to my theory that FreeBSD wants a particular length in some of the system calls. In general, Bacula uses lengths that work for both IPv4 and IPv6, which means that if you are using IPv4, the packet lengths in some cal

Re: [Bacula-users] Hostname not found

2017-02-11 Thread Dan Langille
> On Feb 11, 2017, at 2:11 AM, Kern Sibbald wrote: > > Hello Dan, > > Well, I am happy to know that it is not Bacula related :-) Well, it's not solved yet. This just in. 11-Feb 21:11 bacula-sd-01-sd JobId 256374: Elapsed time=03:20:24, Transfer rate=29.63 M Bytes/second 11-Feb 21:11 bacula-s

Re: [Bacula-users] Hostname not found

2017-02-10 Thread Kern Sibbald
Hello Dan, Well, I am happy to know that it is not Bacula related :-) Kern On 02/10/2017 09:46 PM, Dan Langille wrote: On Feb 10, 2017, at 12:55 PM, Dan Langille wrote:

Re: [Bacula-users] Hostname not found

2017-02-10 Thread Josip Deanovic
On Friday 2017-02-10 15:12:57 Caribe Schreiber wrote: > It can also help to use the host command instead of > nslookup or dig. It'll go through all the resolve.conf resolvers first > instead of just going straight to the DNS server for an answer. I've > gotten burned by using dig instead of the

Re: [Bacula-users] Hostname not found

2017-02-10 Thread Caribe Schreiber
It can also help to use the host command instead of nslookup or dig. It'll go through all the resolve.conf resolvers first instead of just going straight to the DNS server for an answer. I've gotten burned by using dig instead of the host command a few times and it can be a real bummer. ~Caribe

Re: [Bacula-users] Hostname not found

2017-02-10 Thread Dan Langille
> On Feb 10, 2017, at 12:55 PM, Dan Langille wrote: > >> On Feb 10, 2017, at 12:20 PM, Kern Sibbald > > wrote: >> >> Hello, >> >> I suspect that this is a problem with the FreeBSD networking implementation. >> If I remember right on FreeBSD, when doing name lookups, i

Re: [Bacula-users] Hostname not found

2017-02-10 Thread webmaster
Hi Dan,I would recommend start both, bacula-sd and bacula-dir in debug mode and inspect what is going on by taking a deep look at the console output. You could start by only using debug mode for sd.Use debug level -d 400. It helped me a lot since I know about this feature.Cheers,-fuzDan Langille

Re: [Bacula-users] Hostname not found

2017-02-10 Thread Dan Langille
> On Feb 10, 2017, at 1:16 PM, Dimitri Maziuk wrote: > > On 02/10/2017 11:55 AM, Dan Langille wrote: > >> I suspect it's more likely to be an issue on one of the Bacula nodes > in question (SD or FD) where there is a local DNS issue. > > I'm sure you checked already, but is there ns caching goi

Re: [Bacula-users] Hostname not found

2017-02-10 Thread Dan Langille
> On Feb 10, 2017, at 1:16 PM, Dimitri Maziuk wrote: > > On 02/10/2017 11:55 AM, Dan Langille wrote: > >> I suspect it's more likely to be an issue on one of the Bacula nodes > in question (SD or FD) where there is a local DNS issue. > > I'm sure you checked already, but is there ns caching goi

Re: [Bacula-users] Hostname not found

2017-02-10 Thread Dimitri Maziuk
On 02/10/2017 11:55 AM, Dan Langille wrote: > I suspect it's more likely to be an issue on one of the Bacula nodes in question (SD or FD) where there is a local DNS issue. I'm sure you checked already, but is there ns caching going on? It used to be a real pita on irix and is back again on osx. O

Re: [Bacula-users] Hostname not found

2017-02-10 Thread Dan Langille
> On Feb 10, 2017, at 12:20 PM, Kern Sibbald wrote: > > Hello, > > I suspect that this is a problem with the FreeBSD networking implementation. > If I remember right on FreeBSD, when doing name lookups, if the packet size > is not *exactly* what FreeBSD wants, it fails the call. On Linux and

Re: [Bacula-users] Hostname not found

2017-02-10 Thread Dan Langille
> On Feb 10, 2017, at 12:14 PM, Dean E. Weimer wrote: > > On 2017-02-10 10:47 am, Dan Langille wrote: > >>> On Feb 10, 2017, at 11:45 AM, Dean E. Weimer >> > wrote: >>> >>> On 2017-02-10 10:02 am, Dan Langille wrote: >>> >>> NOTE: this message is not about resolving

Re: [Bacula-users] Hostname not found

2017-02-10 Thread Dan Langille
On 02/10/2017 05:02 PM, Dan Langille wrote: NOTE: this message is not about resolving the permissions error. It is about [what appears to be] a DNS issue. Please help me understand which hostname is not being resolved in these messages. My checks with dig to verify DNS h

Re: [Bacula-users] Hostname not found

2017-02-10 Thread Dean E. Weimer
On 2017-02-10 10:02 am, Dan Langille wrote: > NOTE: this message is not about resolving the permissions error. It is about > [what appears to be] a DNS issue. > Please help me understand which hostname is not being resolved in these > messages. My checks with dig to verify DNS have found no e

Re: [Bacula-users] Hostname not found

2017-02-10 Thread Kern Sibbald
Hello, I suspect that this is a problem with the FreeBSD networking implementation.  If I remember right on FreeBSD, when doing name lookups, if the packet size is not *exactly* what FreeBSD wants, it fails the call.  On Linux and other machines (Solaris, M

Re: [Bacula-users] Hostname not found

2017-02-10 Thread Mike Fröhner
If bacula-dir and -sd run on different hosts: Did you also verify this works on the bacula-sd host and not just on the bacula-dir host. On 02/10/2017 06:14 PM, Dan Langille wrote: >> On Feb 10, 2017, at 11:24 AM, Mike Fröhner > > wrote: >> >> How do you client config l

Re: [Bacula-users] Hostname not found

2017-02-10 Thread Dean E. Weimer
On 2017-02-10 10:47 am, Dan Langille wrote: > On Feb 10, 2017, at 11:45 AM, Dean E. Weimer wrote: > > On 2017-02-10 10:02 am, Dan Langille wrote: > NOTE: this message is not about resolving the permissions error. It is about > [what appears to be] a DNS issue. > Please help me understand wh

Re: [Bacula-users] Hostname not found

2017-02-10 Thread Dan Langille
> On Feb 10, 2017, at 11:24 AM, Mike Fröhner wrote: > > How do you client config look like for crey-fd? It must be something like: > > Client { > Name = crey-fd > Address = > ... > } > > If you specify a hostname for Address this hostname must be resolvable. Yes: Client { Name

Re: [Bacula-users] Hostname not found

2017-02-10 Thread Dan Langille
> On Feb 10, 2017, at 11:45 AM, Dean E. Weimer wrote: > > On 2017-02-10 10:02 am, Dan Langille wrote: > >> NOTE: this message is not about resolving the permissions error. It is >> about [what appears to be] a DNS issue. >> >> Please help me understand which hostname is not being resolved in

Re: [Bacula-users] Hostname not found

2017-02-10 Thread Kern Sibbald
Hello Dan, When in your case, the SD opens a socket, it looks for the hostname, and for some reason it did not find it. Are you 100% sure that the DNS resolver is working on your SD machine?  What do you have set for SDCallsClient?  Perhaps for some particu

Re: [Bacula-users] Hostname not found

2017-02-10 Thread Mike Fröhner
How do you client config look like for crey-fd? It must be something like: Client { Name = crey-fd Address = ... } If you specify a hostname for Address this hostname must be resolvable. Did you check this? Mike On 02/10/2017 05:02 PM, Dan Langille wrote: > NOTE: this message is not

[Bacula-users] Hostname not found

2017-02-10 Thread Dan Langille
NOTE: this message is not about resolving the permissions error. It is about [what appears to be] a DNS issue. Please help me understand which hostname is not being resolved in these messages. My checks with dig to verify DNS have found no errors. I have checked: Client: crey