I have attempted to deploy a simple application written in Elixir using the Phoenix framework, which ultimately uses the erlang vm.
I cannot figure out exactly what is going wrong. I have given the daemon user write access to a logs directory and scratch folder (although I cannot guarantee this is being used). I have built it on a debian wheezy vm, and packaged it with a mix release which includes everything to run it. The shell script I made is based on phoenix deployment instructions and hcoop guides: > #!/bin/sh > > export MIX_ENV=prod > export PORT=51666 > export COOKIE=$HOME/apps/gpsapp/scratch/.erlang.cookie > > k5start -t -U -f /etc/keytabs/user.daemon/drakej -- gpsapp/bin/gpsapp $1 > (where $1 is start, stop, etc.) But when I run it, I get an error that seems to indicate it can’t listen. I have tried my user and the daemon user. The port 51666 is registered on the control panel. Has anyone encountered a problem like this? - Jeff. The output follows. > > drakej@bog:~/apps$ ./gpsapp.sh console > Kerberos initialization for drakej/[email protected] > Exec: /afs/hcoop.net/user/d/dr/drakej/apps/gpsapp/erts-6.4/bin/erlexec -boot > /afs/hcoop.net/user/d/dr/drakej/apps/gpsapp/releases/0.0.1/gpsapp -boot_var > ERTS_LIB_DIR /afs/hcoop.net/user/d/dr/drakej/apps/gpsapp/erts-6.4/../lib -env > ERL_LIBS /afs/hcoop.net/user/d/dr/drakej/apps/gpsapp/lib -config > /afs/hcoop.net/user/d/dr/drakej/apps/gpsapp/releases/0.0.1/sys.config -pa > /afs/hcoop.net/user/d/dr/drakej/apps/gpsapp/lib/consolidated -args_file > /afs/hcoop.net/user/d/dr/drakej/apps/gpsapp/releases/0.0.1/vm.args -user > Elixir.IEx.CLI -extra --no-halt +iex -- console > Root: /afs/hcoop.net/user/d/dr/drakej/apps/gpsapp > /afs/hcoop.net/user/d/dr/drakej/apps/gpsapp > {error_logger,{{2015,5,3},{22,30,43}},"Protocol: ~tp: register/listen error: > ~tp~n",["inet_tcp",etimedout]} > {error_logger,{{2015,5,3},{22,30,43}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.21.0>},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,322}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}},{ancestors,[net_sup,kernel_sup,<0.10.0>]},{messages,[]},{links,[#Port<0.138>,<0.18.0>]},{dictionary,[{longnames,true}]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,27},{reductions,743}],[]]} > {error_logger,{{2015,5,3},{22,30,43}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfargs,{net_kernel,start_link,[['[email protected]',longnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]} > {error_logger,{{2015,5,3},{22,30,43}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}},{offender,[{pid,undefined},{name,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]} > {error_logger,{{2015,5,3},{22,30,43}},crash_report,[[{initial_call,{application_master,init,['Argument__1','Argument__2','Argument__3','Argument__4']}},{pid,<0.9.0>},{registered_name,[]},{error_info,{exit,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{kernel,start,[normal,[]]}},[{application_master,init,4,[{file,"application_master.erl"},{line,133}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}},{ancestors,[<0.8.0>]},{messages,[{'EXIT',<0.10.0>,normal}]},{links,[<0.8.0>,<0.7.0>]},{dictionary,[]},{trap_exit,true},{status,running},{heap_size,376},{stack_size,27},{reductions,117}],[]]} > {error_logger,{{2015,5,3},{22,30,43}},std_info,[{application,kernel},{exited,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{kernel,start,[normal,[]]}}},{type,permanent}]} > {"Kernel pid > terminated",application_controller,"{application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{kernel,start,[normal,[]]}}}"} > Kernel pid terminated (application_controller) > ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{k > > _______________________________________________ HCoop-Help mailing list [email protected] https://lists.hcoop.net/listinfo/hcoop-help
