I’m trying to deploy a phoenix app but I have the following error on logs:
2023-10-10T10:32:51.917 app[90806994bed987] arn [info] ERROR Error: failed to spawn command: /app/bin/migrate: No such file or directory (os error 2)
2023-10-10T10:32:51.918 app[90806994bed987] arn [info] does `/app/bin/migrate` exist and is it executable?
I already checked several posts and it is not related to CRLF
I am experiencing the same issue, have made all the checks for CRLF too and it isn’t that.
I didn’t see this in the Elixir deploy that I did just a few hours ago, so it might be a problem specific to the local environment.
Maybe try examining the image’s ultimate filesystem directly:
fly console --user root
(This doesn’t require a preexisting Machine, in contrast to
fly ssh console.)
ls -ld / . bin bin/migrate
head -1 bin/migrate | od -c # double-check
That last one gives a character-by-character view of the first line of the file—including the exact ending sequence.