Comment
My repo is ampmod/ampmod.
I am creating a mirror repo on GitHub so people there can contribute. However, this error occurs when trying to mirror.
image
The SSH key used here was also added on GitHub.
My repo is ampmod/ampmod.
I am creating a mirror repo on GitHub so people there can contribute. However, this error occurs when trying to mirror.
image
The SSH key used here was also added on GitHub.
Trying to authenticate with the PAT also results in Bad credentials
Did you follow the steps outlined in https://forgejo.org/docs/latest/user/repo-mirror/#mirror-via-ssh?
@Gusted wrote in #2156 (comment):
Did you follow the steps outlined in https://forgejo.org/docs/latest/user/repo-mirror/#mirror-via-ssh?
Oopsies.
There wasn't a link to that docs page so kinda confusing... :/
Will try again soon.
Hello, I followed the steps and still receive the same error.
Hi, does that mean you've added the SSH public key as a deploy key for https://github.com/amp-mod/ampmod?
@Gusted wrote in #2156 (comment):
Hi, does that mean you've added the SSH public key as a deploy key for https://github.com/amp-mod/ampmod?
Yes
Hmm that's strange, could you check if you've given the deploy key "Write access"?
Otherwise I will have to try and get the SSH from the database and do some manual checks.
Pushing to ssh://github.com/amp-mod/ampmod.git
To ssh://github.com/amp-mod/ampmod.git
= [up to date] develop -> develop
= [up to date] 0.3.0 -> 0.3.0
= [up to date] 0.3.1 -> 0.3.1
= [up to date] 0.3.2 -> 0.3.2
= [up to date] 0.3.3 -> 0.3.3
= [up to date] 0.3.4 -> 0.3.4
! [remote rejected] add-tests (refusing to delete the current branch: refs/heads/add-tests)
updating local tracking ref 'refs/heads/develop'
updating local tracking ref 'refs/tags/0.3.0'
updating local tracking ref 'refs/tags/0.3.1'
updating local tracking ref 'refs/tags/0.3.2'
updating local tracking ref 'refs/tags/0.3.3'
updating local tracking ref 'refs/tags/0.3.4'
error: failed to push some refs to 'ssh://github.com/amp-mod/ampmod.git'
Is it possible that you have branch protection setup for add-tests? Not sure why the error in Codeberg's UI is saying something else but local tests shows this to be the issue likely.
I've tried again (add-tests is an old branch that no longer exists; I have re-created the repository and same error)
there are no protected branches
To ssh://github.com/amp-mod/ampmod.git
* [new branch] develop -> develop
* [new tag] 0.3.0 -> 0.3.0
* [new tag] 0.3.1 -> 0.3.1
* [new tag] 0.3.2 -> 0.3.2
* [new tag] 0.3.3 -> 0.3.3
* [new tag] 0.3.4 -> 0.3.4
! [remote rejected] main (refusing to delete the current branch: refs/heads/main)
updating local tracking ref 'refs/heads/develop'
updating local tracking ref 'refs/tags/0.3.0'
updating local tracking ref 'refs/tags/0.3.1'
updating local tracking ref 'refs/tags/0.3.2'
updating local tracking ref 'refs/tags/0.3.3'
updating local tracking ref 'refs/tags/0.3.4'
error: failed to push some refs to 'ssh://github.com/amp-mod/ampmod.git'
I suppose main is the default branch now in the github repository?
I've deleted all branches other than develop and it still breaks, though the code somehow just got pushed.
Ah it might be LFS that's returning the error, not sure why the code still got pushed in this case but nice side-effect now. Yeah Forgejo does not have LFS over SSH, so it shouldn't try that... I'll get on a fix for that.
Attempts to mirror are hanging now
It will be okay once the fix is deployed which is not yet the case.
The patch has been deployed and it looks to me the error is gone and will now synchronize properly, enjoy!
No due date set.
No dependencies set.
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?