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

Input file permissions too strict? #11

Open
Zehvogel opened this issue Jun 17, 2024 · 2 comments
Open

Input file permissions too strict? #11

Zehvogel opened this issue Jun 17, 2024 · 2 comments

Comments

@Zehvogel
Copy link
Contributor

In principle this part

files = glob.glob("higgs_recoil_from_gaudi_*.edm4hep.root")
reader = root_io.Reader(files)

of the edm4hep analysis can be simplified to work from anywhere without downloading the files and without having eos mounted as a file system by directly using the respective root: url. E.g.

reader = root_io.Reader("root://eosproject.cern.ch//eos/project/k/key4hep/www/key4hep/tutorial/zh_mumu_filtered/higgs_recoil_from_gaudi_*.edm4hep.root")

even with the globbing as the underlying TChain can handle this directly. On my CERN machine with kerberos this works, but on a different machine without I get

[...]
Error in <TNetXNGSystem::GetDirEntry>: Unable to open directory /eos/project/k/key4hep/www/key4hep/tutorial/zh_mumu_filtered; Operation not permitted
[...]

When trying to access the files directly

reader = root_io.Reader([f"root://eosproject.cern.ch//eos/project/k/key4hep/www/key4hep/tutorial/zh_mumu_filtered/higgs_recoil_from_gaudi_{i}.edm4hep.root" for i in range(10)])

the error message changes to

Error in <TNetXNGFile::Open>: [ERROR] Server responded with an error: [3010] Unable to access - public access level restriction /eos/project/k/key4hep/www/key4hep/tutorial/zh_mumu_filtered/higgs_recoil_from_gaudi_0.edm4hep.root; Permission denied

Is there a way for us to change the eos permissions on the respective directory such that this unauthenticated access works?

PS:
What always works and still might be useful to some is:

reader = root_io.Reader([f"https://key4hep.web.cern.ch/key4hep/tutorial/zh_mumu_filtered/higgs_recoil_from_gaudi_{i}.edm4hep.root" for i in range(10)])
@jmcarcell
Copy link
Member

reader = root_io.Reader("root://eosproject.cern.ch//eos/project/k/key4hep/www/key4hep/tutorial/zh_mumu_filtered/higgs_recoil_from_gaudi_*.edm4hep.root")

But to do this you need to have EOS mounted, right? A kerberos ticket is not enough for this to work.

@Zehvogel
Copy link
Contributor Author

But to do this you need to have EOS mounted, right? A kerberos ticket is not enough for this to work.

No, as far as I understand this just opens the file remotely via xrootd

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

No branches or pull requests

2 participants