Skip to content

Instantly share code, notes, and snippets.

@ghedamat
Created May 5, 2016 15:47
Show Gist options
  • Save ghedamat/1e0f196ff799107b49c0a5af81e17ed5 to your computer and use it in GitHub Desktop.
Save ghedamat/1e0f196ff799107b49c0a5af81e17ed5 to your computer and use it in GitHub Desktop.
edeliver-bug-simplified-no-ecto
{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]}]}.
{"0.0.2",
[{"0.0.1",[],
[{load_object_code,
{foo,"0.0.2",
['Elixir.Foo.Endpoint','Elixir.Foo.Gettext',
'Elixir.Foo.PageController','Elixir.Foo.Repo',
'Elixir.Foo.Router.Helpers','Elixir.Foo.Router',
'Elixir.Foo.TestWorker','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.Gettext',
'Elixir.Foo.PageController','Elixir.Foo.Repo',
'Elixir.Foo.Router.Helpers','Elixir.Foo.Router',
'Elixir.Foo.TestWorker','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.Gettext',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.PageController',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.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.Gettext',
'Elixir.Foo.PageController','Elixir.Foo.Repo',
'Elixir.Foo.Router.Helpers','Elixir.Foo.Router',
'Elixir.Foo.TestWorker','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.Gettext',
'Elixir.Foo.PageController','Elixir.Foo.Repo',
'Elixir.Foo.Router.Helpers','Elixir.Foo.Router',
'Elixir.Foo.TestWorker','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.Gettext',soft_purge,brutal_purge}},
{load,{'Elixir.Foo.PageController',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.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...">>]}}]}]}.
11:44:59.083 [info] ==> Checking whether upgrade to version 0.0.2 is possible... 
11:44:59.083 [info] Validating no process runs old code before upgrading...
11:44:59.083 [info] None of 8 modules have old code.
11:44:59.083 [info] Checking whether ranch socket acceptors can be found...
11:44:59.084 [info] Found 100 ranch acceptors.
11:44:59.084 [info] Checking whether ranch socket connections can be found...
11:44:59.084 [info] Found 0 ranch connections.
11:44:59.085 [info] Detected that no websockets are connected to channels.
11:44:59.093 [info] ==> Checking whether upgrade to version 0.0.2 is possible... 
11:44:59.093 [info] Validating no process runs old code before upgrading...
11:44:59.093 [info] None of 8 modules have old code.
11:44:59.093 [info] Checking whether ranch socket acceptors can be found...
11:44:59.094 [info] Found 100 ranch acceptors.
11:44:59.094 [info] Checking whether ranch socket connections can be found...
11:44:59.094 [info] Found 0 ranch connections.
11:44:59.094 [info] Detected that no websockets are connected to channels.
11:44:59.095 [info] ==> Preparing upgrade to version 0.0.2...
11:44:59.095 [info] Suspending ranch socket acceptors...
11:44:59.095 [info] Stopping 100 ranch socket acceptors...
11:44:59.097 [info] Suspended 100 ranch acceptors.
11:44:59.097 [info] Suspending ranch socket acceptor supervisor...
11:44:59.097 [info] Suspending phoenix websocket channels...
11:44:59.098 [info] No websocket connections for phoenix channels are running.
11:44:59.098 [info] Waiting up to 500 ms until running requests finished...
11:44:59.099 [info] No requests running.
11:44:59.099 [info] ==> Upgrading release to version 0.0.2...
11:44:59.114 [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]
11:45:01.884 [info] Running Foo.Endpoint with Cowboy using http on port 8888
11:45:01.884 [debug] start
11:45:01.884 [debug] init
11:45:01.886 [debug] handle info 0.0.1
Interactive Elixir (1.2.2) - press Ctrl+C to exit (type h() ENTER for help)
iex(foo@Mattias-MacBook-Pro)1> 11:45:06.891 [debug] handle info 0.0.1
11:45:11.896 [debug] handle info 0.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment