-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Git Basic auth not url encoded causes error with private deployments #5295
Comments
Could the issue be that you are binding to port
And that should be needed if you are using the coolify proxy, so if you remove it does it deploy? |
Tried compose file below, same result. Its worrying this basic feature is broken and there's no hint to how to resolve given on the UI
|
is the compose in your repo definately named docker-compose.yaml? or is it named docker-compose.yml ? |
I checked the filename being correct about 20x, so this is a bug. I've switched to dokku now instead |
I just tried deploying a git source + docker compose file and it works fine for me on v4 beta 397 - https://github.com/coollabsio/coolify-examples/blob/main/docker-compose-test/docker-compose.yaml The basic auth is part of the compose file, so if the compose deployment is not working then i shouldn't see the login prompt like this. |
New test, that exact compose file you posted, I put in my git repo -> pushed -> clicked 'reload compose file' on UI. New coolify installation. Same result. This suggests there may be a bug with the private Git repo integration code in Coolify perhaps? As you are using a public repo, I'm using self hosted private gitlab with http auth. |
If i instead just make a project which doesnt use git and i just copy paste your compose file linked contents, it works. This also suggests the bug is with the private git auth perhaps |
ah, i've fixed it. the problem is due to coolify not urlencoding the user/pass http basic auth params in the https git url e.g. if i input git source:
it wont work it i instead url encode the username myself first and do it:
success, compose file now parses |
Awesome! at least we know what the issue is so we can change the title too:
I dont have permission 😆 |
Error Message and Logs
v4.0.0-beta.397
When I click reload compose file, nothing happens
It even happens with an edited down very basic compose file
logs
Steps to Reproduce
Example Repository URL
No response
Coolify Version
v4.0.0-beta.397
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: