coolify icon indicating copy to clipboard operation
coolify copied to clipboard

[Bug]: Cloning into '.'... error: Sparse checkout leaves no entry on working directory

Open rosancoderian opened this issue 9 months ago • 2 comments

Error Message and Logs

I got this notification error when try to loading the docker-compose.yml Cloning into '.'... error: Sparse checkout leaves no entry on working directory

Steps to Reproduce

  1. Add resource
  2. Choose Private Repository with Github App
  3. Follow instruction until its loading the repository
  4. Wait for the docker-compose.yml is loaded
  5. Then I got this error

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)

Ubuntu 24.04.1 LTS

Additional Information

  • Coolify is hosted in hetzner
  • The app's server is in Google Cloud Platform

rosancoderian avatar Mar 03 '25 14:03 rosancoderian

I think its related to git version you used. i'm updating git from v2.25.1 to v2.48.1 and this problem is gone.

see https://github.com/coollabsio/coolify/issues/2444

gentasumantri avatar Mar 10 '25 15:03 gentasumantri

anyone still have this issue?

RubberArchind avatar Jun 14 '25 13:06 RubberArchind

Im having the same issue? Any luck?

gbertb avatar Jul 20 '25 05:07 gbertb

Im having the same issue? Any luck?

in my case it was pretty silly mistake, the file in my repository was docker-compose.yml but the value in the coolify was docker-compose.yaml, after udpating the value everything is fine

RubberArchind avatar Jul 20 '25 08:07 RubberArchind

Fixed it by renaming the docker-compose.yml to docker-compose.yaml

gbertb avatar Jul 20 '25 15:07 gbertb

Hello I have good name for docker-compose.yaml but always same error...

vialatmi avatar Aug 23 '25 21:08 vialatmi

It would be good if anyone could provide an example repository as we are not able to reproduce.

Cinzya avatar Aug 24 '25 14:08 Cinzya

It would be good if anyone could provide an example repository as we are not able to reproduce.

you can try this to reproduce the error

https://github.com/RubberArchind/docker-compose-test

RubberArchind avatar Aug 24 '25 14:08 RubberArchind