Codeberg/Community
54
325
Fork
You've already forked Community
12

Internal reference deletion error message when attempting a mirror #1569

Open
opened 2024年05月20日 13:12:51 +02:00 by foxy · 4 comments

Comment

I am getting multiple copies of the error message added by forgejo/forgejo#2834 in the following mirror creation workflow. Perhaps there's ONE intended workflow for mirror creation on Codeberg an this is not it? Please use the same gh repo to reproduce.

  1. "New migration" > "GitH*b" > "https://github.com/lucat1/visimp"
  2. disable pull requests unit from repo settings
  3. git clone git@github.com:lucat1/visimp
  4. cd visimp
  5. git remote add --mirror=push mirror git@codeberg.org:<user>/<mirror-name>
  6. git push --mirror mirror

Output:

Enumerating objects: 34, done.
Counting objects: 100% (34/34), done.
Delta compression using up to 4 threads
Compressing objects: 100% (16/16), done.
Writing objects: 100% (26/26), 4.34 KiB | 4.34 MiB/s, done.
Total 26 (delta 17), reused 19 (delta 10), pack-reused 0 (from 0)
remote:
remote: Forgejo: The deletion of refs/pull/23/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/23/head
remote:
remote: Forgejo: The deletion of refs/pull/26/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/26/head
remote:
remote: Forgejo: The deletion of refs/pull/29/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/29/head
remote:
remote: Forgejo: The deletion of refs/pull/33/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/33/head
remote:
remote: Forgejo: The deletion of refs/pull/40/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/40/head
remote:
remote: Forgejo: The deletion of refs/pull/41/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/41/head
remote:
remote: Forgejo: The deletion of refs/pull/42/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/42/head
remote:
remote: Forgejo: The deletion of refs/pull/44/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/44/head
remote:
remote: Forgejo: The deletion of refs/pull/45/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/45/head
remote:
remote: Forgejo: The deletion of refs/pull/47/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/47/head
remote:
remote: Forgejo: The deletion of refs/pull/48/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/48/head
remote:
remote: Forgejo: The deletion of refs/pull/50/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/50/head
remote:
remote: Forgejo: The deletion of refs/pull/51/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/51/head
remote:
remote: Forgejo: The deletion of refs/pull/57/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/57/head
remote:
remote: Forgejo: The deletion of refs/pull/60/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/60/head
remote:
remote: Forgejo: The deletion of refs/pull/61/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/61/head
remote:
remote: Forgejo: The deletion of refs/pull/62/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/62/head
remote:
remote: Forgejo: The deletion of refs/pull/63/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/63/head
remote:
remote: Forgejo: The deletion of refs/pull/64/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/64/head
remote:
remote: Forgejo: The deletion of refs/pull/65/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/65/head
remote:
remote: Forgejo: The deletion of refs/pull/66/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/66/head
remote:
remote: Forgejo: The deletion of refs/pull/67/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/67/head
remote:
remote: Forgejo: The deletion of refs/pull/68/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/68/head
remote:
remote: Forgejo: The deletion of refs/pull/69/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/69/head
remote:
remote: Forgejo: The deletion of refs/pull/70/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/70/head
remote:
remote: Forgejo: The deletion of refs/pull/71/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/71/head
remote:
remote: Forgejo: The deletion of refs/pull/76/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/76/head
remote:
remote: Forgejo: The deletion of refs/pull/77/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/77/head
remote:
remote: Forgejo: The deletion of refs/pull/78/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/78/head
remote:
remote: Forgejo: The deletion of refs/pull/79/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/79/head
remote:
remote: Forgejo: The deletion of refs/pull/81/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/81/head
remote:
remote: Forgejo: The deletion of refs/pull/82/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/82/head
remote:
remote: Forgejo: The deletion of refs/pull/83/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/83/head
remote:
remote: Forgejo: The deletion of refs/pull/84/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/84/head
remote:
remote: Forgejo: The deletion of refs/pull/88/head is skipped as it's an internal reference.
remote: error: hook declined to update refs/pull/88/head
To codeberg.org:foxy/visimp
 7fcb4f5..f6e2cec main -> main
 7fcb4f5..f6e2cec origin/HEAD -> origin/HEAD
 - [deleted] origin/chore/none-ls
 - [deleted] origin/fix/c
 - [deleted] origin/fix/svelte
 7fcb4f5..f6e2cec origin/main -> origin/main
 ! [remote rejected] refs/pull/23/head (hook declined)
 ! [remote rejected] refs/pull/26/head (hook declined)
 ! [remote rejected] refs/pull/29/head (hook declined)
 ! [remote rejected] refs/pull/33/head (hook declined)
 ! [remote rejected] refs/pull/40/head (hook declined)
 ! [remote rejected] refs/pull/41/head (hook declined)
 ! [remote rejected] refs/pull/42/head (hook declined)
 ! [remote rejected] refs/pull/44/head (hook declined)
 ! [remote rejected] refs/pull/45/head (hook declined)
 ! [remote rejected] refs/pull/47/head (hook declined)
 ! [remote rejected] refs/pull/48/head (hook declined)
 ! [remote rejected] refs/pull/50/head (hook declined)
 ! [remote rejected] refs/pull/51/head (hook declined)
 ! [remote rejected] refs/pull/57/head (hook declined)
 ! [remote rejected] refs/pull/60/head (hook declined)
 ! [remote rejected] refs/pull/61/head (hook declined)
 ! [remote rejected] refs/pull/62/head (hook declined)
 ! [remote rejected] refs/pull/63/head (hook declined)
 ! [remote rejected] refs/pull/64/head (hook declined)
 ! [remote rejected] refs/pull/65/head (hook declined)
 ! [remote rejected] refs/pull/66/head (hook declined)
 ! [remote rejected] refs/pull/67/head (hook declined)
 ! [remote rejected] refs/pull/68/head (hook declined)
 ! [remote rejected] refs/pull/69/head (hook declined)
 ! [remote rejected] refs/pull/70/head (hook declined)
 ! [remote rejected] refs/pull/71/head (hook declined)
 ! [remote rejected] refs/pull/76/head (hook declined)
 ! [remote rejected] refs/pull/77/head (hook declined)
 ! [remote rejected] refs/pull/78/head (hook declined)
 ! [remote rejected] refs/pull/79/head (hook declined)
 ! [remote rejected] refs/pull/81/head (hook declined)
 ! [remote rejected] refs/pull/82/head (hook declined)
 ! [remote rejected] refs/pull/83/head (hook declined)
 ! [remote rejected] refs/pull/84/head (hook declined)
 ! [remote rejected] refs/pull/88/head (hook declined)
