emqx-sn icon indicating copy to clipboard operation
emqx-sn copied to clipboard

Setting the port to ::1:2000 causes error

Open tonnenpinguin opened this issue 7 years ago • 12 comments

When setting the port to ::1:2000 (as mentioned in the comment) emqttd exits with the following error message.

15:13:40.661 [error] Error generating configuration in phase transform_datatypes 15:13:40.661 [error] Error transforming datatype for: mqtt.sn.port 15:13:40.661 [error] "::1:20000" cannot be converted to a(n) integer

Is setting the port to ::1:xxxx even required when trying to get IPv6 only clients to connect with the MQTT-SN bridge? Thanks in advance!

tonnenpinguin avatar Jan 16 '18 14:01 tonnenpinguin

emq-sn will allow binding itself on an ipv6 address in next official release.

grutabow avatar Jan 17 '18 08:01 grutabow

Thanks for the quick reply! Alright, I'll resume testing in a week then :)

tonnenpinguin avatar Jan 17 '18 13:01 tonnenpinguin

Still unable to get IPv6 working after upgrading to v2.3.4. With mqtt.sn.port = ::1:1884 emq_sn exits with:

[error] Supervisor emq_sn_sup had child emq_sn_udp_server started with esockd_udp:server(mqtt_sn, {"::1",1884}, [], {emq_sn_gateway_sup,start_gateway,[1,false]}) at undefined exit with reason {'EXIT',{function_clause,[{esockd_udp,server,[mqtt_sn,{"::1",1884},[],{emq_sn_gateway_sup,start_gateway,[1,false]}],[{file,"src/esockd_udp.erl"},{line,48}]},{supervisor,do_start_child,2,[{file,"supervisor.erl"},{line,365}]},{supervisor,start_children,3,[{file,"supervisor.erl"},{line,348}]},{supervisor,init_children,2,[{file,"supervisor.erl"},{line,314}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,365}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,333}]},{proc_lib,init_p_do_apply,...}]}} in context start_error

manchoz avatar Jan 30 '18 11:01 manchoz

I'm seeing the same issue as @manchoz. This is on a clean install on a raspberry pi 3 running the latest raspbian.

tonnenpinguin avatar Jan 30 '18 14:01 tonnenpinguin

@manchoz @tonnenpinguin This issue has been fixed in esockd library. But both the emq-sn and emqttd projects still depends on the v5.2 of esockd.

I tagged esockd v5.2.1 and fixed the dependencies in the Makefile. Please clean and build the EMQ broker from latest master branch.

emqplus avatar Feb 01 '18 04:02 emqplus

Now it works :) Thanks @emqplus!

tonnenpinguin avatar Feb 03 '18 18:02 tonnenpinguin

Confirmed working for me too. Thanks @emqplus!

manchoz avatar Feb 05 '18 15:02 manchoz

Now I'm running into the same issue again after upgrading to 3.0 :(

Any ideas @emqplus?

tonnenpinguin avatar Oct 09 '18 12:10 tonnenpinguin

I'm working on this project now ,please wait for emqx3.0rc1 2018年10月9日 +0800 PM8:04 Berni [email protected],写道:

Now I'm running into the same issue again after upgrading to 3.0 :(

Any ideas @emqplushttps://github.com/emqplus?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/emqx/emqx-sn/issues/66#issuecomment-428166073, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATh-0wNYQP3dmzvKaVoo3TveN5h8tRMXks5ujJDKgaJpZM4Rf1qo.

gilbertwong96 avatar Oct 09 '18 12:10 gilbertwong96

Thanks for the quick reply! Is there an ETA available already?

tonnenpinguin avatar Oct 09 '18 12:10 tonnenpinguin

2018.10.20 2018年10月9日 +0800 PM8:11 Berni [email protected],写道:

Thanks for the quick reply! Is there an ETA available already?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/emqx/emqx-sn/issues/66#issuecomment-428168159, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATh-05L9OeFtEDcEfhsZ7NxRYOar_bnGks5ujJKIgaJpZM4Rf1qo.

gilbertwong96 avatar Oct 09 '18 12:10 gilbertwong96

Hi, guys. Sorry so delay replying here

We will ensure it before v4.0 release

HJianBo avatar Jan 03 '20 12:01 HJianBo