coolify icon indicating copy to clipboard operation
coolify copied to clipboard

[Bug]: Heroku buildpack not working

Open wallaceosmar opened this issue 1 year ago • 11 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

Fail after 2s.

[03:38:30.421] GitHub importer started.
[03:38:30.424] Cloning heroku/python-getting-started:main branch.
[03:38:30.723] Configuration changed.
[03:38:30.750] Building image started.

Steps To Reproduce

  1. create new app
  2. add any heroku example in the git (https://github.com/heroku/python-getting-started)
  3. enable debug log
  4. deploy

Version

3.10.16

wallaceosmar avatar Oct 20 '22 06:10 wallaceosmar

To deploy the container I had to force coolify to v3.10.1, I didn't test the exact version it stopped working

wallaceosmar avatar Oct 21 '22 03:10 wallaceosmar

I can reproduce it and will fix it in the next version.

andrasbacsai avatar Oct 23 '22 09:10 andrasbacsai

@andrasbacsai still not working

wallaceosmar avatar Nov 08 '22 12:11 wallaceosmar

I tested it out, and it works for me, or at least the build & deployment are working. But the application states an error, but that is just a python env configuration:

image

andrasbacsai avatar Nov 08 '22 13:11 andrasbacsai

Tested in a new vm in DigitalOcean.

In my server one of the attempts of running show this log

[14:04:49.044] /usr/local/bin/pack: 1: Syntax error: redirection unexpected
[14:04:50.064] 2

wallaceosmar avatar Nov 08 '22 14:11 wallaceosmar

Strange, I cannot reproduce it. Can you show me a screenshot of the configuration for this application?

andrasbacsai avatar Nov 15 '22 20:11 andrasbacsai

@andrasbacsai after some digging in the source code i discover the pack script is not present in the image and the url to download the pack return a 404

RUN curl -SL https://cdn.coollabs.io/bin/linux/amd64/pack-v0.27.0 -o /usr/local/bin/pack https://github.com/coollabsio/coolify/actions/runs/3479738443/jobs/5818653611#step:8:869

Work around

ssh in the vm to get the container id use sudo docker ps | grep coollabsio/coolify: ssh in the coolify container with sudo docker exec -it {container_id} bash run (curl -sSL "https://github.com/buildpacks/pack/releases/download/v0.27.0/pack-v0.27.0-linux.tgz" | tar -C /usr/local/bin/ --no-same-owner -xzv pack)

wallaceosmar avatar Nov 17 '22 23:11 wallaceosmar

Yea clean your docker cache, and you would be able to recreate the problem.

(not sure you should be doing cached runs on release tests)

axlroden avatar Nov 18 '22 10:11 axlroden

@wallaceosmar Thanks! It worked.

kolosek avatar Nov 23 '22 06:11 kolosek

@andrasbacsai

install wget -q https://get.coollabs.io/coolify/install.sh
-O install.sh; sudo bash ./install.sh -f

3.12.4

https://github.com/wanglong167/7777

image

openainext avatar Dec 26 '22 08:12 openainext

I have the same issue on 3.12.11

CleanShot 2023-01-16 at 19 09 43

adrianthedev avatar Jan 16 '23 17:01 adrianthedev

I'm closing this issue, because tracking features will be moved to GitHub discussions. Github issues will be only for bugs.

Version 4 is in full focus. v3 related issues will be closed, if it is not a critical bug.

Thanks for your understanding.

andrasbacsai avatar Sep 08 '23 08:09 andrasbacsai