Login to New Database in OrientDB Studio Does Not Accept Credentials
Steps to Reproduce
- Got a fresh download of the OrientDB 1.5.0. distribution.
- Unzip it and run the server.bat.
- Open the orientdb-server-config.xml and change the root password to root.
- Stop the server, and start it back again.
- Open OrientDB Studio (http://localhost:2480)
- Log in to the tinkerpop database using admin/admin credentials.
- Click on the OrientDB logo to go to the main page.
- Click create database link.
- Fill in the form and click the "Create" button.
- Fill the credentials form with the password for root/root
- Click the back button to go the main page again.
- Try to login to the new database using any credentials: admin/admin or root/root.
At this point OrientDB Studio continues to ask for the credentials over and over again. No matter which credentials are provided none work.
- So open an OrientDB command-line console.
- Do a
connect remote:localhost/my-new-database admin admin
This works in the command line console, but not in the OrientDB Studio.
The server console shows the following:
2013-08-22 16:20:31:344 WARN Session OS13772099996228461821454517257232 is trying to access to the database 'sample', but has been authenticated against the database 'tinkerpop' [OServerCommandGetConnect]
Workaround
Close your browser entirely (not just the tab) and open it again and it will work.
System Information
- OrientDB Version.......: 1.5.0
- Tinkerpop Blueprints.......: 2.4.0
- Operating System......: Windows 7 Enterprise
- Installed RAM............: 8 GB
- Processor.................: Intel Core i5/2.6Ghz
- System Type.............: 64/bit
- Java Version..............: JDK-1.7.0_25-b17/64-bit
I just discover that this problem can be easily reproduce by just loggin into one database, then clicking on the OrientDB logo in the upper left and then trying to login to another database.
OMG thank you! I was going nuts. There needs to be a log out button or something.
In fact there is a "disconnect" button, but it is not available in the main login page. So, you cannot log out once there
The HTTP REST "disconnect" command wants a database where to disconnect, like:
http://localhost:2480/disconnect/tinkerpop
So if you click on the OrientDB logo or you just go to an external web site and come back there is no way to remember what database you were logged in. So anybody has a smart solution to this? Otherwise I can close it.
Why can't the system keep track of the database I am currently logged in and allow me to disconnect no matter if I move to a different page in the application or even if I go away and come back?
Without knowing the details of the implementation this sounds like simple session management. And from the user standpoint this problem is pretty misleading and frustrating (as you can infer from the comment of other user above having the same problem).
It would surprise me a lot that this would get closed without actually proposing a solution.
When the server recognizes the same session is trying to be reused for another database, invalidate the session, so further login works.
I also have this issue. Resolved using a Chrome incognito window. (Will not maintain the session data.)