xrdcp and xrootd 5.3.0/5.3.1 seems to not report error message correctly. See the following tests. Note in the test,

$ xrdcp --version
v4.12.6
$ xrdcp root://atlrdr1//xrootd/atlas/tpctest/junk-wei root://atlrdr1//xrootd/atlas/tpctest/junk-wei-DD
[1024kB/1024kB][100%][==================================================][1024kB/s]
$ xrdcp root://atlrdr1//xrootd/atlas/tpctest/junk-wei root://atlrdr1//xrootd/atlas/tpctest/junk-wei-DD
[0B/0B][100%][==================================================][0B/s]
Run: [ERROR] Server responded with an error: [3011] Unable to create new file; file already exists. (destination)
$ echo $?
54
$ xrdcp root://atlrdr1//xrootd/atlas/tpctest/junk-wei root://osggridftp01.slac.stanford.edu:2094//xrootd/atlas/tpctest/junk-wei-DD
[0B/0B][100%][==================================================][0B/s]
Run: [ERROR] Server responded with an error: [3011] Unable to open /xrootd/atlas/tpctest/junk-wei-DD; no such file or directory (destination)
$ echo $?
54
(in the last xrdcp test, the error message is wrong)

$ xrdfs atlrdr1 rm /xrootd/atlas/tpctest/junk-wei-DD

$ xrdcp --version
v5.3.1
$ xrdcp root://atlrdr1//xrootd/atlas/tpctest/junk-wei root://atlrdr1//xrootd/atlas/tpctest/junk-wei-DD
[1024kB/1024kB][100%][==================================================][1024kB/s]
$ xrdcp root://atlrdr1//xrootd/atlas/tpctest/junk-wei root://atlrdr1//xrootd/atlas/tpctest/junk-wei-DD
$ echo $?
50
$ xrdcp root://atlrdr1//xrootd/atlas/tpctest/junk-wei root://osggridftp01.slac.stanford.edu:2094//xrootd/atlas/tpctest/junk-wei-DD
$ echo $?
50

In the last two cases, xrdcp gives no error message, but return errno 50.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1508", "url": "https://github.com/xrootd/xrootd/issues/1508", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Use REPLY-ALL to reply to list

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