I have a git repository that stores root files containing a bunch of histograms. The root files were originally generated from a debian server. But when I download the repository using git clone to my laptop, root files seems not to be dowloaded completely:
-rw-r--r-- 1 edwin staff 834B Jun 5 16:54 README.md
-rw-r--r-- 1 edwin staff 131B Jun 5 16:54 histograms_1n_00087.root
-rw-r--r-- 1 edwin staff 131B Jun 5 16:54 histograms_1n_000923.root
-rw-r--r-- 1 edwin staff 131B Jun 5 16:54 histograms_1n_00175.root
-rw-r--r-- 1 edwin staff 129B Jun 5 16:54 test.root
For example, the histograms_1n_00087.root in the github is shown to have 576 KB data but here it just has 131B. As the result, those root files cannot be opened showing the message:
Attaching file test.root as _file0...
Error in <TFile::ReadBuffer>: error reading all requested bytes from file test.root, got 129 of 300
Error in <TFile::Init>: test.root failed to read the file type data.
However, if I use wget to download the root, it works again.
I am sorry to read you are suffering from this issue. Could you elaborate about the relation of this issue with ROOT? Can you download the files by another strategy and check whether they work?
However, if I use wget to download the root, it works again.
Sorry for the mistyping here. I actually meant those .root files instead of root program. So yes, if I download through wget or from website, it all works out. But if I use git clone, root files seem to not be completely downloaded.
Could you elaborate about the relation of this issue with ROOT?
Yes, when doing the git cloning, only .root files are not downloaded completely. Other files, like Markdown files can be correctly downloaded. I suspect there is something fishy happening between .root files and git. After pushing a .root file in one system, its full content seems not to be pulled in another system.
Thanks for trying out. Which OS are you using? I have this issue from MacOS 14 and RHEL 8. But it works on Debian buster, where the root files are original created.