[Labs-l] Cron jobs can't connect to the database
Andre Karwath
aka at aka-online.de
Fri Jun 27 10:20:23 UTC 2014
Am 27.06.2014 12:11, schrieb Merlijn van Deen:
> On 27 June 2014 11:38, Andre Karwath <aka at aka-online.de
> <mailto:aka at aka-online.de>> wrote:
>
> I just migrated a tool from the toolserver to labs. It works as
> long as I ran it from a shell, but it gets no database connection
> if I start it as cronjob.
>
> What's the error message you get? Does the script start at all (i.e.
> is it a cron error), do you get a perl error (e.g. a missing library),
> or a database authentication error?
The script works as long as I start it from a login shell (no perl
errors, no missing libaries). If a cronjob starts it, it starts too, but
the database connection failes with "Can't connect to MySQL server on
'dewiki.labsdb' (110)".
Regards,
André (aka)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/labs-l/attachments/20140627/157b2a50/attachment.html>
More information about the Labs-l
mailing list