Hi I had the same problem. A quick look into the unit tests pointed my into
the right direction. Here is what we do now (I don't know if this is the
correct way):
File dbFile = new File("/path/with/777/permissions");
factory = new OrientGraphFactory("plocal:" +
dbFile.getAbsolutePath()).setupPool(1,16);
if(!factory.exists()){
try {
ODatabaseHelper.createDatabase(factory.getDatabase(), "plocal:" +
dbFile.getAbsolutePath(), "graph");
} catch (IOException e) {
e.printStackTrace();
}
}
Am Mittwoch, 25. Februar 2015 12:39:17 UTC+1 schrieb Adam Perry:
>
> Hello!
>
> Currently using 2.0.3.
>
> I'm trying to initialize an embedded OrientGraphFactory with a plocal path
> but I'm getting an OStorageException every time I attempt to spin up an
> actual connection. Calling exists() on the factory returns false. Below
> is the stack trace. I'd love it if anyone could offer some advice on how to
> troubleshoot this. Thanks!
>
> com.orientechnologies.orient.core.exception.OStorageException: Cannot open
> local storage '/path/with/777/permissions' with mode=rw
> at
> com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:217)
> at
> com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:243)
> at
> com.orientechnologies.orient.core.db.OPartitionedDatabasePool.acquire(OPartitionedDatabasePool.java:285)
> at
> com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.<init>(OrientBaseGraph.java:163)
> at
> com.tinkerpop.blueprints.impls.orient.OrientGraphNoTx.<init>(OrientGraphNoTx.java:54)
> at
> com.tinkerpop.blueprints.impls.orient.OrientGraphFactory.getNoTx(OrientGraphFactory.java:93)
> *.........a bunch of my application initialization classes**.........*
> Caused by: com.orientechnologies.orient.core.exception.OStorageException:
> Cannot open the storage 'my_storage' because it does not exist in path:
> /path/with/777/permissions
> at
> com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:162)
> ... 13 more
> INFO [2015-02-25 06:31:49,593] com.orientechnologies: OrientDB
> auto-config DISKCACHE=2,406MB (heap=5,333MB os=9,787MB disk=26,662MB)
>
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.