When searching in the full text field, the following error is shown:
The remote server returned an error: (404) Not Found.
The error can occur in the Windows Client (up to Version 6.7) and the Web Client.
There are a few general requirements, which have to be met before you get started with the steps below:
- First of all, please check whether the fulltext service user has full control of the fulltext server and fulltext index directories.
- The default path of the fulltext server directory is "C:\Program Files\DocuWare\Fulltext Server (x64)"
- You can find the path to the fulltext index directory in the admin tool (Data connections -> Fulltext Server connection).
- Here, you can also find the address of the Solr page (http://<Servername>:9012/solrt by default).
- Make sure, that the address is correctly resolved and set it to localhost or the IP if in doubt.
- Do not use the "connection check" you can also find here though, it does not work anymore since DocuWare 6.10. Check the URL by pasting it into the browser of your choice.
a) The Solr page throws a 404 error message when accessed the Solrt directory, which can be found in „….\Fulltext Server (x64)\webapps“, was not created or is empty.
- Stop the fulltext server and delete the empty Solrt directory, if applicable.
- Copy the Solrt.war file from „…\Fulltext Server (x64)“ and paste it to „….\Fulltext Server (x64)\webapps“.
- Start the fulltext server.
- After the Solrt directory was automatically extracted continue respectively, depending on your version of DocuWare (Docuware >=6.12) at d.), or (DocuWare <= 6.11) continue at b.).
b) The Solr Cores are missing (<=6.11).
- Open the DocuWare Administration and navigate to file cabinets -> File cabinet xyz -> Fulltext.
- Open the context menu by pressing RMB and choose "Deploy fulltext application".
- If you get an error message, then continue at c.).
c) The Solr cores still can’t be created after all these steps.
- Check whether the core was created in the solr.xml (C:\Program Files\DocuWare\Full-Text Server\webapps\solrt\solr\solr.xml)
- Each core has its own line in this xml and has the file cabinets GUID as its name.
- You can check the guid in the DocuWare Administration by navigating to file cabinets -> file cabinet -> file cabinet xyz -> general.
- Delete the file cabinets core, if it was created and try creating it again.
- Should your fulltext still not work afterwards, then this means your fulltext index is corrupt.
- You will get an 500 error message in the Web Client or the logging section Solr page, if that is the case.
- Rename the fulltext index directory of the respective file cabinet and restart the fulltext server so it is recreated.
- You will now have to reset the fulltext for this file cabinet, so the index data gets recreated.
d) The Solr Cores are missing (>=6.12).
- Check whether there is a backup of your solr.xml in the „….\Fulltext Server (x64)\" directory. It is usually called solr.xml.save.
- Copy this file to "C:\Program Files\DocuWare\Full-Text Server\webapps\solrt\solr\" and rename it back to Solr.xml.
- Restart your fulltext server.
- If there is no backup, or the backup is incomplete, then you have two possible ways of restoring your cores:
- Deactivate and Reactivate Fulltext for your file cabinet(s). (Not recommended, since this will reset your fulltext)
- Create the Solr.xml manually, by using the following template:
<?xml version="1.0" encoding="UTF-8" ?>
<solr persistent="true" sharedLib="lib">
<cores adminPath="/admin/cores" shareSchema="true">
<core name="7f7c4aa5-2d32-4926-924a-fd73cf2817d0" loadOnStartup="false" instanceDir="." transient="false" dataDir="C:/ProgramData/DocuWare/Full-Text Index/7f7c4aa5-2d32-4926-924a-fd73cf2817d0"/>
<core name="bed3a2b6-7d2b-428a-8f53-dcecab93b4d5" loadOnStartup="false" instanceDir="." transient="false" dataDir="C:/ProgramData/DocuWare/Full-Text Index/bed3a2b6-7d2b-428a-8f53-dcecab93b4d5"/>
The Core starting with "bed..." is the default core which is always preinstalled. You can leave that one in the xml. Copy and paste as many "core" lines as you need and adapt them to your system afterwards. You merely have to adapt the entries for core name and data dir.
Core name= GUID of the respective file cabinet (you can check the guid by going to web configuration -> file cabinets -> file cabinet xyz -> In the „general“ tab, expand „more options“) dataDIR = path to your fulltext index + GUID of your file cabinet (These directories already exist. You can check the path in the admin tool by navigating to „Data connections -> fulltext -> solr“).
Restart your fulltext server after you have finished adapting your solr.xml. Should your fulltext still not work afterwards, then this means your fulltext index is corrupt. You will get an 500 error message in the Web Client or the logging section Solr page if that is the case. Rename the fulltext index directory of the respective file cabinet and restart the fulltext server so it is recreated. You will now have to reset the fulltext for this file cabinet so the index data gets recreated.