Re: Problem with amtape "hanging" when forked from Java

Robert Heller <[email protected]>
Newsgroups gmane.comp.archivers.amanda.user
Organization Deepwoods Software
Message-ID <[email protected]>
At Thu, 10 Mar 2022 13:11:04 -0500 Nathan Stratton Treadway <[email protected]> wrote:

> 
> On Wed, Mar 09, 2022 at 22:50:29 -0500, Robert Heller wrote:
> > At Wed, 9 Mar 2022 23:50:45 +0100 Exuvo <[email protected]> wrote:
> > 
> > > 
> > > Could you give the exact command line you give when it hangs?
> > 
> > /usr/sbin/amtape -otpchanger=vault_changer wendellfreelibrary label wendellfreelibrary_vault-030
> > 
> 
> What does this command say/do when run from the command line (for a tape
> that causes a hang in the context of your Java program)?

It prints an error message and returns an error status:

backup@newserver:~$ amtape -otpchanger=vault_changer -ointeractivity='' wendellfreelibrary label wendellfreelibrary-vault-030
ERROR: Source Volume 'wendellfreelibrary-vault-030' not found

(and does not hang)


It actually does the same when forked from a Tcl program:

backup@newserver:~$ tclsh
% catch {exec  amtape -otpchanger=vault_changer -ointeractivity= wendellfreelibrary label wendellfreelibrary-vault-030} result
1
% set result
ERROR: Source Volume 'wendellfreelibrary-vault-030' not found
%

(I think the "''" for interactivity is only needed from the shell -- from both 
Tcl and Java, those quote marks need to be ommited or else amtape is looking 
for an interactivity named "''", rather then an null interactivity.)

I'm *guessing* that the Java Process created by exec() wants to deal with the 
printout, but can't.

> 
> 
> 							Nathan
> 
> ----------------------------------------------------------------------------
> Nathan Stratton Treadway  -  [email protected]  -  Mid-Atlantic region
> Ray Ontko & Co.  -  Software consulting services  -   http://www.ontko.com/
>  GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt   ID: 1023D/ECFB6239
>  Key fingerprint = 6AD8 485E 20B9 5C71 231C  0C32 15F3 ADCD ECFB 6239
> 
>                                                                           
> 

-- 
Robert Heller             -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
[email protected]       -- Webhosting Services
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.