• Unsucessfull installation of OpenKM 6.3.0 on 3 PCs (OS Win)

  • Problems with installing OpenKM? No problemo, the solution is closer than you think.
Problems with installing OpenKM? No problemo, the solution is closer than you think.
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.
 #31043  by OpenKMGuy
 
A first hello,

I'm really sad. During the last days I tried to install OpenKM on three PCs:
- one desktop with Windows 7 Professional, 64 Bit SP1
- one notebook with Windows 7 Professional, 64 Bit SP1
- one notebook with Windows 8.17 Professional, 64 Bit SP1

I can't access OpenKM via http://localhost:8080/OpenKM with
- Firefox
- Internet Explorer
- Chrome
The login page is not found: "Access Error: 404 -- Not Found"

When I click at "Start OpenKM" the Command Prompt is shown:
Code: Select all
Using CATALINA_BASE:   "MY_DRIVE:\MY_PATH\openkm-6.3.0-community\tomcat"
Using CATALINA_HOME:   "MY_DRIVE:\MY_PATH\openkm-6.3.0-community\tomcat"
Using CATALINA_TMPDIR: "MY_DRIVE:\MY_PATH\openkm-6.3.0-community\tomcat\temp"
Using JRE_HOME:        "MY_DRIVE:\MY_PATH\openkm-6.3.0-community\java"
Using CLASSPATH:       "MY_DRIVE:\MY_PATH\openkm-6.3.0-community\tomcat\bin\bootstrap.jar;D:\ECM\OpenKM\App\openkm-6.3.0-community\tomcat\bin\tomcat-juli.jar"
But I don't know what is working and what not.
Of course I disabled my Firewall/AV software during the tests and I added
localhost:8080 to the whitelist.

I need step-by-step instructions what I should check.


Many thanks and greetings
OpenKMGuy
 #31045  by jllort
 