error: failed to push some refs to 'codeberg.org:foxy/visimp'
### Comment I am getting multiple copies of the error message added by https://codeberg.org/forgejo/forgejo/pulls/2834 in the following mirror creation workflow. Perhaps there's ONE intended workflow for mirror creation on Codeberg an this is not it? Please use the same gh repo to reproduce. 1. "New migration" > "GitH*b" > "https://github.com/lucat1/visimp" 2. disable pull requests unit from repo settings 3. `git clone git@github.com:lucat1/visimp` 4. `cd visimp` 5. `git remote add --mirror=push mirror git@codeberg.org:<user>/<mirror-name>` 6. `git push --mirror mirror` Output: ``` Enumerating objects: 34, done. Counting objects: 100% (34/34), done. Delta compression using up to 4 threads Compressing objects: 100% (16/16), done. Writing objects: 100% (26/26), 4.34 KiB | 4.34 MiB/s, done. Total 26 (delta 17), reused 19 (delta 10), pack-reused 0 (from 0) remote: remote: Forgejo: The deletion of refs/pull/23/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/23/head remote: remote: Forgejo: The deletion of refs/pull/26/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/26/head remote: remote: Forgejo: The deletion of refs/pull/29/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/29/head remote: remote: Forgejo: The deletion of refs/pull/33/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/33/head remote: remote: Forgejo: The deletion of refs/pull/40/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/40/head remote: remote: Forgejo: The deletion of refs/pull/41/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/41/head remote: remote: Forgejo: The deletion of refs/pull/42/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/42/head remote: remote: Forgejo: The deletion of refs/pull/44/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/44/head remote: remote: Forgejo: The deletion of refs/pull/45/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/45/head remote: remote: Forgejo: The deletion of refs/pull/47/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/47/head remote: remote: Forgejo: The deletion of refs/pull/48/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/48/head remote: remote: Forgejo: The deletion of refs/pull/50/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/50/head remote: remote: Forgejo: The deletion of refs/pull/51/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/51/head remote: remote: Forgejo: The deletion of refs/pull/57/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/57/head remote: remote: Forgejo: The deletion of refs/pull/60/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/60/head remote: remote: Forgejo: The deletion of refs/pull/61/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/61/head remote: remote: Forgejo: The deletion of refs/pull/62/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/62/head remote: remote: Forgejo: The deletion of refs/pull/63/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/63/head remote: remote: Forgejo: The deletion of refs/pull/64/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/64/head remote: remote: Forgejo: The deletion of refs/pull/65/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/65/head remote: remote: Forgejo: The deletion of refs/pull/66/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/66/head remote: remote: Forgejo: The deletion of refs/pull/67/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/67/head remote: remote: Forgejo: The deletion of refs/pull/68/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/68/head remote: remote: Forgejo: The deletion of refs/pull/69/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/69/head remote: remote: Forgejo: The deletion of refs/pull/70/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/70/head remote: remote: Forgejo: The deletion of refs/pull/71/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/71/head remote: remote: Forgejo: The deletion of refs/pull/76/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/76/head remote: remote: Forgejo: The deletion of refs/pull/77/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/77/head remote: remote: Forgejo: The deletion of refs/pull/78/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/78/head remote: remote: Forgejo: The deletion of refs/pull/79/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/79/head remote: remote: Forgejo: The deletion of refs/pull/81/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/81/head remote: remote: Forgejo: The deletion of refs/pull/82/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/82/head remote: remote: Forgejo: The deletion of refs/pull/83/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/83/head remote: remote: Forgejo: The deletion of refs/pull/84/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/84/head remote: remote: Forgejo: The deletion of refs/pull/88/head is skipped as it's an internal reference. remote: error: hook declined to update refs/pull/88/head To codeberg.org:foxy/visimp 7fcb4f5..f6e2cec main -> main 7fcb4f5..f6e2cec origin/HEAD -> origin/HEAD - [deleted] origin/chore/none-ls - [deleted] origin/fix/c - [deleted] origin/fix/svelte 7fcb4f5..f6e2cec origin/main -> origin/main ! [remote rejected] refs/pull/23/head (hook declined) ! [remote rejected] refs/pull/26/head (hook declined) ! [remote rejected] refs/pull/29/head (hook declined) ! [remote rejected] refs/pull/33/head (hook declined) ! [remote rejected] refs/pull/40/head (hook declined) ! [remote rejected] refs/pull/41/head (hook declined) ! [remote rejected] refs/pull/42/head (hook declined) ! [remote rejected] refs/pull/44/head (hook declined) ! [remote rejected] refs/pull/45/head (hook declined) ! [remote rejected] refs/pull/47/head (hook declined) ! [remote rejected] refs/pull/48/head (hook declined) ! [remote rejected] refs/pull/50/head (hook declined) ! [remote rejected] refs/pull/51/head (hook declined) ! [remote rejected] refs/pull/57/head (hook declined) ! [remote rejected] refs/pull/60/head (hook declined) ! [remote rejected] refs/pull/61/head (hook declined) ! [remote rejected] refs/pull/62/head (hook declined) ! [remote rejected] refs/pull/63/head (hook declined) ! [remote rejected] refs/pull/64/head (hook declined) ! [remote rejected] refs/pull/65/head (hook declined) ! [remote rejected] refs/pull/66/head (hook declined) ! [remote rejected] refs/pull/67/head (hook declined) ! [remote rejected] refs/pull/68/head (hook declined) ! [remote rejected] refs/pull/69/head (hook declined) ! [remote rejected] refs/pull/70/head (hook declined) ! [remote rejected] refs/pull/71/head (hook declined) ! [remote rejected] refs/pull/76/head (hook declined) ! [remote rejected] refs/pull/77/head (hook declined) ! [remote rejected] refs/pull/78/head (hook declined) ! [remote rejected] refs/pull/79/head (hook declined) ! [remote rejected] refs/pull/81/head (hook declined) ! [remote rejected] refs/pull/82/head (hook declined) ! [remote rejected] refs/pull/83/head (hook declined) ! [remote rejected] refs/pull/84/head (hook declined) ! [remote rejected] refs/pull/88/head (hook declined) error: failed to push some refs to 'codeberg.org:foxy/visimp' ```
Author
Copy link

