# LaTeXRuntimeException: Impossible to compile ( Happen in GUI interface)

**URL:** <https://talk.getindico.io/t/latexruntimeexception-impossible-to-compile-happen-in-gui-interface/1270>\
**Category:** Administrators\
**Created:** [May 14, 2019, 5:09pm UTC](https://talk.getindico.io/t/latexruntimeexception-impossible-to-compile-happen-in-gui-interface/1270 "2019-05-14T17:09:54Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![zmohamoud](https://talk.getindico.io/user_avatar/talk.getindico.io/zmohamoud/32/208_2.png) [@zmohamoud](https://talk.getindico.io/u/zmohamoud)\
**Post date:** [May 14, 2019, 5:09pm UTC](https://talk.getindico.io/t/latexruntimeexception-impossible-to-compile-happen-in-gui-interface/1270/1 "2019-05-14T17:09:54Z")

</div>

**I need help.** …the LaTex can’t compile pdf (book of abstracts) when i tried to open from GUI interface but running command seems to work (see below)

I clicked book of Abstract via conference overview - book of abstracts and LaTex failed to compile pdf

**Unexpected error" error LaTeXRuntimeException: Impossible to compile ‘/opt/indico/tmp/indico-texgen-KWUhNS/book\_of\_abstracts.tpl.tex’. Read ‘/opt/indico/tmp/indico-texgen-KWUhNs/output.log’ for details"**

\*\*I run this command \*\*

/opt/texlive/bin/x86\_64-linux/xelatex -no-shell-escape -interaction nonstopmode -output-directory /opt/indico/tmp/indico-texgen-KWUhNS /opt/indico/tmp/indico-texgen-KWUhNS/book\_of\_abstracts.tpl.tex

**It looks like it runs successfully**

ABD: EveryShipout initializing macros  
(/opt/texlive/texmf-dist/tex/generic/oberdiek/se-ascii-print.def) [1] [2]  
[3] [4] (/opt/indico/tmp/indico-texgen-KWUhNS/book\_of\_abstracts.tpl.toc  
(/opt/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd)  
(/opt/texlive/texmf-dist/tex/latex/microtype/mt-msa.cfg)  
(/opt/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd)  
(/opt/texlive/texmf-dist/tex/latex/microtype/mt-msb.cfg)  
(/opt/texlive/texmf-dist/tex/latex/microtype/mt-cmr.cfg)) [5] [6]  
Underfull \hbox (badness 10000) in paragraph at lines 200–201

Underfull \hbox (badness 10000) in paragraph at lines 385–386

[1] [2] [3] (/opt/indico/tmp/indico-texgen-KWUhNS/book\_of\_abstracts.tpl.aux) )  
(see the transcript file for additional information)  
**Output written on /opt/indico/tmp/indico-texgen-KWUhNS/book\_of\_abstracts.tpl.pd**  
**f (9 pages).**

I checked /opt/indico/tmp/indico-texgen-KWUhNS and it got pdf file and tex file as well

---

<div class="post-metadata">

**Author:** ![kolodzie](https://talk.getindico.io/user_avatar/talk.getindico.io/kolodzie/32/18_2.png) [@kolodzie](https://talk.getindico.io/u/kolodzie)\
**Post date:** [May 15, 2019, 5:00am UTC](https://talk.getindico.io/t/latexruntimeexception-impossible-to-compile-happen-in-gui-interface/1270/2 "2019-05-15T05:00:54Z")

</div>

Did you check the following log file for the possible causes?

> [@zmohamoud](#):
>
> /opt/indico/tmp/indico-texgen-KWUhNs/output.log’ for details

---

<div class="post-metadata">

**Author:** ![zmohamoud](https://talk.getindico.io/user_avatar/talk.getindico.io/zmohamoud/32/208_2.png) [@zmohamoud](https://talk.getindico.io/u/zmohamoud)\
**Post date:** [May 15, 2019, 7:42pm UTC](https://talk.getindico.io/t/latexruntimeexception-impossible-to-compile-happen-in-gui-interface/1270/3 "2019-05-15T19:42:18Z")

</div>

I checked the /opt/indico/tmp/indico-texgen-KWUhNs/output.log but nothing is written

drwxr-x—. 2 indico apache 240 May 14 10:57 .  
drwx–x—. 9 indico apache 4096 May 15 05:00 …  
-rw-r-----. 1 root root 1756 May 14 12:37 book\_of\_abstracts.tpl.aux  
-rw-r-----. 1 root root 54113 May 14 12:37 book\_of\_abstracts.tpl.log  
-rw-r-----. 1 root root 917 May 14 12:37 book\_of\_abstracts.tpl.out  
-rw-r-----. 1 root root 327852 May 14 12:37 book\_of\_abstracts.tpl.pdf  
-rw-r-----. 1 indico apache 14314 May 14 10:48 book\_of\_abstracts.tpl.tex  
-rw-r-----. 1 root root 789 May 14 12:37 book\_of\_abstracts.tpl.toc  
-rw-r-----. 1 indico apache 0 May 14 10:48 output.log  
-rw-r-----. 1 root root 832 May 14 10:55 texput.log

---

<div class="post-metadata">

**Author:** ![kolodzie](https://talk.getindico.io/user_avatar/talk.getindico.io/kolodzie/32/18_2.png) [@kolodzie](https://talk.getindico.io/u/kolodzie)\
**Post date:** [May 16, 2019, 5:29am UTC](https://talk.getindico.io/t/latexruntimeexception-impossible-to-compile-happen-in-gui-interface/1270/4 "2019-05-16T05:29:24Z")

</div>

Try to search for a possible cause in of those log files.

---

<div class="post-metadata">

**Author:** ![bpedersen2](https://talk.getindico.io/user_avatar/talk.getindico.io/bpedersen2/32/25_2.png) [@bpedersen2](https://talk.getindico.io/u/bpedersen2)\
**Post date:** [May 16, 2019, 1:29pm UTC](https://talk.getindico.io/t/latexruntimeexception-impossible-to-compile-happen-in-gui-interface/1270/5 "2019-05-16T13:29:17Z")

</div>

What immedeatly looks strange are the owners here. Seems like tex runs as root and indico can not read the files ( mode rwr- for root:root, while indico is running as indico:apache)

As the tex run should not happen as root, check your setup carefully.

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [May 16, 2019, 1:42pm UTC](https://talk.getindico.io/t/latexruntimeexception-impossible-to-compile-happen-in-gui-interface/1270/6 "2019-05-16T13:42:33Z")

</div>

That’s probably because he then ran it manually from the command line.

BTW @zmohamoud, you should not do those things as root - you can do pretty much everything related to indico as the indico user.

---

<div class="post-metadata">

**Author:** ![zmohamoud](https://talk.getindico.io/user_avatar/talk.getindico.io/zmohamoud/32/208_2.png) [@zmohamoud](https://talk.getindico.io/u/zmohamoud)\
**Post date:** [May 16, 2019, 7:01pm UTC](https://talk.getindico.io/t/latexruntimeexception-impossible-to-compile-happen-in-gui-interface/1270/7 "2019-05-16T19:01:24Z")

</div>

> [@zmohamoud](#):
>
> /opt/texlive/bin/x86\_64-linux/xelatex -no-shell-escape -interaction nonstopmode -output-directory /opt/indico/tmp/indico-texgen-KWUhNS /opt/indico/tmp/indico-texgen-KWUhNS/book\_of\_abstracts.tpl.tex

Thank you guys. I must have installed LaTex under Root account . I will either have to reinstall app under indico or mod the permission. will let you know the result.

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [May 16, 2019, 7:08pm UTC](https://talk.getindico.io/t/latexruntimeexception-impossible-to-compile-happen-in-gui-interface/1270/8 "2019-05-16T19:08:44Z")

</div>

I think there’s a misunderstanding: Installing texlive as root is correct. But to test if compiling the latex document works fine, you need to do it as the indico user. So I would recommend you to try accessing it in the browser again, and then go to the new folder created during the failed attempt and try running texlive manually there, but this time as the indico user.

---

<div class="post-metadata">

**Author:** ![zmohamoud](https://talk.getindico.io/user_avatar/talk.getindico.io/zmohamoud/32/208_2.png) [@zmohamoud](https://talk.getindico.io/u/zmohamoud)\
**Post date:** [May 16, 2019, 7:22pm UTC](https://talk.getindico.io/t/latexruntimeexception-impossible-to-compile-happen-in-gui-interface/1270/9 "2019-05-16T19:22:55Z")

</div>

I run it via browser and then i went to failed folder and i run the command using indico user:

[indico@ip-10-200-136-76 tmp]$ /opt/texlive/bin/x86\_64-linux/xelatex -no-shell-escape -interaction nonstopmode -output-directory /opt/indico/tmp/indico-texgen-OpAmli /opt/indico/tmp/indico-texgen-OpAmli/book\_of\_abstracts.tpl.tex  
bash: /opt/texlive/bin/x86\_64-linux/xelatex: Permission denied

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [May 16, 2019, 7:26pm UTC](https://talk.getindico.io/t/latexruntimeexception-impossible-to-compile-happen-in-gui-interface/1270/10 "2019-05-16T19:26:07Z")

</div>

OK, in that case there’s indeed something wrong with your texlive setup. Did you by any chance change some permissions inside /opt/texlive?

Anyway, `rm -rf /opt/texlive` and reinstalling it based on the docs in [https://docs.getindico.io/en/latest/installation/latex/](https://docs.getindico.io/en/latest/installation/latex/) is probably the fastest way to (hopefully) get it working again.

---

<div class="post-metadata">

**Author:** ![zmohamoud](https://talk.getindico.io/user_avatar/talk.getindico.io/zmohamoud/32/208_2.png) [@zmohamoud](https://talk.getindico.io/u/zmohamoud)\
**Post date:** [May 17, 2019, 6:05pm UTC](https://talk.getindico.io/t/latexruntimeexception-impossible-to-compile-happen-in-gui-interface/1270/11 "2019-05-17T18:05:17Z")

</div>

@ThiefMaster - I didn’t change ant permission on /opt/texlive. I removed the texlive and reinstalled based on installation guide in this link the [https://docs.getindico.io/en/latest/installation/latex/#latex](https://docs.getindico.io/en/latest/installation/latex/#latex). Installed successful but then I tried o access abstract via browser and I get the same error;

Here is the default permission in /opt

drwx–x—. 13 indico apache 244 May 17 12:14 indico  
drwxr-xr-x. 2 root root 103 Oct 3 2017 localuserlist  
drwxr-x—. 8 root root 246 May 17 12:55 texlive

What is the right permission for indico user on /opt/texlive?

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [May 17, 2019, 6:10pm UTC](https://talk.getindico.io/t/latexruntimeexception-impossible-to-compile-happen-in-gui-interface/1270/12 "2019-05-17T18:10:31Z")

</div>

I guess you have a restrictive umask set, so the default permissions of `/opt/texlive` were too strict.

`chmod 755 /opt/texlive` should fix it.

---

<div class="post-metadata">

**Author:** ![zmohamoud](https://talk.getindico.io/user_avatar/talk.getindico.io/zmohamoud/32/208_2.png) [@zmohamoud](https://talk.getindico.io/u/zmohamoud)\
**Post date:** [May 28, 2019, 2:06pm UTC](https://talk.getindico.io/t/latexruntimeexception-impossible-to-compile-happen-in-gui-interface/1270/13 "2019-05-28T14:06:58Z")

</div>

> [@ThiefMaster](#):
>
> `chmod 755 /opt/texlive` should fix it.

Thank you @ThiefMaster . The permission changes fixed the issues
