Indico generating Unexpected Exception errors

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

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

    /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

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.