无法订阅$SYS系统主题

环境信息

  • EMQ X 版本:4.3.9
  • 操作系统及版本:Red Hat 4.8.5-44
  • 其他

问题描述

我启用了emqx_auth_mysql,在mqtt_acl表中没有插入任何数据

配置文件及日志

acl.conf:

%%--------------------------------------------------------------------
%% [ACL](https://docs.emqx.io/broker/v3/en/config.html)
%%
%% -type(who() :: all | binary() |
%%                {ipaddr, esockd_access:cidr()} |
%%                {ipaddrs, [esockd_access:cidr()]} |
%%                {client, binary()} |
%%                {user, binary()}).
%%
%% -type(access() :: subscribe | publish | pubsub).
%%
%% -type(topic() :: binary()).
%%
%% -type(rule() :: {allow, all} |
%%                 {allow, who(), access(), list(topic())} |
%%                 {deny, all} |
%%                 {deny, who(), access(), list(topic())}).
%%--------------------------------------------------------------------

{allow, {user, "dashboard"}, subscribe, ["$SYS/#"]}.

{allow, {ipaddr, "127.0.0.1"}, pubsub, ["$SYS/#", "#"]}.

%%{deny, all, subscribe, ["$SYS/#", {eq, "#"}]}.

{deny, all, subscribe, ["/test/#"]}.

{allow, all}.

emqx.conf(配置了log,但并没有文件生成)

log.to = file

log.level = warning

log.dir = log

log.file = emqx.log

建议使用 MQTTX 看看。

感谢!