Thank you Bill for the quick reply....
Much appreciated !

-Yateen 

-----Original Message-----
From: Bill Arlofski via Bacula-users <bacula-users@lists.sourceforge.net> 
Sent: Wednesday, June 18, 2025 8:12 PM
To: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Timeout setting for ClientRunBeforeJob


CAUTION: This is an external email. Please be very careful when clicking links 
or opening attachments. See the URL nok.it/ext for additional information.



On 6/18/25 5:59 AM, Yateen Shaligram Bhagat \(Nokia\) via Bacula-users wrote:
> My bad, I made a wrong statement in my earlier email.
>
> Here is the corrected scenario.
>
> I have a dynamic fileset creation with a script that runs on the client 
> (Linux)  side with File resource, see the setting below:
>
>                   File = "\\| su - username -c “/path/to/the/script”
>
> The execution of this script takes a long time, resulting in timeout , 
> thus failing the backup job
>
> *bacula-server-dir JobId 1101693: Fatal error: Bad response to Storage 
> command: wanted 2000 OK storage*
>
> *, got 2902 Bad storage |*
>
> *FD termination status:  Error*
>
> *                 SD termination status:  Waiting on FD*
>
> Thanks
>
> Yateen


Hello Yateen,

This is a known issue.

It has only recently started becoming an issue because we are seeing people 
doing this and, for example, are using the `find` command in a dynamic FileSet 
to traverse larger and larger filesystems in HPC environments.

Due to exploding data growth, their scripts (like yours), or their find 
commands in their dynamic FileSets are starting to take longer and longer and 
this issue has surfaced.

If I remember correctly, what is happening is that the SD times out waiting for 
the FD, and gives up. By the time the FD starts to send data, the job is not 
running on the SD, hence the `Bad storage` response.

I am pretty sure some work to mitigate this is already in progress - at least I 
know it has been discussed recently. :)


Best regards,
Bill

--
Bill Arlofski
w...@protonmail.com

_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to