Amanda-Users

Re: changer problems when running from cron

2003-02-11 22:52:40
Subject: Re: changer problems when running from cron
From: "John R. Jackson" <jrj AT purdue DOT edu>
To: Michael Bretterklieber <mbretter AT jawa DOT at>
Date: Tue, 11 Feb 2003 21:45:51 -0500
>>>we wrote our own request() function.
>> 
>> 
>> And what's in your version of the function?  My guess is it is not
>> waiting long enough for the tape to go ready.
>> 
>> What's in /tmp/amanda/changer.debug?
>AFAIK, if I'm invoking amcheck, then this programm starts the 
>changer-script and waits with waitpid() for the end of the changer 
>script, but the changer-script ends to quick and then waitpid() returns 
>an error.  ...

I agree.  Which is why I asked two specific questions to help diagnose
exactly what the script is doing wrong.

Let me ask again ...

What does your version of the request() function look like (the actual
code, not a general description)?

What is in /tmp/amanda/changer.debug?

>however, I disabled the changer-mechanism and now the backup works.

While this is the most important thing :-), it would be good if we
could figure out why the script is failing.  And Christoph brings up a
very good point about the cron PATH possibly being different than your
interactive PATH.

>Michael Bretterklieber

John R. Jackson, Technical Software Specialist, ITaP/RCS, jrj AT purdue DOT edu

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