emqx/emqx-operator

Could not load plugin

Slideee opened this issue · 7 comments

emqx-operator :1.2.0
emqx: 4.4.1

image

Please use EmqxPlugin custom resource to deploy plugins, like this: https://github.com/emqx/emqx-operator/blob/main/config/samples/emqx/v1beta3/emqx-plugin.yaml

Please use EmqxPlugin custom resource to deploy plugins, like this: https://github.com/emqx/emqx-operator/blob/main/config/samples/emqx/v1beta3/emqx-plugin.yaml

The execution through the EmqxPlugin is successful, but from the dashboard and emqx_ctl, the plugin is not started.
image

image

I tried to load other plugins via /bin/emqx_ctl and it didn't work
image

Looks plugin config failed, please modify ".spec.config" for EmqxPlugin:

push.gateway.server ---> prometheus.push.gateway.server
interval  ---> prometheus.interval

Configure ".spec.config" for EmqxPlugin as you said has been successful.

The reason for the console error "parse_config_file_failed" seems to be that there is no default .conf when the plugin is initialized.Is it necessary to initialize the default .conf files for all plugins here?

image

image

Yes,we don't have default config for plugin.
This's looks like load emqx_auth_mysql failed, did you load this plugin? or this is what EMQX does?

Yes,we don't have default config for plugin. This's looks like load emqx_auth_mysql failed, did you load this plugin? or this is what EMQX does?

I loaded emqx_auth_mysql through the dashboard, and then reported an error of 'parse_config_file_failed'. Looking at the log, I found that there was no emqx_auth_mysql.conf in the mounted directory.
So I think it seems that the operator should mount the default configuration of the plugin, otherwise it cannot be manually started and stopped through the dashboard

I see,let me add default config for next release