I am using EMQX 5.0 (local and remote) in Windows 10. When i am starting the broker with a bridge configuration, i am getting the error.
2023-01-04T16:10:44.991000+05:30 [error] failed_to_check_schema: emqx_conf_schema
2023-01-04T16:10:44.991000+05:30 [error] #{kind => validation_error,path => “bridges.mqtt.mqtt_bridge_egress”,reason => unknown_fields,unknown => <<“connector,direction…”>>,unmatched => <<“ingress,max_inflight”>>}
2023-01-04T16:10:45.007000+05:30 [error] #{kind => validation_error,path => “bridges.mqtt.mqtt_bridge_ingress”,reason => unknown_fields,unknown => <<“connector,direction…”>>,unmatched => <<“egress,max_inflight”>>}
C:\Tools\emqx-5.0.12-windows-amd64>C:\Tools\emqx-5.0.12-windows-amd64\erts-12.2.1\bin\erl.exe -mode embedded -boot “C:\Tools\emqx-5.0.12-windows-amd64\releases\5.0.12\start” -config “C:\Tools\emqx-5.0.12-windows-amd64\data\configs\app.2023.01.04.16.10.42.config” -args_file “C:\Tools\emqx-5.0.12-windows-amd64\data\configs\vm.2023.01.04.16.10.42.args” -mnesia dir ‘c:/Tools/emqx-5.0.12-windows-amd64/data/mnesia/emqx@127.0.0.1’
{“could not start kernel pid”,application_controller,“error in config file "c:/Tools/emqx-5.0.12-windows-amd64/data/configs/app.2023.01.04.16.10.42.config" (none): configuration file not found”}
could not start kernel pid (application_controller) (error in config file “c:/Tools/emqx-5.0.12-windows-amd64/data/configs/app.2023.01.04.16.10.42.config” (none): configuration file not found)
Crash dump is being written to: erl_crash.dump…done
Below is the configuration
bridges {
mqtt {
mqtt_bridge_ingress {
connector {
bridge_mode = false
clean_start = true
keepalive = "60s"
max_inflight = 32
mode = "cluster_shareload"
password = "pwd1"
proto_ver = "v5"
reconnect_interval = "10s"
retry_interval = "1s"
server = "test.com:1883"
ssl {enable = false}
username = "user1"
}
direction = "ingress"
enable = true
local_topic = "test"
local_qos = 0
remote_qos = 0
remote_topic = "test"
payload = "${payload}"
retain = false
}
mqtt_bridge_egress {
connector {
bridge_mode = false
clean_start = true
keepalive = "60s"
max_inflight = 32
mode = "cluster_shareload"
username = "emqx"
password = "emqx"
proto_ver = "v5"
reconnect_interval = "15s"
retry_interval = "15s"
server = "test.com:1883"
ssl { enable = false }
}
direction = "egress"
enable = true
local_topic = "test"
remote_qos = 0
remote_topic = "test"
payload = "${payload}"
retain = false
}
}
}