configsync plugin issue for elasticsearch 8.4.1.0

Hi,

We are getting below error while trying to install “configsync” plugin for ES 8.4.1.0.

→ Installing org.codelibs:elasticsearch-configsync:8.4.1.0
→ Downloading org.codelibs:elasticsearch-configsync:8.4.1.0 from maven central
[=================================================] 100%
Warning: sha512 not found, falling back to sha1. This behavior is deprecated and will be removed in a future release. Please update the plugin to use a sha512 checksum.
→ Failed installing org.codelibs:elasticsearch-configsync:8.4.1.0
→ Rolling back org.codelibs:elasticsearch-configsync:8.4.1.0
→ Rolled back org.codelibs:elasticsearch-configsync:8.4.1.0
Exception in thread “main” java.lang.IllegalArgumentException: plugin policy [/usr/share/elasticsearch/plugins/.installing-12701784981443761681/plugin-security.policy] contains illegal permission (“java.io.FilePermission” “<>” “read,write”) in global grant
at org.elasticsearch.bootstrap.PolicyUtil.validatePolicyPermissionsForJar(PolicyUtil.java:350)
at org.elasticsearch.bootstrap.PolicyUtil.validatePolicyPermissions(PolicyUtil.java:360)
at org.elasticsearch.bootstrap.PolicyUtil.getPluginPolicyInfo(PolicyUtil.java:371)
at org.elasticsearch.plugins.cli.InstallPluginAction.installPlugin(InstallPluginAction.java:900)
at org.elasticsearch.plugins.cli.InstallPluginAction.execute(InstallPluginAction.java:250)
at org.elasticsearch.plugins.cli.InstallPluginCommand.execute(InstallPluginCommand.java:89)
at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:54)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85)
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:94)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85)
at org.elasticsearch.cli.Command.main(Command.java:50)
at org.elasticsearch.launcher.CliToolLauncher.main(CliToolLauncher.java:64)

If we try to manually download and extract the zip file to plugins folder, ES starting is failing with below error.
[2022-09-14T01:06:31,308][ERROR][o.e.b.Elasticsearch ] [dnvstgdbmysql01] fatal exception while booting Elasticsearch
java.lang.IllegalStateException: Plugin [configsync] is missing a descriptor properties file.
at org.elasticsearch.plugins.PluginDescriptor.readFromProperties(PluginDescriptor.java:196) ~[elasticsearch-8.4.1.jar:?]
at org.elasticsearch.plugins.PluginsUtils.readPluginBundle(PluginsUtils.java:162) ~[elasticsearch-8.4.1.jar:?]
at org.elasticsearch.plugins.PluginsUtils.findBundles(PluginsUtils.java:143) ~[elasticsearch-8.4.1.jar:?]
at org.elasticsearch.plugins.PluginsUtils.getPluginBundles(PluginsUtils.java:125) ~[elasticsearch-8.4.1.jar:?]
at org.elasticsearch.plugins.PluginsService.(PluginsService.java:141) ~[elasticsearch-8.4.1.jar:?]
at org.elasticsearch.plugins.PluginsService.lambda$getPluginsServiceCtor$14(PluginsService.java:579) ~[elasticsearch-8.4.1.jar:?]
at org.elasticsearch.node.Node.(Node.java:399) ~[elasticsearch-8.4.1.jar:?]
at org.elasticsearch.node.Node.(Node.java:311) ~[elasticsearch-8.4.1.jar:?]
at org.elasticsearch.bootstrap.Elasticsearch$2.(Elasticsearch.java:214) ~[elasticsearch-8.4.1.jar:?]
at org.elasticsearch.bootstrap.Elasticsearch.initPhase3(Elasticsearch.java:214) ~[elasticsearch-8.4.1.jar:?]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:67) ~[elasticsearch-8.4.1.jar:?]

Could you provide fix for this?

Regards,
Pradeep

ConfigSync is a module, not plugin. Please see README.

Hi shinsuke,

Thanks for the quick reply.

I have installed configsync as a module as instructed in the installation document. Now getting below error while starting elastic search.

[2022-09-14T06:53:32,836][ERROR][o.e.b.Elasticsearch ] [dnvstgdbmysql01] fatal exception while booting Elasticsearch
java.lang.IllegalStateException: Plugin [configsync] is missing a descriptor properties file.
at org.elasticsearch.plugins.PluginDescriptor.readFromProperties(PluginDescriptor.java:196) ~[elasticsearch-8.4.1.jar:?]
at org.elasticsearch.bootstrap.Spawner.spawnNativeControllers(Spawner.java:79) ~[elasticsearch-8.4.1.jar:?]
at org.elasticsearch.bootstrap.Elasticsearch.initPhase2(Elasticsearch.java:163) ~[elasticsearch-8.4.1.jar:?]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:66) ~[elasticsearch-8.4.1.jar:?]

[root@dnvstgdbmysql01 config]# ls -l /usr/share/elasticsearch/modules/configsync/
total 416
-rw-r–r–. 1 root root 353793 Nov 12 2020 commons-codec-1.15.jar
-rw-r–r–. 1 root root 51159 Sep 4 03:15 elasticsearch-configsync-8.4.1.0.jar
-rw-r–r–. 1 root root 227 Sep 4 03:13 plugin-descriptor.properties
-rw-r–r–. 1 root root 78 Sep 4 03:13 plugin-security.policy

Regards,
Pradeep

It works in my environment.
So it’s better to reinstall it or use Docker version.

$ ls -l /usr/share/elasticsearch/modules/configsync/
total 408
-rw-r--r-- 1 root root 353793 Sep  4 08:31 commons-codec-1.15.jar
-rw-r--r-- 1 root root  51159 Sep  4 08:31 elasticsearch-configsync-8.4.1.0.jar
-rw-r--r-- 1 root root    227 Sep  4 08:31 plugin-descriptor.properties
-rw-r--r-- 1 root root     78 Sep  4 08:31 plugin-security.policy

Thank you Shinsuke. Re installation helped.