<div dir="ltr"><div class="gmail_extra">Jim, <br><br></div><div class="gmail_extra">It's strange but the ban appears to be per-user, not per-host - i.e. I'm able to run 'gerrit' command from another user. I couldn't find any configuration option that match this behavior. So I've changed the user to a new one (stackalytics-bot-2) and the process is up and running. <br></div><div class="gmail_extra"><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This may be related to the gerrit upgrade, or it may be a coincidence.<br></blockquote><div><br></div><div>More like coincidence. The issue appeared first on Dec 29th, but after that Stackalytics was able to get data until Jan 2nd.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It looks like <a href="http://stackalytics.openstack.org" rel="noreferrer" target="_blank">stackalytics.openstack.org</a> _and_ <a href="http://stackalytics.org" rel="noreferrer" target="_blank">stackalytics.org</a> are both<br>
showing the same behavior. Gerrit sees 64 open connections from each of<br>
them, most of which have been idle for many hours or days. It seems<br>
like there may be a problem with connections not being closed properly.<br></blockquote><div><br></div><div>Hmm. From stackalytics side I don't see more than 2 connections (one active and one in closing state). The connection is used for up to 20 queries, then it is closed and a new one is opened. May it be that connections remain in half-closed state (when client closed it, but server still thinks it's open)?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Incidentally, at this point, the REST API should be complete enough that<br>
if you wanted to switch to it rather than ssh, it should be possible.<br>
However, I understand if that's something you might not want to do right<br>
now.<br></blockquote><div><br></div><div>I need to look at REST API closer. But yes, it's something to do in a long term.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
> PS.<br>
> project list will be fixed soon by <a href="https://review.openstack.org/#/c/265730/" rel="noreferrer" target="_blank">https://review.openstack.org/#/c/265730/</a><br>
<br>
</span>Please don't have Stackalytics use github for anything -- there should<br>
be no reason to do so -- let's correct the connection problems above<br>
before introducing a dependency on another service.<br></blockquote><div><br></div><div>Ok, agree. It's much easier to get banned by Github :( I've reverted that change.<br><br></div><div>Thanks,<br></div><div>Ilya <br></div><br></div></div></div>