github-for-jira icon indicating copy to clipboard operation
github-for-jira copied to clipboard

Internal Server Error when connecting GitHub organisation

Open awesome-Leni opened this issue 2 years ago • 6 comments

Hello!

I'm getting 500 Internal Server Error when connecting GitHub organisation. GET https://github.atlassian.com/github/configuration gives 500.

Could you help me to connect my GitHub organisation?

awesome-Leni avatar Jul 14 '22 13:07 awesome-Leni

i couldnt be able to do. it think its broken.

yersoy avatar Jul 28 '22 11:07 yersoy

@awesome-Leni what is your jira url? I'll look at the logs. Do you have IP Allowlisting enabled in your github org?

mboudreau avatar Jul 28 '22 12:07 mboudreau

IP allowlist is a premium feature :/

Ritma-Teknoloji avatar Jul 28 '22 12:07 Ritma-Teknoloji

@Ritma-Teknoloji you don't need it, the problem is often because IP Allowlisting is enabled and not configured properly. If you don't have it enabled, there shouldn't be any major issue unless you're not the admin of the github organization.

mboudreau avatar Jul 28 '22 13:07 mboudreau

https://github.atlassian.com/github/configuration gives 500 to me as well. Shame, wanted to give Jira <> Github a spin.

rikur avatar Aug 10 '22 11:08 rikur

Hi @awesome-Leni @yersoy @Ritma-Teknoloji and @rikur, You'll need to go through the right flow of installing the GitHub for Jira App in your Jira and then proceed with the installation flow for it to make it work.

Screen Shot 2022-08-23 at 2 07 59 pm

After installing the app, from the page above, when you click Connect GitHub organization we'll redirect you to the github/configuration URL using your current Jira host. Directly navigating to the https://github.atlassian.com/github/configuration link returns a 500 because we don't know the Jira Host you're trying to install the app.

As Michel mentioned above, if you don't have IP Allowlisting enabled, there shouldn't be any major issue unless you're not the admin of the GitHub organization.

Could you please try to install the app again and, if not successful, could you send your Jira Hosts so we can investigate further on our end? Thanks!

atrigueiro avatar Aug 23 '22 04:08 atrigueiro

Hey @awesome-Leni @yersoy @Ritma-Teknoloji and @rikur. As we haven’t heard from you in almost 2 months, I’m going to go ahead and close this issue. Please feel free to reopen if you still need assistance.

rachellerathbone avatar Oct 19 '22 04:10 rachellerathbone

@rachellerathbone I had this problem today. Installed the Atlassian-side app, clicked the "Connect GitHub organization" button shown in @atrigueiro 's screenshot above, it tried to take me to GitHub to authenticate and get set up but it caused an error. First time I tried it said "Jira Host url is missing", then when I went back a retried I hit the internal server error. The workaround was to go to the GitHub org I wanted to link, install the GitHub-side app there manually first, then go back to the Atlassian side to link the two.

Seems like there's a bug in there somewhere, but if you want a quick "fix" you should update the messaging during the Atlassian-side app install to make it clear that we need to manually install the GitHub-side app before it's possible to connect Jira to GitHub.

dtip avatar Oct 20 '22 10:10 dtip

@mboudreau @atrigueiro @rachellerathbone thanks for coming back to me! I didn't receive notifications for some reason and only checked the thread now. I don't have any IP allow listing set up and I'm the admin of the GitHub organisation. After trying to connect the GitHub organisation again I started to see Unauthorised in the new window: image I decided I want to see the logs in that pop-up window in Web Developer Tools (I'm using Firefox) which lead me to opening Browser Console (following this answer https://superuser.com/a/1649172). With Browser Console open and Request selected as described in the answer link below I suddenly could see the next step of the integration flow. I went through the integration and now my GitHub organisation is connected to Jira.

awesome-Leni avatar Dec 05 '22 12:12 awesome-Leni

@awesome-Leni Can you explain how you got this to work again? I'm also getting the "Unauthorized" message

antonengelhardt avatar Apr 19 '23 11:04 antonengelhardt

@awesome-Leni Can you explain how you got this to work again? I'm also getting the "Unauthorized" message

Did you try following the steps I described in my comment above? I don't think my explanation can be more detailed than what I already wrote.

awesome-Leni avatar Apr 19 '23 11:04 awesome-Leni

@awesome-Leni Thanks. I got it now. It was a weird issue with my Browser.

antonengelhardt avatar Apr 19 '23 13:04 antonengelhardt