<div dir="ltr">I've contacted the user in a private mail.<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 4, 2016 at 1:06 AM, Fæ <span dir="ltr"><<a href="mailto:faebug@gmail.com" target="_blank">faebug@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The reports that Faebot was generating for more than a year, fail with<br>
the error:<br>
_mysql_exceptions.OperationalError: (1226, "User 's51457' has exceeded<br>
the 'max_user_connections' resource (current value: 1)")<br>
<br>
This seems to be a change in the config for the wiki database. Is<br>
there a setting to get around it,<br>
or is this something that is might sort itself out?<br>
<br>
While I'm here, the following SQL used to run in under a minute, but<br>
now never gets to complete, leaving the very useful BLP/images report<br>
broken for a couple of months now. See<br>
<a href="http://quarry.wmflabs.org/query/6612" rel="noreferrer" target="_blank">http://quarry.wmflabs.org/query/6612</a> - seems to run on Quarry, but<br>
never completes on labs.<br>
Has the database structure been changed in some way? Tips welcome!<br>
<br>
SELECT<br>
log_title AS image,<br>
DATE_FORMAT(log_timestamp, "%Y-%m-%dT%H:%i:%s" ) AS timestamp,<br>
COUNT(*) AS "numb BLPs",<br>
IF( abs( img_timestamp - log_timestamp ) < 8, "Current",<br>
"Replaced" ) AS top,<br>
log_comment,<br>
oi_timestamp<br>
FROM commonswiki_p.logging_logindex<br>
INNER JOIN commonswiki_p.globalimagelinks ON log_title = gil_to AND<br>
gil_wiki = 'enwiki'<br>
LEFT OUTER JOIN commonswiki_p.image ON img_name = log_title<br>
INNER JOIN enwiki_p.categorylinks ON gil_page = cl_from<br>
AND enwiki_p.categorylinks.cl_to IN<br>
('Living_people','Possibly_living_people', '2015_deaths',<br>
'2014_deaths', '2013_deaths')<br>
INNER JOIN commonswiki_p.user ON log_user = user_id AND user_editcount < 1000<br>
LEFT OUTER JOIN enwiki_p.user u2 ON log_user_text = u2.user_name<br>
LEFT OUTER JOIN commonswiki_p.oldimage ON img_name = oi_name<br>
WHERE log_type = 'upload' AND<br>
log_timestamp > DATE_FORMAT(DATE_ADD(NOW(), INTERVAL -8 DAY),<br>
"%Y%m%d%H%i%s") AND<br>
log_action = 'overwrite' AND<br>
oi_user != img_user AND<br>
(u2.user_editcount < 2000 OR u2.user_editcount IS NULL) AND<br>
NOT img_minor_mime = "svg+xml"<br>
GROUP BY log_timestamp, log_title<br>
HAVING oi_timestamp = MIN(oi_timestamp)<br>
ORDER BY log_timestamp DESC, oi_timestamp DESC<br>
LIMIT 1000;<br>
<br>
Fae<br>
<br>
<br>
On 1 January 2016 at 23:16, Fæ <<a href="mailto:faewik@gmail.com">faewik@gmail.com</a>> wrote:<br>
> The reports that Faebot was generating for more that a year, fail<br>
> consistently with the error:<br>
> _mysql_exceptions.OperationalError: (1226, "User 's51457' has exceeded<br>
> the 'max_user_connections' resource (current value: 1)")<br>
><br>
> This seems to be a change in the config for the wiki database. How are<br>
> bot/report writers supposed to get around it, or is this something<br>
> that is about to sort itself out?<br>
><br>
> Thanks,<br>
> Fae<br>
> --<br>
> <a href="mailto:faewik@gmail.com">faewik@gmail.com</a> <a href="https://commons.wikimedia.org/wiki/User:Fae" rel="noreferrer" target="_blank">https://commons.wikimedia.org/wiki/User:Fae</a><br>
<br>
<br>
<br>
--<br>
<a href="mailto:faewik@gmail.com">faewik@gmail.com</a> <a href="https://commons.wikimedia.org/wiki/User:Fae" rel="noreferrer" target="_blank">https://commons.wikimedia.org/wiki/User:Fae</a><br>
Personal and confidential, please do not circulate or re-quote.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<a href="mailto:faebug@gmail.com">faebug@gmail.com</a> <a href="http://j.mp/faewm" rel="noreferrer" target="_blank">http://j.mp/faewm</a><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" rel="noreferrer" target="_blank">https://lists.wikimedia.org/mailman/listinfo/labs-l</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>Jaime Crespo<br></div><<a href="http://wikimedia.org" target="_blank">http://wikimedia.org</a>><br></div></div>
</div></div></div>