Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create database not working in console #9889

Closed
johny65 opened this issue Oct 27, 2022 · 2 comments
Closed

Create database not working in console #9889

johny65 opened this issue Oct 27, 2022 · 2 comments
Assignees
Labels
Milestone

Comments

@johny65
Copy link

johny65 commented Oct 27, 2022

OrientDB Version: 3.2.8

Java Version: openjdk 11.0.16 2022-07-19

OS: Ubuntu 22.04.1

Expected behavior

Use command create database from console without problems.

Actual behavior

Using the console (console.sh script), it is not possible to create a new database because it fails with error java.util.NoSuchElementException: No value present.

Steps to reproduce

Run console.sh:

OrientDB console v.3.2.8 (build f32d1127bf572e0a0367bea11ed5554f1f7e9fe0, branch UNKNOWN) https://www.orientdb.com
Type 'help' to display all the supported commands.
orientdb> create database remote:localhost/testdb root nimda;

Creating database [remote:localhost/testdb] using the storage type [PLOCAL]...
Error: java.util.NoSuchElementException: No value present

Using a previous version of console, it works fine (although server can be greater).

Error is introduced in version 3.2.8 of console, version 3.2.11 still has it.

@tglman tglman added this to the 3.2.x milestone Oct 27, 2022
@tglman tglman added the bug label Oct 27, 2022
@tglman tglman self-assigned this Oct 27, 2022
@tglman
Copy link
Member

tglman commented Nov 1, 2022

Hi,

Thanks for reporting this, I could reproduced it, it is some problem of compatibility we introduced recently, anyway you can work around using the new way to connect to a server and create/open databases:


OrientDB console v.3.2.12-SNAPSHOT (build b24727c752422c10b7ef367af2fe49d438e77fbe, branch develop) https://www.orientdb.com
Type 'help' to display all the supported commands.
orientdb> connect env remote:localhost root nimda;           

orientdb> create database testdb plocal users (admin identified by 'admin' role admin);

+----+-------+------+---------------+
|#   |created|name  |operation      |
+----+-------+------+---------------+
|0   |true   |testdb|create database|
+----+-------+------+---------------+
orientdb> open testdb admin admin;
OK
orientdb {db=testdb}> 

Will try to fix this anyway for backward compatibility.

@tglman
Copy link
Member

tglman commented Nov 10, 2022

Hi

the 3.2.12 is out with the fix for this case, closing, feel free to reopen if you still experience the problem.

Bye

@tglman tglman closed this as completed Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants