Pipeline error: "could not load config from forge: %!w()" #279
Labels
No labels
Bug
Chat
Codeberg
Documentation
Duplicate
edge-case
Feature
Gitea
Need Feedback
Plugin
Suggestion
UI
Upstream
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Codeberg-CI/feedback#279
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For some reason, the pipelines for my frugen project stopped running some time ago.
All I see in the Woodpecker UI when I push "Show errors" is "could not load config from forge: %!w()".
This happens for all the branches.
Please see the project status here: https://ci.codeberg.org/repos/13632
How can I fix that?
I suspect that may have started when I added a branch pages for my static pages, where I apparently do not have any woodpecker configuration (why would I? if .woodpecker.yml is required, then what should I put there to prevent any pipeline from running on that specific branch?)
Could you try to logout of https://ci.codeberg.org/ and login again? then restart a pipeline.
I think the
repair repooption in repo settings -> actionscould help
also your config looks strange ...
it would be more common to do:
The commands format is fine and has always been like this.
It's to allow for wrapping lines of long commands, it's called "folded style block scalar" and is described here:
https://yaml.org/spec/1.2.2/#813-folded-style
and here in more human-readable form: https://stackoverflow.com/a/21699210/1286717
There are no long lines now, but there were some in the past. Anyway, the same format is used in my other project and works just fine there: https://ci.codeberg.org/repos/13633/pipeline/50/config
However, for
frugen, the same page is just empty: https://ci.codeberg.org/repos/13632/pipeline/168/configThe
.woodpecker.ymlfile is essentially the same for both projects:https://codeberg.org/IPMITool/frugen/src/branch/bugfix/refactor-area-sorting/.woodpecker.yml -- broken (for
masterbranch too)https://codeberg.org/IPMITool/ipmitool/src/branch/master/.woodpecker.yml -- works
I tried pushing
repair repobutton, and the only change I see sis that now it sayspipeline definition not foundon the errors page.It's totally unclear why the definition is 'not found'. If I download the metadata, both the
workflowandstepfields are empty:I can't understand why it's so and how to fix that. Not much debug info is available regarding the step where Woodpecker pulls the configuration from the repo.
Loggin out and back in also didn't help (I wouldn't expect otherwise because it's clearly a backend, not a UI problem)
@AlexanderAmelkin wrote in #279 (comment):
Hm that's a different error, that's promising. It might help if you push a commit to the
masterbranch, it's possible it will find the pipeline when doing a clean "run".You're right! After a new commit to
master, it picked up the configuration and ran the build successfully.I'm now wondering whether or not it will break again when I push to
pagesbranch that doesn't contain.woodpecker.yml@AlexanderAmelkin wrote in #279 (comment):
It will not break. It checks the default branch for the woodpecker pipeline.