Open gsusI opened 2 years ago
A colleague of mine managed to add the packages without any issue following the same steps as me. Unsure why.
Could it be related to this issue?
looks more like #589
Doesn't feel like. Repman was able to get the list of repositories, suggesting that the tokens were fine.
Also, I didn't get a 500 error, nor a Bad Request.
hm ok, did you check the token itself? there is an endpoint for that:
https://gitlab.com/oauth/token/info?access_token=<YOUR_TOKEN>
maybe it is missing a scope
We also get the same since updating our Gitlab from 14 to 15. It's just happening to existing packages if someone releases a new version.
I'm getting this error when downloading the source, only dist is working.
Having the same issue with our self-hosted GitLab instance. Sync stopped working after the upgrade to GitLab 15. I had to remove the OAuth application configuration in GitLab and set it up again. After that things seem to work normally again.
Same Problem here. Tried to re-register the oauth app in gitlab (self hosted), as stated by @shochdoerfer , but still the same git error as mentioned above. Any hints? We also upgrade from gitlab 14.x to 15.1 on friday, so this seems related.
@temp I gave the OAuth app in GitLab almost all (read-only permissions) because I was not sure which ones are the correct ones. Maybe you could give this a try as well.
I still think it's related to https://github.com/repman-io/repman/issues/589 with it's root cause of expired refresh tokens. The refresh token is never updated without https://github.com/repman-io/repman/pull/596
We applied MR #596 and emptied the user_oauth_token
table, after that it worked again.
@shochdoerfer we tried that before, but without success. Now we are back to api
and read_users
, as stated in the docs.
... and now it's not working anymore -_- Now I'm getting a Bad Request when he tries to fetch a new token from gitlab via /oauth/token.
Same error at me.
Ran into the issue again. After truncating the user_oauth_token
db table, deleting and re-creating the GitLab app, it works again.
Found a workaround:
The token expires every day. Go to the database > user_oauth_token. Delete token for the GitLab. After that, go to the Admin UI > Packages > Add new package > Select GitLab and wait. This will generate a new token and will work for a day.
Found a workaround:
The token expires every day. Go to the database > user_oauth_token. Delete token for the GitLab. After that, go to the Admin UI > Packages > Add new package > Select GitLab and wait. This will generate a new token and will work for a day.
I already did that, you don't even need to go to the database to delete, just go to your user in the interface, and unlink Gitlab Account.
I think that even the only solution will be to create a schedule in the project that does this every day from time to time.
Now I'm getting this error when selecting repositories from gitlab:
Can't synchronize GitLab repositories anymore
Steps to reproduce the issue:
SYNCHRONIZATION ERROR