Page 1 of 1

Purge trash error

PostPosted:Fri Jun 07, 2019 6:22 am
by chuneo
Hi all,

When I purge trash, I got the following error:

OKM-00100(PurgeFolder): Repository internal error
Cant' delete file(not exists)
'd:\okmrepo\datastore\53\b9\6f\40\8d5ea644-cd4a-49f0-a9e3-8a327339535d'

How to fix it? Thanks.

Re: Purge trash error

PostPosted:Fri Jun 07, 2019 6:34 pm
by jllort
What is your current OpenKM version?
You should create the file ( empty ) and then try to purge the trash again. But there's some old bug what might affect you. Wait until you shared us the current OpenKM version.

Re: Purge trash error

PostPosted:Sun Jun 09, 2019 6:15 am
by chuneo
Hi jllort,

The version is community Version: 6.3.6 (build: 87d181f).

The reason is the unexpected shut down of my OpenKM server during I delete a lot of folders and files(It executed for a long time). After I turn on the server again, the folders and files have been deleted to trash, but many of files in the trash bin can not be purged.

There are to many files(Thousands of them) return the same error, so I can not recreate the the files.

I have tried to rebuild the indexes(Lucene or Optimize) with Administration Rebuild indexes Utility, but it did not solve this problem.

Hope to hear from you, thanks.

Re: Purge trash error

PostPosted:Sun Jun 09, 2019 9:18 am
by jllort
Probably the problem happened in a previous version an is shown now. The bug that was solved, affected documents with several version and wrong ordering when deleting.

You must list all the lost documents in the trash ( checking the repository ) and create them again ( take a look for a command line like touch in Linux )
https://superuser.com/questions/502374/ ... powershell

You can convert each row from the output of the repository checker to touch command ( some tools like excel might help you on this process ).
Then must execute and check the repository again, because is not sure you have also missing files.

Another option is with scripting.

Re: Purge trash error

PostPosted:Sun Jun 23, 2019 6:15 am
by chuneo
Hi jllort,

Thank you for your help.

The problem has been solved by recreate the missing files with scripts.

Re: Purge trash error

PostPosted:Sat Jun 29, 2019 10:23 am
by jllort
Ensure you upgrade to the latest 6.3.7 what I think the issue is solved ( prevent happens in future )