1- Open terminal and then go to D:\ECM\OpenKM\App\openkm-6.3.0-community\tomcat\bin
2- Execute catalina.bat run ( do not close the terminal, you're not executing openkm as service, than means if you close the terminal you are closing app too ).

Tell us if appears some error.
 #31054  by OpenKMGuy
 
Hello jllort,

many thanks for that hint, which should be shown in the info window which pops up.
I got the followig error message:
Code: Select all
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
So I looked in file catalina.bat whether there are settings for the Java VM. I found the
remark that all these settings are in file setenv.bat:
Code: Select all
set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx1256m -XX:PermSize=256m -XX:MaxPermSize=356m
I tried to change -Xms256m to
Code: Select all
-Xms128m
-Xms64m
-Xms16m
without success. My PC has 24GiB RAM. Any additional hints?


Many thanks and greetings
OpenKMGuy
 #31071  by OpenKMGuy
 
Hello Catscratch,

many thanks for your hint. During my tests something went wrong. When I now try to start in a DOS prompt catalina.bat (without any arguments) nothing happens.
I assume some processes are running. But which ones? Want to kill them.


Many thanks and greetings
OpenKMGuy
 #31072  by OpenKMGuy
 
Hello Catscratch,

what the heck happend? After rebooting the same problem, OpenKM reinstalled.
With
Code: Select all
set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx2048m -XX:PermSize=256m -XX:MaxPermSize=356m
I got the same error message:
Code: Select all
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Any hints?


Many thanks and greetings
OpenKMGuy
 #31077  by OpenKMGuy
 
Hello again,

with -Xmx1024m I was able to get the VM starting:
Code: Select all
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=356m
Now I have gotten a bunch of error messages:
Code: Select all
2015-01-29 11:02:29,831 [main] INFO  org.apache.catalina.core.AprLifecycleListener- The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: ...
2015-01-29 11:02:30,044 [main] INFO  org.apache.coyote.http11.Http11Protocol- Initializing ProtocolHandler ["http-bio-0.0.0.0-8080"]
2015-01-29 11:02:30,079 [main] ERROR org.apache.coyote.http11.Http11Protocol- Failed to initialize end point associated with ProtocolHandler ["http-bio-0.0.0.0-8080"]
...
2015-01-29 11:02:30,082 [main] ERROR org.apache.catalina.core.StandardService- Failed to initialize connector [Connector[HTTP/1.1-8080]]
...
2015-01-29 11:02:30,085 [main] ERROR org.apache.coyote.ajp.AjpProtocol- Failed to initialize end point associated with ProtocolHandler ["ajp-bio-127.0.0.1-8009"]
...
2015-01-29 11:02:30,086 [main] ERROR org.apache.catalina.core.StandardService- Failed to initialize connector [Connector[AJP/1.3-8009]]
...
2015-01-29 11:03:00,783 [main] ERROR org.apache.catalina.core.StandardServer- StandardServer.await: create[localhost:8005]:
...
...
2015-01-29 11:03:00,902 [localhost-startStop-1] ERROR org.apache.catalina.loader.WebappClassLoader- The web application [/OpenKM] appears to have started a thread named [HSQLDB Timer @405198] but has failed to stop it. This is very likely to create a memory leak.
2015-01-29 11:03:00,902 [localhost-startStop-1] ERROR org.apache.catalina.loader.WebappClassLoader- The web application [/OpenKM] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@13f41b8]) and a value of type [java.util.WeakHashMap] (value [{class javax.xml.bind.annotation.W3CDomHandler=java.lang.ref.WeakReference@1f3ac2f}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
2015-01-29 11:03:00,902 [localhost-startStop-1] ERROR org.apache.catalina.loader.WebappClassLoader- The web application [/OpenKM] created a ThreadLocal with key of type [org.apache.ws.commons.schema.utils.CollectionFactory$1] (value [org.apache.ws.commons.schema.utils.CollectionFactory$1@ad7f2f]) and a value of type [java.lang.Boolean] (value [false]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
2015-01-29 11:03:00,902 [localhost-startStop-1] ERROR org.apache.catalina.loader.WebappClassLoader- The web application [/OpenKM] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@78f665]) and a value of type [org.springframework.security.core.context.SecurityContextImpl] (value [org.springframework.security.core.context.SecurityContextImpl@ffffffff: Null authentication]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Any hints?


Many thanks and greetings
OpenKMGuy
 #31097  by pavila
 
According to https://jazz.net/forum/questions/108668 ... t-properly ,
The solution, after upgrading Tomcat, is to change the protocol definition for the connector in the server.xml file. It should look something like the following. Note the change from:
Code: Select all
protocol="HTTP/1.1"
to:
Code: Select all
protocol="org.apache.coyote.http11.Http11Protocol"
But if you haven't modified Tomcat configuration it should not be needed.
 #31123  by OpenKMGuy
 
Hello,

again problems with the VM. OpenKM uses Java 7.0. I'm using Windows 7 Professional, 64 Bit. Is the 64 Bit version of Java 7 used? As mentioned my PC has 24GiB RAM.
I have already Java 8 installed. Changed the path in setenv.bat to my Java 8 path. Now the VM started.
But even I changed the protocol in server.xml (that was the unaltered file) as pavila wrote still the same errors.

That's all REALLY frustrating. Any hints?


Many thanks and greetings
OpenKMGuy
 #31137  by jllort
 
You should use jdak 1.7 not 1.8. By default the openkm installer comes with jdk 1.7 for 32 bits ( basically to prevent problems with 32 bits older hardware, but also that could be a problem in yours ).

My suggestion is install jdk 1.7 64 bits and change setenv.bat to point jdk 1.7 folder.
Be sure you do not got other applications running on port 8080 ( netstat -an )
As indicated pavila, try to execute application from command line ( delete catalina.log file ).
If error persist upload here catalina.log file and we'll take a look in more deep.
 #31152  by OpenKMGuy
 
Hello again,

using jdk 1.7 64-bit seems to work, I could start the VM.
netstat -an shows only:
Code: Select all
TCP    0.0.0.0:8080           0.0.0.0:0              ABH™REN
Log file attached: catalina__OpenKMGuy_2015-02-02.pdf. That's just a .txt file, pls. rename it. I can't attach a simpl text file (why?).
Btw., I typed .p d f lower case, n o t .PDF?

Just as an reminder, I changed the protocol in server.xml as pavila wrote:
Code: Select all
protocol="org.apache.coyote.http11.Http11Protocol"
Many thanks and greetings
OpenKMGuy
Attachments
(132.19 KiB) Downloaded 238 times
 #31166  by jllort
 
forum has restriction on some file mime types. I think are allowed only zip, png, and something else.

About the log, there's a clear error:
Code: Select all
2015-02-02 18:06:40,167 [main] ERROR org.apache.coyote.http11.Http11Protocol- Failed to initialize end point associated with ProtocolHandler ["http-bio-0.0.0.0-8080"]
java.net.BindException: Address already in use: JVM_Bind /0.0.0.0:8080
That means you got other appliation on port 8080, reason why is not able to start openkm. Go to tomcat/conf/server.xml and change port ( take a look here http://wiki.openkm.com/index.php/Severa ... ame_server )
 #31196  by OpenKMGuy
 
!!! OpenKM is working !!!

Hello all,

many thanks for all your efforts! OpenKM is working now. It was indeed a problem of already used ports.
My recommendation for problems with ports:
TCPView for Windows
https://technet.microsoft.com/en-us/sys ... 97437.aspx

I need now some time for "digging in".


Many thanks again and greetings
OpenKMGuy

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.