I have a repository on Opalstack that I have been able to push to in the past, but that when I try to interact with now gives me:
fatal: 'rpg/web-page.git' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I'm mystified because I don't believe that I have changed any settings in the 7 months since I last pushed to this repo successfully. However, if it helps, I believe I have a new laptop since then.
I checked the ssh interaction by running GIT_SSH_COMMAND="ssh -vvv" git pull
and it appears that my SSH key authenticated successfully:
debug1: Server accepts key: /Users/rpg/.ssh/id_rsa RSA SHA256:55Tmwa58PAlApi9E/vgaus6Fo2Gx9AEN+Ef0JBbAAOg explicit agent
I'm not sure how to interpret the SSH output, but here is what I see at the end of my attempt to pull:
debug1: Sending command: git-upload-pack 'rpg/web-page.git'
debug2: channel 0: request exec confirm 1
debug3: send packet: type 98
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 2097152
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: exec request accepted on channel 0
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug2: channel 0: rcvd eow
debug2: chan_shutdown_read: channel 0: (i0 o0 sock -1 wfd 6 efd 8 [write])
debug2: channel 0: input open -> closed
debug2: channel 0: rcvd ext data 65
debug3: receive packet: type 96
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug3: receive packet: type 97
debug2: channel 0: rcvd close
debug3: channel 0: will not send data after close
debug2: channel 0: obuf_empty delayed efd 8/(65)
fatal: 'rpg/web-page.git' does not appear to be a git repository
debug2: channel 0: written 65 to efd 8
debug3: channel 0: will not send data after close
debug2: channel 0: obuf empty
debug2: chan_shutdown_write: channel 0: (i3 o1 sock -1 wfd 7 efd 8 [write])
debug2: channel 0: output drain -> closed
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug3: send packet: type 97
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
#0 client-session (t4 r0 i3/0 o3/0 e[write]/0 fd -1/-1/8 sock -1 cc -1)
debug3: send packet: type 1
debug1: fd 0 clearing O_NONBLOCK
debug3: fd 1 is not O_NONBLOCK
Transferred: sent 3872, received 3064 bytes, in 0.6 seconds
Bytes per second: sent 6360.1, received 5032.9
debug1: Exit status 128
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I can't tell from that if this is an SSH problem or a git problem.
Interestingly, the key that was accepted to start the SSH transaction is the one that is configured for my ssh shell account, id_rsa
and is not the same key that I configured in the Gitea UI, which is gitea_git_goldman-tribe_org_rsa
. Could this be the problem? I added id_rsa.pub
to the Gitea UI, and that did not fix the problem: same error.
On opalstack I did this:
$ pushd /tmp
/tmp ~/apps/gitea/repos/rpg/web-page.git ~
[rpg@opal11 tmp]$ git clone ~/apps/gitea/repos/rpg/web-page.git
Cloning into 'web-page'...
done.
So as far as I can tell, there is nothing wrong with the repository itself, since I can clone it locally.
I believe that means there is something wrong in trying to operate on this repository through gitea, but at that point I'm lost.
I don't recall doing anything to modify the contents of the repositories on Opalstack, so I am at a loss to explain this. I don't understand how to diagnose the problem, either. Is there something I can do on Opalstack to check and see if the prop