Issue title: Error when starting the server
 Issue body: MongooseIM version: 3.1.1
Installed from: pkg
Erlang/OTP version: how can I see this?

Hello, I am using Xubuntu 16.04 and I installed MongooseIM with the package:

`mongooseim_3.1.1-1_ubuntu_xenial_amd64.deb`

The installation goes fine and when i start the server it **seems** to run but with `status` it shows that there is a problem:

```
➜  ~ mongooseimctl start
➜  ~ mongooseimctl status
Failed RPC connection to the node mongooseim@localhost: nodedown

Commands to start a MongooseIM node:
  start           Start a MongooseIM node as daemon (detached from terminal)
  debug           Attach an interactive Erlang shell to a running MongooseIM node
  live            Start MongooseIM node in live (interactive) mode
  foreground      Start MongooseIM node in foreground (non-interactive) mode
MongooseIM cluster management commands:
  join_cluster other_node_name                Add current node to cluster
  leave_cluster                               Leave current node from the cluster
  remove_from_cluster other_node_name         Remove dead node from the cluster
```

I have no idea why it doesn't work, I simply installed it with the package manager downloaded from the site. Do I need additional packages?

When running it with `live` this is what I get.

```
➜  ~ mongooseimctl live
Root: /usr/lib/mongooseim
Exec: /usr/lib/mongooseim/erts-8.3.5/bin/erlexec -boot /usr/lib/mongooseim/releases/3.1.1/mongooseim -embedded -config /etc/mongooseim/app.config -args_file /etc/mongooseim/vm.args -args_file /etc/mongooseim/vm.dist.args -- console
Erlang/OTP 19 [erts-8.3.5] [source] [64-bit] [smp:8:8] [async-threads:5] [hipe] [kernel-poll:true]


=INFO REPORT==== 16-Oct-38d1:d2b4:3d06:83e8:96a5:8c2:893d:aba515:48:51 ===
    msg: "Starting reporters with []\n"
    options: []
15:48:51.563 [info] Application lager started on node mongooseim@localhost
15:48:51.568 [info] Application syslog started on node mongooseim@localhost
15:48:51.568 [info] Application lager_syslog started on node mongooseim@localhost
15:48:51.568 [info] Application lasse started on node mongooseim@localhost
15:48:51.684 [info] Application mnesia started on node mongooseim@localhost
15:48:51.684 [info] Application mochijson2 started on node mongooseim@localhost
15:48:51.684 [info] Application recon started on node mongooseim@localhost
15:48:51.684 [info] Application observer_cli started on node mongooseim@localhost
15:48:51.684 [info] Application pa started on node mongooseim@localhost
15:48:51.693 [info] Application runtime_tools started on node mongooseim@localhost
15:48:51.700 [info] Application sasl started on node mongooseim@localhost
15:48:51.706 [info] Application stringprep started on node mongooseim@localhost
15:48:51.714 [info] Application fast_tls started on node mongooseim@localhost
15:48:51.714 [info] Application mimerl started on node mongooseim@localhost
15:48:51.714 [info] Application certifi started on node mongooseim@localhost
15:48:51.714 [info] Application ssl_verify_fun started on node mongooseim@localhost
15:48:51.714 [info] Application metrics started on node mongooseim@localhost
15:48:51.725 [info] Application hackney started on node mongooseim@localhost
15:48:51.730 [info] Application worker_pool started on node mongooseim@localhost
15:48:51.733 [info] Application tirerl started on node mongooseim@localhost
15:48:51.733 [info] Application usec started on node mongooseim@localhost
15:48:51.739 [notice] Changed loglevel of /var/log/mongooseim/ejabberd.log to info
15:48:51.791 [info] Application mnesia exited with reason: stopped
15:48:51.921 [info] Application mnesia started on node mongooseim@localhost
15:48:52.158 [notice] Changed loglevel of /var/log/mongooseim/ejabberd.log to warning
15:48:52.413 [error] Failed to start Ranch listener 'ejabberd_cowboy_116.69.203.115_8088' in ranch_tcp:listen([{port,8088},{ip,{127,0,0,1}}]) for reason eaddrinuse (address already in use)
15:48:52.413 [error] CRASH REPORT Process <0.740.0> with 0 neighbours exited with reason: {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in gen_server:init_it/6 line 352
15:48:52.413 [error] Supervisor {<0.738.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('ejabberd_cowboy_116.69.203.115_8088', 10, ranch_tcp, [{port,8088},{ip,{127,0,0,1}},{max_connections,1024}]) at undefined exit with reason {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in context start_error
15:48:52.463 [error] Failed to start Ranch listener 'ejabberd_cowboy_116.69.203.115_8088' in ranch_tcp:listen([{port,8088},{ip,{127,0,0,1}}]) for reason eaddrinuse (address already in use)
15:48:52.463 [error] CRASH REPORT Process <0.743.0> with 0 neighbours exited with reason: {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in gen_server:init_it/6 line 352
15:48:52.464 [error] Supervisor {<0.741.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('ejabberd_cowboy_116.69.203.115_8088', 10, ranch_tcp, [{port,8088},{ip,{127,0,0,1}},{max_connections,1024}]) at undefined exit with reason {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in context start_error
15:48:52.515 [error] Failed to start Ranch listener 'ejabberd_cowboy_116.69.203.115_8088' in ranch_tcp:listen([{port,8088},{ip,{127,0,0,1}}]) for reason eaddrinuse (address already in use)
15:48:52.515 [error] CRASH REPORT Process <0.746.0> with 0 neighbours exited with reason: {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in gen_server:init_it/6 line 352
15:48:52.515 [error] Supervisor {<0.744.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('ejabberd_cowboy_116.69.203.115_8088', 10, ranch_tcp, [{port,8088},{ip,{127,0,0,1}},{max_connections,1024}]) at undefined exit with reason {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in context start_error
15:48:52.566 [error] Failed to start Ranch listener 'ejabberd_cowboy_116.69.203.115_8088' in ranch_tcp:listen([{port,8088},{ip,{127,0,0,1}}]) for reason eaddrinuse (address already in use)
15:48:52.566 [error] CRASH REPORT Process <0.749.0> with 0 neighbours exited with reason: {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in gen_server:init_it/6 line 352
15:48:52.566 [error] Supervisor {<0.747.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('ejabberd_cowboy_116.69.203.115_8088', 10, ranch_tcp, [{port,8088},{ip,{127,0,0,1}},{max_connections,1024}]) at undefined exit with reason {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in context start_error
15:48:52.616 [error] Failed to start Ranch listener 'ejabberd_cowboy_116.69.203.115_8088' in ranch_tcp:listen([{port,8088},{ip,{127,0,0,1}}]) for reason eaddrinuse (address already in use)
15:48:52.617 [error] CRASH REPORT Process <0.752.0> with 0 neighbours exited with reason: {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in gen_server:init_it/6 line 352
15:48:52.617 [error] Supervisor {<0.750.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('ejabberd_cowboy_116.69.203.115_8088', 10, ranch_tcp, [{port,8088},{ip,{127,0,0,1}},{max_connections,1024}]) at undefined exit with reason {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in context start_error
15:48:52.667 [error] Failed to start Ranch listener 'ejabberd_cowboy_116.69.203.115_8088' in ranch_tcp:listen([{port,8088},{ip,{127,0,0,1}}]) for reason eaddrinuse (address already in use)
15:48:52.667 [error] CRASH REPORT Process <0.755.0> with 0 neighbours exited with reason: {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in gen_server:init_it/6 line 352
15:48:52.668 [error] Supervisor {<0.753.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('ejabberd_cowboy_116.69.203.115_8088', 10, ranch_tcp, [{port,8088},{ip,{127,0,0,1}},{max_connections,1024}]) at undefined exit with reason {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in context start_error
15:48:52.718 [error] Failed to start Ranch listener 'ejabberd_cowboy_116.69.203.115_8088' in ranch_tcp:listen([{port,8088},{ip,{127,0,0,1}}]) for reason eaddrinuse (address already in use)
15:48:52.718 [error] CRASH REPORT Process <0.758.0> with 0 neighbours exited with reason: {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in gen_server:init_it/6 line 352
15:48:52.719 [error] Supervisor {<0.756.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('ejabberd_cowboy_116.69.203.115_8088', 10, ranch_tcp, [{port,8088},{ip,{127,0,0,1}},{max_connections,1024}]) at undefined exit with reason {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in context start_error
15:48:52.769 [error] Failed to start Ranch listener 'ejabberd_cowboy_116.69.203.115_8088' in ranch_tcp:listen([{port,8088},{ip,{127,0,0,1}}]) for reason eaddrinuse (address already in use)
15:48:52.770 [error] CRASH REPORT Process <0.761.0> with 0 neighbours exited with reason: {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in gen_server:init_it/6 line 352
15:48:52.770 [error] Supervisor {<0.759.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('ejabberd_cowboy_116.69.203.115_8088', 10, ranch_tcp, [{port,8088},{ip,{127,0,0,1}},{max_connections,1024}]) at undefined exit with reason {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in context start_error
15:48:52.820 [error] Failed to start Ranch listener 'ejabberd_cowboy_116.69.203.115_8088' in ranch_tcp:listen([{port,8088},{ip,{127,0,0,1}}]) for reason eaddrinuse (address already in use)
15:48:52.820 [error] CRASH REPORT Process <0.764.0> with 0 neighbours exited with reason: {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in gen_server:init_it/6 line 352
15:48:52.821 [error] Supervisor {<0.762.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('ejabberd_cowboy_116.69.203.115_8088', 10, ranch_tcp, [{port,8088},{ip,{127,0,0,1}},{max_connections,1024}]) at undefined exit with reason {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in context start_error
15:48:52.872 [error] Failed to start Ranch listener 'ejabberd_cowboy_116.69.203.115_8088' in ranch_tcp:listen([{port,8088},{ip,{127,0,0,1}}]) for reason eaddrinuse (address already in use)
15:48:52.872 [error] CRASH REPORT Process <0.767.0> with 0 neighbours exited with reason: {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in gen_server:init_it/6 line 352
15:48:52.872 [error] Supervisor {<0.765.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('ejabberd_cowboy_116.69.203.115_8088', 10, ranch_tcp, [{port,8088},{ip,{127,0,0,1}},{max_connections,1024}]) at undefined exit with reason {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in context start_error
15:48:52.922 [error] Failed to start Ranch listener 'ejabberd_cowboy_116.69.203.115_8088' in ranch_tcp:listen([{port,8088},{ip,{127,0,0,1}}]) for reason eaddrinuse (address already in use)
15:48:52.923 [error] CRASH REPORT Process <0.770.0> with 0 neighbours exited with reason: {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in gen_server:init_it/6 line 352
15:48:52.923 [error] Supervisor {<0.768.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('ejabberd_cowboy_116.69.203.115_8088', 10, ranch_tcp, [{port,8088},{ip,{127,0,0,1}},{max_connections,1024}]) at undefined exit with reason {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in context start_error
15:48:52.973 [error] Failed to start Ranch listener 'ejabberd_cowboy_116.69.203.115_8088' in ranch_tcp:listen([{port,8088},{ip,{127,0,0,1}}]) for reason eaddrinuse (address already in use)
15:48:52.974 [error] CRASH REPORT Process <0.773.0> with 0 neighbours exited with reason: {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in gen_server:init_it/6 line 352
15:48:52.974 [error] Supervisor {<0.771.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('ejabberd_cowboy_116.69.203.115_8088', 10, ranch_tcp, [{port,8088},{ip,{127,0,0,1}},{max_connections,1024}]) at undefined exit with reason {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in context start_error
15:48:53.025 [error] Failed to start Ranch listener 'ejabberd_cowboy_116.69.203.115_8088' in ranch_tcp:listen([{port,8088},{ip,{127,0,0,1}}]) for reason eaddrinuse (address already in use)
15:48:53.025 [error] CRASH REPORT Process <0.776.0> with 0 neighbours exited with reason: {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in gen_server:init_it/6 line 352
15:48:53.025 [error] Supervisor {<0.774.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('ejabberd_cowboy_116.69.203.115_8088', 10, ranch_tcp, [{port,8088},{ip,{127,0,0,1}},{max_connections,1024}]) at undefined exit with reason {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in context start_error
15:48:53.075 [error] Failed to start Ranch listener 'ejabberd_cowboy_116.69.203.115_8088' in ranch_tcp:listen([{port,8088},{ip,{127,0,0,1}}]) for reason eaddrinuse (address already in use)
15:48:53.076 [error] CRASH REPORT Process <0.779.0> with 0 neighbours exited with reason: {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in gen_server:init_it/6 line 352
15:48:53.076 [error] Supervisor {<0.777.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('ejabberd_cowboy_116.69.203.115_8088', 10, ranch_tcp, [{port,8088},{ip,{127,0,0,1}},{max_connections,1024}]) at undefined exit with reason {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in context start_error
15:48:53.126 [error] Failed to start Ranch listener 'ejabberd_cowboy_116.69.203.115_8088' in ranch_tcp:listen([{port,8088},{ip,{127,0,0,1}}]) for reason eaddrinuse (address already in use)
15:48:53.127 [error] CRASH REPORT Process <0.782.0> with 0 neighbours exited with reason: {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in gen_server:init_it/6 line 352
15:48:53.127 [error] Supervisor {<0.780.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('ejabberd_cowboy_116.69.203.115_8088', 10, ranch_tcp, [{port,8088},{ip,{127,0,0,1}},{max_connections,1024}]) at undefined exit with reason {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in context start_error
15:48:53.177 [error] Failed to start Ranch listener 'ejabberd_cowboy_116.69.203.115_8088' in ranch_tcp:listen([{port,8088},{ip,{127,0,0,1}}]) for reason eaddrinuse (address already in use)
15:48:53.178 [error] CRASH REPORT Process <0.785.0> with 0 neighbours exited with reason: {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in gen_server:init_it/6 line 352
15:48:53.178 [error] Supervisor {<0.783.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('ejabberd_cowboy_116.69.203.115_8088', 10, ranch_tcp, [{port,8088},{ip,{127,0,0,1}},{max_connections,1024}]) at undefined exit with reason {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in context start_error
15:48:53.228 [error] Failed to start Ranch listener 'ejabberd_cowboy_116.69.203.115_8088' in ranch_tcp:listen([{port,8088},{ip,{127,0,0,1}}]) for reason eaddrinuse (address already in use)
15:48:53.228 [error] CRASH REPORT Process <0.788.0> with 0 neighbours exited with reason: {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in gen_server:init_it/6 line 352
15:48:53.229 [error] Supervisor {<0.786.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('ejabberd_cowboy_116.69.203.115_8088', 10, ranch_tcp, [{port,8088},{ip,{127,0,0,1}},{max_connections,1024}]) at undefined exit with reason {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in context start_error
15:48:53.280 [error] Failed to start Ranch listener 'ejabberd_cowboy_116.69.203.115_8088' in ranch_tcp:listen([{port,8088},{ip,{127,0,0,1}}]) for reason eaddrinuse (address already in use)
15:48:53.280 [error] CRASH REPORT Process <0.791.0> with 0 neighbours exited with reason: {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in gen_server:init_it/6 line 352
15:48:53.280 [error] Supervisor {<0.789.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('ejabberd_cowboy_116.69.203.115_8088', 10, ranch_tcp, [{port,8088},{ip,{127,0,0,1}},{max_connections,1024}]) at undefined exit with reason {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in context start_error
15:48:53.330 [error] Failed to start Ranch listener 'ejabberd_cowboy_116.69.203.115_8088' in ranch_tcp:listen([{port,8088},{ip,{127,0,0,1}}]) for reason eaddrinuse (address already in use)
15:48:53.331 [error] CRASH REPORT Process <0.794.0> with 0 neighbours exited with reason: {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in gen_server:init_it/6 line 352
15:48:53.331 [error] Supervisor {<0.792.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('ejabberd_cowboy_116.69.203.115_8088', 10, ranch_tcp, [{port,8088},{ip,{127,0,0,1}},{max_connections,1024}]) at undefined exit with reason {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in context start_error
15:48:53.381 [error] Failed to start Ranch listener 'ejabberd_cowboy_116.69.203.115_8088' in ranch_tcp:listen([{port,8088},{ip,{127,0,0,1}}]) for reason eaddrinuse (address already in use)
15:48:53.382 [error] CRASH REPORT Process <0.797.0> with 0 neighbours exited with reason: {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in gen_server:init_it/6 line 352
15:48:53.382 [error] Supervisor {<0.795.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('ejabberd_cowboy_116.69.203.115_8088', 10, ranch_tcp, [{port,8088},{ip,{127,0,0,1}},{max_connections,1024}]) at undefined exit with reason {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in context start_error
15:48:53.432 [error] Failed to start Ranch listener 'ejabberd_cowboy_116.69.203.115_8088' in ranch_tcp:listen([{port,8088},{ip,{127,0,0,1}}]) for reason eaddrinuse (address already in use)
15:48:53.432 [error] CRASH REPORT Process <0.800.0> with 0 neighbours exited with reason: {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in gen_server:init_it/6 line 352
15:48:53.433 [error] Supervisor {<0.798.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('ejabberd_cowboy_116.69.203.115_8088', 10, ranch_tcp, [{port,8088},{ip,{127,0,0,1}},{max_connections,1024}]) at undefined exit with reason {listen_error,'ejabberd_cowboy_116.69.203.115_8088',eaddrinuse} in context start_error
15:48:53.433 [error] Supervisor received unexpected message: {'ETS-TRANSFER',mongoose_worker_pool_settings,<0.346.0>,undefined}
15:48:53.433 [error] CRASH REPORT Process <0.345.0> with 0 neighbours exited with reason: no match of right hand value {error,eaddrinuse} in ejabberd_cowboy:start_listener/2 line 70 in application_master:init/4 line 134
{"Kernel pid terminated",application_controller,"{application_start_failure,mongooseim,{bad_return,{{ejabberd_app,start,[normal,[]]},{'EXIT',{{badmatch,{error,eaddrinuse}},[{ejabberd_cowboy,start_listener,2,[{file,\"/home/vagrant/2018-08-30_18-55-23/scripts/mongooseim/deb/mongooseim/_build/prod/lib/mongooseim/src/ejabberd_cowboy.erl\"},{line,70}]},{ejabberd_listener,start_listener2,3,[{file,\"/home/vagrant/2018-08-30_18-55-23/scripts/mongooseim/deb/mongooseim/_build/prod/lib/mongooseim/src/ejabberd_listener.erl\"},{line,210}]},{ejabberd_listener,start_listener,3,[{file,\"/home/vagrant/2018-08-30_18-55-23/scripts/mongooseim/deb/mongooseim/_build/prod/lib/mongooseim/src/ejabberd_listener.erl\"},{line,192}]},{ejabberd_listener,'-start_listeners/0-fun-0-',1,[{file,\"/home/vagrant/2018-08-30_18-55-23/scripts/mongooseim/deb/mongooseim/_build/prod/lib/mongooseim/src/ejabberd_listener.erl\"},{line,74}]},{lists,map,2,[{file,\"lists.erl\"},{line,1239}]},{lists,map,2,[{file,\"lists.erl\"},{line,1239}]},{ejabberd_listener,start_listeners,0,[{file,\"/home/vagrant/2018-08-30_18-55-23/scripts/mongooseim/deb/mongooseim/_build/prod/lib/mongooseim/src/ejabberd_listener.erl\"},{line,72}]},{ejabberd_app,start,2,[{file,\"/home/vagrant/2018-08-30_18-55-23/scripts/mongooseim/deb/mongooseim/_build/prod/lib/mongooseim/src/ejabberd_app.erl\"},{line,76}]}]}}}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,mongooseim,{bad_return,{{ejabberd_app,start,[normal,[]]},{'EXIT',{{badmatch,{error,eaddrinuse}},[{ejabberd_cowboy,start_liste

Crash dump is being written to: erl_crash.dump...done
```

What can I do?

Thanks!
 Comments: 
 Comment 0: Hi @lukepass 

These errors mean that some other process is already listening on port 8088 (one of the ports used by MongooseIM by default). Might be some other MongooseIM instance (easy to check with `ps aux | grep beam`) or another service.
 Comment 1: Hi @fenek and thanks for your response!
Unfortunately I didn't have any process listening on that port:

```
➜  ~ ps aux | grep beam
luca     15651  0.0  0.0  14240   944 pts/1    S+   09:52   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn beam
```

And the port seems free:
```
➜  ~ lsof -i:8088
➜  ~ 
```
 Comment 2: Sorry, it wasn't showing all the processes:

```
➜  ~ sudo ss -lptn 'sport = :8088'
State      Recv-Q Send-Q Local Address:Port               Peer Address:Port              
LISTEN     0      128    116.69.203.115:8088                     *:*                   users:(("influxd",pid=2650,fd=3))
```

Now it's working fine, thanks :)
 Comment 3: You're welcome. :) On our end we'll try to make this error more understandable. :)
{'source': 'GithubIssues', 'repo_name_with_owner': 'esl/MongooseIM', 'issue_id': 370624624, 'repo_stars': 1565.0}