• Moving from Linux to Windows

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #39216  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.
 #39233  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/)
 #39327  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.
Attachments
(118.82 KiB) Downloaded 273 times
 #39367  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
 #39384  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.
Attachments
(23.99 KiB) Downloaded 258 times
 #39386  by OLHINC
 
Hi,
I will try coping all of openkm installation folder from Linux to Windows.
I will updated tomorrow.
Thanks
 #39400  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.
 #39404  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
Attachments
(437 Bytes) Downloaded 252 times
 #39431  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 )
Code: Select all
hibernate.hbm2ddl=none
 #39543  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
 #39563  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 ?
 #39564  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.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.