Thales Macedo Garitezi
10ef87c0bc
fix(install_upgrade): check target version when unpacking (v4.3)
...
We already have a check to avoid upgrading from 4.3 to 4.4:
```
Cannot upgrade/downgrade to 4.4.11-rc.3 from 4.3.17
We only support relup between patch versions
escript: exception error: {relup_not_allowed,unsupported_target_version}
in function install_upgrade_escript__escript__1670__7364__537878__24:validate_target_version/2 (/usr/lib/emqx/bin/install_upgrade.escript, line 444)
in call from install_upgrade_escript__escript__1670__7364__537878__24:install/2 (/usr/lib/emqx/bin/install_upgrade.escript, line 58)
in call from escript:run/2 (escript.erl, line 758)
in call from escript:start/1 (escript.erl, line 277)
in call from init:start_em/1
in call from init:do_boot/3
```
But such check is missing for `unpack`, which may result in an
unusable node after just unpacking:
```
emqx@d70cfe0e8e62:~$ emqx ctl status
ERROR: node_is_not_running!
```
The issue apparently arises from `nodetool` trying to use the
`compiler` lib from the newer version rather than the old one:
```
+ ERL_FLAGS=' -start_epmd false -epmd_module ekka_epmd -proto_dist ekka'
+ /usr/lib/emqx/erts-11.2.2.8/bin/escript /usr/lib/emqx/bin/nodetool -name emqx@127.0.0.1 -setcookie emqxsecretcookie ping
+ die 'node_is_not_running!' 1
+ set +x
ERROR: node_is_not_running!
emqx@d70cfe0e8e62:~$ /usr/lib/emqx/erts-11.2.2.8/bin/escript /usr/lib/emqx/bin/nodetool -name emqx@127.0.0.1 -setcookie emqxsecretcookie ping
escript: Internal error: undef
=ERROR REPORT==== 2-Dec-2022::19:02:39.150274 ===
Loading of /usr/lib/emqx/lib/compiler-8.1.1/ebin/compile.beam failed: badfile
=ERROR REPORT==== 2-Dec-2022::19:02:39.150271 ===
beam/beam_load.c(1879): Error loading module compile:
This BEAM file was compiled for a later version of the run-time system than 23.
To fix this, please recompile this module with an 23 compiler.
(Use of opcode 176; this emulator supports only up to 170.)
```
2022-12-02 16:16:49 -03:00
Zaiming (Stone) Shi
fdfb735327
Merge remote-tracking branch 'origin/release-v43' into main-v4.3
2022-11-26 15:59:29 +01:00
Zaiming (Stone) Shi
f2dd44982b
docs: update v4.3.22 change logs
2022-11-25 23:39:16 +01:00
firest
2cdc953435
chore: update changes
2022-11-18 14:29:29 +08:00
lafirest
55aa282d34
Merge pull request #9338 from lafirest/fix/jwt_acl
...
fix(jwt): fix the jwt ACL will return a wrong result when the token is expired
2022-11-16 18:32:30 +08:00
firest
ed3dc0b614
chore: update changes
2022-11-15 10:47:13 +08:00
firest
8a0158e21d
chore: update changes
2022-11-15 09:52:34 +08:00
JimMoen
1bb31776c9
fix(rewrite): add topic rewrite validation for filter or name
2022-11-15 09:01:03 +08:00
zhongwencool
dfa3f4b5f7
chore: apply suggestions from code review
...
Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
2022-11-14 09:26:48 +08:00
zhongwencool
2b6be02485
feat: validate tls_versions value
2022-11-11 18:08:49 +08:00
JimMoen
0748ca1238
chore: fix comment in schema and config file
2022-11-11 14:05:44 +08:00
Zaiming (Stone) Shi
a7768b6e98
Merge pull request #9313 from zmstone/1105-fix-resource-creation-retry-loop-should-delay-first
...
fix(emqx_rule_monitor): sleep before retry but not after
2022-11-07 22:09:28 +01:00
JimMoen
639006e302
fix(prometheus): disable auth for prometheus endpoint on mgmt listener
2022-11-07 00:44:37 +08:00
Zaiming (Stone) Shi
dff02ba0e5
docs: add change log v4.3.22 v4.4.11
2022-11-05 17:48:46 +01:00
Zaiming (Stone) Shi
2c8874cfe0
Merge branch 'release-v43' into EMQX-7665-cannot-clear-alarms
2022-11-04 16:12:56 +01:00
JimMoen
f9276edaf8
fix: mqtt_bridge and republish validate msg topic
2022-11-04 15:40:46 +08:00
Stefan Strigler
835d3a33ef
fix(emqx_mgmt): call emqx_alarm:delete_all_deactivated_alarms for remote nodes
...
Old call was calling a non-existant function on current module, instead we make
call directly into `emqx_alarm` on remote node.
2022-11-03 14:02:55 +01:00
JimMoen
51c532546c
feat: options for trigger disconnected events by different reasons
2022-11-03 16:43:34 +08:00
Zaiming (Stone) Shi
e0db524a10
refactor: change the format of auth_order and acl_order configs
2022-11-02 11:49:55 +01:00
zhongwencool
704bf3eade
Merge branch 'release-v43' into bump-minirest-0.3.10
2022-11-01 07:46:50 +08:00
zhongwencool
b8dad3f667
Merge branch 'release-v43' into revert-9256-bootstrap-users
2022-11-01 07:44:21 +08:00
zhongwencool
e4473d34c0
feat: bootstrap app/secret from management.bootstrap_apps_file
2022-10-31 19:57:04 +08:00
zhongwencool
3aeb21cc37
Revert "feat: bootstrap dashboard users from dashboard.bootstrap_users_file"
2022-10-31 19:54:34 +08:00
Xinyu Liu
91bc2403a5
Merge pull request #9264 from terry-xiaoyu/message_acked_hook_for_coap
...
fix: run the 'message.acked' hook when ACK received from CoAP devices
2022-10-31 15:20:11 +08:00
Shawn
3f17119e36
fix: run the 'message.acked' hook when ACK received from CoAP devices
2022-10-31 11:46:21 +08:00
zhongwencool
93924f567f
chore: apply suggestions from code review
...
Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
2022-10-28 21:44:38 +08:00
zhongwencool
ec426df0a7
fix: typo error
2022-10-28 21:44:03 +08:00
zhongwencool
04c0caefac
feat: bootstrap dashboard users from dashboard.bootstrap_users_file
2022-10-28 21:43:20 +08:00
Zaiming (Stone) Shi
dd95a26270
Merge remote-tracking branch 'origin/main-v4.3' into release-v43
2022-10-28 14:12:44 +02:00
Zaiming (Stone) Shi
86329075cb
Merge pull request #9242 from lafirest/fix/log_sensitive_acl
...
Use LOG_SENSITIVE to replace the risky LOG in ACL
2022-10-28 13:16:08 +02:00
zhongwencool
c2c089d0e9
chore: remove useless information from the dashboard listener failure log
2022-10-28 17:26:25 +08:00
JimMoen
139aabd078
Merge pull request #9190 from JimMoen/rule-engine-api-id
...
fix(rule_engine): rule id in path urlencoded
2022-10-28 15:41:40 +08:00
Xinyu Liu
8260c55530
Merge pull request #9254 from terry-xiaoyu/webhook_support_placeholders_in_headers
...
feat: support to use placeholders as http headers in webhook actions
2022-10-28 09:43:11 +08:00
Xinyu Liu
eeb87fd253
Merge pull request #9239 from emqx/webhook_support_placeholders_in_headers
...
feat: support to use placeholders as http headers in webhook actions
2022-10-28 09:01:29 +08:00
JimMoen
a9e835113d
chore: update chanegs
2022-10-27 17:32:22 +08:00
Shawn
982fc9b4fe
feat: support to use placeholders as http headers in webhook actions
2022-10-27 17:24:05 +08:00
firest
eddbf3dc9e
chore: update changes
2022-10-27 17:03:12 +08:00
firest
6783c640a6
chore: update changes
2022-10-26 17:16:36 +08:00
Zaiming (Stone) Shi
f5c0ef3e56
Merge pull request #9226 from zmstone/1025-fix-drop-tuple-value-message-headers
...
fix(emqx_rule_events): do not keep tuple-value message headers
2022-10-26 09:59:12 +02:00
Xinyu Liu
7f63912bba
Merge pull request #9224 from terry-xiaoyu/utf8_backup_filenames
...
fix: list exported json files failed with utf8 filenames
2022-10-26 15:47:00 +08:00
Zaiming (Stone) Shi
81e6a40454
fix(emqx_rule_events): do not keep tuple-value message headers
...
the converted message is for JSON encoding, keeping the tuple-values
will lead to encoding error.
2022-10-26 08:52:20 +02:00
Xinyu Liu
90ef9254fd
Merge pull request #9199 from terry-xiaoyu/boot_blocked_by_unreachable_resources
...
fix: refresh resources and rules asynchronously
2022-10-26 13:41:07 +08:00
Shawn
fa333157eb
fix: list exported json files failed with utf8 filenames
2022-10-26 11:46:45 +08:00
Zaiming (Stone) Shi
51c73eed55
Merge pull request #9044 from HJianBo/fix-jwt-acl-rules
...
fix(acl): support all rules in JWT ACL
2022-10-25 20:33:22 +02:00
Shawn
006d2e5f29
fix: rolling upgrade failed on undef funcs
2022-10-25 20:41:31 +08:00
Thales Macedo Garitezi
51f2414eaa
docs: improve changelog
...
Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
2022-10-24 15:24:49 -03:00
Thales Macedo Garitezi
c0b5b887c3
fix(mgmt_api): return 503 when emqx is not running in `/status`
2022-10-24 14:22:28 -03:00
JianBo He
bd59197a58
chore: apply suggestions from code review
...
Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
2022-10-24 16:28:25 +08:00
Shawn
15248eb069
chore: update the change log
2022-10-21 15:41:00 +08:00
JianBo He
7b0acf2c4d
chore: update changes and appup.src
2022-10-21 11:47:07 +08:00