jlouis / etorrent

Erlang Bittorrent Client
BSD 2-Clause "Simplified" License
294 stars 50 forks source link

exited: {shutdown,{gproc_app,start,[normal,[]]}} #123

Closed arcusfelis closed 13 years ago

arcusfelis commented 13 years ago
bin/etorrent console
Exec: /home/user/erlang/etorrent/rel/etorrent/erts-5.7.4/bin/erlexec -boot /home/user/erlang/etorrent/rel/etorrent/releases/1.2.1/etorrent -embedded -config /home/user/erlang/etorrent/rel/etorrent/etc/app.config -args_file /home/user/erlang/etorrent/rel/etorrent/etc/vm.args -- console
Root: /home/user/erlang/etorrent/rel/etorrent
Erlang R13B03 (erts-5.7.4) [source] [64-bit] [rq:1] [async-threads:12] [hipe] [kernel-poll:true]

=INFO REPORT==== 7-Nov-2011::21:50:59 ===
    application: gproc
    exited: {shutdown,{gproc_app,start,[normal,[]]}}
    type: permanent
{"Kernel pid terminated",application_controller,"{application_start_failure,gproc,{shutdown,{gproc_app,start,[normal,[]]}}}"}

Crash dump was written to: erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,gproc,{shutdown,{gproc_app,start,[normal,[]]}}})

cat log/sasl/sasl-error.log


=SUPERVISOR REPORT==== 7-Nov-2011::21:50:59 ===
     Supervisor: {local,gproc_sup}
     Context:    start_error
     Reason:     {'EXIT',
                     {badarg,
                         [{ets,new,
                              [gproc,
                               [ordered_set,public,named_table,
                                {write_concurrency,true},
                                {read_concurrency,true}]]},
                          {gproc,create_tabs,0},
                          {gproc,start_link,0},
                          {supervisor,do_start_child,2},
                          {supervisor,start_children,3},
                          {supervisor,init_children,2},
                          {gen_server,init_it,6},
                          {proc_lib,init_p_do_apply,3}]}}
     Offender:   [{pid,undefined},
                  {name,gproc},
                  {mfa,{gproc,start_link,[]}},
                  {restart_type,permanent},
                  {shutdown,2000},
                  {child_type,worker}]
jlouis commented 13 years ago

Oh. The problem here is that your OTP version R13B03 is quite old and gproc now assumes a later version of Erlang. specifically, I think the problem is around the options {read_concurrency, true}, {write_concurrency, true} though I may be mistaken.

The quick fix is to upgrade your Erlang version. I think also this would be a good time to decide upon exactly what old versions we support. I am somewhat of the opinion that R14B01 should be the oldest right now, though I might be mistaken.

arcusfelis commented 13 years ago

Thank you, generating release version for R14B4 fixes this error.