Skip to content

Instantly share code, notes, and snippets.

@ghedamat
Created May 4, 2016 21:08
Show Gist options
  • Save ghedamat/afcda26ee74f904b07032305e3ae25bd to your computer and use it in GitHub Desktop.
Save ghedamat/afcda26ee74f904b07032305e3ae25bd to your computer and use it in GitHub Desktop.
elixir-edeliver-foo-broken-with-edeliver
{application,foo,
[{registered,[]},
{description,"foo"},
{vsn,"0.0.1"},
{modules,['Elixir.Foo','Elixir.Foo.Endpoint',
'Elixir.Foo.ErrorHelpers','Elixir.Foo.ErrorView',
'Elixir.Foo.Gettext','Elixir.Foo.LayoutView',
'Elixir.Foo.PageController','Elixir.Foo.PageView',
'Elixir.Foo.Repo','Elixir.Foo.Router',
'Elixir.Foo.Router.Helpers','Elixir.Foo.Sup',
'Elixir.Foo.TestWorker','Elixir.Foo.UserSocket',
'Elixir.Foo.Web']},
{mod,{'Elixir.Foo',[]}},
{applications,[kernel,stdlib,elixir,phoenix,phoenix_html,cowboy,
logger,gettext,phoenix_ecto,postgrex,edeliver]}]}.
{application,foo,
[{registered,[]},
{description,"foo"},
{vsn,"0.0.2"},
{modules,['Elixir.Foo','Elixir.Foo.Endpoint',
'Elixir.Foo.ErrorHelpers','Elixir.Foo.ErrorView',
'Elixir.Foo.Gettext','Elixir.Foo.LayoutView',
'Elixir.Foo.PageController','Elixir.Foo.PageView',
'Elixir.Foo.Repo','Elixir.Foo.Router',
'Elixir.Foo.Router.Helpers','Elixir.Foo.Sup',
'Elixir.Foo.TestWorker','Elixir.Foo.UserSocket',
'Elixir.Foo.Web']},
{mod,{'Elixir.Foo',[]}},
{applications,[kernel,stdlib,elixir,phoenix,phoenix_html,cowboy,
logger,gettext,phoenix_ecto,postgrex,edeliver]}]}.
17:05:11.142 [debug] handle info 0.0.1
17:05:11.850 [info] ==> Checking whether upgrade to version 0.0.2 is possible... 
17:05:11.850 [info] Validating no process runs old code before upgrading...
17:05:11.851 [info] None of 13 modules have old code.
17:05:11.851 [info] Checking whether ranch socket acceptors can be found...
17:05:11.851 [info] Found 100 ranch acceptors.
17:05:11.851 [info] Checking whether ranch socket connections can be found...
17:05:11.852 [info] Found 0 ranch connections.
17:05:11.852 [info] Detected that no websockets are connected to channels.
17:05:11.861 [info] ==> Checking whether upgrade to version 0.0.2 is possible... 
17:05:11.861 [info] Validating no process runs old code before upgrading...
17:05:11.861 [info] None of 13 modules have old code.
17:05:11.861 [info] Checking whether ranch socket acceptors can be found...
17:05:11.862 [info] Found 100 ranch acceptors.
17:05:11.862 [info] Checking whether ranch socket connections can be found...
17:05:11.863 [info] Found 0 ranch connections.
17:05:11.863 [info] Detected that no websockets are connected to channels.
17:05:11.864 [info] ==> Preparing upgrade to version 0.0.2...
17:05:11.864 [info] Suspending ranch socket acceptors...
17:05:11.864 [info] Stopping 100 ranch socket acceptors...
17:05:11.866 [info] Suspended 100 ranch acceptors.
17:05:11.866 [info] Suspending ranch socket acceptor supervisor...
17:05:11.866 [info] Suspending phoenix websocket channels...
17:05:11.867 [info] No websocket connections for phoenix channels are running.
17:05:11.867 [info] Waiting up to 500 ms until running requests finished...
17:05:11.867 [info] No requests running.
17:05:11.867 [info] ==> Upgrading release to version 0.0.2...
17:05:11.892 [error] release_handler: a which_children call to :ranch_acceptors_sup (#PID<0.1078.0>) was avoided. This supervisor is suspended and should likely be upgraded differently. Exiting ...
release_handler:install_release(Vsn="0.0.2" Opts=[]) failed, Reason={'EXIT',
{suspended_supervisor,
[{release_handler_1,
maybe_supervisor_which_children,
3,
[{file,
"release_handler_1.erl"},
{line,
631}]},
{release_handler_1,
get_procs,
2,
[{file,
"release_handler_1.erl"},
{line,
616}]},
{release_handler_1,
get_procs,
2,
[{file,
"release_handler_1.erl"},
{line,
616}]},
{release_handler_1,
get_procs,
2,
[{file,
"release_handler_1.erl"},
{line,
615}]},
{release_handler_1,
get_supervised_procs,
4,
[{file,
"release_handler_1.erl"},
{line,
590}]},
{lists,
foldl,
3,
[{file,
"lists.erl"},
{line,
1262}]},
{release_handler_1,
eval,
2,
[{file,
"release_handler_1.erl"},
{line,
375}]},
{lists,
foldl,
3,
[{file,
"lists.erl"},
{line,
1262}]}]}}
Erlang/OTP 18 [erts-7.2.1] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
17:05:14.587 [info] Running Foo.Endpoint with Cowboy using http on port 8888
17:05:14.589 [debug] start
17:05:14.589 [debug] init
17:05:14.591 [debug] handle info 0.0.1
Interactive Elixir (1.2.2) - press Ctrl+C to exit (type h() ENTER for help)
{"0.0.2",
[{"0.0.1",[],
[{load_object_code,
{foo,"0.0.2",
['Elixir.Foo.Endpoint','Elixir.Foo.ErrorHelpers',
'Elixir.Foo.ErrorView','Elixir.Foo.Gettext',
'Elixir.Foo.LayoutView','Elixir.Foo.PageController',
'Elixir.Foo.PageView','Elixir.Foo.Repo',
'Elixir.Foo.Router.Helpers','Elixir.Foo.Router',
'Elixir.Foo.TestWorker','Elixir.Foo.UserSocket',
'Elixir.Foo.Web']}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.Info',run,
[<<"==> Checking whether upgrade to version 0.0.2 is possible...">>]}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.CheckProcessesRunningOldCode',
run,
[['Elixir.Foo.Endpoint','Elixir.Foo.ErrorHelpers',
'Elixir.Foo.ErrorView','Elixir.Foo.Gettext',
'Elixir.Foo.LayoutView','Elixir.Foo.PageController',
'Elixir.Foo.PageView','Elixir.Foo.Repo',
'Elixir.Foo.Router.Helpers','Elixir.Foo.Router',
'Elixir.Foo.TestWorker','Elixir.Foo.UserSocket',
'Elixir.Foo.Web']]}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.CheckRanchAcceptors',run,[foo]}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.CheckRanchConnections',run,
[foo]}},
point_of_no_return,
{apply,
{'Elixir.Edeliver.Relup.Instructions.Info',run,
[<<"==> Preparing upgrade to version 0.0.2...">>]}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.SuspendRanchAcceptors',run,
[foo]}},
{apply,{'Elixir.Edeliver.Relup.Instructions.SuspendChannels',run,[foo]}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.FinishRunningRequests',run,
[{foo,500}]}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.Info',run,
[<<"==> Upgrading release to version 0.0.2...">>]}},
{load,{'Elixir.Foo.Endpoint',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.ErrorHelpers',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.ErrorView',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.Gettext',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.LayoutView',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.PageController',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.PageView',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.Repo',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.Router.Helpers',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.Router',soft_purge,brutal_purge}},
{suspend,['Elixir.Foo.TestWorker']},
{load,{'Elixir.Foo.TestWorker',soft_purge,brutal_purge}},
{code_change,up,[{'Elixir.Foo.TestWorker',[]}]},
{resume,['Elixir.Foo.TestWorker']},
{load,{'Elixir.Foo.UserSocket',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.Web',soft_purge,brutal_purge}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.Info',run,
[<<"---> Upgrade to version 0.0.2 succeeded.">>]}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.Info',run,
[<<"==> Resuming node after upgrade to version 0.0.2...">>]}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.RerunFailedRequests',run,[foo]}},
{apply,{'Elixir.Edeliver.Relup.Instructions.ResumeChannels',run,[foo]}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.ResumeRanchAcceptors',run,[foo]}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.Info',run,
[<<"==> Finished upgrade to version 0.0.2...">>]}}]}],
[{"0.0.1",[],
[{load_object_code,
{foo,"0.0.1",
['Elixir.Foo.Endpoint','Elixir.Foo.ErrorHelpers',
'Elixir.Foo.ErrorView','Elixir.Foo.Gettext',
'Elixir.Foo.LayoutView','Elixir.Foo.PageController',
'Elixir.Foo.PageView','Elixir.Foo.Repo',
'Elixir.Foo.Router.Helpers','Elixir.Foo.Router',
'Elixir.Foo.TestWorker','Elixir.Foo.UserSocket',
'Elixir.Foo.Web']}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.Info',run,
[<<"==> Checking whether downgrade to version 0.0.1 is possible...">>]}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.CheckProcessesRunningOldCode',
run,
[['Elixir.Foo.Endpoint','Elixir.Foo.ErrorHelpers',
'Elixir.Foo.ErrorView','Elixir.Foo.Gettext',
'Elixir.Foo.LayoutView','Elixir.Foo.PageController',
'Elixir.Foo.PageView','Elixir.Foo.Repo',
'Elixir.Foo.Router.Helpers','Elixir.Foo.Router',
'Elixir.Foo.TestWorker','Elixir.Foo.UserSocket',
'Elixir.Foo.Web']]}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.CheckRanchAcceptors',run,[foo]}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.CheckRanchConnections',run,
[foo]}},
point_of_no_return,
{apply,
{'Elixir.Edeliver.Relup.Instructions.Info',run,
[<<"==> Preparing downgrade to version 0.0.1...">>]}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.SuspendRanchAcceptors',run,
[foo]}},
{apply,{'Elixir.Edeliver.Relup.Instructions.SuspendChannels',run,[foo]}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.FinishRunningRequests',run,
[{foo,500}]}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.Info',run,
[<<"==> Downgrading release to version 0.0.1...">>]}},
{load,{'Elixir.Foo.Endpoint',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.ErrorHelpers',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.ErrorView',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.Gettext',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.LayoutView',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.PageController',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.PageView',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.Repo',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.Router.Helpers',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.Router',soft_purge,brutal_purge}},
{suspend,['Elixir.Foo.TestWorker']},
{code_change,down,[{'Elixir.Foo.TestWorker',[]}]},
{load,{'Elixir.Foo.TestWorker',soft_purge,brutal_purge}},
{resume,['Elixir.Foo.TestWorker']},
{load,{'Elixir.Foo.UserSocket',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.Web',soft_purge,brutal_purge}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.Info',run,
[<<"---> Downgrade to version 0.0.1 succeeded.">>]}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.Info',run,
[<<"==> Resuming node after downgrade to version 0.0.1...">>]}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.RerunFailedRequests',run,[foo]}},
{apply,{'Elixir.Edeliver.Relup.Instructions.ResumeChannels',run,[foo]}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.ResumeRanchAcceptors',run,[foo]}},
{apply,
{'Elixir.Edeliver.Relup.Instructions.Info',run,
[<<"==> Finished downgrade to version 0.0.1...">>]}}]}]}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment