Closed sb-child closed 2 years ago
So that looks like an issue of #1078 😬
@sb-child
Could you try something: does it still work if you use the "reload repos" button on the repos overview?
And, if you have another repo which doesn't work but you didn't click on "repair" yet (means it still fails), can you look up what's in the DB? Especially the clone URL column would be interesting. Thanks!
after reloading, I restarted a failed pipeline and passed:
+ git init -b main
Initialized empty Git repository in /woodpecker/src/gitea.example/main-mirrors-private/proj/.git/
+ git remote add origin https://gitea.example:3943/main-mirrors-private/proj.git
+ git fetch --no-tags origin +refs/heads/main:
From https://gitea.example:3943/main-mirrors-private/proj
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
+ git reset --hard -q 826e4925c8122356dcf0a3481d98034a83d80db8
+ git submodule update --init --recursive
but CI seems not running after pushing a new commit. I am trying triggering CI manually by execute the webhook, but also failed with the same reason.
then I used the Repair repository
then CI trigger is worked now.
but... failed again:
+ git init -b main
Initialized empty Git repository in /woodpecker/src/gitea.example/main-mirrors-private/proj/.git/
+ git remote add origin
+ git fetch --no-tags origin +refs/heads/main:
fatal: no path specified; see 'git help pull' for valid url syntax
exit status 128
I will try finding something in DB, thanks!
I found these rows in DB:
select * from public.builds where build_id=28;
build_id | build_repo_id | build_number | build_author | build_config_id | build_parent | build_event | build_status | build_error | build_enqueued | build_created | updated | build_started | build_finished | build_deploy | build_commit | build_branch | build_ref | build_refspec | build_remote | build_title | build_message | build_timestamp | build_sender | build_avatar | build_email | build_link | build_signed | build_verified | build_reviewer | build_reviewed | changed_files | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28 | 26 | 1 | sbchild | 0 | 0 | push | failure | 1662533812 | 1662533812 | 1662533814 | 1662533812 | 1662533814 | 0427dfdeddcae3f7ab56f3f0a96a3640b989807e | main | refs/heads/main | 更新 '.woodpecker.yml' | 1662533812 | sbchild | https://gitea.example:3943/avatars/cb6cf0988fec32b918503a55e817c687 |
sbchild@noreply.gitea.example |
https://gitea.example:3943/sbchild/ci_test/commit/0427dfdeddcae3f7ab56f3f0a96a3640b989807e |
f | t | 0 | [".woodpecker.yml"] |
(1 row)
select * from public.repos where repo_id=26;
repo_id | repo_user_id | repo_owner | repo_name | repo_full_name | repo_avatar | repo_link | repo_clone | repo_branch | repo_scm | repo_timeout | repo_visibility | repo_private | repo_trusted | repo_gated | repo_active | repo_allow_pr | repo_config_path | repo_hash | remote_id | cancel_previous_pipeline_events |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
26 | 2 | sbchild | ci_test | sbchild/ci_test | https://gitea.example:3943/sbchild/ci_test |
60 | public | f | f | f | t | f | F43TAE2NQXDLSJ2J3GVVVQA7GHM4JKOJ23D7HKAM5NJHRLP3GBUA==== | 39 | ["","","push","pull_request"] |
(1 row)
that is a fresh repo with a simple .woodpecker.yml
file, but it fails:
+ git init -b main
Initialized empty Git repository in /woodpecker/src/gitea.example/sbchild/ci_test/.git/
+ git remote add origin
+ git fetch --no-tags origin +refs/heads/main:
fatal: no path specified; see 'git help pull' for valid url syntax
exit status 128
should I provide more information? Please let me know, thanks!
Thanks. The issue is that repo_clone
is empty while it should contain the clone URL. When I get the time to fix it I'll look into it.
@qwerty287 I think I am found out how to resolve this issue can you review #1170 ? Thanks!
hi were you able to find any solution I am still stuck and this and it is not getting solved in any way
Component
agent
Describe the bug
i am using woodpecker:next docker image and configured for my gitea instance:
now there is a private repo in the list:
but Pipelines are failing:
i found that remote url is gone:
+ git remote add origin *[remote url]*
on line 3 aboveafter execute
Repair repository
on settings, I can restart this pipeline without issues:but after I push a new commit to trigger CI, the new pipeline failed:
logs:
System Info
Additional context
logs:
Validations