I’m trying to deploy to fly.io for the first time. The ‘flyctl deploy’ command succeeds, but the app status is stopped and ‘flyctl logs’ shows the following error over and over:
[info]** (File.Error) could not write to file "/workspace/_build/prod/lib/XXXXXXX/.mix/compile.elixir": permission denied
[info] (elixir 1.16.1) lib/file.ex:1143: File.write!/3
[info] (mix 1.16.1) lib/mix/compilers/elixir.ex:905: Mix.Compilers.Elixir.write_manifest/8
[info] (mix 1.16.1) lib/mix/compilers/elixir.ex:230: Mix.Compilers.Elixir.compile/7
[info] (mix 1.16.1) lib/mix/state.ex:15: Mix.State.lock/2
[info] (mix 1.16.1) lib/mix/task.ex:478: anonymous fn/3 in Mix.Task.run_task/5
[info] (mix 1.16.1) lib/mix/tasks/compile.all.ex:124: Mix.Tasks.Compile.All.run_compiler/2
[info] (mix 1.16.1) lib/mix/tasks/compile.all.ex:104: Mix.Tasks.Compile.All.compile/4
[info] (mix 1.16.1) lib/mix/tasks/compile.all.ex:93: Mix.Tasks.Compile.All.with_logger_app/2
[info] INFO Main child exited normally with code: 1
[info] WARN Reaped child process with pid: 375 and signal: SIGUSR1, core dumped? false
[info] INFO Starting clean up.
[info] WARN hallpass exited, pid: 307, status: signal: 15 (SIGTERM)
It’s an Elixir app, but not Phoenix. I don’t have a Dockerfile, so I guess it’s auto-generating one but I don’t know how to see that.
Would appreciate if anyone can help with debugging this.