ppikula / mongooseim-docker

Dockerized MongooseIM 1.5
http://github.com/esl/MongooseIM
Apache License 2.0
20 stars 13 forks source link

Mongoose doesn't start (mongooseim@localhost)1> *** Terminating erlang (mongooseim@localhost) #1

Closed gnunicorn closed 9 years ago

gnunicorn commented 9 years ago

When running

docker run mongooseim/mongooseim-docker

MongooseIM dies with the following output:

Exec: /usr/lib/mongooseim/erts-6.0/bin/erlexec -boot /usr/lib/mongooseim/releases//mongooseim -embedded -config /usr/lib/mongooseim/etc/app.config -args_file /usr/lib/mongooseim/etc/vm.args -- console
Root: /usr/lib/mongooseim
2015-02-08 11:48:16.615 [info] <0.7.0> Application lager started on node mongooseim@localhost
2015-02-08 11:48:16.618 [info] <0.7.0> Application ranch started on node mongooseim@localhost
2015-02-08 11:48:16.705 [info] <0.7.0> Application mnesia started on node mongooseim@localhost
2015-02-08 11:48:16.706 [info] <0.7.0> Application asn1 started on node mongooseim@localhost
2015-02-08 11:48:16.706 [info] <0.7.0> Application public_key started on node mongooseim@localhost
2015-02-08 11:48:16.727 [info] <0.7.0> Application sasl started on node mongooseim@localhost
2015-02-08 11:48:16.743 [info] <0.7.0> Application ssl started on node mongooseim@localhost
2015-02-08 11:48:16.751 [info] <0.7.0> Application p1_stringprep started on node mongooseim@localhost
2015-02-08 11:48:16.787 [info] <0.7.0> Application inets started on node mongooseim@localhost
2015-02-08 11:48:16.787 [info] <0.7.0> Application exml started on node mongooseim@localhost
2015-02-08 11:48:16.788 [info] <0.7.0> Application cowlib started on node mongooseim@localhost
2015-02-08 11:48:16.797 [info] <0.7.0> Application cowboy started on node mongooseim@localhost
2015-02-08 11:48:16.807 [notice] <0.50.0>@lager_file_backend:128 Changed loglevel of log/ejabberd.log to info
2015-02-08 11:48:16.838 [info] <0.7.0> Application mnesia exited with reason: stopped
Eshell V6.0  (abort with ^G)
(mongooseim@localhost)1> *** Terminating erlang (mongooseim@localhost)

No other command (live, start, nor debug) seem to work either. I suspect that erlang rejects the fake shell docker gives it. How did you make it work?

gnunicorn commented 9 years ago

My bad, you need to run it either with -d or -i -t, then the shell stays open:

docker run -d mongooseim/mongooseim-docker