Page 1 of 1

Change default repository location

PostPosted:Fri Sep 24, 2010 10:23 am
by matty_B
I'm trying to get openKM to create it's repository on our file server, but I'm having trouble with the config. Here's the details:
[*]OpenKM is installed on a Windows Server 2008 VM.
[*]This machine has very limited hard drive space on it and is not backed up regularly. Our file server is, so I want to create the repository there.
[*]I mapped to the file server, created a folder called docRepository that contained a folder called repository and the file repository.xml
[*]Altered the config file so it looked like this:
Code: Select all
# Default configuration values#
# repository.config=Z:\docRepository\repository.xml
# repository.home=Z:\docRepository\repository
# system.user=system
# default.user.role=UserRol
# default.admin.role=AdminRol
# principal.adapter=com.openkm.core.UsersRolesPrincipalAdapter
# max.file.size=5
# max.search.results=25
# system.demo=off
# update.info=off
restrict.file.mime=off
restrict.file.extension=*~,*.bak,._*
max.file.size=25
[*]Ran openKM and it created the repository in the default location

What have I done wrong? Many thanks in advance!

Re: Change default repository location

PostPosted:Fri Sep 24, 2010 11:33 am
by jllort
replace Windows "\" character for java "/" URI character
Code: Select all
repository.config=Z:/docRepository/repository.xml
repository.home=Z:/docRepository/repository
Remember that parameter only take effect first time you run jboss.

Re: Change default repository location

PostPosted:Fri Sep 24, 2010 12:11 pm
by matty_B
I tried your change, but still the default folders were generated. I tried removing the repository.xml file from the folder OpenKM-4.1_JBoss-4.2.3.GA and that stopped the defaults being generated, but now no repository folders are being generated at all! Here's my new config file...
Code: Select all
# Default configuration values#
# repository.config=Z:/docRepository/repository.xml
# repository.home=Z:/docRepository/repository
# system.user=system
# default.user.role=UserRol
# default.admin.role=AdminRol
# principal.adapter=com.openkm.core.UsersRolesPrincipalAdapter
# max.file.size=5
# max.search.results=25
# system.demo=off
# update.info=off
restrict.file.mime=off
restrict.file.extension=*~,*.bak,._*
max.file.size=25
Between tests I'm deleting the OpenKM-4.1_JBoss-4.2.3.GA folder and getting a fresh one each time, could any settings be hanging around anywhere?

Cheers, Matt.

EDIT - Someone just pointed out to me that the lines beginning with '#' are commented out?

Re: Change default repository location

PostPosted:Fri Sep 24, 2010 1:38 pm
by Normando
matty_B wrote:Someone just pointed out to me that the lines beginning with '#' are commented out?
AFAIK yes, there are comments, so you must remove # to take effect.