How to save all data in database except in repository.

OpenKM a de nombreuses fonctionnalités interessantes, mais demande un minimum de configuration pour être pleinement exploité.

Moderator: dedisoft

Forum rules
Avant de poser une question, merci de regarder la documentation du wiki ou d'utiliser la fonction recherche du forum. Et rappelez vous que nous n'avons ni boule de cristal ni possibilité de lire dans les pensées, aussi pensez à spécifier quelle version d'OpenKM vous utilisez ainsi que la version du navigateur web et du système d'exploitation. Pour de plus amples informations lisez Comment reporter un bug efficacement (anglais).
Post Reply
Mohd Arif
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: Tue Jan 16, 2018 6:30 pm

How to save all data in database except in repository.

Post by Mohd Arif » Fri Jan 19, 2018 5:05 pm

Hi Guys,

I want to save all data in database for better security of my files. so the user from the OS levels can also wont be able to see my files even they have admin access.

Please let me know if their is way in openkm.

-Arif

jllort
Moderator
Moderator
Posts: 9794
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: How to save all data in database except in repository.

Post by jllort » Fri Jan 19, 2018 6:41 pm

First of all we do not recommend this kind of configuration ( really nobody will recommend it :) but if you need can be done ).
1- OpenKM must be empty ( without files, if you have uploaded files you should export it and set the repository clean )
2- Stop OpenKM
3- Delete the forlder $TOMCAT_HOME/repository/datastore
3- Modify OpenKM.cfg and add the configuration parameter
repository.datastore.backend=db
4- Start OpenKM

Check
1- Now the folder should not be created $TOMCAT_HOME/repository/datastore
2- Upload a document and download.
3- Try search by content ( upload txt file, run text extractor and check if you are able to find by content ).

This feature is full working in professional edition I'm not 100% sure in community edition might be some issue, because this kind of configuration is not the standard one. The class what take control of the data store is https://github.com/openkm/document-mana ... Store.java

Mohd Arif
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: Tue Jan 16, 2018 6:30 pm

Re: How to save all data in database except in repository.

Post by Mohd Arif » Wed Jan 24, 2018 10:19 pm

Thank You!!!
I have configured datastore in database. I am not able to get the files and it's content in filesystem.
I am facing the new error now and that is...

IO Error: Cant' delete file (not exists) '/opt/OpenKM/tomcat-7.0.61/repository/datastore/0d/76/da/76/0d76da76-f1fc-4400-9164-938d7b869906'

Now /repository/datastore does not exits.Still openkm is checking some UUID in the filesystem.

I have checked the repository no error found in repository check.

-Arif
Attachments
1-25-2018 3-46-36 AM.png
1-25-2018 3-46-36 AM.png (7.35 KiB) Viewed 83 times

jllort
Moderator
Moderator
Posts: 9794
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: How to save all data in database except in repository.

Post by jllort » Sat Jan 27, 2018 4:10 pm

When you configured files to be stored into the database you created a new repository ? that means you started with clean repository configured to datastore, confirm this point.
Are you able to upload and download files ?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest