Mapdb Errors in PaperCut

KB Home   |   Mapdb Errors in PaperCut

Q Help! I canít access PaperCut and Iím seeing the following (or similar) error notification in my browser:


Error description: Checksum does not match, data broken 
Error details: java.io.IOException: Checksum does not match, data broken

at org.mapdb.Store.deserialize(Store.java:261)
at org.mapdb.StoreDirect.get2(StoreDirect.java:486)
at org.mapdb.StoreWAL.get2(StoreWAL.java:336)
at org.mapdb.StoreWAL.get(StoreWAL.java:320)
at org.mapdb.Caches$HashTable.get(Caches.java:246)
at org.mapdb.EngineWrapper.get(EngineWrapper.java:58)
at org.mapdb.HTreeMap.recursiveDirCount(HTreeMap.java:336)
at org.mapdb.HTreeMap.sizeLong(HTreeMap.java:325)
at org.mapdb.HTreeMap.size(HTreeMap.java:305)


Errors like these typically pertain to configuration stores PaperCut uses called MapDB files. The trouble begins when the application is in the middle of writing to these files and canít gracefully finish the operation due to an unexpected stop or restart. The contents of these files aren’t too important since they are transitory in nature. MapDB files essentially backup of all the current connections PaperCut had open at the time the service started.

Thatís nice to know, but how do I fix this?

Here are the steps to follow:

  1. Stop the PaperCut Application server service. Follow the steps here on how to do this.
  2. Delete all files in the [app-path]\server\tmp directory.
  3. Move all mapdb files in [[app-path]\server\data\internal to a different directory.
  4. Restart the PaperCut Application Server service.

PaperCut will then create a new set of MapDB files after the restart, and you should be back up and running again.

If our advice doesn’t pan out, it might be an indication of a deeper database issue, and in that scenario, please give our support team a call directly so we can investigate.

Note:

We rectified this behavior in our 18.3.6 release (detailed as a known issue here). So, if you are reading this itís because you are hopefully running a version of PaperCut prior to 18.3.6.


Keywords: mapdb

Comments

Share your findings and experience with other PaperCut users. Feel free to add comments and suggestions about this Knowledge Base article. Please don't use this for support requests.

Article last modified on October 21, 2019, at 03:31 AM
Printable View   |   Article History   |   Edit Article