Upon upgrading FogBugz and attempting to log in, you may get the following error message:
There was a problem with your search string!
Invalid search response!
This article explains the root cause and provides the steps to diagnose and resolve this error.
FogBugz On-Premises version 8.22.36 & 8.22.135 on a Windows server.
The registry key for the ElasticSearch JVM points to the incorrect JDK version.
The error message received is related to Java. You can validate this by checking the following:
- In the Windows Command Console (CMD), run the following command.
The system retrieves the path to the latest Java Developer Kit version installed. If the upgrade was correctly installed, the path indicates the version
jdk1.8.0_162, which is the latest version packed with FogBugz 8.22.x.
- Check the value of the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\FogBugz ElasticSearch\Parameters\Java
If the value of the Jvm key, as shown in the image above, shows a different java version than the version you received in step 1, then it causes ElasticSearch to fail after the upgrade.
In our example, the version mentioned in the Jvm key is
jdk1.7.0_80, which does not match with the version seen in step 1, causing ElasticSearch to fail after the upgrade.
- Copy the value of the Java version obtained in Step 1 of the Diagnosis process. In our example, it is
- Replace the Java version in the Jvm key with this version value, as shown in the image below.
- Restart the FogBugz ElasticSearch service.
Log out and then log in to reload the site. Now try accessing the case listing in FogBugz, and it should start showing filters, case listing, and searches without any error.