woodpecker-ci / woodpecker

Woodpecker is a simple, yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
4.07k stars 352 forks source link

cannot authenticate user. Malformed version: dbaae93 #1987

Closed miku86 closed 1 year ago

miku86 commented 1 year ago

Component

server

Describe the bug

Hey folks,

since today I can't login to my woodpecker instance, getting: cannot authenticate user. Malformed version: dbaae93 in woodpecker-server and Error while authenticating against OAuth provider on the web interface.

I'm running NixOS with woodpecker-server 0.15.8 (behind Caddy), connected to Codeberg. 2 days ago, 10.07., it was working as expected. I did not do any updates since this.

What did not solve the problem:

If someone more into NixOS can tell me how to test the next version instead of 0.15.8, I could give this a try. I'm currently simply using services.woodpecker-server.enable.

Thanks a lot!

System Info

"0.15.8"

Additional context

No response

Validations

6543 commented 1 year ago

we dont officially support nixOS but I like the project :)

I personally have no idea but I can ask around

6543 commented 1 year ago

https://github.com/NixOS/nixpkgs/blob/bf226bd766f25975d759976471941c941ebb581a/nixos/modules/services/continuous-integration/woodpecker/server.nix#L11

cc @janik @ambroisie

6543 commented 1 year ago

hmm I think it's because codeberg does not sem-version anymore: https://codeberg.org/api/v1/version

6543 commented 1 year ago

yes you need next or do have to backport this: https://github.com/woodpecker-ci/woodpecker/blob/fa951a8e95c60547aef8d02d5278e96ddbb2ce6f/server/forge/gitea/gitea.go#L545-L549

6543 commented 1 year ago

backport was easy: #1988

miku86 commented 1 year ago

Hey @6543 ,

thank you so much for your help and your explanations.

I'll come back to this issue after I will have tested it.

ambroisie commented 1 year ago

There's a PR open to update to v0.15.10 on nixpkgs, I will add the patch to it when I get the time to work on it (~this week-end).

BTW speaking of nixpkgs: @6543 #1764 is still open, could you take a look? If not fixed, I can probably merge it with that quirk.

qwerty287 commented 1 year ago

This is backported in 0.15.11.