Full error email:
Systemd timer ran the following command: /usr/local/bin/dumpwikibaserdf.sh -p wikidata -d lexemes -f ttl -e nt Its return value was 1 and emitted the following output: ERROR 2013 (HY000): Lost connection to MySQL server at 'reading authorization packet', system error: 104 Failed. Couldn't get MAX(page_id) from db.
We can add retries in the getNumberOfBatchesNeeded function in /usr/local/bin/wikibasedumps-shared.sh to take care of that. This is the only function in this little shared library that makes db queries, so that should get it.