emqx / emqx

The most scalable open-source MQTT broker for IoT, IIoT, and connected vehicles
https://www.emqx.com/
Other
13.94k stars 2.23k forks source link

upgrade from 2.3.2 to 2.3.3 fails #1447

Closed victorclaessen closed 6 years ago

victorclaessen commented 6 years ago

Environment

Description

I had emqttd 2.3.2 installed. I wanted to upgrade to 2.3.3 (especially to get the fix for #1293).

I downloaded emqttd-debian9-v2.3.3_amd64.deb and installed it as dpkg -i. I chose to keep my current configuration files. Subsequently, emqttd refuses to start.

tail /var/log/emqttd/erlang.log.3:

=====
===== LOGGING STARTED Wed Jan 10 11:42:02 CET 2018
=====
11:42:03.904 [error] You've tried to set mqtt.pubsub.by_clientid, but there is no setting with that name.
11:42:03.904 [error]   Did you mean one of these?
11:42:03.938 [error]     mqtt.pubsub.async
11:42:03.938 [error]     mqtt.pubsub.pool_size
11:42:03.938 [error]     auth.client.$id.clientid
11:42:03.950 [error] You've tried to set lwm2m.port, but there is no setting with that name.
11:42:03.950 [error]   Did you mean one of these?
11:42:03.969 [error]     coap.port
11:42:03.969 [error]     log.dir
11:42:03.969 [error]     mqtt.sn.port
11:42:03.970 [error] You've tried to set lwm2m.certfile, but there is no setting with that name.
11:42:03.970 [error]   Did you mean one of these?
11:42:03.994 [error]     coap.certfile
11:42:03.994 [error]     coap.keyfile
11:42:03.994 [error]     log.error.file
11:42:03.994 [error] You've tried to set lwm2m.keyfile, but there is no setting with that name.
11:42:03.994 [error]   Did you mean one of these?
11:42:04.016 [error]     coap.keyfile
11:42:04.016 [error]     coap.certfile
11:42:04.016 [error]     log.info.file
11:42:04.016 [error] You've tried to set lwm2m.xml_dir, but there is no setting with that name.
11:42:04.016 [error]   Did you mean one of these?
11:42:04.038 [error]     log.dir
11:42:04.038 [error]     mqtt.acl_file
11:42:04.038 [error]     log.console
11:42:04.053 [error] Error generating configuration in phase transform_datatypes
11:42:04.053 [error] Conf file attempted to set unknown variable: lwm2m.xml_dir
11:42:04.053 [error] Conf file attempted to set unknown variable: lwm2m.keyfile
11:42:04.053 [error] Conf file attempted to set unknown variable: lwm2m.certfile
11:42:04.053 [error] Conf file attempted to set unknown variable: lwm2m.port
11:42:04.053 [error] Error transforming datatype for: dashboard.listener.https.handshake_timeout
11:42:04.054 [error] Invalid duration value: 15
11:42:04.054 [error] Error transforming datatype for: mqtt.bridge.ping_down_interval
11:42:04.054 [error] Invalid duration value: 1
11:42:04.054 [error] Conf file attempted to set unknown variable: mqtt.pubsub.by_clientid
11:42:04.054 [error] Error transforming datatype for: mqtt.broker.sys_interval
11:42:04.054 [error] Invalid duration value: 60
victorclaessen commented 6 years ago

Ok, workaround is:

in emq.conf:

in _plugins/emqdashboard.conf:

move file _plugins/emqlwm2m.conf to _plugins/emqlwm2m.conf.bak

emqplus commented 6 years ago

@victorclaessen I will list the API breaking changes later, thanks for your report.

victorclaessen commented 6 years ago

Since we are already a few versions further, I think it is unlikely that other people will encounter this in the future, so I will close this issue.