Commit Graph

8900 Commits

Author SHA1 Message Date
JimMoen eb3726f307
chore: fix README.md(s) picture link 2022-12-07 01:48:46 +08:00
Thales Macedo Garitezi 8ad9e7a008
Merge pull request #9471 from thalesmg/check-unpack-target-v44
fix(install_upgrade): check target version when unpacking (v4.4)
2022-12-06 13:09:34 -03:00
zhongwencool 78ce1ff1b9
Merge pull request #9474 from zhongwencool/bootstrap-apps
fix: load bootstrap file when no bootstrap user
2022-12-06 09:45:10 +08:00
zhongwencool c20b597e12 chore: replace match_object with select/4 2022-12-05 17:00:38 +08:00
zhongwencool a7079b8c0e test: fix rule_engine SUITE failed 2022-12-05 09:40:36 +08:00
zhongwencool 9f129a300a fix: load bootstrap file when no bootstrap user 2022-12-04 16:55:48 +08:00
Thales Macedo Garitezi bf40ee577b fix(install_upgrade): check target version when unpacking (v4.4)
We already have a check to avoid upgrading between minor versions,
such as 4.3 <-> 4.4 (and 4.4 <-> 4.5):

```
  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:36:06 -03:00
Zaiming (Stone) Shi aecf5d12ed
Merge pull request #9456 from zmstone/1130-EMQX-8367-upgrade-ehttpc
EMQX-8367 [4.4] upgrade ehttpc from 0.2.1 to 0.4.2
2022-12-02 13:43:21 +01:00
Zaiming (Stone) Shi f54cf5466f fix(ehttpc): Upgrade ehttpc to 0.4.2 2022-12-02 09:51:15 +01:00
Zaiming (Stone) Shi 5b3bcf54ed
Merge pull request #9446 from zmstone/1129-emqx-7958-add-cover
1129 emqx 7958 add cover
2022-11-29 15:48:14 +01:00
Zaiming (Stone) Shi 55485f25b2 feat: add emqx_cover 2022-11-29 14:53:37 +01:00
Zaiming (Stone) Shi 01f594f4de
Merge pull request #9245 from ieQu1/main-v4.4
chore(gen_rpc): Bump version to 3.0.0
2022-11-29 13:54:08 +01:00
Zaiming (Stone) Shi 93a93aee05 chore: add tools app to release package 2022-11-29 13:50:00 +01:00
Zaiming (Stone) Shi 76b2e698ec Merge remote-tracking branch 'origin/main-v4.3' into main-v4.4 2022-11-28 21:50:04 +01:00
Zaiming (Stone) Shi b1f72f4c36
Merge pull request #9438 from zmstone/1123-stop-releasing-v43
build: detach 4.3 branches from 4.4 branches
2022-11-28 19:19:47 +01:00
ieQu1 e8542b7cd7 chore(gen_rpc): Bump version to 3.0.0 2022-11-28 15:23:53 +01:00
Zaiming (Stone) Shi a44ecc421e
Merge pull request #9435 from zmstone/1128-sync-main-v4.3-to-4.4
1128 sync main v4.3 to 4.4
2022-11-28 15:19:27 +01:00
Zaiming (Stone) Shi eda6df7a19 build: detach 4.3 branches from 4.4 branches
Starting from this commit, there will be no more merges from 4.3 to 4.4.
That is: fixes affecting both 4.3 and 4.4 will have to be sent
in separate pull requests.

This change is due to two reasons:
1. The ever increasing divergence from 4.4 is making the merges
   to cause more and more conflicts which are also harder to resolve
2. Opensource edition 4.3 has come to the 18-month EOL by November 2022
2022-11-28 14:36:42 +01:00
Zaiming (Stone) Shi 2331c9bd5e chore: add emqx_cm to appup 2022-11-28 14:32:05 +01:00
Zaiming (Stone) Shi 1b717ee349 ci: delete otp version suffix from intermediate artifact name 2022-11-28 13:13:22 +01:00
Zaiming (Stone) Shi d244c298dc chore: update app vsn and appup 2022-11-28 12:49:35 +01:00
Zaiming (Stone) Shi 8998fcc166 chore: update relup paths db 2022-11-28 11:04:18 +01:00
Zaiming (Stone) Shi 89ad7ed7ef chore: bump app versions 2022-11-28 11:03:28 +01:00
Zaiming (Stone) Shi 5f10b04971 chore: bump chart versions 2022-11-28 11:02:10 +01:00
Zaiming (Stone) Shi cc342e7a09 chore: bump version to v4.4.12-alpha.1 2022-11-28 11:01:39 +01:00
Zaiming (Stone) Shi 71299a2bcf Merge remote-tracking branch 'origin/main-v4.3' into main-v4.4 2022-11-28 10:02:29 +01:00
Zaiming (Stone) Shi 772ea4988b Merge remote-tracking branch 'origin/release-v44' into main-v4.4 2022-11-28 09:48:01 +01:00
Zaiming (Stone) Shi d166d217ca
Merge pull request #9425 from zmstone/1126-chore-merge-release-v43-back-to-main
1126 chore merge release v43 back to main
2022-11-28 09:43:04 +01:00
Xinyu Liu ed4a975a80
Merge pull request #9388 from Gala-R/fix-helm-chart-bug
fix: helm chart headless service name error
2022-11-28 14:44:53 +08:00
Ivan Dyachkov 2e58152c32 ci: bump otp version to 23.3.4.18-1 2022-11-27 17:47:22 +01:00
Zaiming (Stone) Shi 1c1e158874 ci: build slim package on centos 8
centos 7 has some git compatibility issues
2022-11-27 17:42:42 +01:00
Zaiming (Stone) Shi 8b37baad3a ci: upgrade build-env image to erl23.3.4.18-1 2022-11-27 17:34:25 +01:00
Zaiming (Stone) Shi ad024871e1 ci: fix artifact path for macos 2022-11-27 13:27:29 +01:00
Zaiming (Stone) Shi 027c05af99 test(emqx_channel): fix two flaky tests 2022-11-27 13:15:06 +01:00
Zaiming (Stone) Shi f3fd906043 chore: bump emqx app vsn 2022-11-27 09:18:56 +01:00
Zaiming (Stone) Shi 478b006e68 chore: update versions 2022-11-26 21:04:53 +01:00
Zaiming (Stone) Shi 3c84f4b254 chore: re-generate appup 2022-11-26 18:14:15 +01: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 85e2b279d4 Merge remote-tracking branch 'origin/release-v43' into release-v44 2022-11-25 23:39:59 +01:00
Zaiming (Stone) Shi f2dd44982b docs: update v4.3.22 change logs 2022-11-25 23:39:16 +01:00
Zaiming (Stone) Shi 0d7d9e4022 chore: bump to version v4.3.22 2022-11-25 23:35:33 +01:00
Zaiming (Stone) Shi faf0f7ec89
Merge pull request #9417 from zmstone/chore/firest_update_changes
chore: update changes
2022-11-24 16:05:32 +01:00
firest f55e7612ea chore: update changes 2022-11-24 11:52:21 +01:00
Zaiming (Stone) Shi f61c803d55 Merge remote-tracking branch 'origin/release-v43' into release-v44 2022-11-23 22:50:34 +01:00
Zaiming (Stone) Shi 854836a4c1 chore: bump version to v4.3.22-rc.1 2022-11-23 22:46:37 +01:00
lafirest c3e80329ae
Merge pull request #9405 from lafirest/fix/pass_leak
fix: hide sensitive data in some logs
2022-11-22 19:21:26 +08:00
firest 0d2f1eb49e chore: update appup 2022-11-22 17:31:59 +08:00
firest cc03bc7881 fix: hide sensitive data in some logs 2022-11-22 16:55:47 +08:00
lafirest 06bbb17320
Merge pull request #9391 from lafirest/fix/ctl_atom_leak_v4.3
chore: make remsh node name away from the atom table overflow
2022-11-21 21:51:02 +08:00
firest 2cdc953435 chore: update changes 2022-11-18 14:29:29 +08:00