Error: Repo is not accessible. Please check your URL and repo settings.

Hi There,

I’ve been trying to setup Unity Cloud Build to connect to a private git repo that I have setup on my own server. I’ve read a lot of forum posts and various configuration settings to make sure that I’m doing this correctly, but I’m still getting the “Repo is not accessible. Please check your URL and repo settings.” error.

Here are the steps I’ve taken:

  1. Setup Git on the server. Including creating the base version of the repo and making sure I can access it remotely.
  2. Added the provided SSH key to .ssh/authorized_keys for the linux git user from Unity Cloud (I also did the same thing on another machine to make sure that I was able to SSH in successfully.)
  3. Made sure I was able to connect to the repo using “git ls-remote <servername/path/to/repo>”

The URLs I’ve tried to connect with Unity Cloud are similar to:
ssh://@/<path/to/repo>
@/<path/to/repo>
:@/<path/to/repo>
@:22/<path/to/repo>
ssh://@:22/<path/to/repo>
ssh://@/<path/to/repo>.git
@/<path/to/repo>.git
:@/<path/to/repo>.git

Most of these work when I try to connect directly from my computer with my authorized_key, but Unity Cloud is unable to connect.

I need to make sure that the repo is private, so SSH was my first choice. Any help at this point would be very welcome.

Hi,

Can you direct message me with a link to the project you are attempting to set up?

I’m getting the same issue, my own keys work, but UCB does not. The weird thing is that the repo branches are listed correctly on the basic info so I’d say that there’s a correct connection some time!

Did you find the solution?

Thanks!