OrientDB Studio not working

2,143 views
Skip to first unread message

Elan

unread,
Jul 21, 2011, 12:58:04 AM7/21/11
to OrientDB
Hi All,

I am new to OrionDB and i am able to connect the to test database from
command prompt by below way.

connect local:../databases/demo/demo admin admin

But i am not able to connect to Local OrientDB Studio IDE by using
same username and password. It is throwing unauthorized error for
below input parameter. Your help highly appreciated.





Regards
Elan

Luca Garulli

unread,
Jul 21, 2011, 4:06:17 AM7/21/11
to orient-...@googlegroups.com
Hi,
"local" can be used only for embedded connection. To use OrientDB studio always use the "remote" protocol to attach to a server.


Lvc@

Elan

unread,
Jul 22, 2011, 4:56:02 AM7/22/11
to OrientDB
It is working fine now. Thanks for your help.
Still i didn't understand the difference between local and remote in
database url.

In my case, i installed the orientdb on my system. I can access it
using local and remote. What could be the different between two.
May be local, i need to give relative path of the folder structure and
remote it is not required. Apart from that, can you explain me the
difference if any and correct me if my understanding wrong in this.


On Jul 21, 1:06 pm, Luca Garulli <l.garu...@gmail.com> wrote:
> Hi,
> "local" can be used only for embedded connection. To use OrientDB studio
> always use the "remote" protocol to attach to a server.
>
> http://code.google.com/p/orient/wiki/Concepts#Database_URL
>
> Lvc@
>

Luca Garulli

unread,
Jul 22, 2011, 4:30:05 PM7/22/11
to orient-...@googlegroups.com
Hi,
"local" use intra-JVM to connect to the server. The JVM process opens the files without the need of a server. For the "remote"  is more like classic RDBMS where a server listen for incoming remote connections.

Lvc@

WBT

unread,
Jul 25, 2011, 12:21:23 PM7/25/11
to OrientDB
Hi Elan,

When you want to use "remote" you have to have the server running.
When you want to use "local" you cannot have the server running.
Only one process can use the "local" connection to the database at a
time.
Basically, the server uses local access to the database, and provides
the option of any* number of "remote" access connections.

https://groups.google.com/group/orient-database/browse_thread/thread/5eb45a3a47a9977f/4dd5842fcd4d9a66
has some additional information about the difference.

There are also some differences when using the graph mode, e. g. when
using TinkerPop. For example, transactions aren't supported for
remote: mode access yet.
I can't easily find the threads discussing that or other differences
here, but check out https://groups.google.com/group/orient-database/browse_thread/thread/7c738f5b2c20cc00/f2291dd02367a474
as one example.

Hope that helps,
WBT

(*) "Any number of" is likely not accurate. There's an upper limit
somewhere, but that doesn't appear relevant here. Luca will correct
me if I'm wrong. :-)

On Jul 22, 4:30 pm, Luca Garulli <l.garu...@gmail.com> wrote:
> Hi,
> "local" use intra-JVM to connect to the server. The JVM process opens the
> files without the need of a server. For the "remote"  is more like classic
> RDBMS where a server listen for incoming remote connections.
>
> Lvc@
>

Luca Garulli

unread,
Jul 25, 2011, 6:53:33 PM7/25/11
to orient-...@googlegroups.com
Well said,
just since some days transactions work also with Blueprints and remote connections but I forgot to announce it ;-)

Lvc@

Adolfo Rodriguez

unread,
Mar 10, 2012, 3:39:29 PM3/10/12
to orient-...@googlegroups.com
Hi, I am working with latest SVN running OrientDB from Eclipse itself in my dev environment.

Now that seems that a good work has been done in the Studio I would like to configure it, since I have problems in the past with the tool, specially with UTF characters.

When I launch OrientDB in Eclipse it says:

2012-03-10 09:18:29:491 INFO [OServerNetworkListener] Listening binary connections on 0.0.0.0:2424
2012-03-10 09:18:29:494 INFO [OServerNetworkListener] Listening cluster connections on 0.0.0.0:2434
2012-03-10 09:18:29:497 INFO [OServerNetworkListener] Listening http connections on 0.0.0.0:2480

actually, if I do a netstat -an in my laptop, I see a 2480 socket listening. So it looks fine.

However, none of 4 browsers (FF, IE, Chrome, Safari) was able to come up with more than a blank screen. I guess that I am missing something. I tried both:
localhost:2480 and 127.0.0.1:2480, but nothing.

Have you run Studio within OrientDB in Eclipse? Any special issue to pay attention? Come you figure out what I am missing?

Thanks,

Adolfo

Luca Garulli

unread,
Mar 10, 2012, 6:13:35 PM3/10/12
to orient-...@googlegroups.com

Hi,
Try:

Http://localhost:2480/studio/

Sent from a touch phone: sorry for this fruit of crappy keyboard..

Message has been deleted

Adolfo Rodriguez

