Skip to content
This repository has been archived by the owner on Aug 7, 2020. It is now read-only.

The broker crashes when I run it by command for cluster #132

Open
1 of 2 tasks
pintse opened this issue Oct 4, 2019 · 1 comment
Open
1 of 2 tasks

The broker crashes when I run it by command for cluster #132

pintse opened this issue Oct 4, 2019 · 1 comment

Comments

@pintse
Copy link

pintse commented Oct 4, 2019

Make sure you read and understand http://emqtt.io/docs/v2/index.html.
Use one of the two templates below and delete the rest.

  • BUG REPORT
  • FEATURE REQUEST

BUG REPORT

Expected behavior

I Hope that there are two nodes in the cluster.
Host 1 : 192.168.0.2
Host 2 : 192.168.0.3

I follow the README.md in https://github.com/emqx/emqx-docker to use the command to run the EMQX in the docker.

then the broker is been started up.

Actual behavior

After the broker is being started up and pass several minutes, it crashes.

The container log:

IExec: /opt/emqx/erts-10.3.5.4/bin/erlexec -boot /opt/emqx/releases/v3.2.3/emqx -mode embedded -boot_var ERTS_LIB_DIR /opt/emqx/erts-10.3.5.4/../lib -mnesia dir "/opt/emqx/data/mnesia/[email protected]" -config /opt/emqx/data/configs/app.2019.10.04.08.15.44.config -args_file /opt/emqx/data/configs/vm.2019.10.04.08.15.44.args -vm_args /opt/emqx/data/configs/vm.2019.10.04.08.15.44.args -- console
Root: /opt/emqx
/opt/emqx
Starting emqx on node [email protected]
Start http:management listener on 8080 successfully.
Start http:dashboard listener on 18083 successfully.
Start mqtt:tcp listener on 127.0.0.1:11883 successfully.
Start mqtt:tcp listener on 0.0.0.0:1883 successfully.
Start mqtt:ws listener on 0.0.0.0:8083 successfully.
Start mqtt:ssl listener on 0.0.0.0:8883 successfully.
Start mqtt:wss listener on 0.0.0.0:8084 successfully.
EMQ X Broker 3.2.3 is running now!
Eshell V10.3.5.4 (abort with ^G)
([email protected])1> ['2019-10-04T08:16:03Z']:emqx exit abnormally

Test code

The command for starting the container:

Provide a Minimal, Complete, and Verifiable example which will reproduce the problem.

# add code here
docker start -d --name emqx        -p 18083:18083 -p 1883:1883 -p 8083:8083 -p 8883:8883 -p 8084:8084 -p 4369:4369 -p 6000-6100:6000-6100 -e EMQX_NAME="emqx" -e EMQX_HOST="192.168.0.2" -e EMQX_LISTENER__TCP__EXTERNAL=1883 -e EMQX_JOIN_CLUSTER="[email protected]" emqx/emqx:latest

EMQ version

I pull the image from the Docker Hub:
3.2.3

Docker version

Which docker-engine version?

Docker version 19.03.2, build 6a30dfc

How docker info?

Client:
 Debug Mode: false

Server:
 Containers: 2
  Running: 0
  Paused: 0
  Stopped: 2
 Images: 1
 Server Version: 19.03.2
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
 runc version: 425e105d5a03fabd737a126ad93d62a9eeede87f
 init version: fec3683
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 4.9.184-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 2
 Total Memory: 1.934GiB
 Name: docker-desktop
 ID: N34C:T4PC:BH5Z:TDQJ:GYFL:7ZNK:RZ44:K3UW:K2QK:7QG6:QVIS:WG2A
 Docker Root Dir: /var/lib/docker
 Debug Mode: true
  File Descriptors: 29
  Goroutines: 44
  System Time: 2019-10-04T08:55:01.5386003Z
  EventsListeners: 1
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
 Product License: Community Engine

System

Windows 10 Enterprise

Hardware

HP ZBook

@pintse
Copy link
Author

pintse commented Oct 8, 2019

I try every environment parameter above the command, the container crash when I set the "EMQX_HOST="192.168.0.2".
The IP address is the host OS IP, I think that because I am not familiar with Docker, I set the wrong IP address.
How to set up the EMQX_HOST value?

@pintse pintse closed this as completed Oct 8, 2019
@pintse pintse reopened this Oct 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant