Error when exporting an abstract to PDF

I encounter this when trying to export an abstract to PDF. Do you know what might have happened and how to solve this? Many thanks.

LaTeXRuntimeException: LaTeX compilation of /opt/indico/tmp/indico-texgen-euw3ytlk/single_doc.tex failed

Check the log file in /opt/indico/tmp/indico-texgen-euw3ytlk/ for the actual error (ideally just share the log file here). If there’s nothing sensitive in the abstract (which I guess is indeed the case since you already shared the screenshot here) feel free to zip that whole folder and upload it here.

Note: It may have been deleted depending on how long ago the error happened. But you can simply try generating the PDF again and a new folder will be created.

Hello. I have the same problem:

LaTeXRuntimeException: LaTeX compilation of /opt/indico/tmp/indico-texgen-fg6lvj23/single_doc.tex failed

Report error says:

Traceback
---------
Traceback (most recent call last):
  File "/opt/indico/.venv/lib/python3.12/site-packages/indico/legacy/pdfinterface/latex.py", line 210, in run
    self.run_latex(source_filename, log_file)
  File "/opt/indico/.venv/lib/python3.12/site-packages/indico/legacy/pdfinterface/latex.py", line 147, in run_latex
    subprocess.check_call(
  File "/opt/indico/.pyenv/versions/3.12.2/lib/python3.12/subprocess.py", line 408, in check_call
    retcode = call(*popenargs, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/indico/.pyenv/versions/3.12.2/lib/python3.12/subprocess.py", line 389, in call
    with Popen(*popenargs, **kwargs) as p:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/indico/.venv/lib/python3.12/site-packages/sentry_sdk/integrations/stdlib.py", line 217, in sentry_patched_popen_init
    rv = old_popen_init(self, *a, **kw)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/indico/.pyenv/versions/3.12.2/lib/python3.12/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/opt/indico/.pyenv/versions/3.12.2/lib/python3.12/subprocess.py", line 1953, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: '/opt/texlive/bin/x86_64-linux/xelatex'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/indico/.venv/lib/python3.12/site-packages/flask/app.py", line 870, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/indico/.venv/lib/python3.12/site-packages/flask/app.py", line 855, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/indico/.venv/lib/python3.12/site-packages/indico/web/flask/util.py", line 80, in wrapper
    return obj().process()
           ^^^^^^^^^^^^^^^
  File "/opt/indico/.venv/lib/python3.12/site-packages/indico/web/rh.py", line 299, in process
    res = self._do_process()
          ^^^^^^^^^^^^^^^^^^
  File "/opt/indico/.venv/lib/python3.12/site-packages/indico/modules/events/controllers/base.py", line 106, in _do_process
    return RHEventBase._do_process(self)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/indico/.venv/lib/python3.12/site-packages/indico/web/rh.py", line 267, in _do_process
    rv = self._process()
         ^^^^^^^^^^^^^^^
  File "/opt/indico/.venv/lib/python3.12/site-packages/indico/modules/events/abstracts/controllers/abstract.py", line 97, in _process
    return send_file(filename, pdf.generate(), 'application/pdf')
                               ^^^^^^^^^^^^^^
  File "/opt/indico/.venv/lib/python3.12/site-packages/indico/legacy/pdfinterface/latex.py", line 62, in generate
    return latex.run(self.LATEX_TEMPLATE, **self._args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/indico/.venv/lib/python3.12/site-packages/indico/legacy/pdfinterface/latex.py", line 218, in run
    raise LaTeXRuntimeException(source_filename, log_filename)
indico.legacy.pdfinterface.latex.LaTeXRuntimeException: LaTeX compilation of /opt/indico/tmp/indico-texgen-fg6lvj23/single_doc.tex failed


Request Data
------------
{'data': {'get': {},
          'headers': {'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
                      'Accept-Encoding': 'gzip, deflate, br',
                      'Accept-Language': 'sk,cs;q=0.9,en-US;q=0.8,en;q=0.7,de;q=0.6,es;q=0.5,ru;q=0.4,fr;q=0.3',
                      'Connection': 'upgrade',
                      'Cookie': 'indico_session=xxx',
                      'Host': 'indico.utef.cvut.cz',
                      'Priority': 'u=0, i',
                      'Referer': 'https://indico.utef.cvut.cz/event/40/abstracts/980/',
                      'Sec-Ch-Ua': '"Google Chrome";v="131", '
                                   '"Chromium";v="131", "Not_A Brand";v="24"',
                      'Sec-Ch-Ua-Mobile': '?0',
                      'Sec-Ch-Ua-Platform': '"Windows"',
                      'Sec-Fetch-Dest': 'document',
                      'Sec-Fetch-Mode': 'navigate',
                      'Sec-Fetch-Site': 'same-origin',
                      'Sec-Fetch-User': '?1',
                      'Upgrade-Insecure-Requests': '1',
                      'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) '
                                    'AppleWebKit/537.36 (KHTML, like Gecko) '
                                    'Chrome/131.0.0.0 Safari/537.36',
                      'X-Forwarded-For': 'xxx',
                      'X-Forwarded-Proto': 'https',
                      'X-Real-Ip': 'xxx'},
          'json': None,
          'post': {},
          'url': {'abstract_id': 980, 'event_id': 40, 'management': False}},
 'endpoint': 'abstracts.display_abstract_pdf_export',
 'id': 'e51deaef80e24a41',
 'ip': 'xxx',
 'method': 'GET',
 'referrer': 'https://indico.utef.cvut.cz/event/40/abstracts/980/',
 'rh': 'RHAbstractExportPDF',
 'time': '2024-12-12T19:02:15.840844',
 'url': 'https://indico.utef.cvut.cz/event/40/abstracts/980/abstract.pdf',
 'user': {'email': 'rastislav.hodak@utef.cvut.cz',
          'id': 2,
          'name': 'Rastislav Hodak'},
 'user_agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 '
               '(KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36'}


--
Indico :: Error Report
https://indico.utef.cvut.cz/

Thank you for any help.
Regards,
Rastislav

Check the LaTeX log file in /opt/indico/tmp/indico-texgen-fg6lvj23 - the error you posted do not contain useful details.

PS: Indico v3.3.1 is outdated - you should update to v3.3.5!

OK, thanks. I will keep you informed.