unread,
Mar 10, 2012, 7:07:38 PM3/10/12
to orient-...@googlegroups.com
Hi,

it does not seem to do anything either.

However, if I check the sockets after I see:

TCP    [::1]:2480             [::1]:57720            TIME_WAIT
TCP    [::1]:2480             [::1]:57726            TIME_WAIT
TCP    [::1]:2480             [::1]:57732            TIME_WAIT
TCP    [::1]:2480             [::1]:57734            TIME_WAIT

Strange as does not look a big issue.

Adolfo

Luca Garulli

unread,
Mar 11, 2012, 8:36:59 AM3/11/12
to orient-...@googlegroups.com

Double check your firewall settings.

Sent from a touch phone: sorry for this fruit of crappy keyboard..

Il giorno 11/mar/2012 01:07, "Adolfo Rodriguez" <pelly...@yahoo.es> ha scritto:
Hi,

Adolfo Rodriguez

unread,
Mar 12, 2012, 8:12:56 PM3/12/12
to orient-...@googlegroups.com
No, not a firewall issue either.

When I invoke http://127.0.0.1:2480/studio, database logs 

2012-03-13 12:59:03:544 WARN [ONetworkProtocolHttpDb] ->0:0:0:0:0:0:0:1: Command not found: GET.studio

so server gets request through 2480. 

I also turned off firewall but same result, blank page.

No idea, if I find it out, I will include in this thread.

Adolfo

Luca Garulli

unread,
Mar 13, 2012, 7:56:54 AM3/13/12
to orient-...@googlegroups.com
Hi Adolfo,
when you start it from Eclipse pay attention to define the orientdb.www.path variable pointing to the directory where you've the web apps (like studio).

Look at server.sh/.bat for more information about all the parameters.

This is an example of configuration I use in Eclipse. In JVM arguments:

-server -Dorientdb.config.file=config/orientdb-server-config.xml -Dorientdb.www.path=src/site -DORIENTDB_HOME=C:/work/dev/orientechnologies/orientdb/releases/1.0rc9-SNAPSHOT -Djava.util.logging.config.file=config/orientdb-server-log.properties

Lvc@

Adolfo Rodriguez

unread,
Mar 13, 2012, 11:56:54 AM3/13/12
to orient-...@googlegroups.com
Yes, thank you Luca,  By adding the following argument made the trick:

-Dorientdb.www.path=C:/Users/Owner/workspace/OrientDB/server/src/site

It would be helpful some warning on the startup logging, because OrientDB is listening HTTP traffic, as it says, but is unable to reply to it if this is not configured.

Thanks, enjoying Studio from now on,

Adolfo

Luca Garulli

unread,
Mar 13, 2012, 1:19:52 PM3/13/12
to orient-...@googlegroups.com
Hi Adolfo,
good idea: it's in SVN r4961.

Lvc@

Adolfo Rodriguez

unread,
Mar 13, 2012, 1:39:56 PM3/13/12
to orient-...@googlegroups.com
Tested. If a do not define the variable above, on invoking Studio now it says:

2012-03-13 06:38:06:972 WARN [OServerCommandGetStaticContent] orientdb.www.path variable points to 'src/site' but it doesn't exists
2012-03-13 06:38:22:787 WARN [OServerCommandGetStaticContent] orientdb.www.path variable points to 'src/site' but it isn't a directory

which I think is informative. Thanks Luca.

Adolfo.

William Mauck

unread,
Oct 1, 2014, 3:05:23 PM10/1/14
to orient-...@googlegroups.com
I'm very nascent to Orientdb (& coding in general) and I'm having troubles opening Studio on my MacbookPro (Firewall is off).

Steps:
MacBookPro
1. download & un-tar
2. move to home directory
3. start ./server.sh, all good!
4. open Chrom & enter localhost:2480, Page is not available (tried with Safari:"can't find server", & firefox also)
5. open ./console.sh
6. $connect remote:localhost root #####, all good!
    $connect remote:localhost/GreatfulDeadConcerts, all good!

The kicker is that I did this exact same thing on my iMac at work and it works fine. I've rm orientdb and re-installed it on my Macbook, but Studio sill won't work.  Both machines are OS10.8.5 and I can't figure out what is set up differently that would cause this error.

Thanks for your help.

Bill

Luca Garulli

unread,
Oct 1, 2014, 5:08:54 PM10/1/14
to orient-database
Hi Bill,
Can you report here the console log of the server once started?

Lvc@



--

---
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 orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark H.

unread,
Nov 6, 2014, 9:57:34 PM11/6/14
to orient-...@googlegroups.com
Hi, I have a pretty dumb question about local/embedded vs. remote:

If I want to build a big data application with multi-node OrientDB servers (with sharding,etc), then "remote" is the only option, correct?
In other words, is it possible to user local/embedded connection option for distributed OrientDB?  I'm guessing not.
I'm asking this because I read in some documentation that local/embed mode is preferred over remote for performance improvement.

Thanks.
Reply all
Reply to author
Forward
0 new messages