Page 1 of 1

Document partial lost. Bug?

PostPosted:Wed Jan 26, 2011 8:25 am
by kazevil
Hi all :D
We are currently using OpenKM 4.1 (with File System storage) and facing since few days a strange issue.

While trying to open some documents, my users get the following error:
Code: OKM-004001
Message: Error opening input stream of /opt/OpenKM-4.1_JBoss-4.2.3.GA/repository/repository/datastore/c6/d2/ff/c6d2ff6f6b2321909ed734b757175fc4fe348f5b: /opt/OpenKM-4.1_JBoss-4.2.3.GA/repository/repository/datastore/c6/d2/ff/c6d2ff6f6b2321909ed734b757175fc4fe348f5b (No such file or directory)
This is even for the document user. However is I log in as okmAdmin, I can still open it. Better I can make a check out / check in of the document and then is solve the issue.

Did anybody already faced this kind of issue? Is it a bug?

Thanks for your help

Cheers

Kaz :mrgreen:

Re: Document partial lost. Bug?

PostPosted:Wed Jan 26, 2011 10:22 am
by pavila
Are you sure the file /opt/OpenKM-4.1_JBoss-4.2.3.GA/repository/repository/datastore/c6/d2/ff/c6d2ff6f6b2321909ed734b757175fc4fe348f5b exists ? Maybe your filesystem was corrupted because harddisk failure or uncontrolled system power off.

Re: Document partial lost. Bug?

PostPosted:Sun Jan 30, 2011 2:29 pm
by kazevil
Hi pavila,

sorry for my late answer, but I had to wait to face this issue again.

SO here is detailled status.

I got again the following error while trying to download a file (even with the okmAdmin account)
Application error
Code: OKM-004001
Message: Error opening input stream of /opt/OpenKM-4.1_JBoss-4.2.3.GA/repository/repository/datastore/5d/9c/75/5d9c750675465d29b543c4c999e4a82abd274cc2: /opt/OpenKM-4.1_JBoss-4.2.3.GA/repository/repository/datastore/5d/9c/75/5d9c750675465d29b543c4c999e4a82abd274cc2 (No such file or directory)
Date: Sun Jan 30 15:11:45 CET 2011
Looking on the file system, I don't find a folder 9c under /opt/OpenKM-4.1_JBoss-4.2.3.GA/repository/repository/datastore/5d/
Code: Select all
[dbiapp@vmprodapp1 5d]$ pwd
/opt/OpenKM-4.1_JBoss-4.2.3.GA/repository/repository/datastore/5d
[dbiapp@vmprodapp1 5d]$ ls
09  77  c3  df  e9
if I try a search on the file name, I haven't any result:

[dbiapp@vmprodapp1 repository]$ pwd
/opt/OpenKM-4.1_JBoss-4.2.3.GA/repository/repository
[dbiapp@vmprodapp1 repository]$ find . -name "5d9c750675465d29b543c4c999e4a82abd274cc2"

So it looks like the file has really been lost!!

I made a FIle System check on my repository File System and everything looks fine:
Code: Select all
[root@vmprodapp1 ~]# fsck.ext3 /dev/vgapp/lvapp 
e2fsck 1.39 (29-May-2006)
/dev/vgapp/lvapp: clean, 2807/21708800 files, 926022/43386880 blocks
Any idea? This is becoming quite critical for us :shock:

Thanks

Kaz :mrgreen:

Re: Document partial lost. Bug?

PostPosted:Tue Feb 01, 2011 3:27 pm
by pavila
If this file lost was due to a uncontrolled system power off, checking the filesystem does not give any info. Maybe the file had a problem and the orphan i-nodes were deleted. I can't say more without a depth server analysis. If you make an important use of OpenKM I recommend you to contact us (http://www.openkm.com/Contact/) for professional support. We make the installation, certify it and make sure all is working fine.

Re: Document partial lost. Bug?

PostPosted:Mon Feb 13, 2012 5:14 am
by dsc68
I have the same issue. We have lost access to a significant number of documents in our repository. We are currently running 5.1.9 and have recently upgraded from 5.1.8-2

On investigation it appears that the UUIDs in the database no longer match the UUIDs that were used to save the file in the repository.

For example, a file in the repository with the UUID of 7ee551f33460cbcc898fe91e41176b33b735119b has a UUID in the database of 21367a7b-3bf9-4c63-8ab9-1b607dbfeb59

Re: Document partial lost. Bug?

PostPosted:Mon Feb 13, 2012 3:33 pm
by pavila
We have no detected this kind of issues in our installations. This kind of missing files is typical of a filesystem corruption due to a hardware failure or a abrupt server shutdown due to power failure.