# \[ERROR\] Socket timeout

**URL:** <https://root-forum.cern.ch/t/error-socket-timeout/59515>\
**Category:** Newbie\
**Created:** [May 30, 2024, 1:20pm UTC](https://root-forum.cern.ch/t/error-socket-timeout/59515 "2024-05-30T13:20:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![beg1nner](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/d26b3c/32.png) [@beg1nner](https://root-forum.cern.ch/u/beg1nner)\
**Post date:** [May 30, 2024, 1:20pm UTC](https://root-forum.cern.ch/t/error-socket-timeout/59515/1 "2024-05-30T13:20:30Z")

</div>

Dear experts,

I am running into an issue while trying to run over specific dataset. The error is following:

```auto
Error in <TNetXNGFile::ReadBuffers>: [ERROR] Socket timeout
Error in <TBranch::GetBasket>: File: root://xrootd-cms.infn.it//store/mc/.../someROOTfile.root at byte:0, branch:Pileup_nPU, entry:0, badread=1, nerrors=1, basketnumber=0

```

It gives me this error for all the dataset files of this specific dataset. For others (same dataset, different mass point) it works normally.

The strange thing is that I am able to access those files with:  
` root -l root://xrootd-cms.infn.it//store/mc/.../someROOTfile.root`

Could you please help me to detect what is the problem?

Thank you & kind regards!

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 30, 2024, 2:57pm UTC](https://root-forum.cern.ch/t/error-socket-timeout/59515/2 "2024-05-30T14:57:53Z")

</div>

Maybe @jblomer can help

---

<div class="post-metadata">

**Author:** ![jblomer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@jblomer](https://root-forum.cern.ch/u/jblomer)\
**Post date:** [May 31, 2024, 7:34am UTC](https://root-forum.cern.ch/t/error-socket-timeout/59515/3 "2024-05-31T07:34:15Z")

</div>

Could you try if you can copy the entire file to your machine with `xrdcp root://.../someROOTfile.root someROOTfile.root`. It may be that only parts of the file are inaccessible.

---

<div class="post-metadata">

**Author:** ![beg1nner](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/d26b3c/32.png) [@beg1nner](https://root-forum.cern.ch/u/beg1nner)\
**Post date:** [June 1, 2024, 2:39pm UTC](https://root-forum.cern.ch/t/error-socket-timeout/59515/4 "2024-06-01T14:39:55Z")

</div>

Hello @jblomer ,

yes, I can copy the file to the local machine.

---

<div class="post-metadata">

**Author:** ![jblomer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@jblomer](https://root-forum.cern.ch/u/jblomer)\
**Post date:** [June 2, 2024, 11:38am UTC](https://root-forum.cern.ch/t/error-socket-timeout/59515/5 "2024-06-02T11:38:23Z")

</div>

Just to be sure, the original error still appears? I.e. it wasn’t a temporary glitch?

If you have the possibility to run you program with the local file, that could check if there is an issue with the content of that file.

---

<div class="post-metadata">

**Author:** ![beg1nner](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/d26b3c/32.png) [@beg1nner](https://root-forum.cern.ch/u/beg1nner)\
**Post date:** [June 2, 2024, 2:27pm UTC](https://root-forum.cern.ch/t/error-socket-timeout/59515/6 "2024-06-02T14:27:18Z")

</div>

Unfortunately, the error still appears. If I copy the file and run it locally, then it runs through and the error is gone.  
It is very strange though and I tried various redirectors (I am a CMS member), but it does not work with either of them.

---

<div class="post-metadata">

**Author:** ![jblomer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@jblomer](https://root-forum.cern.ch/u/jblomer)\
**Post date:** [June 3, 2024, 7:59am UTC](https://root-forum.cern.ch/t/error-socket-timeout/59515/7 "2024-06-03T07:59:03Z")

</div>

Ok, thank you for the additional information!

Could you run your original ROOT program that contacts the XRootD server with the environment variable `XRD_LOGLEVEL=Dump`, like

```auto
XRD_LOGLEVEL=Dump <rest of command line>

```

This would help us understand where exactly the XRootD client library has issues.
