一些环境说明
公司给每个员工配备了两台电脑,一台只能访问内网,另一台只能访问外网,日常的开发工作都是在内网机上进行的。
为游戏服写了个后台管理系统(基于java web),其中使用了maven来管理一些项目配置。
为了加快后台管理系统的开发进度,当时选择了在外网机上开发;整个项目从无到有,一个人用了两周时间做出了第二版本。
觉得第二版本已经实现了绝大部分需求,开始准备迁移到内网共享给整个项目组,后续的开发工作都将在内网机上进行。
问了一下信息部的同事,他们也没有搭建过maven私服,说这些都是项目组自己内部处理的。
最终只能自己在内网linux服务器(可以上网)上搭建一个maven私服,选择的是nexus3。
一些步骤说明
执行命令./nexus start之后等了十分钟,发现nexus的http服务还是没有启动,于是我就kill了nexus进程。
换了一个执行命令./nexus run,此时日志显示了异常。
最上层的异常信息:com.orientechnologies.common.exception.OException: Error on creation of shared resource。
等待了一段时间后,发现nexus http服务还是没有启动,只能认为是这个异常影响了nexus正常启动,于是开始解决这个异常。
百度、stackoverflow上查了一下,也没有找到相似的问题和解决方案。
又尝试了几次run和kill,问题依旧存在。
最后只好认认真真的看看nexus.log,根据异常信息和异常之前的日志推测是data目录有问题(可能是权限或是数据格式)。
开始第一次尝试,把data目录下的所有文件清除后,重新启动nexus进程,一段时间后nexus http服务也能正常访问了。
开始怀疑,是不是nexus3安装包中自带的data目录和数据与使用的linux不兼容(文件权限或初始配置),最终想来想去,觉得如果真有这个不兼容问题,网上应该很容易找到相似的提问和解决方案。
开始第二次尝试,删除掉原有的nexus目录,重新解压,然后再次启动,等待一段时间后,nexus http服务也能正常访问。
一些思考
nexus以后台进程启动后,我等待了一段时间后发现http服务还是没有启动,就直接kill掉nexus进程,此时nexus可能正在初始化自身目录下的data,直接导致了严重的问题,但这个问题我并不知情。
内网服务器访问internet速度慢,这种固有的思维使我错误的认为重新启动nexus进程后,nexus从maven仓库重新下载数据会快一些。
第一次启动nexus进程时,我并没有去看日志,并不知道nexus进程现在进行到哪一步,我直接使用了暴力手段kill了这个进程。
nexus的异常信息对于使用者来说,关键信息太少。我并不知道nexus代码是如何编写的,nexus抛出的第三方jar的异常信息迷惑了我。
nexus在抛出了异常后,nexus status显示nexus进程处于运行状态,但是http服务却没有启动,这时我就不能判断这个异常是否只是一个小问题,这个异常是否与http服务不能启动有关联,是否它不影响其它功能,我只能进行假设。
如果这种严重的异常影响了nexus启动,应该直接说明nexus启动失败了,而不是进程还活着、状态也显示运行中。
当时忙着在内网部署,项目也比较赶时间,出现这种未知问题后,心里也有点着急,把期望都交给了网络搜索,没有仔细的去看看nexus.log。
经常碰到未知问题后,抱着必胜的信念解决掉,我感觉在解决问题的过程中已经超神了:)。
异常信息
2016-08-26 11:27:10,750+0800 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.siesta [143]
2016-08-26 11:27:10,757+0800 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - Start LOGGING
2016-08-26 11:27:10,760+0800 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.log.LogbackLoggerOverrides - File: /home/s2-dev12/zhangfei/nexus-3.0.1-01/data/logback/logback-overrides.xml
2016-08-26 11:27:10,765+0800 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.log.LogbackLogManager - Configuring
2016-08-26 11:27:10,771+0800 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - Start STORAGE
2016-08-26 11:27:10,793+0800 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseServerImpl - OrientDB version: 2.1.10
2016-08-26 11:27:10,811+0800 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.OServer - OrientDB Server v2.1.10 is starting up...
2016-08-26 11:27:10,818+0800 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.OServer - Databases directory: /home/s2-dev12/zhangfei/nexus-3.0.1-01/data/db
2016-08-26 11:27:10,829+0800 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.handler.OJMXPlugin - JMX plugin installed and active: profilerManaged=true
2016-08-26 11:27:10,831+0800 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.OServer - OrientDB Server v2.1.10 is active.
2016-08-26 11:27:10,832+0800 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseServerImpl - Activated
2016-08-26 11:27:11,500+0800 ERROR [FelixStartLevel] *SYSTEM org.sonatype.nexus.orient.DatabaseInstanceImpl - Lifecycle operation start failed
com.orientechnologies.common.exception.OException: Error on creation of shared resource
at com.orientechnologies.common.concur.resource.OSharedContainerImpl.getResource(OSharedContainerImpl.java:66) [na:na]
at com.orientechnologies.orient.core.storage.OStorageAbstract.getResource(OStorageAbstract.java:143) [na:na]
at com.orientechnologies.orient.core.metadata.OMetadataDefault.init(OMetadataDefault.java:145) [na:na]
at com.orientechnologies.orient.core.metadata.OMetadataDefault.load(OMetadataDefault.java:76) [na:na]
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.initAtFirstOpen(ODatabaseDocumentTx.java:2979) [na:na]
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:263) [na:na]
at org.sonatype.nexus.orient.DatabaseManagerSupport.connect(DatabaseManagerSupport.java:142) [org.sonatype.nexus.orient:3.0.1.01]
at org.sonatype.nexus.orient.DatabaseInstanceImpl.doStart(DatabaseInstanceImpl.java:56) [na:na]
at org.sonatype.goodies.lifecycle.LifecycleSupport.start(LifecycleSupport.java:104) [org.sonatype.goodies.lifecycle:2.1.0]
at org.sonatype.goodies.lifecycle.Lifecycles.start(Lifecycles.java:44) [org.sonatype.goodies.lifecycle:2.1.0]
at org.sonatype.nexus.orient.DatabaseManagerSupport.createInstance(DatabaseManagerSupport.java:256) [org.sonatype.nexus.orient:3.0.1.01]
at org.sonatype.nexus.orient.DatabaseManagerSupport.instance(DatabaseManagerSupport.java:230) [org.sonatype.nexus.orient:3.0.1.01]
at org.sonatype.nexus.internal.orient.SecurityDatabase$ProviderImpl.get(SecurityDatabase.java:61) [org.sonatype.nexus.base:3.0.1.01]
at org.sonatype.nexus.internal.orient.SecurityDatabase$ProviderImpl.get(SecurityDatabase.java:1) [org.sonatype.nexus.base:3.0.1.01]
at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81) [com.google.inject:4.0.0]
at com.google.inject.internal.BoundProviderFactory.provision(BoundProviderFactory.java:72) [com.google.inject:4.0.0]
at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:65) [com.google.inject:4.0.0]
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115) [com.google.inject:4.0.0]
at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176) [org.eclipse.sisu.inject:0.3.2]
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126) [com.google.inject:4.0.0]
at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68) [com.google.inject:4.0.0]
at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:63) [com.google.inject:4.0.0]
at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:62) [com.google.inject:4.0.0]
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) [com.google.inject:4.0.0]
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103) [com.google.inject:4.0.0]
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) [com.google.inject:4.0.0]
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145) [com.google.inject:4.0.0]
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) [com.google.inject:4.0.0]
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016) [com.google.inject:4.0.0]
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092) [com.google.inject:4.0.0]
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012) [com.google.inject:4.0.0]
at org.sonatype.nexus.internal.security.model.OrientSecurityConfigurationSource.doStart(OrientSecurityConfigurationSource.java:102) [org.sonatype.nexus.base:3.0.1.01]
at org.sonatype.goodies.lifecycle.LifecycleSupport.start(LifecycleSupport.java:104) [org.sonatype.goodies.lifecycle:2.1.0]
at org.sonatype.nexus.extender.NexusLifecycleManager.startComponent(NexusLifecycleManager.java:154) [org.sonatype.nexus.extender:3.0.1.01]
at org.sonatype.nexus.extender.NexusLifecycleManager.to(NexusLifecycleManager.java:94) [org.sonatype.nexus.extender:3.0.1.01]
at org.sonatype.nexus.extender.NexusContextListener.contextInitialized(NexusContextListener.java:153) [org.sonatype.nexus.extender:3.0.1.01]
at org.sonatype.nexus.bootstrap.osgi.ListenerTracker.addingService(ListenerTracker.java:47) [org.sonatype.nexus.bootstrap:3.0.1.01]
at org.sonatype.nexus.bootstrap.osgi.ListenerTracker.addingService(ListenerTracker.java:1) [org.sonatype.nexus.bootstrap:3.0.1.01]
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941) [org.osgi.core-6.0.0.jar:na]
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870) [org.osgi.core-6.0.0.jar:na]
at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) [org.osgi.core-6.0.0.jar:na]
at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229) [org.osgi.core-6.0.0.jar:na]
at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901) [org.osgi.core-6.0.0.jar:na]
at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:991) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:839) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:546) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4557) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.Felix.registerService(Felix.java:3549) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:348) [org.apache.felix.framework-5.4.0.jar:na]
at org.sonatype.nexus.extender.NexusBundleExtender.start(NexusBundleExtender.java:54) [org.sonatype.nexus.extender:3.0.1.01]
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2226) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.Felix.startBundle(Felix.java:2144) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) [org.apache.felix.framework-5.4.0.jar:na]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]
Caused by: com.orientechnologies.orient.core.exception.ORecordNotFoundException: The record has no id. It is probably new or still transient
at com.orientechnologies.orient.core.record.ORecordAbstract.reload(ORecordAbstract.java:262) [na:na]
at com.orientechnologies.orient.core.record.ORecordAbstract.reload(ORecordAbstract.java:256) [na:na]
at com.orientechnologies.orient.core.record.impl.ODocument.reload(ODocument.java:654) [na:na]
at com.orientechnologies.orient.core.type.ODocumentWrapper.reload(ODocumentWrapper.java:91) [na:na]
at com.orientechnologies.orient.core.type.ODocumentWrapperNoClass.reload(ODocumentWrapperNoClass.java:73) [na:na]
at com.orientechnologies.orient.core.metadata.schema.OSchemaShared.load(OSchemaShared.java:864) [na:na]
at com.orientechnologies.orient.core.metadata.OMetadataDefault$1.call(OMetadataDefault.java:150) [na:na]
at com.orientechnologies.orient.core.metadata.OMetadataDefault$1.call(OMetadataDefault.java:145) [na:na]
at com.orientechnologies.common.concur.resource.OSharedContainerImpl.getResource(OSharedContainerImpl.java:64) [na:na]
... 55 common frames omitted
2016-08-26 11:27:11,512+0800 ERROR [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.security.model.OrientSecurityConfigurationSource - Lifecycle operation start failed
com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) Error in custom provider, com.orientechnologies.common.exception.OException: Error on creation of shared resource
while locating org.sonatype.nexus.internal.orient.SecurityDatabase$ProviderImpl
at / (via modules: org.sonatype.nexus.extender.modules.NexusBundleModule -> org.eclipse.sisu.space.SpaceModule)
while locating org.sonatype.nexus.orient.DatabaseInstance annotated with @com.google.inject.name.Named(value=security)
1 error
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1025) [na:na]
at org.sonatype.nexus.internal.security.model.OrientSecurityConfigurationSource.doStart(OrientSecurityConfigurationSource.java:102) [na:na]
at org.sonatype.goodies.lifecycle.LifecycleSupport.start(LifecycleSupport.java:104) [org.sonatype.goodies.lifecycle:2.1.0]
at org.sonatype.nexus.extender.NexusLifecycleManager.startComponent(NexusLifecycleManager.java:154) [org.sonatype.nexus.extender:3.0.1.01]
at org.sonatype.nexus.extender.NexusLifecycleManager.to(NexusLifecycleManager.java:94) [org.sonatype.nexus.extender:3.0.1.01]
at org.sonatype.nexus.extender.NexusContextListener.contextInitialized(NexusContextListener.java:153) [org.sonatype.nexus.extender:3.0.1.01]
at org.sonatype.nexus.bootstrap.osgi.ListenerTracker.addingService(ListenerTracker.java:47) [org.sonatype.nexus.bootstrap:3.0.1.01]
at org.sonatype.nexus.bootstrap.osgi.ListenerTracker.addingService(ListenerTracker.java:1) [org.sonatype.nexus.bootstrap:3.0.1.01]
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941) [org.osgi.core-6.0.0.jar:na]
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870) [org.osgi.core-6.0.0.jar:na]
at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) [org.osgi.core-6.0.0.jar:na]
at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229) [org.osgi.core-6.0.0.jar:na]
at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901) [org.osgi.core-6.0.0.jar:na]
at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:991) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:839) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:546) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4557) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.Felix.registerService(Felix.java:3549) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:348) [org.apache.felix.framework-5.4.0.jar:na]
at org.sonatype.nexus.extender.NexusBundleExtender.start(NexusBundleExtender.java:54) [org.sonatype.nexus.extender:3.0.1.01]
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2226) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.Felix.startBundle(Felix.java:2144) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) [org.apache.felix.framework-5.4.0.jar:na]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]
Caused by: com.orientechnologies.common.exception.OException: Error on creation of shared resource
at com.orientechnologies.common.concur.resource.OSharedContainerImpl.getResource(OSharedContainerImpl.java:66) [na:na]
at com.orientechnologies.orient.core.storage.OStorageAbstract.getResource(OStorageAbstract.java:143) [na:na]
at com.orientechnologies.orient.core.metadata.OMetadataDefault.init(OMetadataDefault.java:145) [na:na]
at com.orientechnologies.orient.core.metadata.OMetadataDefault.load(OMetadataDefault.java:76) [na:na]
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.initAtFirstOpen(ODatabaseDocumentTx.java:2979) [na:na]
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:263) [na:na]
at org.sonatype.nexus.orient.DatabaseManagerSupport.connect(DatabaseManagerSupport.java:142) [na:na]
at org.sonatype.nexus.orient.DatabaseInstanceImpl.doStart(DatabaseInstanceImpl.java:56) [na:na]
at org.sonatype.goodies.lifecycle.LifecycleSupport.start(LifecycleSupport.java:104) [org.sonatype.goodies.lifecycle:2.1.0]
at org.sonatype.goodies.lifecycle.Lifecycles.start(Lifecycles.java:44) [org.sonatype.goodies.lifecycle:2.1.0]
at org.sonatype.nexus.orient.DatabaseManagerSupport.createInstance(DatabaseManagerSupport.java:256) [na:na]
at org.sonatype.nexus.orient.DatabaseManagerSupport.instance(DatabaseManagerSupport.java:230) [na:na]
at org.sonatype.nexus.internal.orient.SecurityDatabase$ProviderImpl.get(SecurityDatabase.java:61) [na:na]
at org.sonatype.nexus.internal.orient.SecurityDatabase$ProviderImpl.get(SecurityDatabase.java:1) [na:na]
at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81) [na:na]
at com.google.inject.internal.BoundProviderFactory.provision(BoundProviderFactory.java:72) [na:na]
at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:65) [na:na]
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115) [na:na]
at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176) [org.eclipse.sisu.inject:0.3.2]
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126) [na:na]
at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68) [na:na]
at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:63) [na:na]
at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:62) [na:na]
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) [na:na]
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103) [na:na]
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) [na:na]
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145) [na:na]
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) [na:na]
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016) [na:na]
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092) [na:na]
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012) [na:na]
... 25 common frames omitted
Caused by: com.orientechnologies.orient.core.exception.ORecordNotFoundException: The record has no id. It is probably new or still transient
at com.orientechnologies.orient.core.record.ORecordAbstract.reload(ORecordAbstract.java:262) [na:na]
at com.orientechnologies.orient.core.record.ORecordAbstract.reload(ORecordAbstract.java:256) [na:na]
at com.orientechnologies.orient.core.record.impl.ODocument.reload(ODocument.java:654) [na:na]
at com.orientechnologies.orient.core.type.ODocumentWrapper.reload(ODocumentWrapper.java:91) [na:na]
at com.orientechnologies.orient.core.type.ODocumentWrapperNoClass.reload(ODocumentWrapperNoClass.java:73) [na:na]
at com.orientechnologies.orient.core.metadata.schema.OSchemaShared.load(OSchemaShared.java:864) [na:na]
at com.orientechnologies.orient.core.metadata.OMetadataDefault$1.call(OMetadataDefault.java:150) [na:na]
at com.orientechnologies.orient.core.metadata.OMetadataDefault$1.call(OMetadataDefault.java:145) [na:na]
at com.orientechnologies.common.concur.resource.OSharedContainerImpl.getResource(OSharedContainerImpl.java:64) [na:na]
... 55 common frames omitted
2016-08-26 11:27:11,524+0800 ERROR [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusContextListener - Failed to initialize context
com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) Error in custom provider, com.orientechnologies.common.exception.OException: Error on creation of shared resource
while locating org.sonatype.nexus.internal.orient.SecurityDatabase$ProviderImpl
at / (via modules: org.sonatype.nexus.extender.modules.NexusBundleModule -> org.eclipse.sisu.space.SpaceModule)
while locating org.sonatype.nexus.orient.DatabaseInstance annotated with @com.google.inject.name.Named(value=security)
1 error
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1025) [na:na]
at org.sonatype.nexus.internal.security.model.OrientSecurityConfigurationSource.doStart(OrientSecurityConfigurationSource.java:102) [na:na]
at org.sonatype.goodies.lifecycle.LifecycleSupport.start(LifecycleSupport.java:104) [na:na]
at org.sonatype.nexus.extender.NexusLifecycleManager.startComponent(NexusLifecycleManager.java:154) [na:na]
at org.sonatype.nexus.extender.NexusLifecycleManager.to(NexusLifecycleManager.java:94) [na:na]
at org.sonatype.nexus.extender.NexusContextListener.contextInitialized(NexusContextListener.java:153) [na:na]
at org.sonatype.nexus.bootstrap.osgi.ListenerTracker.addingService(ListenerTracker.java:47) [org.sonatype.nexus.bootstrap:3.0.1.01]
at org.sonatype.nexus.bootstrap.osgi.ListenerTracker.addingService(ListenerTracker.java:1) [org.sonatype.nexus.bootstrap:3.0.1.01]
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941) [org.osgi.core-6.0.0.jar:na]
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870) [org.osgi.core-6.0.0.jar:na]
at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) [org.osgi.core-6.0.0.jar:na]
at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229) [org.osgi.core-6.0.0.jar:na]
at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901) [org.osgi.core-6.0.0.jar:na]
at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:991) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:839) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:546) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4557) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.Felix.registerService(Felix.java:3549) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:348) [org.apache.felix.framework-5.4.0.jar:na]
at org.sonatype.nexus.extender.NexusBundleExtender.start(NexusBundleExtender.java:54) [org.sonatype.nexus.extender:3.0.1.01]
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2226) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.Felix.startBundle(Felix.java:2144) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371) [org.apache.felix.framework-5.4.0.jar:na]
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) [org.apache.felix.framework-5.4.0.jar:na]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]
Caused by: com.orientechnologies.common.exception.OException: Error on creation of shared resource
at com.orientechnologies.common.concur.resource.OSharedContainerImpl.getResource(OSharedContainerImpl.java:66) [na:na]
at com.orientechnologies.orient.core.storage.OStorageAbstract.getResource(OStorageAbstract.java:143) [na:na]
at com.orientechnologies.orient.core.metadata.OMetadataDefault.init(OMetadataDefault.java:145) [na:na]
at com.orientechnologies.orient.core.metadata.OMetadataDefault.load(OMetadataDefault.java:76) [na:na]
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.initAtFirstOpen(ODatabaseDocumentTx.java:2979) [na:na]
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:263) [na:na]
at org.sonatype.nexus.orient.DatabaseManagerSupport.connect(DatabaseManagerSupport.java:142) [na:na]
at org.sonatype.nexus.orient.DatabaseInstanceImpl.doStart(DatabaseInstanceImpl.java:56) [na:na]
at org.sonatype.goodies.lifecycle.LifecycleSupport.start(LifecycleSupport.java:104) [na:na]
at org.sonatype.goodies.lifecycle.Lifecycles.start(Lifecycles.java:44) [na:na]
at org.sonatype.nexus.orient.DatabaseManagerSupport.createInstance(DatabaseManagerSupport.java:256) [na:na]
at org.sonatype.nexus.orient.DatabaseManagerSupport.instance(DatabaseManagerSupport.java:230) [na:na]
at org.sonatype.nexus.internal.orient.SecurityDatabase$ProviderImpl.get(SecurityDatabase.java:61) [na:na]
at org.sonatype.nexus.internal.orient.SecurityDatabase$ProviderImpl.get(SecurityDatabase.java:1) [na:na]
at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81) [na:na]
at com.google.inject.internal.BoundProviderFactory.provision(BoundProviderFactory.java:72) [na:na]
at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:65) [na:na]
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115) [na:na]
at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176) [na:na]
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126) [na:na]
at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68) [na:na]
at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:63) [na:na]
at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:62) [na:na]
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) [na:na]
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103) [na:na]
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) [na:na]
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145) [na:na]
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) [na:na]
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016) [na:na]
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092) [na:na]
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012) [na:na]
... 25 common frames omitted
Caused by: com.orientechnologies.orient.core.exception.ORecordNotFoundException: The record has no id. It is probably new or still transient
at com.orientechnologies.orient.core.record.ORecordAbstract.reload(ORecordAbstract.java:262) [na:na]
at com.orientechnologies.orient.core.record.ORecordAbstract.reload(ORecordAbstract.java:256) [na:na]
at com.orientechnologies.orient.core.record.impl.ODocument.reload(ODocument.java:654) [na:na]
at com.orientechnologies.orient.core.type.ODocumentWrapper.reload(ODocumentWrapper.java:91) [na:na]
at com.orientechnologies.orient.core.type.ODocumentWrapperNoClass.reload(ODocumentWrapperNoClass.java:73) [na:na]
at com.orientechnologies.orient.core.metadata.schema.OSchemaShared.load(OSchemaShared.java:864) [na:na]
at com.orientechnologies.orient.core.metadata.OMetadataDefault$1.call(OMetadataDefault.java:150) [na:na]
at com.orientechnologies.orient.core.metadata.OMetadataDefault$1.call(OMetadataDefault.java:145) [na:na]
at com.orientechnologies.common.concur.resource.OSharedContainerImpl.getResource(OSharedContainerImpl.java:64) [na:na]
... 55 common frames omitted
2016-08-26 11:27:11,540+0800 ERROR [FelixDispatchQueue] org.sonatype.nexus.bootstrap - FrameworkEvent ERROR - org.sonatype.nexus.bootstrap
com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) Error in custom provider, com.orientechnologies.common.exception.OException: Error on creation of shared resource
while locating org.sonatype.nexus.internal.orient.SecurityDatabase$ProviderImpl
at / (via modules: org.sonatype.nexus.extender.modules.NexusBundleModule -> org.eclipse.sisu.space.SpaceModule)
while locating org.sonatype.nexus.orient.DatabaseInstance annotated with @com.google.inject.name.Named(value=security)
1 error
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1025) [na:na]
at org.sonatype.nexus.internal.security.model.OrientSecurityConfigurationSource.doStart(OrientSecurityConfigurationSource.java:102) [na:na]
at org.sonatype.goodies.lifecycle.LifecycleSupport.start(LifecycleSupport.java:104) [na:na]
at org.sonatype.nexus.extender.NexusLifecycleManager.startComponent(NexusLifecycleManager.java:154) [na:na]
at org.sonatype.nexus.extender.NexusLifecycleManager.to(NexusLifecycleManager.java:94) [na:na]
at org.sonatype.nexus.extender.NexusContextListener.contextInitialized(NexusContextListener.java:153) [na:na]
at org.sonatype.nexus.bootstrap.osgi.ListenerTracker.addingService(ListenerTracker.java:47) [na:na]
at org.sonatype.nexus.bootstrap.osgi.ListenerTracker.addingService(ListenerTracker.java:1) [na:na]
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941) [org.osgi.core-6.0.0.jar:na]
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870) [org.osgi.core-6.0.0.jar:na]
at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) [org.osgi.core-6.0.0.jar:na]
at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229) [org.osgi.core-6.0.0.jar:na]
at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901) [org.osgi.core-6.0.0.jar:na]
at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:991) [na:na]
at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:839) [na:na]
at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:546) [na:na]
at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4557) [na:na]
at org.apache.felix.framework.Felix.registerService(Felix.java:3549) [na:na]
at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:348) [na:na]
at org.sonatype.nexus.extender.NexusBundleExtender.start(NexusBundleExtender.java:54) [na:na]
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697) [na:na]
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2226) [na:na]
at org.apache.felix.framework.Felix.startBundle(Felix.java:2144) [na:na]
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371) [na:na]
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) [na:na]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]
Caused by: com.orientechnologies.common.exception.OException: Error on creation of shared resource
at com.orientechnologies.common.concur.resource.OSharedContainerImpl.getResource(OSharedContainerImpl.java:66) [na:na]
at com.orientechnologies.orient.core.storage.OStorageAbstract.getResource(OStorageAbstract.java:143) [na:na]
at com.orientechnologies.orient.core.metadata.OMetadataDefault.init(OMetadataDefault.java:145) [na:na]
at com.orientechnologies.orient.core.metadata.OMetadataDefault.load(OMetadataDefault.java:76) [na:na]
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.initAtFirstOpen(ODatabaseDocumentTx.java:2979) [na:na]
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:263) [na:na]
at org.sonatype.nexus.orient.DatabaseManagerSupport.connect(DatabaseManagerSupport.java:142) [na:na]
at org.sonatype.nexus.orient.DatabaseInstanceImpl.doStart(DatabaseInstanceImpl.java:56) [na:na]
at org.sonatype.goodies.lifecycle.LifecycleSupport.start(LifecycleSupport.java:104) [na:na]
at org.sonatype.goodies.lifecycle.Lifecycles.start(Lifecycles.java:44) [na:na]
at org.sonatype.nexus.orient.DatabaseManagerSupport.createInstance(DatabaseManagerSupport.java:256) [na:na]
at org.sonatype.nexus.orient.DatabaseManagerSupport.instance(DatabaseManagerSupport.java:230) [na:na]
at org.sonatype.nexus.internal.orient.SecurityDatabase$ProviderImpl.get(SecurityDatabase.java:61) [na:na]
at org.sonatype.nexus.internal.orient.SecurityDatabase$ProviderImpl.get(SecurityDatabase.java:1) [na:na]
at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81) [na:na]
at com.google.inject.internal.BoundProviderFactory.provision(BoundProviderFactory.java:72) [na:na]
at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:65) [na:na]
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115) [na:na]
at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176) [na:na]
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126) [na:na]
at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68) [na:na]
at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:63) [na:na]
at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:62) [na:na]
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) [na:na]
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103) [na:na]
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) [na:na]
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145) [na:na]
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) [na:na]
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016) [na:na]
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092) [na:na]
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012) [na:na]
... 25 common frames omitted
Caused by: com.orientechnologies.orient.core.exception.ORecordNotFoundException: The record has no id. It is probably new or still transient
at com.orientechnologies.orient.core.record.ORecordAbstract.reload(ORecordAbstract.java:262) [na:na]
at com.orientechnologies.orient.core.record.ORecordAbstract.reload(ORecordAbstract.java:256) [na:na]
at com.orientechnologies.orient.core.record.impl.ODocument.reload(ODocument.java:654) [na:na]
at com.orientechnologies.orient.core.type.ODocumentWrapper.reload(ODocumentWrapper.java:91) [na:na]
at com.orientechnologies.orient.core.type.ODocumentWrapperNoClass.reload(ODocumentWrapperNoClass.java:73) [na:na]
at com.orientechnologies.orient.core.metadata.schema.OSchemaShared.load(OSchemaShared.java:864) [na:na]
at com.orientechnologies.orient.core.metadata.OMetadataDefault$1.call(OMetadataDefault.java:150) [na:na]
at com.orientechnologies.orient.core.metadata.OMetadataDefault$1.call(OMetadataDefault.java:145) [na:na]
at com.orientechnologies.common.concur.resource.OSharedContainerImpl.getResource(OSharedContainerImpl.java:64) [na:na]
... 55 common frames omitted
2016-08-26 11:27:14,671+0800 INFO [SIGINT handler] com.orientechnologies.orient.core.OSignalHandler - Received signal: SIGINT
2016-08-26 11:31:52,052+0800 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - Properties:
2016-08-26 11:31:52,058+0800 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - application-host='0.0.0.0'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
点赞
————————————————
版权声明:本文为CSDN博主「ranger2」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/ranger2/article/details/52650383