Hi, Martin,
It is unclear if you ask about not receiving the email or fixing the
error, I will answer both.
If the first, cron jobs get it standard output sent by email to the
user, and I am guessing that gets redirected on cloud to the actual
email. You can avoid that by redirecting errors to a log. If you have
nothing to do with such tool and get sent that by mistake (maybe that
is your complain?), contact cloud admins so you get removed as this
tool owner if you were incorrectly assigned as such.
If the second, that is the error Python would give when parsing an
invalid XML file. We would need to know how you read it or generate it
to understand why it is invalid (e.g. maybe you expect a valid xml as
an api response but you get an error instead, but still need to parse
it). Detecting the error or the exception would be the way to process
that gracefully.
I hope some of this is helpful,
On Fri, May 3, 2019 at 10:11 AM Martin Urbanec
<martin.urbanec(a)wikimedia.cz> wrote:
Hi everyone,
I get those mails from time to time. Is there a way to prevent them?
Martin
---------- Forwarded message ---------
From: Cron Daemon <root(a)tools.wmflabs.org>
Date: Fri, 3 May 2019 at 02:00
Subject: Cron <tools.map-of-monuments@tools-sgecron-01> jlocal rm -f
/data/project/map-of-monuments/generate.*; /usr/bin/jsub -N generate -once -quiet bash
/data/project/map-of-monuments/support/generate_monuments.sh
To: <tools.map-of-monuments(a)tools.wmflabs.org>
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
_______________________________________________
Wikimedia Cloud Services mailing list
Cloud(a)lists.wikimedia.org (formerly labs-l(a)lists.wikimedia.org)
https://lists.wikimedia.org/mailman/listinfo/cloud
--
Jaime Crespo
<http://wikimedia.org>