org.springframework.beans.factory.BeanCreationException

Error creating bean with name 'databaseRegistry': Invocation of init method failed; nested exception is com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '/var/lib/opal/data/orientdb/opal-config' with mode=rw

Solutions on the web19484

  • via JIRA by Yannick Marcon, 1 year ago
    Error creating bean with name 'databaseRegistry': Invocation of init method failed; nested exception is com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '/var/lib/opal/data/orientdb/opal-config' with mode=rw
  • via JIRA by Yannick Marcon, 1 year ago
    Error creating bean with name 'databaseRegistry': Invocation of init method failed; nested exception is com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '/var/lib/opal/data/orientdb/opal-config' with mode=rw
  • Error creating bean with name 'config': Invocation of init method failed; nested exception is java.lang.NullPointerException
  • Stack trace

    • org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'databaseRegistry': Invocation of init method failed; nested exception is com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '/var/lib/opal/data/orientdb/opal-config' with mode=rw at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)[spring-beans-4.2.1.RELEASE.jar:4.2.1.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)[spring-beans-4.2.1.RELEASE.jar:4.2.1.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570)[spring-beans-4.2.1.RELEASE.jar:4.2.1.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)[spring-beans-4.2.1.RELEASE.jar:4.2.1.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[spring-beans-4.2.1.RELEASE.jar:4.2.1.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)[spring-beans-4.2.1.RELEASE.jar:4.2.1.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.2.1.RELEASE.jar:4.2.1.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)[spring-beans-4.2.1.RELEASE.jar:4.2.1.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)[spring-beans-4.2.1.RELEASE.jar:4.2.1.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)[spring-beans-4.2.1.RELEASE.jar:4.2.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:834)[spring-context-4.2.1.RELEASE.jar:4.2.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)[spring-context-4.2.1.RELEASE.jar:4.2.1.RELEASE] at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)[spring-context-4.2.1.RELEASE.jar:4.2.1.RELEASE] at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)[spring-context-4.2.1.RELEASE.jar:4.2.1.RELEASE] at org.obiba.opal.server.UpgradeCommand.standardUpgrade(UpgradeCommand.java:80)[opal-server-2.4.1.jar:na] at org.obiba.opal.server.UpgradeCommand.execute(UpgradeCommand.java:76)[opal-server-2.4.1.jar:na] at org.obiba.opal.server.OpalServer.upgrade(OpalServer.java:58)[opal-server-2.4.1.jar:na] at org.obiba.opal.server.OpalServer.<init>(OpalServer.java:22)[opal-server-2.4.1.jar:na] at org.obiba.opal.server.OpalServer.main(OpalServer.java:107)[opal-server-2.4.1.jar:na] Caused by: com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '/var/lib/opal/data/orientdb/opal-config' with mode=rw at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:245)[orientdb-core-2.1.2.jar:2.1.2] at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:249)[orientdb-core-2.1.2.jar:2.1.2] at com.orientechnologies.orient.core.db.OPartitionedDatabasePool$DatabaseDocumentTxPolled.internalOpen(OPartitionedDatabasePool.java:140)[orientdb-core-2.1.2.jar:2.1.2] at com.orientechnologies.orient.core.db.OPartitionedDatabasePool.openDatabase(OPartitionedDatabasePool.java:343)[orientdb-core-2.1.2.jar:2.1.2] at com.orientechnologies.orient.core.db.OPartitionedDatabasePool.acquire(OPartitionedDatabasePool.java:313)[orientdb-core-2.1.2.jar:2.1.2] at org.obiba.opal.core.service.LocalOrientDbServerFactory.getDocumentTx(LocalOrientDbServerFactory.java:88)[opal-core-2.4.1.jar:na] at org.obiba.opal.core.service.OrientDbServiceImpl.createUniqueIndex(OrientDbServiceImpl.java:346)[opal-core-2.4.1.jar:na] at org.obiba.opal.core.service.DefaultDatabaseRegistry.start(DefaultDatabaseRegistry.java:97)[opal-core-2.4.1.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_45] at java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_45] at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:354)[spring-beans-4.2.1.RELEASE.jar:4.2.1.RELEASE] at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:305)[spring-beans-4.2.1.RELEASE.jar:4.2.1.RELEASE] at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)[spring-beans-4.2.1.RELEASE.jar:4.2.1.RELEASE] ... 18 more Caused by: com.orientechnologies.orient.core.exception.OSerializationException: Cannot load database's configuration. The database seems to be corrupted. at com.orientechnologies.orient.core.storage.impl.local.OStorageConfigurationSegment.load(OStorageConfigurationSegment.java:84)[orientdb-core-2.1.2.jar:2.1.2] at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:188)[orientdb-core-2.1.2.jar:2.1.2] ... 32 more Caused by: java.io.FileNotFoundException: /var/lib/opal/data/orientdb/opal-config/database.ocf (Permission denied) at java.io.RandomAccessFile.open0(Native Method)[na:1.8.0_45] at java.io.RandomAccessFile.open(RandomAccessFile.java:316)[na:1.8.0_45] at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)[na:1.8.0_45] at com.orientechnologies.orient.core.storage.fs.OFileClassic.openChannel(OFileClassic.java:753)[orientdb-core-2.1.2.jar:2.1.2] at com.orientechnologies.orient.core.storage.fs.OFileClassic.open(OFileClassic.java:557)[orientdb-core-2.1.2.jar:2.1.2] at com.orientechnologies.orient.core.storage.impl.local.OSingleFileSegment.open(OSingleFileSegment.java:51)[orientdb-core-2.1.2.jar:2.1.2] at com.orientechnologies.orient.core.storage.impl.local.OStorageConfigurationSegment.load(OStorageConfigurationSegment.java:64)[orientdb-core-2.1.2.jar:2.1.2] ... 33 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 1 month ago
    4 times, 3 months ago
    3 times, 6 months ago
    Once, 8 months ago
    Unknown user
    Once, 8 months ago
    32 more bugmates