coollabsio / coolify

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

[Bug]: Trigger.dev template don't works, container stop with "exec format error" #3242

Open MatteoGauthier opened 2 months ago

MatteoGauthier commented 2 months ago

Description

Hey, I tried to use the Trigger.dev template, but the trigger container keeps restarting...

Minimal Reproduction (if possible, example repository)

  1. Create a new project with Trigger template in it (no the one with an external postgres database)
  2. Deploy the services
  3. Inspect logs on your machine

-> Machine keeps restarting -> Error in log

Exception or Error

exec /usr/local/bin/docker-entrypoint.sh: exec format error exec /usr/local/bin/docker-entrypoint.sh: exec format error exec /usr/local/bin/docker-entrypoint.sh: exec format error exec /usr/local/bin/docker-entrypoint.sh: exec format error exec /usr/local/bin/docker-entrypoint.sh: exec format error

Version

v4.0.0-beta.323

Cloud?

Vahor commented 2 months ago

What architecture is your server ? x86/arm ?

If this is what I think, try to change the version from latest to latest-arm.

MatteoGauthier commented 2 months ago

Here is my arch

uname -m
aarch64
MatteoGauthier commented 2 months ago

Oops, Trigger documentation specifies that ARM architectures are not supported. You're right @Vahor

Screenshot 2024-08-28 at 14 23 14

https://trigger.dev/docs/open-source-self-hosting#caveats

Vahor commented 2 months ago

👍 The error message could still be improved, have you tried with latest-arm ? (latest and latest-arm are still on v2)

MatteoGauthier commented 2 months ago

👍 The error message could still be improved, have you tried with latest-arm ? (latest and latest-arm are still on v2)

Yes ! It's working now on with the ghcr.io/triggerdotdev/trigger.dev:latest-arm image

andrasbacsai commented 2 months ago

This needs to be handled on Coolify level. It could be done with the one-click services, but not for custom ones (the ones that you add with normal docker compose).