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' ```
n0toose added the
bug
s/Forgejo
labels 2024-05-21 02:27:19 +02:00
Author

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

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

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 milestone
No project
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
No description provided.