Comment
After tons of problems with my previous user (same issue as now), I decided to start with a fresh account (after deleting everything in my old account, and removing the old account as well) to ensure that no old broken references in Codeberg systems could be causing the problem... and yet, I'm completely unable to use Codeberg at any capacity 😢.
- My new username: andreuz
- The repo: https://codeberg.org/andreuz/experiment
My public SSH key (in ~/.ssh/id_ed25519.pub):
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAkrcWBoU7m2v3W6AETOw+0ei+NICDIuXzixaMXud/uL [redacted@email.com]
My SSH config (in ~/.ssh/config):
Host Codeberg
HostName codeberg.org
IdentityFile ~/.ssh/id_ed25519
Command:
git push -u origin main
Git Output:
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Writing objects: 100% (3/3), 920 bytes | 920.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
remote:
remote: Forgejo: User permission denied for writing.
To ssh://codeberg.org/andreuz/experiment.git
! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'ssh://codeberg.org/andreuz/experiment.git'
./.git/config:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = ssh://git@codeberg.org/andreuz/experiment.git
fetch = +refs/heads/*:refs/remotes/origin/*
There is nothing about authentication (I checked & re-checked hundreds of times), it seems something entirely different is going on... this problem has persisted for more than a year now.
I also checked the repository config to make it as permissive as possible, to ensure that no rule set by default or by me is blocking push operations.
There was an old issue describing a similar problem (but not the same), and many of us made the mistake of conflate it with what we were experiencing... so it seems that this confusion led to not many people paying attention to it (the "Phantom user" is me):
#657 (comment)