Codeberg-CI/feedback
488
71

Pipeline error: "could not load config from forge: %!w()" #279

Closed
opened 2025年10月23日 12:03:38 +02:00 by AlexanderAmelkin · 8 comments

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?)

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.

Could you try to logout of https://ci.codeberg.org/ and login again? then restart a pipeline.
Owner
Copy link

I think the repair repo option in repo settings -> actions
could help

I think the `repair repo` option in repo settings -> actions could help
Owner
Copy link

also your config looks strange ...

 commands: >
 # Run the build.
 mkdir build
 cd build
 cmake ..
 make

it would be more common to do:

 commands:
 - mkdir build
 - cd build
 - cmake ..
 - make
also your config looks strange ... ``` commands: > # Run the build. mkdir build cd build cmake .. make ``` it would be more common to do: ``` commands: - mkdir build - cd build - cmake .. - make ```
Author
Member
Copy link

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/config

The .woodpecker.yml file is essentially the same for both projects:
https://codeberg.org/IPMITool/frugen/src/branch/bugfix/refactor-area-sorting/.woodpecker.yml -- broken (for master branch too)
https://codeberg.org/IPMITool/ipmitool/src/branch/master/.woodpecker.yml -- works

I tried pushing repair repo button, and the only change I see sis that now it says pipeline definition not found on the errors page.
It's totally unclear why the definition is 'not found'. If I download the metadata, both the workflow and step fields are empty:

{"repo": {"id": 13632,"name": "frugen","owner": "IPMITool","remote_id": "111660","forge_url": "https://codeberg.org/IPMITool/frugen","clone_url": "https://codeberg.org/IPMITool/frugen.git","clone_url_ssh": "ssh://git@codeberg.org/IPMITool/frugen.git","default_branch": "master","trusted": {}},..."workflow": {},"step": {},"sys": {"name": "woodpecker","host": "ci.codeberg.org","url": "https://ci.codeberg.org","version": "3.10.0"},"forge": {"type": "forgejo","url": "https://codeberg.org"}}

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.

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/config The `.woodpecker.yml` file is essentially the same for both projects: https://codeberg.org/IPMITool/frugen/src/branch/bugfix/refactor-area-sorting/.woodpecker.yml -- broken (for `master` branch too) https://codeberg.org/IPMITool/ipmitool/src/branch/master/.woodpecker.yml -- works I tried pushing `repair repo` button, and the only change I see sis that now it says `pipeline definition not found` on the errors page. It's totally unclear why the definition is 'not found'. If I download the metadata, both the `workflow` and `step` fields are empty: ```yaml { "repo": { "id": 13632, "name": "frugen", "owner": "IPMITool", "remote_id": "111660", "forge_url": "https://codeberg.org/IPMITool/frugen", "clone_url": "https://codeberg.org/IPMITool/frugen.git", "clone_url_ssh": "ssh://git@codeberg.org/IPMITool/frugen.git", "default_branch": "master", "trusted": {} }, ... "workflow": {}, "step": {}, "sys": { "name": "woodpecker", "host": "ci.codeberg.org", "url": "https://ci.codeberg.org", "version": "3.10.0" }, "forge": { "type": "forgejo", "url": "https://codeberg.org" } } ``` 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.
Author
Member
Copy link

Loggin out and back in also didn't help (I wouldn't expect otherwise because it's clearly a backend, not a UI problem)

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):

I tried pushing repair repo button, and the only change I see sis that now it says pipeline definition not found on the errors page.

Hm that's a different error, that's promising. It might help if you push a commit to the master branch, it's possible it will find the pipeline when doing a clean "run".

@AlexanderAmelkin wrote in https://codeberg.org/Codeberg-CI/feedback/issues/279#issuecomment-7869638: > I tried pushing `repair repo` button, and the only change I see sis that now it says `pipeline definition not found` on the errors page. Hm that's a different error, that's promising. It might help if you push a commit to the `master` branch, it's possible it will find the pipeline when doing a clean "run".
Author
Member
Copy link

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 pages branch that doesn't contain .woodpecker.yml

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 `pages` branch that doesn't contain `.woodpecker.yml`

@AlexanderAmelkin wrote in #279 (comment):

I'm now wondering whether or not it will break again when I push to pages branch that doesn't contain .woodpecker.yml

It will not break. It checks the default branch for the woodpecker pipeline.

@AlexanderAmelkin wrote in https://codeberg.org/Codeberg-CI/feedback/issues/279#issuecomment-7882763: > I'm now wondering whether or not it will break again when I push to `pages` branch that doesn't contain `.woodpecker.yml` It will not break. It checks the default branch for the woodpecker pipeline.
Sign in to join this conversation.
No Branch/Tag specified
main
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Codeberg-CI/feedback#279
Reference in a new issue
Codeberg-CI/feedback
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?