# Auth failed error when opening files using XRootD in pyROOT

**URL:** <https://root-forum.cern.ch/t/auth-failed-error-when-opening-files-using-xrootd-in-pyroot/58862>\
**Category:** ROOT\
**Created:** [April 5, 2024, 5:57am UTC](https://root-forum.cern.ch/t/auth-failed-error-when-opening-files-using-xrootd-in-pyroot/58862 "2024-04-05T05:57:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [April 5, 2024, 7:00am UTC](https://root-forum.cern.ch/t/auth-failed-error-when-opening-files-using-xrootd-in-pyroot/58862/2 "2024-04-05T07:00:04Z")

</div>

Hi Eric,

Thanks for the post.  
This is not expected. I would like to ask you to perform a few tests to gather a more complete view of what is happening:

1. Is the ROOT used via Python the same you are using in C++? (`ROOT.gROOT.GetVersion()`)
2. Can you build the same chain from C++?
3. Could you set the environment variable `ROOTDEBUG=1` (or 2 or higher) and go through the messages to see whether the logs reveal some issue with the authentication?

Best,  
D

---

_[View the full topic](https://root-forum.cern.ch/t/auth-failed-error-when-opening-files-using-xrootd-in-pyroot/58862)._
