Indico generating Unexpected Exception errors

I’m also receiving a Traceback error but from a different requested url than what’s in this thread here:

Unexpected Exception occurred at Impossible to compile '/opt/indico/tmp/indico-texgen-zdYVxL/single_doc.tpl.tex'. Read '/opt/indico/tmp/indico-texgen-zdYVxL/output.log' for details
04/16/2018 10:12 AM

2018-04-16 10:12:09,650  9eec9c6a030f492a  indico.flask - ERROR -- Impossible to compile '/opt/indico/tmp/indico-texgen-zdYVxL/single_doc.tpl.tex'. Read '/opt/indico/tmp/indico-texgen-zdYVxL/output.log' for details

Traceback (most recent call last):
  File "/opt/indico/.venv/lib/python2.7/site-packages/flask/", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/opt/indico/.venv/lib/python2.7/site-packages/flask/", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/web/flask/", line 114, in wrapper
    return obj().process()
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/web/", line 270, in process
    res = self._do_process()
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/modules/events/controllers/", line 63, in _do_process
    return RHEventBase._do_process(self)
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/web/", line 249, in _do_process
    return self._process()
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/modules/events/contributions/controllers/", line 185, in _process
    return send_file('contribution.pdf', pdf.generate(), 'application/pdf')
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/legacy/pdfinterface/", line 683, in generate
    pdffile =, **self._args)
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/legacy/pdfinterface/", line 749, in run
    raise LaTeXRuntimeException(source_filename, log_filename)
LaTeXRuntimeException: LaTeX compilation of /opt/indico/tmp/indico-texgen-zdYVxL/single_doc.tpl.tex failed

{u'data': {u'get': {},
           u'headers': {'Accept': u'*/*',
                        'Accept-Encoding': u'gzip,deflate',
                        'Accept-Language': u'en, *;q=0.01',
                        'Cache-Control': u'max-age=259200',
                        'Connection': u'keep-alive',
                        'From': u'',
                        'Front-End-Https': u'On',
                        'Host': u'',
                        'Surrogate-Capability': u'"Surrogate/1.0 ESI/1.0"',
                        'User-Agent': u'Mozilla/5.0 (compatible; YandexBot/3.0; +',
                        'Via': u'1.1 (squid)',
                        'X-Forwarded-For': u''},
           u'json': None,
           u'post': {},
           u'url': {'confId': u'1743', 'contrib_id': 3238}},
 u'endpoint': u'contributions.export_pdf',
 u'id': '9eec9c6a030f492a',
 u'ip': '',
 u'method': 'GET',
 u'referrer': None,
 u'rh': 'RHContributionExportToPDF',
 u'time': '2018-04-16T10:12:09.661769',
 u'url': u'',
 u'user': None,
 u'user_agent': u'Mozilla/5.0 (compatible; YandexBot/3.0; +'}

I can reproduce the error by following the url link above. Any ideas?

By the way, I removed the following files that were on our server as well (the error above does seem to be unrelated though):



Yes, this is unrelated. The test blueprint only exposed the /test URL whose sole purpose was to trigger errors.

In your case it’s some issue with the LaTeX generation - and there’s a Google crawler accessing pages that trigger LaTeX builds, hence the spam. Check the logfile mentioned in the Exception and see if there’s any useful information. There are also a few other threads here related to latex - see if the tips in there solve your problem.