Vues :

Behavior:
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.

Solution:
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.

  1. Stop the fulltext server and delete the empty Solrt directory, if applicable.
  2. Copy the Solrt.war file from „…\Fulltext Server (x64)“ and paste it to „….\Fulltext Server (x64)\webapps“.
  3. Start the fulltext server.
  4. 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).

  1. Open the DocuWare Administration and navigate to file cabinets -> File cabinet xyz -> Fulltext.
  2. Open the context menu by pressing RMB and choose "Deploy fulltext application".
  3. If you get an error message, then continue at c.).

c)    The Solr cores still can’t be created after all these steps.

  1. Check whether the core was created in the solr.xml (C:\Program Files\DocuWare\Full-Text Server\webapps\solrt\solr\solr.xml)
  2. Each core has its own line in this xml and has the file cabinets GUID as its name.
  3. You can check the guid in the DocuWare Administration by navigating to file cabinets -> file cabinet -> file cabinet xyz -> general.
  4. Delete the file cabinets core, if it was created and try creating it again.
  5. Should your fulltext still not work afterwards, then this means your fulltext index is corrupt.
  6. You will get an 500 error message in the Web Client or the logging section Solr page, if that is the case.
  7. Rename the fulltext index directory of the respective file cabinet and restart the fulltext server so it is recreated.
  8. 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).

  1. Check whether there is a backup of your solr.xml in the „….\Fulltext Server (x64)\" directory. It is usually called solr.xml.save.
  2. Copy this file to "C:\Program Files\DocuWare\Full-Text Server\webapps\solrt\solr\" and rename it back to Solr.xml.
  3. Restart your fulltext server.
  4. If there is no backup, or the backup is incomplete, then you have two possible ways of restoring your cores:
    1. Deactivate and Reactivate Fulltext for your file cabinet(s). (Not recommended, since this will reset your fulltext)
    2. 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"/>

      </cores>
      </solr>


      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.