Hi everyone,
I get those mails from time to time. Is there a way to prevent them?
Martin
---------- Forwarded message --------- From: Cron Daemon root@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@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
On 5/3/19 9:59 AM, Martin Urbanec wrote:
Hi everyone,
I get those mails from time to time. Is there a way to prevent them?
That error doesn't sound familiar to me. Please open a Phabricator ticket with all the information you have and we will investigate further.
regards
Thank you Arturo, sure, filled as https://phabricator.wikimedia.org/T222429. Also filled https://phabricator.wikimedia.org/T222430, that's an error I didn't forward to the list, but also gets sent fairly often.
@Jaime, sorry for not being clear. I would like to get the error fixed. Also, since I have jsub command in cron (as noted in the email subject), the output cron's mailing must be from jsub itself, not from my code - output from that code should be stored in ~/generate.{out,err}, unless I'm mistaken. If I'm right, the error is in WMF's systems, which should get fixed for sure :).
Best, Martin Urbanec
On Fri, 3 May 2019 at 10:38, Arturo Borrero Gonzalez aborrero@wikimedia.org wrote:
On 5/3/19 9:59 AM, Martin Urbanec wrote:
Hi everyone,
I get those mails from time to time. Is there a way to prevent them?
That error doesn't sound familiar to me. Please open a Phabricator ticket with all the information you have and we will investigate further.
regards
-- Arturo Borrero Gonzalez Operations Engineer / Wikimedia Cloud Services Wikimedia Foundation
On Fri, May 3, 2019 at 10:52 AM Martin Urbanec martin.urbanec@wikimedia.cz wrote:
Thank you Arturo, sure, filled as https://phabricator.wikimedia.org/T222429. Also filled https://phabricator.wikimedia.org/T222430, that's an error I didn't forward to the list, but also gets sent fairly often.
@Jaime, sorry for not being clear. I would like to get the error fixed. Also, since I have jsub command in cron (as noted in the email subject), the output cron's mailing must be from jsub itself, not from my code - output from that code should be stored in ~/generate.{out,err}, unless I'm mistaken. If I'm right, the error is in WMF's systems, which should get fixed for sure :).
Thanks Martin for the clarification, I am indeed not familiar with jsub, sorry.
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@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@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@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@lists.wikimedia.org (formerly labs-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/cloud