orientdb-studio icon indicating copy to clipboard operation
orientdb-studio copied to clipboard

Problem running Studio as embedded.

Open rogozinds opened this issue 10 years ago • 8 comments

When running orientdb server as embeded, get error when start studio. The error is the folowing 2015-05-06 16:45:11:815 WARNING ->127.0.0.1: Command not found: GET.api/listDatabases [ONetworkProtocolHttpDb] 2015-05-06 16:45:21:815 WARNING ->127.0.0.1: Command not found: GET.api/listDatabases [ONetworkProtocolHttpDb] And DB studio shows the message, that server goes offline.

The problem can be fixed if you got to the www/scriipts/scripts.js and change variable API (remove line with -, add line with +).

var API = (function () { var m = window.location.pathname.match(/(.*/)studio/index.html/); -return m && m[1] ? m[1] : '/api/'; +return m && m[1] ? m[1] : '/'; })();

I've created a google groups thread for it: https://groups.google.com/forum/#!topic/orient-database/v6QkpKHOFdg

I've created a dummy project which shows an issue. git clone https://github.com/rogozinds/orientDBstudio.git

Probably, this is not how the problem should be fixed, I've just provide you all the info I've got. The commit before last shows the issue, the last commit shows the fix. Sorry the project has classes files and www folder.

rogozinds avatar May 07 '15 07:05 rogozinds

HI @rogozinds is not really an issue, /api is needed for development using grunt. I forked your project an fixed. This works for me https://github.com/maggiolo00/orientDBstudio

on http://localhost:2480/studio/index.html#

wolf4ood avatar May 07 '15 08:05 wolf4ood

HI, maggiolo00, may be /api is needed for development using grunt, but if you just want to use studio as embedded in your application, it's not working. http://localhost:2480/studio/index.html# opens the page but you can' t create a new database or open an existing one. untitled

rogozinds avatar May 07 '15 09:05 rogozinds

Don't know is working for my the fork. How do you run it? Can you add

console.log(m)

after

var m = window.location.pathname.match(/(.*\/)studio\/index.html/);

and write here the logging

wolf4ood avatar May 07 '15 09:05 wolf4ood

Yes, I'll try it tomorrow, no time today sorry.

rogozinds avatar May 07 '15 11:05 rogozinds

Has this problem been fixed? I'm getting the following error from the server when I run the Studio.

2016-08-07 19:50:57:745 WARNI ->0:0:0:0:0:0:0:1: Command not found: GET.api/disconnect [ONetworkProtocolHttpDb]

I must also say that I'm not please with all the steps it took me to install the studio. I should not have to waste my time assembling the studio. It really should be part of the community zip file all ready to work. The studio was missing the components directory and then I had to go through the process of installing NodeJs and running npm to obtain the components. Please bundle these files with the studio in the community zip file.

cwaldron avatar Aug 07 '16 08:08 cwaldron

@cwaldron i'm not following you. Why did you install Studio from source. It is bundle with OrientDB distribution

wolf4ood avatar Aug 07 '16 08:08 wolf4ood

No it’s not. I downloaded the zip files and there are only a scant number of files in the www directory. According to the instruction the studio should be running from the plugin zip file but it’s not. The server is running the files from the www directory. I downloaded the source and placed the files in the www directory and it still didn’t work because the component directory is missing. So I followed the build instruction and by doing so was able to obtain the component directory.

Cheers,

Chris.

From: Enrico Risa [mailto:[email protected]] Sent: Sunday, August 7, 2016 8:19 PM To: orientechnologies/orientdb-studio [email protected] Cc: cwaldron [email protected]; Mention [email protected] Subject: Re: [orientechnologies/orientdb-studio] Problem running Studio as embedded. (#271)

@cwaldron https://github.com/cwaldron
i'm not following you. Why did you install Studio from source. It is bundle with OrientDB distribution

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/orientechnologies/orientdb-studio/issues/271#issuecomment-238070112 , or mute the thread https://github.com/notifications/unsubscribe-auth/ACtO_rvZfc152pHYxPM1yw17DzmLP2NMks5qdZTmgaJpZM4ESJnb . https://github.com/notifications/beacon/ACtO_kOtvyJ5VGvC2I0KPkVw30Oylie5ks5qdZTmgaJpZM4ESJnb.gif

cwaldron avatar Aug 08 '16 09:08 cwaldron

hi @cwaldron Studio it is placed under the plugins directory of OrientDB distribution. You can find a zip file named studio-2.2.zip

wolf4ood avatar Aug 08 '16 09:08 wolf4ood