Page 1 of 2
Moving from Linux to Windows
PostPosted:Fri Apr 24, 2015 5:09 pm
by OLHINC
Hi,
Current running OpenKM ver. 6.2.2 (builds: 8109) on Linux CentOS 6.5 and want to move to Windows. I have downloaded and installed OpenKM ver. 6.3.0 (build: 8156) on Windows 7 OS. I have a backup of the repository folder from the Linux machine and have replaced the repository folder (after running the Stop OpenKM) on the Win 7 machine. After running the Start OpenKM on the Win 7 machine, none of the folders or files show up in OpenKM. Is there any instructions on move from Linux to Windows? Thanks in advance.
Re: Moving from Linux to Windows
PostPosted:Sat Apr 25, 2015 8:51 am
by jllort
Your repository folder was into /tomcat/repository or was in other location ?
When you start application do you get some error in catalina.log ( delete the file and start application to see cleanest log )
About moving from linux to windows should be so easy, simply copying files from linux to windows should be enought ( and restore database, if you're using embeded HSQL my suggestion is migrate to MySQL ->
http://downloads.mysql.com/archives/migration/)
Re: Moving from Linux to Windows
PostPosted:Mon Apr 27, 2015 6:10 pm
by OLHINC
After a new install of OpenKM (I took the defaults in the install wizard). I open OpenKM to make sure it open. I ran the BAT file, Stop OpenKM on the desktop. I copied the repository folder to /tomcat/repository. Deleted the catalina.log file. Ran Start OpenKm and open OpenKM from IE. No folders or files show. I have attached the catalina.log file. Did not get any error on startup.
Re: Moving from Linux to Windows
PostPosted:Wed Apr 29, 2015 4:01 pm
by OLHINC
Was there anything in the log that offered any help with my problem?
Re: Moving from Linux to Windows
PostPosted:Fri May 01, 2015 6:59 pm
by jllort
Sorry, could you upload the catalina.log file into a zip ( is quite difficult read on pdf format ).
Is not necessary you install openkm and then copy repository, my suggestion is copy all openkm installation folder from linux to windows and then execute from there, should go right with minimal change:
- install jdk 1.7 in your windows server
- take a look at sentenv.bat be sure the JAVA_HOME point to your local jdk 1.7
Re: Moving from Linux to Windows
PostPosted:Sun May 03, 2015 2:54 pm
by swirusek
it's better to stay on linux

Re: Moving from Linux to Windows
PostPosted:Mon May 04, 2015 3:09 pm
by OLHINC
On a new / clean install, took the defaults in the OpenKM wizard. Install directory (C:\openkm-6.3.0-community) and Tomcat (C:\ openkm-6.3.0-community\tomcat). Restarted computer, ran Start OpenKM. From IE,
http://localhost:8080/OpenKM & logged into OpenKM to make sure OpenKm opens correctly. Logged out and ran Stop OpenKM. Copied the contents of Repository folder from a backup to C:\ openkm-6.3.0-community\tomcat\repository. Ran Start OpenKM. From IE,
http://localhost:8080/OpenKM & logged into OpenKM. No files or folder list. Log out of OpenKM and ran Stop OpenKM. Zipped Catalina.log & attached.
Thanks for your help on this issue.
Re: Moving from Linux to Windows
PostPosted:Mon May 04, 2015 4:24 pm
by OLHINC
Hi,
I will try coping all of openkm installation folder from Linux to Windows.
I will updated tomorrow.
Thanks
Re: Moving from Linux to Windows
PostPosted:Wed May 06, 2015 11:17 am
by jllort
Probably you're not changing the OpenKM.cfg hibernate.hbdml parameter to none and the application when starts drop all database and create again.
Re: Moving from Linux to Windows
PostPosted:Wed May 06, 2015 2:48 pm
by OLHINC
Hi,
I did not see "hibernate.hbdml" in the OpenKM.cfg files. I have attached a copy of the OpenKM.cfg file.
Thanks
Re: Moving from Linux to Windows
PostPosted:Thu May 07, 2015 8:16 am
by Grzyby15
Stay on Linux, don't move

Re: Moving from Linux to Windows
PostPosted:Fri May 08, 2015 10:28 pm
by jllort
the parameter in your configuration file now has "none" value, but after installing openkm sure the value is "create" be sure not starting with "create" value, otherwise will reset all the repository ( what I suspect is happening )
Re: Moving from Linux to Windows
PostPosted:Wed May 13, 2015 2:47 pm
by OLHINC
correct, the first time you start OpenKM the parameter is Create, then on the 2nd log-in the parameter are None. I run Stop OpenKM, then copy / replace the entire repository folder with the folder from the Linux machine. Run the Start OpemKM, log into OpemKM and none of my files or folder show. I have even replace the entire Tomcat folder with the Linux Tomcat folder and none of my files or folders show. Is there someone I can call that can help with this issues? Have you tested moving from Linux to Windows? Do you have instructions on how to move to Windows from Linux?
Thanks
Re: Moving from Linux to Windows
PostPosted:Thu May 14, 2015 3:02 pm
by jllort
I've not tested moving from linux to windows, but if something will going wrong you will get and error not an empty repository. And should not be any problen moving from linux to windows ( really are files from on filesytem to other ). What I do not understand is why you're no copying all openkm folder ( with repository into etc... ) to windows directly ?
Re: Moving from Linux to Windows
PostPosted:Thu May 14, 2015 3:10 pm
by OLHINC
I have copied the entire folder \openkm from Linux to Windows and that also did not work. I'm in the process of exporting all my files out of openkm (Linux) and will import into Windows and re-create all my users in the Windows version.