Re: amrecover usage with chg-robot

"Stefan G. Weichinger" <[email protected]> Fri, 27 May 2022 15:37:07 +0200
Newsgroups gmane.comp.archivers.amanda.user
Message-ID <[email protected]>
Am 27.05.22 um 14:28 schrieb Stefan G. Weichinger:
> 
> Am 27.05.22 um 14:05 schrieb Nathan Stratton Treadway:
>> On Fri, May 27, 2022 at 10:28:09 +0200, Stefan G. Weichinger wrote:
>>> After that both tar and gzip.binary are shown as <defunct> in ps,
>>> whatever that means.
>>
>> Okay, that's a little progress in the investigation.
>>
>> "<defunct>" means that the process has exited, but the return code from
>> the process has not been read by the parent process yet.  So in this
>> case, whatever process spawned the tar and gzip subprocesses is not
>> "noticing" when the subprocesses finish... the question is why (and what
>> is it stuck doing instead of cleaning up)?
>>
>> Are the "openssl enc" and/or encription-wrapper-script processes still
>> out there at this time (and what state are they in)?
>>
>> You should be able to use pstree or "ps -ef" to determine which process
>> is the parent (PPID column) of the defunct subprocesses.
> 
> Yes, that parent process was still visible.
> 
> I will retry that later, currently I am updating stuff on that server etc

The parent is the amrecover process:


root     2154598 2096066 15 15:25 pts/2    00:01:26 amrecover abt -o 
auth=local -s localhost

amanda   2154601 2154598  0 15:25 pts/2    00:00:00 
/usr/libexec/amanda/amandad -auth=local

amanda   2154604 2154601  0 15:25 pts/2    00:00:00 
/usr/libexec/amanda/amindexd amandad local

amanda   2154605 2154601  0 15:25 pts/2    00:00:00 [amandad] <defunct>

amanda   2154632 2154598  6 15:25 pts/2    00:00:35 
/usr/libexec/amanda/amandad -auth=local

amanda   2154633 2154632  6 15:26 pts/2    00:00:32 /usr/bin/perl 
/usr/libexec/amanda/amidxtaped amandad local

amanda   2154634 2154632  0 15:26 pts/2    00:00:00 [amandad] <defunct>

amanda   2154701 2154633  0 15:26 pts/2    00:00:00 /bin/bash 
/usr/sbin/exuvo_crypt -d

root     2154703 2154598 49 15:26 pts/2    00:04:11 [gzip] <defunct>

root     2154705 2154598  2 15:26 pts/2    00:00:13 [tar] <defunct>

amanda   2154708 2154701 41 15:26 pts/2    00:03:31 /usr/bin/openssl enc 
-pbkdf2 -d -aes-256-ctr -salt -pass fd:3


This is while this is logged:

# tail -f amidxtaped.20220527152600.debug

Fri May 27 15:33:38.443013672 2022: pid 2154633: thd-0x556460b31400: 
amidxtaped: 
/usr/lib64/perl5/vendor_perl/5.34/Amanda/Restore.pm:1719:info:4900000 
12472320 kb

Fri May 27 15:33:53.454973643 2022: pid 2154633: thd-0x556460b31400: 
amidxtaped: 
/usr/lib64/perl5/vendor_perl/5.34/Amanda/Restore.pm:1719:info:4900000 
12472320 kb

Fri May 27 15:34:08.466959610 2022: pid 2154633: thd-0x556460b31400: 
amidxtaped: 
/usr/lib64/perl5/vendor_perl/5.34/Amanda/Restore.pm:1719:info:4900000 
12472320 kb

PID 2154633 -> /usr/bin/perl /usr/libexec/amanda/amidxtaped amandad local