Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong xrdcp error code #972

Closed
ivukotic opened this issue Apr 26, 2019 · 5 comments
Closed

wrong xrdcp error code #972

ivukotic opened this issue Apr 26, 2019 · 5 comments
Labels

Comments

@ivukotic
Copy link

Here example of file transfer that fails due to bad cksum but error code is 53

~ >xrdcp -f --cksum adler32:111b2fe1 root://xcache.mwt2.org:1094//root://xrootd.aglt2.org:1094//pnfs/aglt2.org/atlasdatadisk/rucio/data15_13TeV/96/bb/DESDM_EGAMMA.17824239._015051.pool.root.1 /dev/null
[97.94MB/97.94MB][100%][==================================================][97.94MB/s]
Run: [ERROR] CheckSum error
~ >echo $?
53

@simonmichal
Copy link
Contributor

Hi Ilia,

53 is a xrootd 'related' error, which includes checksum error, here's the full list:

  const uint16_t errNoMoreFreeSIDs     = 301;
  const uint16_t errInvalidRedirectURL = 302;
  const uint16_t errInvalidResponse    = 303;
  const uint16_t errNotFound           = 304;
  const uint16_t errCheckSumError      = 305;
  const uint16_t errRedirectLimit      = 306;

Why do you claim the error code is wrong?

Cheers,
Michal

@ivukotic
Copy link
Author

ivukotic commented May 3, 2019

Ah... Is there a way to get actual xrootd error code? This way it is not very helpful.
Thanks,
Ilija

@simonmichal
Copy link
Contributor

@ivukotic : unfortunately this is not possible as the return code is a value in range 0-255 and the xrootd error codes takes values in range 0-500,

That's why from the return code you can only get info about the error type:

RETURN CODES
       50  : generic error (e.g. config, internal, data, OS, command line
       option)
       51  : socket related error
       52  : postmaster related error
       53  : XRootD related error
       54  : redirection error
       55  : query response was negative (this is not an error)

If you need detailed xrootd status in your script I would advice to to use Python and XRootD Python bindings.

@simonmichal
Copy link
Contributor

I suppose there's not much we can do, may I close it?

@ivukotic
Copy link
Author

ivukotic commented May 16, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants