coollabsio / coolify

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

[Bug]: Unable to build (nodejs) β€” or update the instance #3496

Open kappuccino opened 1 month ago

kappuccino commented 1 month ago

Error Message and Logs

Any build a try to start stop at the very beginning with this access denied issue.

Starting deployment of ************************* to localhost.
Preparing container with helper image: ghcr.io/coollabsio/coolify-helper:1.0.0.

docker rm -f q0os8ckcswggocs4so00wg4o
Error response from daemon: No such container: q0os8ckcswggocs4so00wg4o

docker run -d --network coolify --name q0os8ckcswggocs4so00wg4o --rm -v /root/.docker/config.json:/root/.docker/config.json:ro -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/coollabsio/coolify-helper:1.0.0
Unable to find image 'ghcr.io/coollabsio/coolify-helper:1.0.0' locally
docker: Error response from daemon: Head "[https://ghcr.io/v2/coollabsio/coolify-helper/manifests/1.0.0":](https://ghcr.io/v2/coollabsio/coolify-helper/manifests/1.0.0%22:) denied: denied.
See 'docker run --help'.

Oops something is not okay, are you okay? 😒
Unable to find image 'ghcr.io/coollabsio/coolify-helper:1.0.0' locally
docker: Error response from daemon: Head "[https://ghcr.io/v2/coollabsio/coolify-helper/manifests/1.0.0":](https://ghcr.io/v2/coollabsio/coolify-helper/manifests/1.0.0%22:) denied: denied.
See 'docker run --help'.
Deployment failed. Removing the new version of your application.

Steps to Reproduce

  1. Having a running app
  2. Click redeploy

Example Repository URL

No response

Coolify Version

v4.0.0-beta.337

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 24.04

Additional Information

I tried to update the instance, but the automatic process never ends (I can start the process and get the spinning loader... but nothing more, even if I let spin for 1 hour). I also tried the manual update process from the documentation (from https://coolify.io/docs/upgrade), but nothing is really happening, even if I wait for a while

andrasbacsai commented 1 month ago

It looks like a temporary ghcr repository error. Can you please try again?

kappuccino commented 1 month ago

Hello andrasbacsai and thank you for your reply. Still the same on both deploy + update of coolify

Oops something is not okay, are you okay? 😒. Unable to find image 'ghcr.io/coollabsio/coolify-helper:1.0.0' locally docker: Error response from daemon: Head "https://ghcr.io/v2/coollabsio/coolify-helper/manifests/1.0.0":denied: denied.

kappuccino commented 1 month ago

If I try to manually pull the ghcr.io/coollabsio/coolify-helper:1.0.0 image from a terminal, I got the same error. Is this normal those images are behind some auth/credential stuff ?

Conceptiks commented 1 month ago

I too am running into an issue with a build-server configured and authorized with my Github PAT to work on ghcr.io. I am not sure if this is related since the issue above references a denied error while I get an unauthorized error. However, I don't know why.

My token has the following permissions:

I am working with an repo that is part of a github-org (sample-org).

2024-Sep-20 10:50:26.054082
SOURCE_COMMIT=ce8c037baaf4900aaf5d1f46fe32ff91f34233c9 COOLIFY_FQDN=https://dev.example.io/ COOLIFY_URL=dev.example.io COOLIFY_BRANCH=dev  docker compose --project-name vcgcgw4kkckwck08ss04g88c --project-directory /data/coolify/applications/vcgcgw4kkckwck08ss04g88c -f /data/coolify/applications/vcgcgw4kkckwck08ss04g88c/docker-compose.yaml up --build -d
2024-Sep-20 10:50:26.054082
vcgcgw4kkckwck08ss04g88c-104811605913 Pulling
2024-Sep-20 10:50:26.347077
vcgcgw4kkckwck08ss04g88c-104811605913 Error Head "[https://ghcr.io/v2/sample-org/example/example-dev/manifests/ce8c037baaf4900aaf5d1f46fe32ff91f34233c9":](https://ghcr.io/v2/sample-org/example/example-dev/manifests/ce8c037baaf4900aaf5d1f46fe32ff91f34233c9%22:) unauthorized
2024-Sep-20 10:50:26.355132
Error response from daemon: Head "[https://ghcr.io/v2/sample-org/example/example-dev/manifests/ce8c037baaf4900aaf5d1f46fe32ff91f34233c9":](https://ghcr.io/v2/sample-org/example/example-dev/manifests/ce8c037baaf4900aaf5d1f46fe32ff91f34233c9%22:) unauthorized
2024-Sep-20 10:50:26.409360
Oops something is not okay, are you okay? 😒
2024-Sep-20 10:50:26.416932
vcgcgw4kkckwck08ss04g88c-104811605913 Pulling 
2024-Sep-20 10:50:26.416932
 vcgcgw4kkckwck08ss04g88c-104811605913 Error Head "[https://ghcr.io/v2/sample-org/example/example-dev/manifests/ce8c037baaf4900aaf5d1f46fe32ff91f34233c9":](https://ghcr.io/v2/sample-org/example/example-dev/manifests/ce8c037baaf4900aaf5d1f46fe32ff91f34233c9%22:) unauthorized
2024-Sep-20 10:50:26.416932
Error response from daemon: Head "[https://ghcr.io/v2/sample-org/example/example-dev/manifests/ce8c037baaf4900aaf5d1f46fe32ff91f34233c9":](https://ghcr.io/v2/sample-org/example/example-dev/manifests/ce8c037baaf4900aaf5d1f46fe32ff91f34233c9%22:) unauthorized
2024-Sep-20 10:50:26.424086
Deployment failed. Removing the new version of your application.