java - OrientDB to automatically create databases on startup -


i'm trying set distributed orientdb cluster (with docker) in such way automatically creates databases configuration file. in orientdb-server-config.xml file i've specified following storages:

... <storages>     <!-- our testing database -->     <storage name="testing" path="plocal:/var/orientdb/databases/testing"         username="admin" userpassword="admin"         loaded-at-startup="true" />     <!-- our development instance database -->     <storage name="dev" path="plocal:/var/orientdb/databases/dev"         username="admin" userpassword="alongpassword"         loaded-at-startup="true" />     <!-- our production instance database -->     <storage name="prod" path="plocal:/var/orientdb/databases/prod"         username="admin" userpassword="alongpassword"         loaded-at-startup="true" /> </storages> ... <properties>     ...     <entry name="server.database.path" value="/var/orientdb/databases" />     ... </properties> 

orientdb, upon startup (dserver.sh), gives following exception:

caused by: com.orientechnologies.orient.core.exception.ostorageexception: cannot open storage 'testing' because not exist in path: /var/orientdb/databases/testing     @ com.orientechnologies.orient.core.storage.impl.local.oabstractpaginatedstorage.open(oabstractpaginatedstorage.java:164)     ... 11 more 

i don't want have create these databases manually - orientdb support way of doing automatically me? want create database if doesn't exist yet, having script automatically command line isn't option.

my alternatives right create database manually, via console, or programmatically, via application - both of i'm trying avoid here variety of reasons.

from orientdb code, seems though should creating these databases me. perhaps bug, or missing here?

contributed patch orientdb fix this: https://github.com/orientechnologies/orientdb/pull/4400


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -