cernopendata / cernopendata-client

CERN Open Data command-line client
http://cernopendata-client.readthedocs.io/
GNU General Public License v3.0
10 stars 9 forks source link

download-files: success for 5000, failure for 12341 #119

Closed tiborsimko closed 3 years ago

tiborsimko commented 3 years ago

This works:

$ docker run -i -t --rm cernopendata/cernopendata-client download-files --recid 5000 --protocol xrootd --verify
==> Downloading file 1 of 1
  -> File: ./5000/2011-doubleelectron-doublemu-mueg-ttbar-1.0.0.tar.gz
==> Verifying file 2011-doubleelectron-doublemu-mueg-ttbar-1.0.0.tar.gz... 
  -> Expected size 1288913, found 1288913
  -> Expected checksum adler32:d919df9e, found adler32:d919df9e
==> Success!

This does not:

docker run -i -t --rm cernopendata/cernopendata-client download-files --recid 12341 --protocol xrootd --verify
==> Downloading file 1 of 1
  -> File: ./12341/Run2012BC_DoubleMuParked_Muons.root
==> ERROR: Download error occured. Please try again.
==> Verifying file Run2012BC_DoubleMuParked_Muons.root... 
  -> Expected size 2244449133, found 0
==> ERROR: File size does not match.

Let's perhaps switch from Pythonic xroodpyfs to simple xrdcp?