-
Bug
-
Resolution: Fixed
-
High
-
Severity 3 - Minor
-
Customers trying to setup a new connection to GitHub are unable to connect, receiving and Error: Invalid user/team account.
The reason for this is due to rate-limiting that GitHub has in place. Un-authenticated requests are limited to 1 per second per IP address over a 1 minute period. Outbound connections in OnDemand share squid proxies. There are two per rack meaning that approximately 1000 instances share a single outbound IP.
During busy periods, the rate limit means that customers are seeing error pages when they enable Github DVCS connector syncing.
We need to adjust the DVCS connector so that it takes account of this fact.
EDIT - If you are seeing this issue please raise a ticket at https://support.atlassian.com and we can investigate and see if a workaround is available for your instance.
Form Name |
---|
activity
عليان بن محمد
26/Jun/16 9:54 AM
Re: Unable to link to GitHub due to Invalid user/team account error
One problem I've noticed is the scope has changed at GitHub and the Feb 20th date ties up with this. There is now a separate permission for write:repo_hook that needs to be added to the scope when requesting a OAuth token. As a result JIRA is no longer able to attach the webhooks to the repo in GitHub and will rely on the hourly sync, which will quickly blow through the allowance (check the scope in com.atlassian.jira.plugins.dvcs.spi.github.webwork.GithubOAuthUtils#createGithubRedirectUrl). If I manually create the webhooks, then it seems to perform as you might expect.
One other possible issue is that Jira installs two webhooks pointing at the same URL (which you can't do manually in the GH interface).
(The webhooks are com.atlassian.jira.plugins.dvcs.spi.github.GithubCommunicator#createChangesetsHook and com.atlassian.jira.plugins.dvcs.spi.github.GithubCommunicator#createPullRequestsHook). The createPullRequestsHook includes the