• [serious problem] Failed to initialize workspace 'default'

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
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.
 #5568  by jhashe
 
Hi,

I had a FS corruption, because of a disk failure on a RAID device (!!!).
But now, I can't start OpenKM again. The log says:

Could not create deployment: file:/opt/jboss-4.2.3.GA/server/default/deploy/uuid-key-generator.sar/
at org.hsqldb.jdbc.Util.throwError(Unknown Source)
at org.hsqldb.jdbc.Util.throwError(Unknown Source)

Failed to initialize workspace 'default'
ERROR [org.apache.jackrabbit.core.RepositoryImpl] Unable to start repository, forcing shutdown...
ERROR [org.apache.jackrabbit.core.RepositoryImpl] failed to start Repository: null
ERROR [es.git.openkm.module.direct.DirectRepositoryModule]
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/OpenKM]] La servlet /OpenKM a généré une exception "load()"
ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:

I know it isn't directly a problem with OpenKM software, but I'm not familiar with JBoss technologies, and I really need your help !

Please, please, please, could someone help me ?
 #5577  by jllort
 
1- stop jboss
2- delete actual server.log or rename
3- start jboss

and upload here all server.log with the errors ... because it's necessary to see al trace log.
 #5580  by jhashe
 
Hi,

First of all, thanks you very much to help me. You can't know how it's important for us (and especially for me :cry: )

As the log file is huge (about 17000 lines), I didn't paste its content in this post, but as attachement.

Once again, a BIG BIG thanks for your help
Attachments
Zipped server.log, produced after starting OpenKM
(109.96 KiB) Downloaded 293 times
 #5586  by jllort
 
This is strange, but now not relevant:
Code: Select all
2010-06-29 08:57:49,338 DEBUG [org.jboss.deployment.SARDeployer] create operation failed for package file:/opt/jboss-4.2.3.GA_2010_06_28/server/default/deploy/uuid-key-generator.sar/
2010-06-29 08:57:49,339 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
2010-06-29 08:57:49,339 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
2010-06-29 08:57:49,339 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss:service=KeyGeneratorFactory,type=UUID
	at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
	at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
	at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
	at org.jboss.system.ServiceController.install(ServiceController.java:226)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
This is not a problem:
Code: Select all
java.sql.SQLException: Table already exists: JMS_MESSAGES in statement [CREATE CACHED TABLE JMS_MESSAGES]
	at org.hsqldb.jdbc.Util.throwError(Unknown Source)
This it's a problem:
Code: Select all
2010-06-29 08:57:57,661 WARN  [org.apache.jackrabbit.core.query.lucene.SearchIndex] File does not exist: /opt/jboss-4.2.3.GA_2010_06_28/repository/workspaces/default/../../../indexing_configuration.xml
2010-06-29 08:57:57,672 ERROR [org.apache.jackrabbit.core.RepositoryImpl] Failed to initialize workspace 'default'
javax.jcr.RepositoryException
	at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:585)
	at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:265)
	at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1600)
	at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:606)
	at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:415)
	at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:305)
	at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:557)
	at es.git.openkm.module.direct.DirectRepositoryModule.getRepository(DirectRepositoryModule.java:106)
	at es.git.openkm.module.direct.DirectRepositoryModule.initialize(DirectRepositoryModule.java:201)
	at es.git.openkm.servlet.RepositoryStartupServlet.init(RepositoryStartupServlet.java:112)
	at javax.servlet.GenericServlet.init(GenericServlet.java:212)
and this:
Code: Select all
2010-06-29 08:57:57,674 ERROR [org.apache.jackrabbit.core.RepositoryImpl] Unable to start repository, forcing shutdown...
2010-06-29 08:57:57,674 INFO  [org.apache.jackrabbit.core.RepositoryImpl] Shutting down repository...
2010-06-29 08:57:57,676 INFO  [org.apache.jackrabbit.core.RepositoryImpl] shutting down workspace 'default'...
2010-06-29 08:57:57,677 INFO  [org.apache.jackrabbit.core.observation.ObservationDispatcher] Notification of EventListeners stopped.
2010-06-29 08:57:57,730 INFO  [org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager] Database '/opt/jboss-4.2.3.GA_2010_06_28/repository/workspaces/default/db' shutdown.
2010-06-29 08:57:57,730 INFO  [org.apache.jackrabbit.core.RepositoryImpl] workspace 'default' has been shutdown
2010-06-29 08:57:57,734 INFO  [org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager] Database '/opt/jboss-4.2.3.GA_2010_06_28/repository/version/db' shutdown.
2010-06-29 08:57:57,735 INFO  [org.apache.jackrabbit.core.RepositoryImpl] Repository has been shutdown
2010-06-29 08:57:57,735 ERROR [org.apache.jackrabbit.core.RepositoryImpl] failed to start Repository: null
javax.jcr.RepositoryException
	at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:585)
	at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:265)
	at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1600)
	at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:606)
	at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:415)
	at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:305)
Your files disk structure is degraded, files lost, etc..., reason why repository is not starting. Do you've got a backup ?
 #5589  by jhashe
 
It seems to be OK now :lol:

I deleted the "index" folder in the repository directory, with the rebuild index options activated in the indexing-service.xml.
So, the next start was VERY (!!!) long and... failed because of Memory GC errors (???) while indexing some PDF.
So I removed in the workspace.xml all PDF indexers, and I restarted OpenKM.
It seemed to freeze on many files, but with Ctrl-C, it then passed them and after many operations it started.

And now, it's running fine.

Whow !
How afraid I was.

Many many thanks for people who helped me in this critical situation.
 #5591  by jllort
 
Removing the indexer options you'll not be able to indexing pdf ... You lose some use there. you might add some more memory in jboss , take a look at java params.

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.