Print

Print


Hi Max,

Sorry for the late response!

You can find the algorithm for calculating the return code here:
https://github.com/xrootd/xrootd/blob/master/src/XrdCl/XrdClStatus.hh#L122-L127

Basically, on success xrdcp should return 0, on failure:

- 50 : generic error
- 51 : socket related error
- 52 : postmaster related error
- 53 : XRootD related error
- 54 : redirection error

in addition:
- 254 : command line option error
- 255 : problem with source / destination
            (multiple sources were given, but target is not a directory, or
            fail to index remote directory)
- errno : in case an operation like getcwd (etc.) fails
  (that's your case: 13 is EACCES - Permission denied)

Cheers,
Michal
________________________________________
From: [log in to unmask] [[log in to unmask]] on behalf of Fischer, Max (SCC) [[log in to unmask]]
Sent: 15 October 2017 23:23
To: [log in to unmask]
Subject: xrdcp exit codes

Hi all,

is there a list of xrdcp exit codes and their meaning? We have some automated tests (SAM) which started failing infrequently, but error messages and server logs do not reveal anything.
The client (xrdcp) does exit with code 13.

Cheers,
Max
########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1