Nuxeo server don't start (Failed to load repository default)

I tried to upgrade nuxeo from 5.6 to 5.8 and i can't get it to start. My first try was to upgrade directly to 5.9 but some data where not availables, so i decide to upgrade from 5.6 to 5.8 and then to 5.9 if it's ok. Maybe someone can help me to soluce my situation. I put here the error logs :

2014-07-07 17:58:08,487 ERROR [localhost-startStop-1] [org.nuxeo.ecm.core.schema.SchemaManagerImpl] Facet: Video uses unknown schema: picture

2014-07-07 17:58:12,953 ERROR [localhost-startStop-1] [org.nuxeo.runtime.model.impl.RegistrationInfoImpl] Component notification of application started failed. org.nuxeo.ecm.core.api.ClientRuntimeException: org.nuxeo.ecm.core.api.ClientException: Failed to check existence of /asset-library

    at org.nuxeo.dam.AssetLibraryHandler.execute(AssetLibraryHandler.java:61)
    at org.nuxeo.ecm.platform.content.template.service.ContentTemplateServiceImpl.executePostContentCreationHandlers(ContentTemplateServiceImpl.java:193)
    at org.nuxeo.ecm.platform.content.template.listener.RepositoryInitializationListener.doInitializeRepository(RepositoryInitializationListener.java:45)
    at org.nuxeo.ecm.core.repository.RepositoryInitializationHandler.initializeRepository(RepositoryInitializationHandler.java:92)
    at org.nuxeo.ecm.core.repository.RepositoryInitializationHandler.initializeRepository(RepositoryInitializationHandler.java:90)
    at org.nuxeo.ecm.core.repository.RepositoryService$1.run(RepositoryService.java:169)
    at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:156)
    at org.nuxeo.ecm.core.repository.RepositoryService.initializeRepository(RepositoryService.java:166)
    at org.nuxeo.ecm.core.repository.RepositoryService.applicationStarted(RepositoryService.java:147)
    at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.notifyApplicationStarted(RegistrationInfoImpl.java:332)
    at org.nuxeo.runtime.osgi.OSGiRuntimeService.notifyComponentsOnStarted(OSGiRuntimeService.java:494)
    at org.nuxeo.runtime.osgi.OSGiRuntimeService.fireApplicationStarted(OSGiRuntimeService.java:533)
    at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:543)
    at org.nuxeo.osgi.OSGiAdapter.fireFrameworkEvent(OSGiAdapter.java:238)
    at org.nuxeo.osgi.application.loader.FrameworkLoader.doStart(FrameworkLoader.java:232)
    at org.nuxeo.osgi.application.loader.FrameworkLoader.start(FrameworkLoader.java:112)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.nuxeo.osgi.application.FrameworkBootstrap.start(FrameworkBootstrap.java:132)
    at org.nuxeo.runtime.tomcat.NuxeoLauncher.handleEvent(NuxeoLauncher.java:118)
    at org.nuxeo.runtime.tomcat.NuxeoLauncher.lifecycleEvent(NuxeoLauncher.java:89)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:347)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5498)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)

Caused by: org.nuxeo.ecm.core.api.ClientException: Failed to check existence of /asset-library

    at org.nuxeo.ecm.core.api.AbstractSession.exists(AbstractSession.java:1040)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper.invoke(TransactionalCoreSessionWrapper.java:136)
    at com.sun.proxy.$Proxy88.exists(Unknown Source)
    at org.nuxeo.dam.AssetLibraryHandler.execute(AssetLibraryHandler.java:47)
    ... 38 more

Caused by: org.nuxeo.ecm.core.api.DocumentException: Unknown document type: ImportRoot

    at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.newDocument(SQLSession.java:667)
    at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.newDocument(SQLSession.java:638)
    at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.resolvePath(SQLSession.java:262)
    at org.nuxeo.ecm.core.api.DocumentResolver.resolveReference(DocumentResolver.java:63)
    at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:511)
    at org.nuxeo.ecm.core.api.AbstractSession.exists(AbstractSession.java:1035)
    ... 45 more

