coollabsio / coolify

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

[Bug]: Unable to find Image #3675

Closed sikc231 closed 1 month ago

sikc231 commented 2 months ago

Error Message and Logs

image Running Rasbian OS ARM64 Rasberry PI 5

should be no problems..

Steps to Reproduce

Installing curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash

Example Repository URL

No response

Coolify Version

Latest

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Rasbian OS

sikc231 commented 2 months ago

last step is failing: docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml up -d --pull always --remove-orphans --force-recreate

image

sikc231 commented 2 months ago

@andrasbacsai Hi! Sorry to annoy, perhaps you could help here by adding linux/arm/v8 to the manifest list entries in coolify-helper?

peaklabs-dev commented 2 months ago

Can you please show me the output of

uname -m
sikc231 commented 2 months ago

image @peaklabs-dev hi! here you go It is ARM64 which is supported by coolify

peaklabs-dev commented 2 months ago

Thank you I will investigate and fix it.

sikc231 commented 2 months ago

@peaklabs-dev thank you so much! Is there any estimations when this fix could be in prod?

peaklabs-dev commented 2 months ago

Probably on Monday if I can reproduce it more consistentently.

sikc231 commented 2 months ago

@peaklabs-dev if you will need any help when it comes to testing or else. let me know

sikc231 commented 1 month ago

image Hi @peaklabs-dev That's the error im getting now.

peaklabs-dev commented 1 month ago

Thanks, I search for a loooot of hours and found out raspian OS is just stupid. It is just a thing I need to add to the docs probably. Will finish this up tomorrow and let you now how I decide to fix it.

Could you please do a clean install of the 64bit version of raspian and let me know if that fixes it as that should do the trick?

artificialguybr commented 1 month ago

A similar error with Oracle ARM64.


   _____            _ _  __
  / ____|          | (_)/ _|
 | |     ___   ___ | |_| |_ _   _
 | |    / _ \ / _ \| | |  _| | | |
 | |___| (_) | (_) | | | | | |_| |
  \_____\___/ \___/|_|_|_|  \__, |
                             __/ |
                            |___/

Welcome to Coolify Installer!
This script will install everything for you. Sit back and relax.
Source code: https://github.com/coollabsio/coolify/blob/main/scripts/install.sh

---------------------------------------------
| Operating System  | ubuntu 22.04
| Docker            | 26.0
| Coolify           | 4.0.0-beta.355
| Helper            | 1.0.1
| Realtime          | 1.0.3
---------------------------------------------

1. Installing required packages (curl, wget, git, jq). 
W: https://download.docker.com/linux/ubuntu/dists/focal/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
2. Check OpenSSH server configuration. 
 - OpenSSH server is installed.
 - SSH PermitRootLogin is enabled.
3. Check Docker Installation. 
 - Docker is installed.
4. Check Docker Configuration. 
 - Docker configuration is up to date.
5. Download required files from CDN. 
6. Make backup of .env to .env-20241006-003519
7. Propagating .env with new values - if necessary.
8. Checking for SSH key for localhost access.
 - Generating SSH key.
/data/coolify/ssh/keys/id.root@host.docker.internal already exists.
Overwrite (y/n)? y
9. Installing Coolify (4.0.0-beta.355)
 - It could take a while based on your server's performance, network speed, stars, etc.
 - Please wait.
 - Until then, here's a joke for you:

Knock knock.
Who's there?
Recursion.
Recursion who?
Knock knock.

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested. 

It was working before. (Some months ago)

I managed to install Coolify using the manual installation... But when I try to deploy one of the repositories it gives this error.

2024-Oct-06 03:51:00.208076
Starting deployment of artificialguybr/s-jdisc:teste-servidor to localhost.
2024-Oct-06 03:51:00.412828
Preparing container with helper image: ghcr.io/coollabsio/coolify-helper:1.0.1.
2024-Oct-06 03:51:00.534039
docker rm -f f0kc4kwk844osggg4o4k8gc8
2024-Oct-06 03:51:00.534039
Error response from daemon: No such container: f0kc4kwk844osggg4o4k8gc8
2024-Oct-06 03:51:00.684907
docker run -d --network coolify --name f0kc4kwk844osggg4o4k8gc8 --rm -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/coollabsio/coolify-helper:1.0.1
2024-Oct-06 03:51:00.684907
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
2024-Oct-06 03:51:00.687541
2920bda13a26ddb9111f77ca9a803ddadd04469be3472dcaa803af81335df5dc
2024-Oct-06 03:51:00.985504
docker exec f0kc4kwk844osggg4o4k8gc8 bash -c 'mkdir -p /artifacts/f0kc4kwk844osggg4o4k8gc8'
2024-Oct-06 03:51:00.985504
Error response from daemon: No such container: f0kc4kwk844osggg4o4k8gc8
2024-Oct-06 03:51:01.034425
Oops something is not okay, are you okay? 😢
2024-Oct-06 03:51:01.036997
Error response from daemon: No such container: f0kc4kwk844osggg4o4k8gc8
2024-Oct-06 03:51:01.039549
Deployment failed. Removing the new version of your application.
sikc231 commented 1 month ago

Hi @peaklabs-dev docker pull ghcr.io/coollabsio/coolify-helper:1.0.1@sha256:3ca159771d0bb4e1f55df7d9e92544c421cd83d80f916f0500f20fe81c131393

this command seems to pull successfully. If possible I prefer not to reinstall my rasbian OS.

Now its seems that it fails at pulling redis and postgres image

sikc231 commented 1 month ago

Some new error when trying to start coolify manually with image

image

and after trying to run it again image

peaklabs-dev commented 1 month ago

@sikc231 Question on how you initially set up your PI:

  1. You bougth the PI
  2. you booted the pi and did upgrades and updates via apt
  3. you installed Coolify via the installer Am I correct or did you manually go to the website and install the 64-bit version of the pi OS?
peaklabs-dev commented 1 month ago

@sikc231 Can you please show me the output of these commands (again):

uname -m

and

docker info | grep Architecture
artificialguybr commented 1 month ago

@artificialguybr and @sikc231 Can you please show me the output of these commands (again):

uname -m

and

docker info | grep Architecture

This started about 14 hours ago. The bug happens in a Next JS app deployment aarch64 Architecture: aarch64

I don't know if it's related, but another nextjs project that deployed correctly used Comfy Helper 1.0.0 and it worked. A postgresql with supabase extensions resource also deploy correctly.

peaklabs-dev commented 1 month ago

@artificialguybr Can you try again now I made a small change?

artificialguybr commented 1 month ago

@artificialguybr Can you try again now I made a small change?

Restarted the resource, redeploy, redeploy without cache. All with same error.

peaklabs-dev commented 1 month ago

@artificialguybr I think your error is ressource related and not installer related maybe your nextjs ressource does not have an arm image, could you open a new issue for your problem so we can solve this better as this issue is probably pi related and different from yours. Thank you very much.

artificialguybr commented 1 month ago

@artificialguybr I think your error is ressource related and not installer related maybe your nextjs ressource does not have an arm image, could you open a new issue for your problem so we can solve this better as this issue is probably pi related and different from yours. Thank you very much.

Done. Thanks. https://github.com/coollabsio/coolify/issues/3745

sikc231 commented 1 month ago

@peaklabs-dev hi, here you go image

peaklabs-dev commented 1 month ago
sikc231 commented 1 month ago

@sikc231 Question on how you initially set up your PI:

  1. You bougth the PI
  2. you booted the pi and did upgrades and updates via apt
  3. you installed Coolify via the installer Am I correct or did you manually go to the website and install the 64-bit version of the pi OS?

HI. I do not remember the steps I took as it was 10 months ago. I believe PI came with SDcard with already existing image of rasbian OS. But not sure about it. I have PI 5 which has quad-core 64-bit Arm Cortex-A76 processor, meaning the output of uname -m is correct (aarch64)

peaklabs-dev commented 1 month ago

@sikc231 Can you please show me the output of the following command:

getconf LONG_BIT
sikc231 commented 1 month ago

@peaklabs-dev image

peaklabs-dev commented 1 month ago

And we got it, finally :). This is because your userspace architecture is still 32-bit, so Coolify will not work as it only supports 64-bit. You are running into this issue. I will ask if you can do anything other than just a fresh clean install of the 64-bit OS, as that would be the best option for you to fix this, but you mentioned that you do not want to do that.

sikc231 commented 1 month ago

@peaklabs-dev thanks! you are awesome! For people who will run in similar error: check if your kernel is 64 bit by using command: getconf LONG_BIT if it says 32bit, coolify won't work I reinstalled my rasberry pi 5 with Rasbian OS 64bit and coolify installation went successfully

peaklabs-dev commented 1 month ago

I have now also updated the documentation with a guide on how to install the 64-bit version of the OS, which solves this problem with a Guide.