when trying to connect orient db getting below error
PS C:\nexus> java -jar nexus-3.12.0-01/lib/support/nexus-orient-console.jar
OrientDB console v.2.2.34 (build f340442755a31eabc91b87cb3ef99eda5cee6ebd, branch 2.2.x) https://www.orientdb.com
Type ‘help’ to display all the supported commands.
orientdb> connect plocal:/nexussonatype-work/nexus/db/config admin admin
Connecting to database [plocal:/nexussonatype-work/nexus/db/config] with user ‘admin’…Exception 497AEC8C in storage plocal:/nexussonatype-work/nexus/db/config: 2.2.34 (build f340442755a31eabc91b87cb3ef99eda5cee6ebd, branch 2.2.x)
com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage ‘/nexussonatype-work/nexus/db/config’ with mode=rw
DB name=“config”
at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:323)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:259)
at com.orientechnologies.orient.console.OConsoleDatabaseApp.connect(OConsoleDatabaseApp.java:234)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.orientechnologies.common.console.OConsoleApplication.execute(OConsoleApplication.java:405)
at com.orientechnologies.common.console.OConsoleApplication.executeCommands(OConsoleApplication.java:260)
at com.orientechnologies.common.console.OConsoleApplication.run(OConsoleApplication.java:131)
at com.orientechnologies.orient.console.OConsoleDatabaseApp.main(OConsoleDatabaseApp.java:145)
at org.sonatype.nexus.orient.console.Main.main(Main.java:58)
Caused by: com.orientechnologies.orient.core.exception.OStorageException: Cannot open the storage ‘config’ because it does not exist in path: /nexussonatype-work/nexus/db/config
DB name=“config”
at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:265)
… 11 more
Error: com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage ‘/nexussonatype-work/nexus/db/config’ with mode=rw
DB name=“config”
Error: com.orientechnologies.orient.core.exception.OStorageException: Cannot open the storage ‘config’ because it does not exist in path: /nexussonatype-work/nexus/db/config
DB name=“config”
can anyone help what is wrong with this.
Cannot open the storage ‘config’ because it does not exist in path: /nexussonatype-work/nexus/db/config
It says that path does not exist. It looks like there is a typo in your configuration somewhere? Note there is no slash between nexus and sonatype-work. Check $bin/nexus.vmoptions.
Connecting to database [plocal:/sonatype-work/nexus/db/config] with user ‘admin’…Exception 497AEC8C in storage plocal:/sonatype-work/nexus/db/config: 2.2.34 (build f340442755a31eabc91b87cb3ef99eda5cee6ebd, branch 2.2.x)
com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage ‘/sonatype-work/nexus/db/config’ with mode=rw
DB name=“config”
at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:323)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:259)
at com.orientechnologies.orient.console.OConsoleDatabaseApp.connect(OConsoleDatabaseApp.java:234)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.orientechnologies.common.console.OConsoleApplication.execute(OConsoleApplication.java:405)
at com.orientechnologies.common.console.OConsoleApplication.executeCommands(OConsoleApplication.java:260)
at com.orientechnologies.common.console.OConsoleApplication.run(OConsoleApplication.java:131)
at com.orientechnologies.orient.console.OConsoleDatabaseApp.main(OConsoleDatabaseApp.java:145)
at org.sonatype.nexus.orient.console.Main.main(Main.java:58)
Caused by: com.orientechnologies.orient.core.exception.OStorageException: Cannot open the storage ‘config’ because it does not exist in path: /sonatype-work/nexus/db/config
DB name=“config”
at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:265)
… 11 more
Error: com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage ‘/sonatype-work/nexus/db/config’ with mode=rw
DB name=“config”
Error: com.orientechnologies.orient.core.exception.OStorageException: Cannot open the storage ‘config’ because it does not exist in path: /sonatype-work/nexus/db/config
DB name=“config”
my bad i was able to figure out what is happening.
we need to be in application directory and then need to get db console.one on db console and then use connect command as
connect plocal:…/sonatype-work/nexus3/db/config admin
admin.now iam able to connect so this look like this
PS C:\nexus\nexus-3.12.0-01> java -jar ./lib/support/nexus-orient-console.jar
OrientDB console v.2.2.34 (build f340442755a31eabc91b87cb3ef99eda5cee6ebd, branch 2.2.x) https://www.orientdb.com
Type ‘help’ to display all the supported commands.
orientdb> connect plocal:…/sonatype-work/nexus3/db/config admin admin
Connecting to database [plocal:…/sonatype-work/nexus3/db/config] with user ‘admin’…OK
orientdb {db=config}>
one request it will be good if more technote on orient db can be share it will help the admin and the i see the community support is very good.