# Unable to get out of batch mode in ROOT Version 6.30

**URL:** <https://root-forum.cern.ch/t/unable-to-get-out-of-batch-mode-in-root-version-6-30/59349>\
**Category:** ROOT\
**Created:** [May 15, 2024, 12:33pm UTC](https://root-forum.cern.ch/t/unable-to-get-out-of-batch-mode-in-root-version-6-30/59349 "2024-05-15T12:33:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![praha](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/praha/32/35022_2.png) [@praha](https://root-forum.cern.ch/u/praha)\
**Post date:** [May 15, 2024, 12:33pm UTC](https://root-forum.cern.ch/t/unable-to-get-out-of-batch-mode-in-root-version-6-30/59349/1 "2024-05-15T12:33:34Z")

</div>

Hello all,  
I just recently upgraded to Ubuntu 24.01 system, and installed root-framework via snap , but have been facing issues trying to open the TBrowser in ROOT.

### Setup

```auto
ROOT v6.30/04
Built for linuxx8664gcc on Feb 03 2024, 23:12:12
From tags/v6-30-04@v6-30-04
With c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Binary directory: /snap/root-framework/931/usr/local/bin

```

### Issue

```auto
root ~/Desktop/ECN3_2023_SCv6_noSBT.root --web=off 
   ------------------------------------------------------------------
  | Welcome to ROOT 6.30/04 https://root.cern |
  | (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for linuxx8664gcc on Feb 03 2024, 23:12:12 |
  | From tags/v6-30-04@v6-30-04 |
  | With c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 |
  | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q' |
   ------------------------------------------------------------------

root [0] 
Attaching file /home/irongiant/Desktop/ECN3_2023_SCv6_noSBT.root as _file0...
(TFile *) 0x59072ccc7dd0
root [1] new TBrowser
Authorization required, but no authorization protocol specified
Warning in <TBrowser::TBrowser>: The ROOT browser cannot run in batch mode
(TBrowser *) 0x59072ba47d90
root [2] gROOT->IsBatch()
(bool) true

```

Is there a way I can solve this issue? Setting the batchmode to false manually (gROOT-\>SetBatch(0)) gives me segmentation faults. Any help would be appreciated!

---

<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:** [May 15, 2024, 12:56pm UTC](https://root-forum.cern.ch/t/unable-to-get-out-of-batch-mode-in-root-version-6-30/59349/2 "2024-05-15T12:56:59Z")

</div>

Hello Praha,

Is this your physical machine/laptop? Can you exclude you do not have any custom `rootlogon.C` script which is executed at startup?

Best,  
D

---

<div class="post-metadata">

**Author:** ![praha](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/praha/32/35022_2.png) [@praha](https://root-forum.cern.ch/u/praha)\
**Post date:** [May 15, 2024, 2:29pm UTC](https://root-forum.cern.ch/t/unable-to-get-out-of-batch-mode-in-root-version-6-30/59349/3 "2024-05-15T14:29:56Z")

</div>

Hi, yes this is my physical machine and there is no rootlogon.C file I can find anywhere( `find -name rootlogon.C` returns nothing) .

---

<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:** [May 15, 2024, 2:40pm UTC](https://root-forum.cern.ch/t/unable-to-get-out-of-batch-mode-in-root-version-6-30/59349/4 "2024-05-15T14:40:12Z")

</div>

Hello Praha,

I think this post can be informative: [Reddit - Dive into anything](https://www.reddit.com/r/linux4noobs/comments/lu1plx/hi_i_get_this_authorization_required_but_no/)

Have you tried to use ROOT as a normal user, i.e. not `root`? It is also in general not a good idea to do so as one can read from the thread linked above.

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![praha](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/praha/32/35022_2.png) [@praha](https://root-forum.cern.ch/u/praha)\
**Post date:** [May 15, 2024, 2:57pm UTC](https://root-forum.cern.ch/t/unable-to-get-out-of-batch-mode-in-root-version-6-30/59349/5 "2024-05-15T14:57:27Z")

</div>

Hi, no luck unfortunately. I cannot access the TBrowser 😕

---

<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:** [May 15, 2024, 2:58pm UTC](https://root-forum.cern.ch/t/unable-to-get-out-of-batch-mode-in-root-version-6-30/59349/6 "2024-05-15T14:58:28Z")

</div>

Have you read through the links at the page linked above? Your issue seems related - it does not look like an issue with ROOT (of course, happy to be proven wrong!).

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![praha](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/praha/32/35022_2.png) [@praha](https://root-forum.cern.ch/u/praha)\
**Post date:** [May 15, 2024, 3:24pm UTC](https://root-forum.cern.ch/t/unable-to-get-out-of-batch-mode-in-root-version-6-30/59349/7 "2024-05-15T15:24:18Z")

</div>

Hi, yes. ` xhost +` in the terminal seemed to solve the problem! Thank you 🙂

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [May 29, 2024, 3:25pm UTC](https://root-forum.cern.ch/t/unable-to-get-out-of-batch-mode-in-root-version-6-30/59349/8 "2024-05-29T15:25:05Z")

</div>

Closed on May 29, 2024, 3:25pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
