# Indico generating Unexpected Exception errors

**URL:** <https://talk.getindico.io/t/indico-generating-unexpected-exception-errors/339>\
**Category:** Administrators\
**Created:** [April 16, 2018, 3:20pm UTC](https://talk.getindico.io/t/indico-generating-unexpected-exception-errors/339 "2018-04-16T15:20:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjperez](https://talk.getindico.io/letter_avatar_proxy/v4/letter/r/aeb1de/32.png) [@rjperez](https://talk.getindico.io/u/rjperez)\
**Post date:** [April 16, 2018, 3:20pm UTC](https://talk.getindico.io/t/indico-generating-unexpected-exception-errors/339/1 "2018-04-16T15:20:25Z")

</div>

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

> [@Indico spamming like crazy](https://talk.getindico.io/t/indico-spamming-like-crazy/337):
>
> I’m making a fresh install of indico to migrate our 1.2 installation to. I’ve followed the instructions here: [https://docs.getindico.io/en/stable/installation/production/centos/nginx/](https://docs.getindico.io/en/stable/installation/production/centos/nginx/). Part of this was “pip install indico” which I assume installs 2.0.3 (I have a separate item about how to verify that). This is configured, but has no active data in it yet. It has been installed since Friday, but today we suddenly had around 500 emails containing this traceback: Traceback (most recent call last)…

```auto
Subject: 
Unexpected Exception occurred at indico.bnl.gov: Impossible to compile '/opt/indico/tmp/indico-texgen-zdYVxL/single_doc.tpl.tex'. Read '/opt/indico/tmp/indico-texgen-zdYVxL/output.log' for details
From: 
<logger@indico.bnl.gov>
Date: 
04/16/2018 10:12 AM
To: 
<support@indico.bnl.gov>

2018-04-16 10:12:09,650 9eec9c6a030f492a indico.flask - ERROR errors.py:107 -- 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/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/opt/indico/.venv/lib/python2.7/site-packages/flask/app.py", 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/util.py", line 114, in wrapper
    return obj().process()
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/web/rh.py", line 270, in process
    res = self._do_process()
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/modules/events/controllers/base.py", line 63, in _do_process
    return RHEventBase._do_process(self)
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/web/rh.py", line 249, in _do_process
    return self._process()
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/modules/events/contributions/controllers/display.py", 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/base.py", line 683, in generate
    pdffile = latex.run(self._tpl_filename, **self._args)
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/legacy/pdfinterface/base.py", 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'support@search.yandex.ru',
                        'Front-End-Https': u'On',
                        'Host': u'indico.bnl.gov',
                        'Surrogate-Capability': u'cache3.bnl.gov="Surrogate/1.0 ESI/1.0"',
                        'User-Agent': u'Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)',
                        'Via': u'1.1 cache3.bnl.gov (squid)',
                        'X-Forwarded-For': u'100.43.81.122'},
           u'json': None,
           u'post': {},
           u'url': {'confId': u'1743', 'contrib_id': 3238}},
 u'endpoint': u'contributions.export_pdf',
 u'id': '9eec9c6a030f492a',
 u'ip': '192.168.1.32',
 u'method': 'GET',
 u'referrer': None,
 u'rh': 'RHContributionExportToPDF',
 u'time': '2018-04-16T10:12:09.661769',
 u'url': u'https://indico.bnl.gov/event/1743/contributions/3238/contribution.pdf',
 u'user': None,
 u'user_agent': u'Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)'}

```

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):

```auto
    /opt/indico/.venv/lib/python2.7/site-packages/indico/web/blueprint.py
    /opt/indico/.venv/lib/python2.7/site-packages/indico/web/blueprint.pyc

```

Thanks,  
Rafael

---

<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:** [April 16, 2018, 3:34pm UTC](https://talk.getindico.io/t/indico-generating-unexpected-exception-errors/339/2 "2018-04-16T15:34:27Z")

</div>

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.
