-
Notifications
You must be signed in to change notification settings - Fork 52
Running Release Fails after "set include_erts: false" #25
Comments
Seems related to this issue: bitwalker/distillery#20 It should be fixed with Distillery 1.3.3 which is used by the latest version of mix_docker |
@Faolain can you tell us if you still have the issue with the latest version of mix_docker ? |
Thanks for the fast response unfortunately although I updated there seems to be another issue before even being able to address the erts boolean. I'm not sure what has changed (is it the alpine image itself?) but now I am unable to even run
|
@Faolain This is definitely not a mix_docker issues - I just got the same SSL error in one project that is still using quite old version of mix_docker and custom Dockerfiles that hasn't been changes for a while. I don't know yet what is causing this. I'll let you know as soon as I find anything. |
In my case this was a clock sync issue: Before fix
The fix - source
After fix
|
Thanks so much @teamon that fixed the date/SSL issue. Strange how that suddenly came up. @tlvenn Sigh :/ even with the most recent mix_docker update with distillery at 1.3.4 the following still occurs when setting
|
Ya I have the same issue @Faolain |
@tlvenn, @teamon 's suggestion worked for me! I would say try that. Also on a sidenote @teamon beside the erts issue I tried commenting on your blog post for clustering but unfortunately Discus threw my comment into spam. I was wondering how you take care of migrations as I am trying to do so with RPC but currently I believe after changing my hostname using the vm.args...I am no longer able to RPC connect to my node and run my migration scripts. Is there a way to set the RPC to a particular destination or a better way to run migrations instead of calling a bash script in post_start with distillery? Since Mix is not available this was the only way I saw how. https://gist.github.com/Faolain/9312eb507d19c6992d5055ab3296e677 |
@Faolain do you mean you solved the original issue with Running migration with distellery is actually easy, have a look at: https://hexdocs.pm/distillery/running-migrations.html#content |
@tlvenn unfortunately no, only the clock sync issue teamon pointed out. I was able to run the migration without having a cluster(changing the node name) but once I change the node away from whatever the default is(I'm assuming 127.0.0.1) the rpc call states that |
But what do you need RPC to run migrations ? |
I assume it is using RPC in the background, in any case, running the
so I'd love to know how @teamon ended up running migrations using a cluster |
It works fine on my side but I had the above issue with |
I was trying this for the first time after reading this article. I had a similar error. Changing |
I followed the guide here at https://shovik.com/blog/8-deploying-phoenix-apps-with-docker and it was advised to not bundle the erts files, that is,
set include_erts: false
in therel/config.exs
. I was both able to runmix docker.build
andmix docker.release
but when it comes time to running the container it errors out statingIf I then instead set to include erts to true
set include_erts: true
then it is able to run the container/initiate the phoenix server. If it helps at all I'm running this on OSX without any other changes to the standard included Dockerfile build and release files.
The text was updated successfully, but these errors were encountered: