Hi, no matter what I seem to do I can’t get UCB to connect to our private Gitea server. I have the secure key installed, the ports are open for SSH on the router, and it appears that the ssh URL is in the proper format. But I keep getting the error, “Your repository is either private or inaccessible. Make sure to use the SSH URL for private repositories and add the generated SSH key to your Git account.”
Can you access that gitea server from outside your local network? It might be a firewall problem.
I’d recommend you to make a support ticket where we can look into your project and see if we can help diagnose with more information like the URL you’re using. it should be in the git@github.com:user/repo.git format.
For you, that should be something like git@<mycompanyDNS.com>:scrant/myunityproject.git
Hi @wrossmck-unity , I can access from HTTP no problem but running into trouble with SSH which apparently is required with Cloud Build. All the correct ports on the router/firewall are open. Git is running on a Gitea server in a Docker container so possibly something wrong there. But I’m a little confused as to the URL format given what you said above. This is the URL going into the cloud build page for everyone in the company so why would I be putting my username in there? Also, SSH in Docker is running off a custom port of 220 so how do I insert that into the URL? I’ve been trying something like this:
Bump. I’ve verified I can access my repository via Gitea running on the server in the Docker container externally via ssh. Nothing I put it the URL field however is working. What is the format that should work with a private Git server such as ours both with and without a custom SSH port number (for instance the standard 22 or changed to 220). Pulling my hair out on this and going to have to give up and axe Cloud Build if we can’t get this running. Thanks to anyone who can provide some direction.
I can also now verify that I can remotely access the Gitea server from outside the network via SSH and clone the repository from the command line. So there is something definitely wrong on the Unity CB side not playing nice with self-hosted Git repositories…
@wrossmck-unity can you provide any help? It’s working from an external shell but not with Unity Cloud Build. If we can’t get this working asap we’ll have to go with Codemagic.
Hey @scrant , I think this is related to the custom ssh port. I’m not sure we support that, but the code suggest that it should “just work”. I haven’t seen a support ticket from you, did you submit one? that way we can check your project settings directly instead of guessing
Hi @wrossmck-unity we aren’t using the custom port anymore. We changed that to remove another variable. Should just be straight SSH right in. As I said, it’s working to clone externally, remotely from the terminal. UCB should be able to see it. I’ve submitted a ticket now. Please take a look. Thank you!