coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
32.6k stars 1.72k forks source link

[Bug]: Git Clone Fails: SSH Key Authentication Error for Private Repository #3743

Open mrcloudbook opened 4 days ago

mrcloudbook commented 4 days ago

Error Message and Logs

Cloning into '.'... Permission denied, please try again. Permission denied, please try again. git@gitlab.com ( changed ): Permission denied (publickey,password). fatal: Could not read from remote repository.

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

Steps to Reproduce

  1. Generate SSH key pair in Coolify's Key & Token management.
  2. Copy public key to GitLab repository's Deploy Keys.
  3. Create new project in Coolify, entering Git repository URL and required details.
  4. Load Docker Compose file for the project.
  5. Attempt to clone repository, resulting in SSH authentication failure.

Example Repository URL

No response

Coolify Version

v4.0.0.0-beta.35o

Are you using Coolify Cloud?

No ( Self Hosted )

Operating System and Version (self-hosted)

Ubuntu 22.04

Additional Information

image image
mrcloudbook commented 2 days ago
image

No matter how many times i save the URL it changing to some random URL

JojokCreator commented 1 day ago

I'm having the same issue. Using Gitea trying to deploy from a private repo. Works fine with Github.

-Generate SSH key pair in Coolify's Key & Token management. -Copy public key to Gitea repository's Deploy Keys. -Create new project in Coolify, entering Git repository URL and required details. -Deploy -Attempt to clone repository, resulting in SSH authentication failure.

Error message.

Starting deployment of git@gitea-fhghghf88g.5.223.42.241.sslip.io:fhhg/hhgf.git:main to localhost.
Preparing container with helper image: ghcr.io/coollabsio/coolify-helper:1.0.2.
Oops something is not okay, are you okay? 😢
Permission denied, please try again.
Permission denied, please try again.
git@gitea-fhghghf88g.5.223.42.241.sslip.io:Permission denied (publickey,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Deployment failed. Removing the new version of your application.
mrcloudbook commented 1 day ago

can you check source in the Project is it also changing ?

JojokCreator commented 1 day ago

No I can change the source in the project file.

mrcloudbook commented 20 hours ago

Yes After done everything correct still failing to clone