Path error in console and corrupting files

26 views
Skip to first unread message

Rogerio

unread,
Feb 3, 2011, 5:19:49 PM2/3/11
to OrientDB
Hello Luca!

I am facing a problem with the path... If the path is simple, like c:/
db, everything works, but if it is C:/eclipse-workspaces/default/
OrientDB, the console doesnt open it, and corrupts some files!


> connect local:C:/eclipse-workspaces/default/OrientDB/testeodb admin admin
Connecting to database [local:C:/eclipse-workspaces/default/OrientDB/
testeodb] with user 'admin'...Error: Can'
t open database
Error: Can't open database
Error: Can't open local storage: C:/eclipse-workspaces/default/
OrientDB/testeodb, with mode=rw
Error: File: C:\eclipse-workspaces\default\OrientDB\defaultC:\eclipse-
workspaces\default\OrientDB0C:\eclipse-w
orkspaces\default\OrientDBoda


After that I quit console, and receive this exception:


> quit

Exception in thread "main" java.util.ConcurrentModificationException
at java.util.LinkedList
$ListItr.checkForComodification(LinkedList.java:761)
at java.util.LinkedList$ListItr.next(LinkedList.java:696)
at
com.orientechnologies.orient.core.storage.fs.OMMapManager.shutdown(OMMapManager.java:
138)
at
com.orientechnologies.orient.core.Orient.shutdown(Orient.java:228)
at
com.orientechnologies.orient.console.OConsoleDatabaseApp.onAfter(OConsoleDatabaseApp.java:
118)
at
com.orientechnologies.common.console.OConsoleApplication.run(OConsoleApplication.java:
89)
at
com.orientechnologies.orient.console.OConsoleDatabaseApp.main(OConsoleDatabaseApp.java:
92)


And if I run my program again, the files are corrupted:


2011-02-03 08:14:10:063 WARN [OClusterLocalHole] File C:\eclipse-
workspaces\default\OrientDB\.\internal.och was not closed correctly
last time. Checking segments...
2011-02-03 08:14:10:070 WARN [OClusterLocal] Segment file index.0.ocl
was not closed correctly last time. Checking segments...
2011-02-03 08:14:10:070 WARN [OClusterLocal] OK
2011-02-03 08:14:10:075 WARN [OClusterLocalHole] File C:\eclipse-
workspaces\default\OrientDB\.\index.och was not closed correctly last
time. Checking segments...
2011-02-03 08:14:10:079 WARN [OClusterLocal] Segment file default.
0.ocl was not closed correctly last time. Checking segments...
2011-02-03 08:14:10:080 WARN [OClusterLocal] OK
2011-02-03 08:14:10:084 WARN [OClusterLocalHole] File C:\eclipse-
workspaces\default\OrientDB\.\default.och was not closed correctly
last time. Checking segments...


I am using the stable version, sorry... (0.9.24)
Can´t help debug in the moment, a deadline is too close, so I prefer
stable rather than snapshots.
Thanks!

Luca Garulli

unread,
Feb 3, 2011, 5:22:50 PM2/3/11
to orient-database
Hi,
I suggest you to use the latest one. However with 0.9.24 you have to use this path:

local:C:/eclipse-workspaces/default/OrientDB/testeodb/testeodb

Namely you have to repeat the db name.

Let me know if works,
Lvc@

Rogerio

unread,
Feb 3, 2011, 5:29:08 PM2/3/11
to OrientDB
Wow, that was fast! Thanks...

Unfortunately, I already did repeat...
The path is C:/eclipse-workspaces/default/OrientDB/
The db name is testeodb

Rogerio.



On 3 fev, 20:22, Luca Garulli <l.garu...@gmail.com> wrote:
> Hi,
> I suggest you to use the latest one. However with 0.9.24 you have to use
> this path:
>
> local:C:/eclipse-workspaces/default/OrientDB/testeodb/testeodb
>
> Namely you have to repeat the db name.
>
> Let me know if works,
> Lvc@
>

Luca Garulli

unread,
Feb 3, 2011, 5:31:06 PM2/3/11
to orient-database
I can't help unless you use the latest SNAPSHOT. The last SNAPSHOT is stable and can be used in production, but you have to export/import the database before to use the new one.

Lvc@

Rogerio

unread,
Feb 3, 2011, 5:35:10 PM2/3/11
to OrientDB
Well, I tried anyway, and it only tell me the path doesnt exist.

> connect local:C:/eclipse-workspaces/default/OrientDB/testeodb/testeodb admin admin
Connecting to database [local:C:/eclipse-workspaces/default/OrientDB/
testeodb/testeodb] with user 'admin'...Er
ror: Can't open database
Error: Can't open database
Error: Can't open the storage 'testeodb' because it not exists in
path: C:/eclipse-workspaces/default/OrientDB
/testeodb/testeodb

Before it was (note the suffix "with mode=rw"):
Error: Can't open local storage: C:/eclipse-workspaces/default/
OrientDB/testeodb, with mode=rw

thanks,
Rogerio.

Rogerio

unread,
Feb 3, 2011, 5:40:40 PM2/3/11
to OrientDB
Ok, if its stable I´ll give it a shot, thanks.
How do I export the database if I need to?


On 3 fev, 20:31, Luca Garulli <l.garu...@gmail.com> wrote:
> I can't help unless you use the latest SNAPSHOT. The last SNAPSHOT is stable
> and can be used in production, but you have to export/import the database
> before to use the new one.
>
> Lvc@
>

Rogerio

unread,
Feb 3, 2011, 5:46:36 PM2/3/11
to OrientDB
Sorry Luca, but how do I get the snapshot??
Do I have to checkout the source and build myself?
Is there the jar somewhere?

Luca Garulli

unread,
Feb 3, 2011, 5:57:27 PM2/3/11
to orient-database
Yes,
give a look to installation page under "Maven".

Lvc@
Reply all
Reply to author
Forward
0 new messages