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

Restarting pipelines with errors is returning 500 #2753

Closed
anbraten opened this issue Nov 5, 2023 · 7 comments · Fixed by #2939
Closed

Restarting pipelines with errors is returning 500 #2753

anbraten opened this issue Nov 5, 2023 · 7 comments · Fixed by #2939
Labels
build CI pipeline related

Comments

@anbraten
Copy link
Member

anbraten commented Nov 5, 2023

If I try to restart a pipeline with errors I am getting a 500

@anbraten anbraten added this to the 2.0.0 milestone Nov 5, 2023
@anbraten anbraten added the bug Something isn't working label Nov 5, 2023
@qwerty287
Copy link
Contributor

@anbraten What's the error? It works locally for me

@anbraten
Copy link
Member Author

anbraten commented Nov 5, 2023

@qwerty287
Copy link
Contributor

Ah you mean failed pipeline... Can reproduce locally 👍

@anbraten
Copy link
Member Author

anbraten commented Nov 5, 2023

It prints those in the logs instead of sending it to the UI:

{"level":"error","error":"no secret found for \"QUAY_IO_TOKEN\"","time":"2023-11-05T14:42:54Z","message":"failure to createPipelineItems for woodpecker-ci/woodpecker"}
{"level":"error","error":"Error #01: failure to createPipelineItems for woodpecker-ci/woodpecker\n","ip":"","latency":50.612691,"method":"POST","path":"/api/repos/3780/pipelines/9507","status":500,"time":"2023-11-05T14:42:54Z","user-agent":"","time":"2023-11-05T14:42:54Z"}

@qwerty287
Copy link
Contributor

Hmm so I couldn't reproduce it, it didn't work me for a different reason.

@qwerty287
Copy link
Contributor

So the issue seems that the secret QUAY_IO_TOKEN is not available for PRs (see https://ci.woodpecker-ci.org/orgs/2/settings).

This can be fixed by either allowing this or rewriting our workflows to not load this token on PRs.

@qwerty287 qwerty287 added build CI pipeline related and removed bug Something isn't working labels Nov 5, 2023
@qwerty287 qwerty287 removed this from the 2.0.0 milestone Nov 5, 2023
@anbraten
Copy link
Member Author

Main issue is actually in case we get an error ie for a missing secret, we do not store the config. So when restarting a throws an error now. Its however kinda hard to decided if we should "always" store the config even in case of an error as it could also be an error unable to parse the config at all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build CI pipeline related
Projects
None yet
2 participants