How to connect to the local OrientDB?

2,419 views
Skip to first unread message

Rui Lopes

unread,
Jun 3, 2016, 7:40:36 AM6/3/16
to Nexus Users
How can I connect to the OrientDB databases that are inside data/db?

TIA!

This is what I've tried:

root@nexus:/opt/nexus# java -cp $(find system/ -type f -name '*.jar' | tr '\n' ':') com.orientechnologies.orient.console.OConsoleDatabaseApp connect plocal:data/db/security admin admin

OrientDB console v.2.1.10 www.orientdb.com
Type 'help' to display all the supported commands.
orientdb> connect plocal:data/db/security admin admin

Connecting to database [plocal:data/db/security] with user 'admin'...Jun 03, 2016 12:35:51 PM com.orientechnologies.common.log.OLogManager log
INFO: OrientDB auto-config DISKCACHE=1,025MB (heap=878MB os=3,951MB disk=76,407MB)

Error: com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage 'data/db/security' with mode=rw

Error: java.lang.IllegalArgumentException: Compression with name  pbe is absent.

Jun 03, 2016 12:35:51 PM com.orientechnologies.common.log.OLogManager log
INFO: {db=security} - closing storage: security...
Jun 03, 2016 12:35:51 PM com.orientechnologies.common.log.OLogManager log
INFO: OrientDB Engine shutdown complete

Rui Lopes

unread,
Jun 16, 2016, 3:23:46 PM6/16/16
to Nexus Users
Please note that even with the official orientdb dist:

tar xf /tmp/orientdb-community-2.2.2.tar.gz -C /tmp
function orientdb-console {
    /tmp/orientdb-community-2.2.2/bin/console.sh $*
}
orientdb-console 'CONNECT PLOCAL:/opt/nexus/data/db/security admin admin; CONFIG; LIST CLASSES;'


this also fails:

Connecting to database [PLOCAL:/opt/nexus/data/db/security] with user 'admin'...
Error: com.orientechnologies.orient.core.exception.OSecurityException: Compression with name 'pbe' is absent
        DB name="security"


any clue?

Nick Chadwick

unread,
Dec 27, 2017, 8:29:36 AM12/27/17
to Nexus Users
Did you get anywhere with this? I'm seeing the same error. It's never a good sign when google has 1 result...

Bradley Beck

unread,
Dec 27, 2017, 8:53:22 AM12/27/17
to Nick Chadwick, Nexus Users

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/9899a631-43cf-47f6-af66-a66b77e34e37%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.

Nick Chadwick

unread,
Dec 27, 2017, 8:57:42 AM12/27/17
to Nexus Users, nick.c...@nichesolutions.co.uk
Thanks, but that doesn't help me.

I'm using 3.0.2, which doesn't include the OrientDB console as per that page.

I manually downloaded OrientDB 2.2.16, and am using the console from that, and it's failing to connect with the error Rui mentions.

msu...@sonatype.com

unread,
Dec 27, 2017, 9:06:34 AM12/27/17
to Nexus Users, nick.c...@nichesolutions.co.uk
Hi Nick,

Version 3.0.2 i9s a very early version of Nexus 3. You should consider upgrading to latest version of Nexus 3.


Regards,
Mahendra

Nick Chadwick

unread,
Dec 27, 2017, 9:13:17 AM12/27/17
to Nexus Users, nick.c...@nichesolutions.co.uk
Thanks, Mahendra.

I started looking into doing that. But the blobs directory has so many files in it, it will take about a hundred years to back it up. I left a chown running on that directory earlier, and after an hour, I can't see a single thing that it managed to change, and even ls sits there forever.

Time to give up and move on, I guess
Reply all
Reply to author
Forward
0 new messages