Page 1 of 1

[serious problem] Failed to initialize workspace 'default'

PostPosted:Mon Jun 28, 2010 10:05 am
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 ?

Re: [serious problem] Failed to initialize workspace 'defau

PostPosted:Mon Jun 28, 2010 7:46 pm
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.

Re: [serious problem] Failed to initialize workspace 'defau

PostPosted:Tue Jun 29, 2010 7:10 am
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

Re: [serious problem] Failed to initialize workspace 'defau

PostPosted:Tue Jun 29, 2010 9:25 pm
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 ?

Re: [serious problem] Failed to initialize workspace 'defau

PostPosted:Wed Jun 30, 2010 4:28 pm
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.

Re: [serious problem] Failed to initialize workspace 'defau

PostPosted:Wed Jun 30, 2010 4:36 pm
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.