Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rebar3 auto works for the first save, then crashes. #27

Open
carlotm opened this issue Oct 28, 2024 · 1 comment
Open

rebar3 auto works for the first save, then crashes. #27

carlotm opened this issue Oct 28, 2024 · 1 comment

Comments

@carlotm
Copy link

carlotm commented Oct 28, 2024

I added the plugin in the correct config file (the global one).

$ cat ~/.config/rebar3/rebar.config 
{plugins, [rebar3_auto]}.

Running rebar3 auto works fine for the first save, then it crashes.

$ rebar3 auto
===> Verifying dependencies...
===> Running erlydtl...
===> Analyzing applications...
===> Compiling ugo
Erlang/OTP 25 [erts-13.2.2.10] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit:ns]

Eshell V13.2.2.10  (abort with ^G)
1> Server started at http://localhost:9091 ...
===> Booted poolboy
===> Booted bcrypt
===> Booted cowlib
===> Booted ranch
===> Booted cowboy
===> Booted backoff
===> Booted opentelemetry_api
===> Booted pg_types
===> Booted pgo
===> Booted ugo
touch src/ugo_app.erl
===> This feature is experimental and may be modified or removed at any time.
Verifying dependencies...
Running erlydtl...
Analyzing applications...
Compiling ugo
touch src/ugo_app.erl
Verifying dependencies...
Running erlydtl...
Analyzing applications...
Compiling ugo
=SUPERVISOR REPORT==== 28-Oct-2024::09:37:13.142589 ===
    supervisor: {<0.723.0>,ranch_acceptors_sup}
    errorContext: child_terminated
    reason: killed
    offender: [{pid,<0.725.0>},
               {id,{acceptor,<0.723.0>,2}},
               {mfargs,
                   {ranch_acceptor,start_link,
                       [#Port<0.9>,ranch_tcp,error_logger,<0.722.0>]}},
               {restart_type,permanent},
               {significant,false},
               {shutdown,brutal_kill},
               {child_type,worker}]

=SUPERVISOR REPORT==== 28-Oct-2024::09:37:13.142745 ===
    supervisor: {<0.723.0>,ranch_acceptors_sup}
    errorContext: child_terminated
    reason: killed
    offender: [{pid,<0.726.0>},
               {id,{acceptor,<0.723.0>,3}},
               {mfargs,
                   {ranch_acceptor,start_link,
                       [#Port<0.9>,ranch_tcp,error_logger,<0.722.0>]}},
               {restart_type,permanent},
               {significant,false},
               {shutdown,brutal_kill},
               {child_type,worker}]

=SUPERVISOR REPORT==== 28-Oct-2024::09:37:13.142826 ===
    supervisor: {<0.723.0>,ranch_acceptors_sup}
    errorContext: shutdown
    reason: reached_max_restart_intensity
    offender: [{pid,<0.726.0>},
               {id,{acceptor,<0.723.0>,3}},
               {mfargs,
                   {ranch_acceptor,start_link,
                       [#Port<0.9>,ranch_tcp,error_logger,<0.722.0>]}},
               {restart_type,permanent},
               {significant,false},
               {shutdown,brutal_kill},
               {child_type,worker}]

=SUPERVISOR REPORT==== 28-Oct-2024::09:37:13.142960 ===
    supervisor: {<0.721.0>,ranch_listener_sup}
    errorContext: child_terminated
    reason: shutdown
    offender: [{pid,<0.723.0>},
               {id,ranch_acceptors_sup},
               {mfargs,{ranch_acceptors_sup,start_link,[http,ranch_tcp]}},
               {restart_type,permanent},
               {significant,false},
               {shutdown,infinity},
               {child_type,supervisor}]

=SUPERVISOR REPORT==== 28-Oct-2024::09:37:13.145301 ===
    supervisor: {<0.721.0>,ranch_listener_sup}
    errorContext: child_terminated
    reason: killed
    offender: [{pid,<0.722.0>},
               {id,ranch_conns_sup},
               {mfargs,
                   {ranch_conns_sup,start_link,[http,ranch_tcp,cowboy_clear]}},
               {restart_type,permanent},
               {significant,false},
               {shutdown,infinity},
               {child_type,supervisor}]

=SUPERVISOR REPORT==== 28-Oct-2024::09:37:13.145431 ===
    supervisor: {<0.721.0>,ranch_listener_sup}
    errorContext: shutdown
    reason: reached_max_restart_intensity
    offender: [{pid,<0.722.0>},
               {id,ranch_conns_sup},
               {mfargs,
                   {ranch_conns_sup,start_link,[http,ranch_tcp,cowboy_clear]}},
               {restart_type,permanent},
               {significant,false},
               {shutdown,infinity},
               {child_type,supervisor}]

=SUPERVISOR REPORT==== 28-Oct-2024::09:37:13.145639 ===
    supervisor: {local,ranch_sup}
    errorContext: child_terminated
    reason: shutdown
    offender: [{pid,<0.721.0>},
               {id,{ranch_listener_sup,http}},
               {mfargs,
                {ranch_listener_sup,start_link,
                 [http,ranch_tcp,
                  #{connection_type => supervisor,
                    socket_opts => [{port,9091}]},
                  cowboy_clear,
                  #{connection_type => supervisor,
                    env =>
                     #{dispatch =>
                        [{'_',[],
                          [{[<<"static">>,'...'],
                            [],cowboy_static,
                            {priv_dir,ugo,"static"}}]}]},
                    middlewares => [cowboy_router,cowboy_handler]}]}},
               {restart_type,permanent},
               {significant,false},
               {shutdown,infinity},
               {child_type,supervisor}]

Looks like #23 but the solution proposed there didn't work for me.

@vans163
Copy link
Owner

vans163 commented Nov 26, 2024

Is this rebar3_auto crashing, or your supervisor tree crashing? Remember rebar3 does a hard purge, forcing all processes executing changed code to crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants