Hello, I’m experiencing an issue with the package install command in Solr. My environment is using Solr 9.7 with Java 11.
When I run the following command: bin/solr package install hoge --zk-host xxx:2181,yyy:2181,zzz:2181 I receive a success response, and the package information is correctly saved under the /package/ directory on the server. However, when I try to run the next command: bin/solr package list-installed --zk-host xxx:2181,yyy:2181,zzz:2181 I get the following error: org.apache.solr.common.SolrException: org.apache.solr.common.SolrException: The manifest SHA512 doesn't match expected SHA512. Possible unauthorized manipulation. Expected: 7946526df7546c7aa552772af5e27c3858a13e8a1048b912fb0a01ffa27781d41852c2f873d549d8734c3e99a73f950bd856829698ff0205acd22699a188925e, calculated: a9ab3a1d827622e243eb2b39a96934aaa85359770ba996a7026ac1b84013b18ee5f9a77cccb9148394c9cdf46fb6286e5ed92c35b7f902af73fa32e0277e30ba, manifest location: /package/hoge/huga/manifest.json at org.apache.solr.packagemanager.PackageManager.fetchInstalledPackageInstances(PackageManager.java:228) at org.apache.solr.cli.PackageTool.runImpl(PackageTool.java:112) at org.apache.solr.cli.ToolBase.runTool(ToolBase.java:52) at org.apache.solr.cli.SolrCLI.main(SolrCLI.java:227) Upon investigation, I found that the root cause of the error is that the manifest.json file saved during the package install process is missing its first character ({). This causes the SHA512 mismatch error. What’s puzzling is that this issue occurs randomly. Sometimes the manifest.json is saved correctly and the package install works fine, while other times it fails as described above. Therefore, I believe the command itself is not the problem. Is there any known solution or workaround for this issue? Thank you in advance for your help.