sentry icon indicating copy to clipboard operation
sentry copied to clipboard

Gitlab sentry monitoring connection from gitlab won't list sentry projects for error tracking

Open harmonyatfonk opened this issue 1 year ago • 9 comments

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

We have been trying to connect sentry monitoring in our gitlab repositories but we're not able to complete connection because the option won't list any projects we have even when they actually exist in sentry. We tried generating auth keys with the required privileges but reached no success. Can i get assistance on this since i followed everything on your documentation and any resources i could find.

Expected Result

List available projects

This can also be found on the gitlab page https://gitlab.com/[group]/[subgroup]/[projectrepo]/-/settings/operations after selecting the sentry monitoring.

Actual Result

No projects available

image

Product Area

Settings - Integrations

Link

https://fonk-team.sentry.io/settings/account/api/auth-tokens/ -> https://gitlab.com/[group]/[subgroup]/[projectrepo]/-/settings/operations

DSN

No response

Version

No response

harmonyatfonk avatar May 21 '24 07:05 harmonyatfonk

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] avatar May 21 '24 07:05 getsantry[bot]

Routing to @getsentry/product-owners-settings-integrations for triage ⏲️

getsantry[bot] avatar May 21 '24 10:05 getsantry[bot]

Sentry error tracking in GitLab has documentation from GitLab https://docs.gitlab.com/ee/operations/sentry_error_tracking.html. We do not have access to see how this works in GitLab, so I would recommend asking GitLab themselves about this issue.

We only have documentation about installing Sentry's GitLab integration from within Sentry https://docs.sentry.io/organization/integrations/source-code-mgmt/gitlab/#install

cathteng avatar May 22 '24 16:05 cathteng

@harmonyatfonk Did you find a solution to this problem?

marvint24 avatar Jun 04 '24 13:06 marvint24

@marvint24 nope still stuck, are you facing the same ?

harmonyatfonk avatar Jun 04 '24 13:06 harmonyatfonk

@marvint24 nope still stuck, are you facing the same ?

@harmonyatfonk yes, with glitchtip it is working.

I'm not sure if it is on sentry's or gitlab's side.

marvint24 avatar Jun 04 '24 18:06 marvint24

Are you trying to list personal or a team's project?

I've found I'm able to find my personal projects but not those that belong to a team.

woodjme avatar Aug 10 '24 16:08 woodjme

Teams project

On Sat, 10 Aug 2024 at 18:25, Jamie Wood @.***> wrote:

Are you trying to list personal or a team's project?

I've found I'm able to find my personal projects but not those that belong to a team.

— Reply to this email directly, view it on GitHub https://github.com/getsentry/sentry/issues/71213#issuecomment-2282200646, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIUCE7KDKK6COQMRN2437F3ZQY5HFAVCNFSM6AAAAABIBBFV7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBSGIYDANRUGY . You are receiving this because you were mentioned.Message ID: @.***>

harmonyatfonk avatar Aug 10 '24 16:08 harmonyatfonk

https://gitlab.com/gitlab-org/gitlab/-/issues/477989

woodjme avatar Aug 10 '24 16:08 woodjme

That thread has a solution for tracking errors from gitlab (different requirements) but it does not say how to resolve the issue for the initial integration, and how to make team repositories accessible in sentry. I am hosting my data in the EU, but I don't know what changes I need to make because of that. I tried changing the callback URL from sentry.io to de.sentry.io but it said the callback URL didn't exist.

spradlin-dev avatar Jan 06 '25 16:01 spradlin-dev

@spradlin-dev investigating this for EU customers is already in our backlog. I'll update this ticket with timelines when I have one.

sentaur-athena avatar Jan 07 '25 19:01 sentaur-athena

Having the same issue.

Connecting to Gitlab Error Tracking using Sentry Custom Integration Token does not even work at all.

Only the token created at https://sentry.io/api for my personal user will connect to GitLab group/project, but unfrotunately it will not show any projects

mrazvanalex avatar Mar 02 '25 14:03 mrazvanalex

@mrazvanalex is your sentry org also an EU org?

sentaur-athena avatar Mar 04 '25 21:03 sentaur-athena

@mrazvanalex is your sentry org also an EU org?

Yes!

mrazvanalex avatar Mar 23 '25 16:03 mrazvanalex

Looks like Gitlab team has not fixed this issue with their Sentry integration. This integration is not built by Sentry so unfortunately there's nothing we can help with here. Please continue following up with Gitlab on this issue: https://gitlab.com/gitlab-org/gitlab/-/issues/477989

As a workaround you can try install Gitlab integration on Sentry. That one is what we built and can provide support for. Instructions here: https://docs.sentry.io/organization/integrations/source-code-mgmt/gitlab/

sentaur-athena avatar Mar 24 '25 22:03 sentaur-athena

Commented on Gitlab issue: https://gitlab.com/gitlab-org/gitlab/-/issues/477989#note_2414337810

sentaur-athena avatar Mar 24 '25 22:03 sentaur-athena