Page 1 of 1
Unsucessfull installation of OpenKM 6.3.0 on 3 PCs (OS Win)
PostPosted:Sun Jan 25, 2015 12:04 am
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 allUsing 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
Re: Unsucessfull installation of OpenKM 6.3.0 on 3 PCs (OS W
PostPosted:Sun Jan 25, 2015 8:03 am
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.
Re: Unsucessfull installation of OpenKM 6.3.0 on 3 PCs (OS W
PostPosted:Mon Jan 26, 2015 11:46 am
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 allError 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 allset JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx1256m -XX:PermSize=256m -XX:MaxPermSize=356m
I tried to change -Xms256m to
without success. My PC has 24GiB RAM. Any additional hints?
Many thanks and greetings
OpenKMGuy
Re: Unsucessfull installation of OpenKM 6.3.0 on 3 PCs (OS W
PostPosted:Wed Jan 28, 2015 7:42 am
by Catscratch
You have to increase Xmx memory, not Xms.
Try -Xmx2048m. This should work.
Edit: If you're using Java8 you still don't need PermSize, since is was deprecated in 8.
Re: Unsucessfull installation of OpenKM 6.3.0 on 3 PCs (OS W
PostPosted:Wed Jan 28, 2015 2:41 pm
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
Re: Unsucessfull installation of OpenKM 6.3.0 on 3 PCs (OS W
PostPosted:Wed Jan 28, 2015 4:14 pm
by OpenKMGuy
Hello Catscratch,
what the heck happend? After rebooting the same problem, OpenKM reinstalled.
With
Code: Select allset JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx2048m -XX:PermSize=256m -XX:MaxPermSize=356m
I got the same error message:
Code: Select allError 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
Re: Unsucessfull installation of OpenKM 6.3.0 on 3 PCs (OS Win)
PostPosted:Thu Jan 29, 2015 10:15 am
by OpenKMGuy
Hello again,
with -Xmx1024m I was able to get the VM starting:
Code: Select allset JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=356m
Now I have gotten a bunch of error messages:
Code: Select all2015-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
Re: Unsucessfull installation of OpenKM 6.3.0 on 3 PCs (OS Win)
PostPosted:Fri Jan 30, 2015 5:52 am
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:
to:
Code: Select allprotocol="org.apache.coyote.http11.Http11Protocol"
But if you haven't modified Tomcat configuration it should not be needed.
Re: Unsucessfull installation of OpenKM 6.3.0 on 3 PCs (OS Win)
PostPosted:Sat Jan 31, 2015 10:50 pm
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
Re: Unsucessfull installation of OpenKM 6.3.0 on 3 PCs (OS Win)
PostPosted:Sun Feb 01, 2015 5:04 pm
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.
Re: Unsucessfull installation of OpenKM 6.3.0 on 3 PCs (OS Win)
PostPosted:Mon Feb 02, 2015 5:42 pm
by OpenKMGuy
Hello again,
using jdk 1.7 64-bit seems to work, I could start the VM.
netstat -an shows only:
Code: Select allTCP 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 allprotocol="org.apache.coyote.http11.Http11Protocol"
Many thanks and greetings
OpenKMGuy
Re: Unsucessfull installation of OpenKM 6.3.0 on 3 PCs (OS Win)
PostPosted:Tue Feb 03, 2015 7:18 pm
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 all2015-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 )
Re: Unsucessfull installation of OpenKM 6.3.0 on 3 PCs (OS Win)
PostPosted:Fri Feb 06, 2015 12:35 pm
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