Update: logging in with my user (i.e., the owner of the repo mentioned above), I now get the header

Git hooks of this repository seem to be broken. Please follow the documentation to fix them, then push some commits to refresh the status.

This sends me to the ["Push Hook / Webhook / Actions aren't running" Gita FAQ page](Push Hook / Webhook / Actions aren't running). Of course, none of the scenario mentioned there applies, as the error messages I am getting are due to forgejo/forgejo#2834, as already mentioned.

Update: logging in with my user (i.e., the owner of the repo mentioned above), I now get the header > Git hooks of this repository seem to be broken. Please follow the documentation to fix them, then push some commits to refresh the status. This sends me to the ["Push Hook / Webhook / Actions aren't running" Gita FAQ page](Push Hook / Webhook / Actions aren't running). Of course, none of the scenario mentioned there applies, as the error messages I am getting are due to https://codeberg.org/forgejo/forgejo/pulls/2834, as already mentioned.
Owner
Copy link

The alternative to these error messages is currently that pull requests are borked, which is also a frequent issue.

There's currently no best solution for mirroring repos between many forges, I believe.

The alternative to these error messages is currently that pull requests are borked, which is also a frequent issue. There's currently no best solution for mirroring repos between many forges, I believe.
Author
Copy link

This does not reproduce on other repos, though, and it does not seem to be the intended behavior, as disabling the "Pull Requests" unit was supposed to fix it, according to Codeberg/Documentation#422.

This does not reproduce on other repos, though, and it does not seem to be the intended behavior, as disabling the "Pull Requests" unit was supposed to fix it, according to https://codeberg.org/Codeberg/Documentation/pulls/422.

How to manage it with the mirroring function in forgejo?
I got this message on my new repo (which i want mirror back to my old)

How to manage it with the mirroring function in forgejo? I got this message on my new repo (which i want mirror back to my old)
Sign in to join this conversation.
No Branch/Tag specified
main
No results found.
Labels
Clear labels
accessibility

Reduces accessibility and is thus a "bug" for certain user groups on Codeberg.
bug

Something is not working the way it should. Does not concern outages.
bug
infrastructure

Errors evidently caused by infrastructure malfunctions or outages
Codeberg

This issue involves Codeberg's downstream modifications and settings and/or Codeberg's structures.
contributions welcome

Please join the discussion and consider contributing a PR!
docs

No bug, but an improvement to the docs or UI description will help
duplicate

This issue or pull request already exists
enhancement

New feature
infrastructure

Involves changes to the server setups, use `bug/infrastructure` for infrastructure-related user errors.
legal

An issue directly involving legal compliance
licence / ToS

involving questions about the ToS, especially licencing compliance
please chill
we are volunteers

Please consider editing your posts and remember that there is a human on the other side. We get that you are frustrated, but it's harder for us to help you this way.
public relations

Things related to Codeberg's external communication
question

More information is needed
question
user support

This issue contains a clearly stated problem. However, it is not clear whether we have to fix anything on Codeberg's end, but we're helping them fix it and/or find the cause.
s/Forgejo

Related to Forgejo. Please also check Forgejo's issue tracker.
s/Forgejo/migration

Migration related issues in Forgejo
s/Pages

Issues related to the Codeberg Pages feature
s/Weblate

Issue is related to the Weblate instance at https://translate.codeberg.org
s/Woodpecker

Woodpecker CI related issue
security

involves improvements to the sites security
service

Add a new service to the Codeberg ecosystem (instead of implementing into Gitea)
upstream

An open issue or pull request to an upstream repository to fix this issue (partially or completely) exists (i.e. Gitea, Forgejo, etc.)
wontfix

Codeberg's current set of contributors are not planning to spend time on delegating this issue.
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/Community#1569
Reference in a new issue
Codeberg/Community
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?