Sentry: GitLab Repos Fail to Add after Deletion

Created on 13 Nov 2018  路  10Comments  路  Source: getsentry/sentry

Important Details

How are you running Sentry?

  • [ ] On-Premise docker [Version xyz]
  • [x] Saas (sentry.io)
  • [ ] Other [briefly describe your environment]

Description

I'm not savvy enough with js to really debug this. I previously added these and then deleted them. I can no longer add them. And get this error.

https://cl.ly/aa9b9178d42b

Integrations Bug

All 10 comments

I can take a look.

Sentry issue: JAVASCRIPT-4MD

This was fixed in #10572

@markstory Is this fixed in SaaS on sentry.io ? I am having the exact same issue I believe.

I started by creating/adding the Gitlab app on a Gitlab admin account. The repo was successfully linked to Sentry.

Then, I deleted the repo and integration on Sentry and the App on my Gitlab instance.
I preferred to create a specific user for Sentry on my Gitlab server and assigning it only some repo.
I have created the app again into the new Gitlab user, linked it into Sentry but now, when I click on the repo name on Sentry to add it, I got an error :

Error Communicating with GitLab (HTTP 403): 403 Forbidden

Is this fixed in SaaS on sentry.io ?

Yes it should be. The error communicating with GitLab sounds like a permissions issue for your integration user in GitLab. If you login as that user can you see the repositories you're trying to add?

Thanks. Yup, I can see the repo on Gitlab. And the repo is also listed in the Sentry drop down list but I got the error when clicking on the repo name.

Ok. If you could give me the organization slug in sentry.io I can look into the issue further? If you're not comfortable posting that here, could you open a support issue using Help > Contact Support when logged into your sentry account.

Thanks for your help. The organization slug is opencomp :wink:

@jtraulle I took a look and from what I can tell the user you've linked to sentry is unable to read/write project hooks. We need to add a project hook in order to receive push and merge_request events.

Thanks :+1: Got it, I switch user permissions from "Developer" to "Maintainer" for the project and it works great now :slightly_smiling_face:

Was this page helpful?
0 / 5 - 0 ratings