<div dir="ltr">Why things are so difficult? :-/<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-14 20:16 GMT+02:00 Jeremy Baron <span dir="ltr"><<a href="mailto:jeremy@tuxmachine.com" target="_blank">jeremy@tuxmachine.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Wed, May 14, 2014 at 6:11 PM, Emilio J. RodrÃguez-Posada<br>
<<a href="mailto:emijrp@gmail.com">emijrp@gmail.com</a>> wrote:<br>
> I coded a script that uses several wiki databases and servers. When I<br>
> manually execute it, it works fine, but after adding it to cron, it returns<br>
> this error:<br>
</div>[...]<br>
<div class="">> _mysql_exceptions.OperationalError: (2005, "Unknown MySQL server host<br>
> 's3.labsdb' (0)")<br>
<br>
</div>Sounds like whatever host you end up running on is missing /etc/hosts entries.<br>
<br>
See <a href="https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Help#Connecting_to_the_database_replicas_from_other_Labs_instances" target="_blank">https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Help#Connecting_to_the_database_replicas_from_other_Labs_instances</a><br>
<br>
-Jeremy<br>
<br>
_______________________________________________<br>
Labs-l mailing list<br>
<a href="mailto:Labs-l@lists.wikimedia.org">Labs-l@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/labs-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/labs-l</a><br>
</blockquote></div><br></div>