You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@devlake.apache.org by "milanboruvka (via GitHub)" <gi...@apache.org> on 2025/08/22 20:02:23 UTC
[I] [Bug][Gitlab] 403 error on projects//deployments [incubator-devlake]
milanboruvka opened a new issue, #8550:
URL: https://github.com/apache/incubator-devlake/issues/8550
### Search before asking
- [x] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues.
### What happened
DevLake version v1.0.3-beta3@e474b4e
I am getting 403 error when collecting data from self-hosted Gitlab.
User having this Token is Owner of the mentioned Gitlab project.
Token has api, read_api scope.
Still data collection ends up with error 403 Forbidden
Gitlab Project has feature Environments turned OFF in Visibility, project features, permissions under Project Settings.
The last error was: Http DoAsync error calling [method:GET path:projects/52/deployments query:map[order_by:[updated_at] page:[1] per_page:[100] sort:[asc]
I tried to turn off DORA metrics, but no difference.
`/app/server/services/task.go:187 | runtime.goexit | /usr/local/go/src/runtime/asm_amd64.s:1598 Wraps: (6) Retry exceeded 3 times calling projects/52/deployments. The last error was: Http DoAsync error calling [method:GET path:projects/52/deployments query:map[order_by:[updated_at] page:[1] per_page:[100] sort:[asc] updated_after:[2025-02-11T00:00:00Z] updated_before:[2025-08-22T01:00:46Z] with_stats:[true]]]. Response: {"message":"403 Forbidden"} (403) Error types: (1) *withstack.withStack (2) *errutil.withPrefix (3) *withstack.withStack (4) *errutil.withPrefix (5) *withstack.withStack (6) *errutil.leafError`
### What do you expect to happen
Data collection pipeline finishes succesfully.
### How to reproduce
Self-hosted Gitlab instance, user token with api, read_api.
Gitlab Project has feature Environments turned OFF in Visibility, project features, permissions under Project Settings.
### Anything else
_No response_
### Version
v1.0.3-beta3@e474b4e
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Gitlab] 403 error on projects//deployments [incubator-devlake]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #8550:
URL: https://github.com/apache/incubator-devlake/issues/8550#issuecomment-3215481727
<!-- Greeting -->
Hi @milanboruvka! I'm [Dosu](https://go.dosu.dev/dosubot) and Iām helping the incubator-devlake team.
<!-- Answer -->
The 403 error when collecting deployments from GitLab is caused by the Environments feature being disabled in your project settings. DevLake's GitLab plugin always tries to access the `/projects/:id/deployments` endpoint, but if Environments are turned off, GitLab returns a 403 Forbidden, regardless of your token's permissions. There is currently no logic in DevLake to detect or skip deployment collection when Environments are disabled, so the pipeline fails after retrying the request a few times. No configuration options or recent changes address this scenario yet[^1].
To resolve this, you can either enable the Environments feature in your GitLab project or request a feature in DevLake to handle this case gracefully.
[^1]: [DevLake GitLab plugin implementation](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/plugins/gitlab/impl/impl.go)
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/d6b29faf-bf87-4635-a3e5-949f55bd9d06?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/d6b29faf-bf87-4635-a3e5-949f55bd9d06?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/d6b29faf-bf87-4635-a3e5-949f55bd9d06?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/d6b29faf-bf87-4635-a3e5-949f55bd9d06?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d6b29faf-bf87-4635-a3e5-949f55bd9d06?feedback_type=hallucination) | [Report š](https://app.dosu.dev/response-feedback/d6b29faf-bf87-4635-a3e5-949f55bd9d06?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/d6b29faf-bf87-4635-a3e5-949f55bd9d06?feedback_type=other)</sup> [](https://app.dosu.dev/b4e8e847-d479-4541-83a8-d88d83fea5c9/ask?utm_source=githu
b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8550)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Gitlab] 403 error on projects//deployments [incubator-devlake]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8550:
URL: https://github.com/apache/incubator-devlake/issues/8550#issuecomment-3475295722
This issue has been closed because it has been inactive for a long time. You can reopen it if you encounter the similar problem in the future.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Gitlab] 403 error on projects//deployments [incubator-devlake]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #8550: [Bug][Gitlab] 403 error on projects/<i>/deployments
URL: https://github.com/apache/incubator-devlake/issues/8550
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Gitlab] 403 error on projects//deployments [incubator-devlake]
Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #8550:
URL: https://github.com/apache/incubator-devlake/issues/8550#issuecomment-3219284304
Try turning off the `CI/CD` entity in the scope config page, check this for detail
<img width="1304" height="1286" alt="Image" src="https://github.com/user-attachments/assets/19f3932f-31d4-4f6e-8ca1-7759f938ef6b" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Gitlab] 403 error on projects//deployments [incubator-devlake]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8550:
URL: https://github.com/apache/incubator-devlake/issues/8550#issuecomment-3445318239
This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org