Page 1 of 1

(help) 404 error - files seems to have been deleted

PostPosted:Tue Dec 16, 2014 11:47 am
by yrabah
After a year working with openkm created June 3, 2013 with no issues and it is being used, suddenly we got this message. We are not sure what happened.

HTTP Status 404 - /OpenKM/
type Status report
message /OpenKM/
description The requested resource (/OpenKM/) is not available.
Apache Tomcat/7.0.27

Catalina attached, and here is localhost:
Code: Select all
2014-12-16 13:04:10,271 [pool-2-thread-2] INFO  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples] - SessionListener: contextDestroyed()
2014-12-16 13:04:10,271 [pool-2-thread-2] INFO  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples] - ContextListener: contextDestroyed()
2014-12-16 13:18:10,774 [pool-2-thread-1] INFO  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples] - ContextListener: contextInitialized()
2014-12-16 13:18:10,805 [pool-2-thread-1] INFO  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples] - SessionListener: contextInitialized()
2014-12-16 13:18:10,914 [pool-2-thread-1] INFO  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples] - ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@552a2b')
2014-12-16 13:21:10,774 [pool-2-thread-2] INFO  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples] - SessionListener: contextDestroyed()
2014-12-16 13:21:10,789 [pool-2-thread-2] INFO  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples] - ContextListener: contextDestroyed()
and here is localhost accesss:
Code: Select all
192.168.1.130 - - [16/Dec/2014:12:15:57 +0200] "GET /OpenKM/ HTTP/1.1" 404 976
192.168.1.130 - - [16/Dec/2014:13:03:26 +0200] "GET / HTTP/1.1" 200 528
192.168.1.130 - - [16/Dec/2014:13:03:26 +0200] "GET /OpenKM HTTP/1.1" 302 -
192.168.1.130 - - [16/Dec/2014:13:03:26 +0200] "GET /OpenKM/ HTTP/1.1" 404 976
Any idea what happened? I'm a bit confused and worried .. any help would be appreciated

Re: (help) 404 error - files seems to have been deleted

PostPosted:Tue Dec 16, 2014 1:10 pm
by yrabah
after researching I noticed that under the OpenKM file uner tomcat and webapps, the openkm folder is empty but has Web-Inf -

it seems that the files are gone.. I am not sure why, perhaps a user uploaded a file containting a virus?? and maybe anti-visrus deleted all the files.

The problem is that the open km has been used for a while and don;t want to loose the files, please help.

please advice, thank you

Re: (help) 404 error - files seems to have been deleted

PostPosted:Tue Dec 16, 2014 4:25 pm
by mohasinmujawar56
Your files will be in repository folder. If you remember the downloaded version of OpenKM you can download war file of that version and paste it in tomcat/webapps folder. Just take care of database. Use none in openkm.cfg and you may get all your files. You can also integrate antivirus in OpenKM. Follow instruction on http://wiki.openkm.com/index.php/Third- ... _Antivirus.

Re: (help) 404 error - files seems to have been deleted

PostPosted:Wed Dec 17, 2014 9:49 pm
by jllort
First of all, you must have a backup of your openkm installation ( this is a good practice.
As explains mohasinmujawar56 seems for some reason your webapp/OpenKM is empty. If you got the OpenKM.war file then starting openkm again all will come back to normal status again. There's nothing on openkm side what has caused it, sure ! this things happens for other reason ( somebody by mistake can remove it, I everybody will be in silent mode about it, you understand me, no ?
Other reason could be you got openkm port 8080 accessible from internet, other bad practice, what we do not recommend. Good practice is got application behing apache proxy ( http://wiki.openkm.com/index.php/Apache ).

Before doing anything my suggestion is backup entire openkm folder and then play with it. Did you changed the default database ( HSQL ) by MySQL or similar ? this is also good practice in production.