Open lasseebert opened 5 years ago
There hasn't been any change in behavior with regard to start_erl.data
in a very long time - 2.0.12 would have failed at the same location as 2.0.14/2.0.x/master - it has not been supported to run Distillery on an entirely read-only system when not including ERTS (i.e. using host ERTS) in a long time, as Distillery's scripts have to detect the system ERTS, and write start_erl.data
so the release can be booted.
But this issue got me wondering if start_erl.data
could be moved to the mutable directory, and it turns out it can! So I've made that change in the 2.0.x branch. Would you be willing to test that branch in your environment and verify that it works as expected? My local testing looks good, but I would like to test in a "real" environment as well.
@bitwalker That sounds amazing. I will make a test as soon as possible.
For the record: My setup works fine with distillery 2.0.12 (deployed to multiple production units).
@bitwalker It works with the 2.0.x
branch :tada:
Only difference in my project from 2.0.12 is that I have to create the $RELEASE_MUTABLE_DIR
before starting the application (which makes sense, but I didn't do that before and it was created for me).
I'll publish 2.0.15 soon from that branch then!. It's expected that $RELEASE_MUTABLE_DIR
exists, so even if the behavior before was that it took care of it, that was not intended. Thanks for reporting back so quickly!
Steps to reproduce
Try to start app with e.g. (note that
/data
is read-write)Verbose Logs (Logs from embedded box)
Description of issue
This works fine on Distillery 2.0.12, but fails with the
Read-only filesystem
message on 2.0.13 and 2.0.14.The app is deployed to a read-only dir, but I point to a read-write dir for the
$RELEASE_MUTABLE_DIR
.Downgrading to Distillery 2.0.12 made it work again.
Details:
What OS, Erlang/Elixir versions are you seeing this issue on? Linux (embedded, ARM), Erlang 21.1, Elixir 1.8.2
If possible, also provide your
rel/config.exs
, as it is often my first troubleshooting question, and you'll save us both time :)I will try to dig deeper into this tomorrow.