Railway cant execute my binary
ignoxx
PROOP

2 years ago

Hey!

I'm deploying to railway via a Dockerfile which as an ENTRYPOINT has /app/main, main is my go build executeable. It used to work just fine months ago, didn;t deployed for a while and now when deploying i'm getting:

/bin/sh: ./main: not found

or

[FATAL tini (7)] exec /app/main failed: No such file or directory

I checked the pwd and ls before executing the binary and the binary is indeed in the directory but it just cant find it for any reason. Any idea why? :)

0 Replies

ignoxx
PROOP

2 years ago

bfce3811-7229-4d5f-97ca-784a19bdf21d


ignoxx
PROOP

2 years ago

Thats the ENTRYPOINT rn: ENTRYPOINT pwd && ls -lisa && ls -lisa /app && ./main
Output of it:

1216157707573264400


ignoxx
PROOP

2 years ago

OK found the issue, some of my package was using a CGO_ENABLED package (go-sqlite3) which broke the whole thing.. closing this :)


Loading...