It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Problems with Jira's DVCS Github repository sync coming unstuck and not finding new changes

We've had our local and self hosted GitHub Enterprise instance connected to our Jira Software (Server) instance for a few years now and in recent months we've found countless scenarios where the regular sync has become unstuck.

 

What I mean by this is that many commits, PR's or branches with the correctly formatted Jira KEY-1234 reference in all caps are being missed. 

Worse that this seems to be in repositories which were proven to be working just days, weeks, or months ago.

 

Whenever we've inspected this, the DVCS administration page has implied that there's been no activity in X days or weeks. We then force a sync on that repo alone and after a few minutes it finds any relevant commits, branches or PR's. This isn't sustainable and is impacting more repos every day.

 

The DVCS service is scheduled for a Sunday night so as to minimise impact to our 2000 users.

 

We do have many hundreds of orgs, thousands of repositories and millions of commits etc - so my only guess is that the synchronisation process timesout due to how much it must trawl through t ofind new commits etc.

 

Has anyone else faced this same issue in their enterprise? And if so what changes have you put in place to resolve this issue

 

Side note: post commit hooks connections can not be setup on these repos, so we rely on Jira's sync itself.

1 answer

Just to chime in, I've got this exact scenario happening.  The issue is the Hooks in the Github side for the repos are vanishing, or at least if I try to re-create the connection for a failing Org/repo, it throws a "could not create webhook" error in JIRA, saying error 422. 

On the Github side, in the unicorn.log file you'll find the Github side of that error, at least in our case, we're seeing an error returned of "errors='"id" is not a permitted key.'"

Atlassian Support is currently chasing this down as it Github support, I'll update this is anything gets figured out.  

The weird thing is everything worked for years, we presume, no one complained at least.  Only in the past few months has this come up as a problem for us, but maybe it's only been noticed in the past few months, but has been failing for a while.

 

Not all repos/orgs are failing though, some have hooks still and they work, some seem to be working even without hooks showing up in the repo webhook settings page.  I don't understand how those are working at all...

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Off-topic

Do you still play the same games you played when you were a kid?

Months ago, I was walking in a huge grocery store and I went to the toys aisle and found a jigsaw puzzle that was more than 50% off, and I thought "why not? It will be fun and it can be a beautiful f...

316 views 35 12
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you