orientechnologies / orientechnologies/orientdb
nov. 16, 2020 6:43:54 DA TARDE com.orientechnologies.common.log.OLogManager log INFO: Detected limit of amount of simultaneously open files is 1048576, limit of open files for disk cache will be set to 523776 Exception in thread "main" com.orientechnologies.orient.core.exception.ODatabaseException: Cannot open database 'demodb'
@lvca is already working on this.
Since Dec 21, 2020.
- Dominant language
- Java
- Stars
- 5k
- Forks
- 868
- Avg merge
- 15h 6m
- Merged PRs (30d)
- 18
Description
OrientDB Version: <3.1.4>
Java Version: <Java 14 openjdk-amd64>
OS: <ubuntu 20.04>
Expected behavior
Actual behavior
Hello,
(I am new at this)
I have this error, on Eclipse, with openjdk:
nov. 16, 2020 6:08:24 DA TARDE com.orientechnologies.common.log.OLogManager log
INFO: Detected limit of amount of simultaneously open files is 1048576, limit of open files for disk cache will be set to 523776
Exception in thread "main" com.orientechnologies.orient.core.exception.ODatabaseException: Cannot open database 'rui'
at com.orientechnologies.orient.core.db.OrientDBRemote.open(OrientDBRemote.java:113)
at com.orientechnologies.orient.core.db.OrientDB.open(OrientDB.java:224)
at com.orientechnologies.orient.core.db.OrientDB.open(OrientDB.java:210)
at root.rui.LigaOrientDB.main(LigaOrientDB.java:13)
Caused by: com.orientechnologies.orient.core.exception.OStorageException: Cannot create a connection to remote server address(es): [ruin:2480]
DB name="rui"
at com.orientechnologies.orient.client.remote.OStorageRemote.openRemoteDatabase(OStorageRemote.java:1906)
at com.orientechnologies.orient.client.remote.OStorageRemote.openRemoteDatabase(OStorageRemote.java:1750)
at com.orientechnologies.orient.client.remote.OStorageRemote.open(OStorageRemote.java:570)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentRemote.internalOpen(ODatabaseDocumentRemote.java:235)
at com.orientechnologies.orient.core.db.OrientDBRemote.open(OrientDBRemote.java:110)
... 3 more
With a simple class to learn OrinetDB:
`package root.rui;
import com.orientechnologies.orient.core.db.ODatabaseSession;
import com.orientechnologies.orient.core.db.OrientDB;
import com.orientechnologies.orient.core.db.OrientDBConfig;
public class LigaOrientDB {
public static void main(String[] args) {
// TODO Auto-generated method stub
//OrientDB o =new OrientDB("remote:192.168.1.64:2480", OrientDBConfig.defaultConfig() );
//OrientDB o =new OrientDB("remote:localhost:2480", OrientDBConfig.defaultConfig() );
OrientDB o =new OrientDB("remote:ruin:2480", OrientDBConfig.defaultConfig() );
ODatabaseSession s = o.open("rui", "admin","admin" );
if (s.getClass("Pessoa") == null ) { s.createVertexClass("Pessoa" ) ; }
if (s.getClass("AmigoDe" ) == null ) { s.createEdgeClass("AmigoDe") ; }
s.close();
o.close();
}
}
`
Can anyone tell me, what I am doing wrong?
Thank's in advance.
Steps to reproduce
nov. 16, 2020 6:43:54 DA TARDE com.orientechnologies.common.log.OLogManager log
INFO: Detected limit of amount of simultaneously open files is 1048576, limit of open files for disk cache will be set to 523776
Exception in thread "main" com.orientechnologies.orient.core.exception.ODatabaseException: Cannot open database 'demodb'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.