Git fetch - fatal: Could not read from remote repository

Hello,

I have been having hard time figuring out on what’s happening with Gitlab, I can clone and pull however I’m not able to do the fetch to test a merge request.

git fetch ssh://git@gitlab.blahblah.org:443/madpa/portal.git DB_backup_script_cleanup
GitLab: The project you were looking for could not be found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I have all the keys and permissions set correctly and deploy keys exists too! tried removing and creating new keys, restarted Gitlab container too but nothing helped.

I did look everywhere in Net but couldn’t find a solution please help me

Hi,

  1. in your URL your are using SSH on port 443, is your server seriosly configured that way or only a typo?
    I would expect https://git@gitlab.blah…:443/ or ssh;//git@gitlab.blah…:22/, but not mix of both (or any other random port)

  2. If I’ve understand your question correctly you are able to “git clone” a project.
    If that is the case, .git/config sould already have a propper URL saved in the config. Did you have reied already a git fetch without explicit URL?

    Something like:
    git clone /portal.git somedir

    cd somedir
    git fetch --all

Does this work?
If this work the URL in the config is functional an you probaly have a typo in your manually tipped URL.

1 Like