prasmussen / glot-run

API for running code inside docker containers
https://run.glot.io/
MIT License
147 stars 48 forks source link

When running the ./glot foreground, it crashes. #5

Closed daimajia closed 8 years ago

daimajia commented 8 years ago

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.

prasmussen commented 8 years ago

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.

daimajia commented 8 years ago

Thanks again. I thought the LOG_PATH environment variable would be a specific file path. After I checked the devel.sh I realized that it's a folder path.