Open simmstein opened 9 months ago
Can you check the content of your DB? What's the data in the orgs.org_name
column?
It's sysadmin/sub-group
. By renaming to sysadmin
, it seems to work back but it's strange.
That sounds link an issue with sub-groups. I will try to give it a look
I don't if another commit fix this error but after upgrading to the latest version, It seems to work now.
I'm currently having this issue (I'm on the latest in the nixpkgs, v2.5.0). I also noticed that:
org-name/project-name
and click on the org-name
in the header, it sends me to org-name/different-sub-group
instead of org-name
. The subgroup does exist in the repo but the project isn't in it)org-name/subgroup
and not org-name
orgs
table is set to org-name/subgroup
even though the only repo added is in org-name
not org-name/subgroup
Update: It appears that manually changing the database row does solve the issue. After modifying the row and adding the second repo, it appears the new repo is using the correct org as well
Component
server
Describe the bug
Hello,
Encountered an issue when attempting to add a new repository from a GitLab instance hosted on-premise. The error message received is as follows:
pq: duplicate key value violates unique constraint "UQE_orgs_name"
. It works once time but I was the only one developer linked to this organization. Now we are more.Context: The GitLab setup involves multiple organizations, and the bug manifests when trying to add a repository of the second organization.
Should be linked to #2092
We are owners of the organization.
System Info
Additional context
Server log:
Validations
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]