Page MenuHomePhabricator

xml.etree.ElementTree.ParseError: no element found: line 1, column 0 on job submission through Cron
Closed, DuplicatePublic

Description

I get emails like this from Cron Daemon <root@tools.wmflabs.org> from time to time. I didn't see this error when submitting a job manually (from the bastion hosts).

cannot allocate TLS data structures for initial threadTraceback (most recent call last):
  File "/usr/bin/job", line 48, in <module>
    root = xml.etree.ElementTree.fromstring(proc.stdout.read())
  File "/usr/lib/python3.5/xml/etree/ElementTree.py", line 1345, in XML
    return parser.close()
xml.etree.ElementTree.ParseError: no element found: line 1, column 0

This particular email was sent on May 3th 2019 at 02:00, for tool map-of-monuments. However, similar email arrived for tool urbanecmbot on 26 Apr at 02:00, with the following content.

/usr/lib/gridengine/qstat: error while loading shared libraries: libm.so.6: failed to map segment from shared object
Traceback (most recent call last):
  File "/usr/bin/job", line 48, in <module>
    root = xml.etree.ElementTree.fromstring(proc.stdout.read())
  File "/usr/lib/python3.5/xml/etree/ElementTree.py", line 1345, in XML
    return parser.close()
xml.etree.ElementTree.ParseError: no element found: line 1, column 0