When running the ./glot foreground, it crashes.
daimajia opened this issue · comments
代码家 commented
root@CodeRunner:~/glot/glot-run/_build/default/rel/glot/bin# ./glot foreground
Exec: /root/glot/glot-run/_build/default/rel/glot/erts-7.2/bin/erlexec -noshell -noinput +Bd -boot /root/glot/glot-run/_build/default/rel/glot/releases/1.2.0/glot -mode embedded -config /root/glot/glot-run/_build/default/rel/glot/releases/1.2.0/sys.config -boot_var ERTS_LIB_DIR /root/glot/glot-run/_build/default/rel/glot/erts-7.2/../lib -args_file /root/glot/glot-run/_build/default/rel/glot/releases/1.2.0/vm.args -- foreground
Root: /root/glot/glot-run/_build/default/rel/glot
07:22:55.581 [info] Application lager started on node 'glot-run@127.0.0.1'
{"Kernel pid terminated",application_controller,"{application_start_failure,glot,{{shutdown,{failed_to_start_child,http_log_srv,{{badmatch,{error,enotdir}},[{http_log_srv,init,1,[{file,\"/root/glot/glot-run/_build/default/lib/glot/src/logging/http_log_srv.erl\"},{line,25}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,328}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,240}]}]}}},{glot_app,start,[normal,[]]}}}"}
Crash dump is being written to: erl_crash.dump...done
Kernel pid terminated (application_controller) ({application_start_failure,glot,{{shutdown,{failed_to_start_child,http_log_srv,{{badmatch,{error,enotdir}},[{http_log_srv,init,1,[{file,"/root/glot/gl
So sorry for disturbing, I'm new to erlang and trying to make this whole project work.
Petter Rasmussen commented
Its understandable, I haven't prioritized making instructions on how to run it and making nice error messages when something goes wrong.
The error means that the log directory (from LOG_PATH) does not exist. You need to set all the environment variables mentioned in the README and make sure the directories exist.