Skip to content
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]: Docker compose file not loading when using non-root user in remote server #2113

Open
maurobender opened this issue May 2, 2024 · 4 comments
Assignees

Comments

@maurobender
Copy link
Contributor

maurobender commented May 2, 2024

Description

Trying to configure an application with Docker compose in Coolify has been really challenging and frustrating.

I've a project with a several docker compose configuration files that work ok in my local computer but when trying to select them from the Coolify instance I'm constantly getting the error Could not load base compose file from /docker-compose.yaml and getting the Docker Compose Location setting back to its original default.

There is no any extra information about why that error is happening, if the file was not found or was any errors parsing it.

I expend a couple of hours trying different file names, and different docker-compose file configuration but without any proper error logs it was imposible to find the error with my docker files.

Then I tried with a new rails project, a clean Dockerfile and docker-compose.yaml file and the error was the same.

I think docker-compose support is kind of broken in this last version.

I'm running the Coolify version v4.0.0-beta.271.

What is strange is that I've another instance with Coolify that is also now in v4.0.0-beta.271 but in that instance since I've install the project a week ago with docker-compose this project is now working. If a try to configure the same project with the same docker-compose.yml file in the brand new instance it does not work :/.

Minimal Reproduction (if possible, example repository)

The repository contains:

  1. Brand new rails app.
  2. Dockerfile
  3. docker-compose.yaml file.

Exception or Error

There is not much information about what is happening, the error is Could not load base compose file from /docker-compose.yaml.

Version

v4.0.0-beta.271

@maurobender
Copy link
Contributor Author

I've done more testing and find that the problem is actually using the Docker compose configuration with a remote server. If I set the resource to run in localhost loading the docker compose file works just fine but if I try to use it in a remote server it doesn't work. Hope this is helpful in order to solve the bug!

@maurobender maurobender changed the title [Bug]: Docker compose not working in freshly new instance with Coolify [Bug]: Docker compose file not loading when using remote server May 2, 2024
@maurobender maurobender changed the title [Bug]: Docker compose file not loading when using remote server [Bug]: Docker compose file not loading when using non-root user in remote server May 2, 2024
@maurobender
Copy link
Contributor Author

Upon further research I found the problem was using a non-root user (experimental) when connecting to the remote server. Using the root user fixed the issue.

@andrasbacsai andrasbacsai self-assigned this May 4, 2024
@mcosti
Copy link

mcosti commented May 5, 2024

I'm encountering the same issue

@Sarorn123
Copy link

me too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants