Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '/../employeeDb' with mode=rw #7998

Closed
ranajit484 opened this issue Jan 11, 2018 · 10 comments
Assignees
Labels
Milestone

Comments

@ranajit484
Copy link

OrientDB Version: 2.2.30

Java Version: 8

OS: Docker image

Expected behavior

It should connect to database

Actual behavior

Exception '38A1B784' in storage 'plocal:/../employeeDb': 2.2.30 (build 43d850df23c0fd1edca7279761c2238fdc6cc576, branch 2.2.x) com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '/../employeeDb' with mode=rw DB name="employeeDb" at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:326) at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:259) at com.orientechnologies.orient.server.OServer.openDatabaseBypassingSecurity(OServer.java:995) at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:974) at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:947) at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:938) at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.openDatabase(ONetworkProtocolBinary.java:914) at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.handshakeRequest(ONetworkProtocolBinary.java:248) at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.execute(ONetworkProtocolBinary.java:213) at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:82) Caused by: java.lang.ArrayIndexOutOfBoundsException: 1743 at com.orientechnologies.orient.core.config.OStorageConfiguration.fromStream(OStorageConfiguration.java:529) at com.orientechnologies.orient.core.storage.impl.local.OStorageConfigurationSegment.load(OStorageConfigurationSegment.java:138) at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:270) ... 9 more

Steps to reproduce

We don't know what happened, all of a sudden its starting to show this error, after stopping and restarting docker container

@andrii0lomakin
Copy link
Member

@ranajit484 do you work on a distributed server or on single node server?

@ranajit484
Copy link
Author

@Laa It's single node server

@andrii0lomakin
Copy link
Member

Did you update version recently to a newer one?

@ranajit484
Copy link
Author

Yeah. from 2.2.29 to 2.2.30 few days back.

@andrii0lomakin
Copy link
Member

Ok. I will fix change code to avoid that in future. But for now, I suppose we need to fix your problem. Do you have any backups of your database? I need backup after which you did not change database schema or settings, data itself does not matter.

@ranajit484
Copy link
Author

Unfortunately, we don't have any backup :(

@andrii0lomakin
Copy link
Member

do you at least remember which schema did you have and which setting did you use?

@ranajit484
Copy link
Author

Yeah.. schema and settings, we know.

@andrii0lomakin
Copy link
Member

Ok so please create an empty database with the same settings and the same schema, then please replace file "database.ocf" in your production database and please tell me result does your database work or not )) I will fix your issue next week, so you will not have it anymore.

@ranajit484
Copy link
Author

Yeah.. I have done the same. It's working for me now. Thanks for the suggestion.

@andrii0lomakin andrii0lomakin added this to the 2.2.x (next hotfix) milestone Mar 16, 2018
andrii0lomakin added a commit that referenced this issue Mar 20, 2018
andrii0lomakin added a commit that referenced this issue Mar 20, 2018
mcculls added a commit to sonatype/orientdb that referenced this issue Mar 21, 2018
…eaks backwards compatibility.

This reverts commit eb74721.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants