Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot login on Woodpecker paired with gitea #3626

Open
3 tasks done
masfaraud opened this issue Apr 18, 2024 · 2 comments
Open
3 tasks done

Cannot login on Woodpecker paired with gitea #3626

masfaraud opened this issue Apr 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@masfaraud
Copy link

masfaraud commented Apr 18, 2024

Component

server

Describe the bug

Hello,
I have a functionnal instance of woodpecker CI working with a gitea instance. About one time per day I get stuck on the login page, clicking on connect redirects to the same page.

image

I find this log on the server container:

{"level":"error","repo_id":"1","pipeline_id":"49","workflow_id":"49","error":"stream: not found","time":"2024-04-18T08:18:24Z","message":"done: cannot close log stream for step 441"

I have tried to disconnect from gitea to force relogin and flush site data in browser from both gitea and woodpecker but without success.
The strange thing is that on the same browser if I switch to private mode or I change the browser I can login by beeing redirected to gitea.

What do you guys think?

System Info

woodpecker CI version 2.4.1
gitea version 1.21.10
firefox 124.0.2

Additional context

No response

Validations

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
@masfaraud masfaraud added the bug Something isn't working label Apr 18, 2024
@anbraten
Copy link
Member

The mentioned error is related to log / event streaming and shouldn't be relevant.

Woodpecker syncs all your projects from gitea on login. There might be a problem with it in your case.

@masfaraud
Copy link
Author

masfaraud commented Apr 18, 2024

The mentioned error is related to log / event streaming and shouldn't be relevant.

Woodpecker syncs all your projects from gitea on login. There might be a problem with it in your case.

In gitea logs, I have a 403 forbidden on /api/v1/version. Other requests that seem fired by woodpecker are OK (200) :

  • GET /api/v1/user/repos?limit=50&page=2
  • GET /api/v1/user
  • POST /login/oauth/access_token

Do you think the problem is on gitea side?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants