Please help fill in this template with all the details to help others help you more efficiently. Use formatting blocks for code, config, logs and ensure to remove sensitive data.
Problem to solve and how to reproduce i
I’ve changed my group id, it’s then changed the repo URL, I was accessing it with ssh without a problem.
After changing the group id, I performed a
git remote set-url origin git@gitlab.com:filmmakers.io/front-end.git
Then when I do a git pull or frenchI have the error:
$ git pull
remote:
remote: ========================================================================
remote:
remote: ERROR: The project you were looking for could not be found or you don't have permission to view it.
remote:
remote: ========================================================================
remote:
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
The repo is existing and my ssh connection works:
ssh -Tv git@gitlab.com
OpenSSH_9.8p1, LibreSSL 3.3.6
debug1: Reading configuration data /Users/alex/.ssh/config
debug1: /Users/alex/.ssh/config line 1: Applying options for gitlab.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to gitlab.com port 22.
debug1: Connection established.
debug1: identity file /Users/alex/.ssh/id_alex type 3
debug1: identity file /Users/alex/.ssh/id_alex-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.8
debug1: Remote protocol version 2.0, remote software version GitLab-SSHD
debug1: compat_banner: no match: GitLab-SSHD
debug1: Authenticating to gitlab.com:22 as 'git'
debug1: load_hostkeys: fopen /Users/alex/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:eUXGGm1YGsMAS7vkcx6JOJdOGHPem5gQp4taiCfCLB8
debug1: load_hostkeys: fopen /Users/alex/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host 'gitlab.com' is known and matches the ED25519 host key.
debug1: Found key in /Users/alex/.ssh/known_hosts:1
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_ext_info_client_parse: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-256,rsa-sha2-512,ssh-rsa,ssh-dss>
debug1: kex_ext_info_check_ver: ping@openssh.com=<0>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: agent returned 1 keys
debug1: Will attempt key: alex@Alexandres-MacBook-Pro.local ED25519 SHA256:gxxx4 agent
debug1: Will attempt key: /Users/alex/.ssh/id_alex ED25519 SHA256:Fh1QZHqSZ/hrdE8ThhXv1HOV88mtGqgtOEOQ2cRcbz4 explicit
debug1: Offering public key: alex@Alexandres-MacBook-Pro.local ED25519 SHA256:gxxxiZ4 agent
debug1: Server accepts key: alex@Alexandres-MacBook-Pro.local ED25519 SHA256:gxxxZ4 agent
Authenticated to gitlab.com ([172.65.251.78]:22) using "publickey".
debug1: channel 0: new session [client-session] (inactive timeout: 0)
debug1: Entering interactive session.
debug1: pledge: filesystem
debug1: Sending environment.
debug1: channel 0: setting env LC_CTYPE = "UTF-8"
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
Welcome to GitLab, @af2!
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 2180, received 1524 bytes, in 0.6 seconds
Bytes per second: sent 3832.3, received 2679.1
debug1: Exit status 0
I have the same error when I try to clone any repo of the group with the new url
Configuration
Provide screenshots from the GitLab UI showing relevant configuration, if applicable.
On self-managed instances, add the relevant configuration settings or changes.
Versions
Please add an x whether options apply, and add the version information.
- Self-managed
- [ X]
GitLab.com
SaaS - Dedicated