Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't start coap plugin #64

Open
tmsvr opened this issue Dec 20, 2017 · 1 comment
Open

Can't start coap plugin #64

tmsvr opened this issue Dec 20, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@tmsvr
Copy link

tmsvr commented Dec 20, 2017

Environment

emq 2.3.1 in docker, official image from here

Expected behaviour

I can start the coap plugin from the dashboard and I can connect to it with clients (Caliornium).

Actual behaviour

Started image with:
docker run --rm -ti --name emq -p 18083:18083 -p 1883:1883 -p 5683:5683 -p 5684:5684 -v /my/certs/are/here:/etc/certs emqttd-docker-v2.3.1:latest

Dashboard shows up, I set up the certificates then turn on the coap plugin. Dashboard shows it is ok, but it doesn't show up under listeners. In the logs I see

13:13:42.856 [error] CRASH REPORT Process <0.1562.0> with 0 neighbours exited with reason: {cannot_listen,5684,{options,{ciphers,[]}}} in gen_server:init_it/6 line 344

Cert was generated using this tutorial (CA + Server with unprotected key). If I try without certs (emptying the 2 fields for the cert and key) the result is:

13:17:30.443 [error] CoAP: certfile [] or keyfile [] are not valid, turn off coap DTLS

Dashboard still shows it is started ok, but not visible under listeners, and I can't connect. I have tried both 5683 and 5684 ports with no luck.

@emqplus emqplus added the bug label Dec 26, 2017
@emqplus emqplus added this to the 2.3.3 milestone Dec 26, 2017
@turtleDeng turtleDeng assigned terry-xiaoyu and unassigned grutabow Dec 26, 2019
@qingchuwudi
Copy link
Contributor

CoAP uses UDP ports, so you should use -p 5683:5683/udp -p 5684:5684/udp instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants