emqx.conf配置文件修改后不生效,修改里面的SSL 证书路径,一直重启好多次都不起作用

错误报告

环境

  • EMQX 版本:5.0.12-otp24.3.4.2_1.el7
  • 操作系统版本:centos 7.6

重现此问题的步骤

  1. 修改 /etc/emqx/emqx.conf 配置文件

listeners.ssl.default {
bind = “0.0.0.0:8883”
max_connections = 512000
ssl_options {
keyfile = “/etc/emqx/certs/service.pem”
certfile = “/etc/emqx/certs/service.pem”
cacertfile = “/etc/emqx/certs/ca.pem”
}
}

重启后,链接

一直报

预期行为

配置应该起作用

实际行为

配置不起作用


2023-01-12T10:00:32.478974+08:00 [error] supervisor: ‘esockd_connection_sup - <0.2153.0>’, errorContext: connection_shutdown, reason: {ssl_error,{options,{cacertfile,“/etc/emqx/certs/ca.pem”,{error,enoent}}}}, offender: [{pid,<0.10866.1>},{name,connection},{mfargs,{emqx_connection,start_link,[#{enable_authn => true,limiter => #{bytes_in => #{capacity => 1099511627776,initial => 0,rate => infinity},client => #{bytes_in => #{capacity => 1099511627776,divisible => false,failure_strategy => force,initial => 0,low_watermark => 0,max_retry_time => 10000,rate => infinity},connection => #{capacity => 1099511627776,divisible => false,failure_strategy => force,initial => 0,low_watermark => 0,max_retry_time => 10000,rate => infinity},message_in => #{capacity => 1099511627776,divisible => false,failure_strategy => force,initial => 0,low_watermark => 0,max_retry_time => 10000,rate => infinity},message_routing => #{capacity => 1099511627776,divisible => false,failure_strategy => force,initial => 0,low_watermark => 0,max_retry_time => 10000,rate => infinity}},connection => #{capacity => 1000,initial => 0,rate => 100.0},message_in => #{capacity => 1099511627776,initial => 0,rate => infinity},message_routing => #{capacity => 1099511627776,initial => 0,rate => infinity}},listener => {ssl,default},zone => default}]}}]

功能请求

描述你需要的功能

为什么你需要这个功能


其他

你之前有在 Dashboard 上修改过这个配置吗?

可以看下 data/configs/cluster-override.conf 中有没有相应的配置项已经存在了。

5.0 的配置项存在一个优先级关系,具体可以参考 配置文件