Amanda-Users

Re: HostnameLookupFailsOnlyFromCron

2003-05-23 12:40:42
Subject: Re: HostnameLookupFailsOnlyFromCron
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: Jon LaBadie <jon AT jgcomp DOT com>, amanda-users <amanda-users AT amanda DOT org>
Date: Fri, 23 May 2003 12:32:29 -0400
On Friday 23 May 2003 10:10, Jon LaBadie wrote:
>On Fri, May 23, 2003 at 05:43:43AM -0700, Tommy wrote:
>> 2.4.4 backing up to disk
>> Debian Linux with amanda compiled from source
>>
>> Amanda Server and client machines back up appropriately when
>> amdump run from command line.
>>      Bind runs on an amanda client (internet gateway machine) and
>>      obviously resolves server and client names appropriately.
>>
>> All machines EXCEPT amanda server back up appropriately running
>> amdump from cron daemon
>>
>> Amanda server running from within cron daemon fails with host
>> name resolve failure
>
>I can't think of anything in your environment that would affect
> name resolution, but maybe there is something.  In case, what you
> have to realize is that cron jobs never process your .profile and
> other login files.  Perhaps your interactive environment has
> something in it that affects name resolution, but as I say I have
> no guesses.
>
>Attached are two tiny C programs that do name resolution the same
> way as amanda does.  Some common tools use different routines
> (like ping). Confirm they give the appropriate resolutions on
> both server and client. Maybe set up a shell script like:
>
>   ServerName='...'
>   ClientName='...'
>   ServerAddr='...'
>   ClientAddr='...'
>   Log=/tmp/testlog
>   exec > $Log 2>&1
>
>   gethostbyname $ServerName
>   gethostbyname $ClientName
>   gethostbyaddr $ServerAddr
>   gethostbyaddr $ClientAddr
>
>Run it on both client and server, both from the command line and
> from a cronjob.

The attachments didn't make it to here, Jon.

-- 
Cheers, Gene
AMD K6-III@500mhz 320M
Athlon1600XP@1400mhz  512M
99.26% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attornies please note, additions to this message
by Gene Heskett are:
Copyright 2003 by Maurice Eugene Heskett, all rights reserved.


<Prev in Thread] Current Thread [Next in Thread>