2014-07-07 17:58:13,388 ERROR [localhost-startStop-1] [org.nuxeo.ecm.platform.publisher.impl.service.PublisherServiceImpl] Unable to register pending descriptors org.nuxeo.ecm.core.api.ClientException: Failed to load repository default

    at org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:105)
    at org.nuxeo.ecm.core.api.local.LocalSession.getSession(LocalSession.java:170)
    at org.nuxeo.ecm.core.api.AbstractSession.connect(AbstractSession.java:253)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper.invoke(TransactionalCoreSessionWrapper.java:136)
    at com.sun.proxy.$Proxy88.connect(Unknown Source)
    at org.nuxeo.ecm.core.api.repository.Repository.open(Repository.java:155)
    at org.nuxeo.ecm.core.api.repository.Repository.open(Repository.java:113)
    at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:140)
    at org.nuxeo.ecm.platform.publisher.impl.service.DomainsFinder.getDomains(DomainsFinder.java:56)
    at org.nuxeo.ecm.platform.publisher.impl.service.PublisherServiceImpl.registerPendingDescriptors(PublisherServiceImpl.java:719)
    at org.nuxeo.ecm.platform.publisher.impl.service.PublisherServiceImpl.doApplicationStarted(PublisherServiceImpl.java:123)
    at org.nuxeo.ecm.platform.publisher.impl.service.PublisherServiceImpl.applicationStarted(PublisherServiceImpl.java:106)
    at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.notifyApplicationStarted(RegistrationInfoImpl.java:332)
    at org.nuxeo.runtime.osgi.OSGiRuntimeService.notifyComponentsOnStarted(OSGiRuntimeService.java:494)
    at org.nuxeo.runtime.osgi.OSGiRuntimeService.fireApplicationStarted(OSGiRuntimeService.java:533)
    at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:543)
    at org.nuxeo.osgi.OSGiAdapter.fireFrameworkEvent(OSGiAdapter.java:238)
    at org.nuxeo.osgi.application.loader.FrameworkLoader.doStart(FrameworkLoader.java:232)
    at org.nuxeo.osgi.application.loader.FrameworkLoader.start(FrameworkLoader.java:112)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.nuxeo.osgi.application.FrameworkBootstrap.start(FrameworkBootstrap.java:132)
    at org.nuxeo.runtime.tomcat.NuxeoLauncher.handleEvent(NuxeoLauncher.java:118)
    at org.nuxeo.runtime.tomcat.NuxeoLauncher.lifecycleEvent(NuxeoLauncher.java:89)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:347)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5498)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)

Caused by: java.lang.IllegalArgumentException: Repository not found: default

    at org.nuxeo.ecm.core.api.local.LocalSession.lookupRepository(LocalSession.java:146)
    at org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:101)
    ... 45 more

2014-07-07 17:58:36,529 ERROR [localhost-startStop-1] [org.nuxeo.runtime.osgi.OSGiRuntimeService] Nuxeo EP Started

2014-07-07 18:00:00,033 ERROR [Quartz_Worker-1] [org.nuxeo.ecm.core.event.impl.EventServiceImpl] Error during triggerEsclationRules sync listener execution, transaction won't be rolled back since event.markRollBack() was not called by the Listener org.nuxeo.ecm.core.api.ClientException: Failed to load repository default

    at org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:105)
    at org.nuxeo.ecm.core.api.local.LocalSession.getSession(LocalSession.java:170)
    at org.nuxeo.ecm.core.api.AbstractSession.connect(AbstractSession.java:253)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper.invoke(TransactionalCoreSessionWrapper.java:136)
    at com.sun.proxy.$Proxy88.connect(Unknown Source)
    at org.nuxeo.ecm.core.api.repository.Repository.open(Repository.java:155)
    at org.nuxeo.ecm.core.api.repository.Repository.open(Repository.java:113)
    at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:140)
    at org.nuxeo.ecm.platform.routing.core.listener.DocumentRoutingEscalationListener.triggerEsclationRulesExecution(DocumentRoutingEscalationListener.java:59)
    at org.nuxeo.ecm.platform.routing.core.listener.DocumentRoutingEscalationListener.handleEvent(DocumentRoutingEscalationListener.java:52)
    at org.nuxeo.ecm.core.event.impl.EventServiceImpl.fireEvent(EventServiceImpl.java:215)
    at org.nuxeo.ecm.core.scheduler.EventJob.execute(EventJob.java:116)
    at org.nuxeo.ecm.core.scheduler.EventJob.execute(EventJob.java:59)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:223)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)

Caused by: java.lang.IllegalArgumentException: Repository not found: default

    at org.nuxeo.ecm.core.api.local.LocalSession.lookupRepository(LocalSession.java:146)
    at org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:101)
    ... 18 more
0 votes

1 answers

3611 views

ANSWER



In my case it was the social-collaboration template who was not installed and was missing at start. Problem solved by doing the folowing commands :

  1. nuxeoctl mp-reset
  2. nuxeoctl mp-remove 'social-collaboration'
  3. nuxeoctl mp-install 'social-collaboration'
0 votes