Giter Site home page Giter Site logo

orientdb-docker's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

orientdb-docker's Issues

Can not run with --net=host

Hi everyone, When I try run net=host. container run with no PORT

docker run --net=host -d --name orientdb --restart=always -p 2424:2424 -p 2480:2480 -v /home/docker_data/orientdb/databases:/orientdb/databases -e ORIENTDB_ROOT_PASSWORD=rootpwd orientdb:latest

=> PORTS is null

  • And when run with option
-v /home/docker_data/orientdb/config:/orientdb/config

PORTS is available, but site localhost:2480 => This site can’t be reached

  • And I can't exec to container:
docker exec -it orientdb /bin/bash

=> exec: "/bin/bash": stat /bin/bash: no such file or directory

  • And can not connect by plocal:
create database remote:172.17.0.2/db1 root rootpwd
disconnect
connect plocal:../v4 root rootpwd
=> Cannot open the storage 'v4' because it does not exist in path: ../v4
    DB name="v4"

OR

connect plocal:/home/docker_data/orientdb/databases/v4 root rootpwd
=> Cannot open the storage 'v4' because it does not exist in path: ../v4
    DB name="v4"

Browser asks for authentication when I mount localhost config and database folders

My docker image uses an ubuntu Xenial base image with java, I installed orientdb to /opt/orientdb in the container thus formed, after which I mounted a database and config folder from my localhost to the container. I mapped the 2480 port to the studio and then run localhost:2480 to access the studio. I can see the databases I had created before, but when I login using the credentials I had set before, which are present in the config file, I get a popup in the browser which asks me to authenticate. I don't know what credentials to add there, even the root login doesn't work. Below is the error on the console.

Exception `54384099` in storage `plocal:/opt/orientdb/databases/OperatingEvents`: 2.2.33 (build 77584cd6827f647cf4aa231cf27bd6f10bc04e2c, branch 2.2.x)
com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '/opt/orientdb/databases/OperatingEvents' with mode=rw
	DB name="OperatingEvents"
	at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:323)
	at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:259)
	at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:988)
	at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:958)
	at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:945)
	at com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAuthenticatedDbAbstract.authenticate(OServerCommandAuthenticatedDbAbstract.java:163)
	at com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAuthenticatedDbAbstract.beforeExecute(OServerCommandAuthenticatedDbAbstract.java:123)
	at com.orientechnologies.orient.server.network.protocol.http.command.get.OServerCommandGetConnect.beforeExecute(OServerCommandGetConnect.java:50)
	at com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.service(ONetworkProtocolHttpAbstract.java:170)
	at com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.execute(ONetworkProtocolHttpAbstract.java:629)
	at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:82)

Unable to restore backups from console inside container

Hello,

I'm running orient inside a docker container. I enabled automatic backups and I want to try and restore a backup.

The problem is when I'm trying to restore the backup the file is not found: ./bin/backup/20171109084000.zip (No such file or directory)

When I connect to the console and I enter pwd I get /orientdb. So when I connect to the docker container through a shell (sudo docker exec -i -t <container id> /bin/sh) and I navigate to the /orientdb/bin/backup folder, the file is there. I tried many other file locations but none seems to work.

Is this an issue with orient in docker or orient itself?

Official Kubernetes Image?

I'm having trouble replicating the Kubernetes image in this repo, I assume it's something with the hazelcast jar.

Is there any chance of publishing an official k8s image?

Unable to find StatefulSet yaml for kubernetes

Hi, first of all thank you for this repo.

I was able to correctly build docker image orientdb-k8 and push into my private repository, but I'm unable to find file orientdb-stateful.yaml to create the "test-cluster" deployment.

Can you please help me?

Thank you in advance

OConfigurationException: HTTP listener not registered while installing Static Content command

This is the output I get when I run the 2.1.5 image:

2015-11-03 00:11:07:364 INFO  OrientDB auto-config DISKCACHE=5,110MB (heap=455MB os=7,613MB disk=99,920MB) [orientechnologies]
2015-11-03 00:11:07:463 INFO  Loading configuration from: /orientdb/config/orientdb-server-config.xml... [OServerConfigurationLoaderXml]
2015-11-03 00:11:07:823 INFO  OrientDB Server v2.1.5 (build 2.1.x@r; 2015-10-29 16:54:25+0000) is starting up... [OServer]
2015-11-03 00:11:07:856 INFO  Databases directory: /orientdb/databases [OServer]
2015-11-03 00:11:07:892 INFO  Listening binary connections on 127.0.0.1:2424 (protocol v.32, socket=default) [OServerNetworkListener]
2015-11-03 00:11:07:896 INFO  Installing dynamic plugin 'studio-2.1.zip'... [OServerPluginManager]Error on installing dynamic plugin 'studio'
com.orientechnologies.orient.core.exception.OConfigurationException: HTTP listener not registered while installing Static Content command
     at com.orientechnologies.orient.server.plugin.OServerPluginManager.registerStaticDirectory(OServerPluginManager.java:215)
     at com.orientechnologies.orient.server.plugin.OServerPluginManager.installDynamicPlugin(OServerPluginManager.java:366)
     at com.orientechnologies.orient.server.plugin.OServerPluginManager.updatePlugin(OServerPluginManager.java:202)
     at com.orientechnologies.orient.server.plugin.OServerPluginManager.updatePlugins(OServerPluginManager.java:292)
     at com.orientechnologies.orient.server.plugin.OServerPluginManager.startup(OServerPluginManager.java:93)
     at com.orientechnologies.orient.server.OServer.registerPlugins(OServer.java:939)
     at com.orientechnologies.orient.server.OServer.activate(OServer.java:346)
     at com.orientechnologies.orient.server.OServerMain.main(OServerMain.java:41)

I'm just trying to use OrientDB for the first time, so I have no idea what's wrong.

Error in launching gremlin.sh with orientdb:3.1.5-tp3

When I try to launch gremlin.sh by using this command:

docker exec -it orientdb-3.5.1-tp3 /orientdb/bin/gremlin.sh

I get this error:

     \,,,/
     (o o)

-----oOOo-(3)-oOOo-----
Exception in thread "main" java.lang.NullPointerException: Cannot invoke method activate() on null object
at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:91)
at org.codehaus.groovy.vmplugin.v7.IndyGuardsFiltersAndSignatures.invokeGroovyObjectInvoker(IndyGuardsFiltersAndSignatures.java:163)
at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:234)
at org.apache.tinkerpop.gremlin.console.Console$_closure18.doCall(Console.groovy:147)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:101)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:263)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
at groovy.lang.Closure.call(Closure.java:405)
at groovy.lang.Closure.call(Closure.java:421)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2330)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2315)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2356)
at org.codehaus.groovy.runtime.dgm$186.doMethodInvoke(Unknown Source)
at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:234)
at org.apache.tinkerpop.gremlin.console.Console.(Console.groovy:145)
at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:234)
at org.apache.tinkerpop.gremlin.console.Console.main(Console.groovy:502)

Combine multi-arch docker files

Hi,

Want to check if the dockerfiles in this repo can be combined into a single Dockerfile. Right now i see that ppc64le/ is a separate folder

I ran the Dockerfile under x86_64/alpine as-is on a ppc64le machine, it builds and runs correctly (should be due to the base image alpine being made multi-arch in official-images)

Doing so can help making orientdb multi-arch under official-images (this PR can be revived: docker-library/official-images#3480)

Permission denied error for orientdb non root image on AKS volume mount disk

OrientDB Version: 3.0.29
Issue type: Non-root docker image for OrientDB

Description:
I am trying to create a OrientDB non root image. Following is my docker file.

FROM orientdb:3.0.29
#Create a group and user
RUN addgroup --system inteliuser --gid 1000 && adduser --system inteliuser --ingroup inteliuser --uid 1000
#Change permissions 
RUN chmod -R ugo+rwx /orientdb /usr/local/openjdk-8/bin 
#Tell docker that all future commands should run as the respected user
USER inteliuser
CMD [ "server.sh" ]

This works fine in local docker but when I try to run this on AKS cluster with volume mount on PVC managed disk, volume gives permission deny error for creating OSystem database.
I tried to run this without volume mount and it worked correctly and was able to create databases. Not sure why it is giving error to volume mount.
I have also tried by placing command arguments to the kubernetes deployment template. So that I can get time to check permissions defined. Following output I got,

inteliuser@orientdbservice1-57bb96d69f-xchnf:/orientdb$ ls -l
total 132
drwxr-xr-x  2 root       root        4096 Jun  7 08:53 backup     
drwxr-xr-x 11 root       root        4096 Jun  4 09:17 backups    
drwxrwxrwx  1 root       root        4096 Mar  4  2020 bin        
drwxrwxrwx  3        501 staff       4096 Jun  7 08:53 config     
drwxr-xr-x  2 root       root        4096 Jun  4 09:06 databases  
-r--r--r--  1        501 staff      75664 Mar  3  2020 history.txt
drwxrwxrwx  1 root       root        4096 Mar  4  2020 lib        
-r--r--r--  1        501 staff      11357 Dec  3  2019 license.txt
drwxr-xr-x  2        501 staff       4096 Mar  3  2020 log        
drwxrwxrwx  1        501 staff       4096 Mar  4  2020 plugins    
-r--r--r--  1        501 staff       3209 Dec  3  2019 readme.txt 
drwxrwxrwx  1        501 staff       4096 Dec  3  2019 www 

I am not able to create a directory or a file in volume mounted folders. Whereas I am able to create files or directories in /orientdb dir.

Note: This volume mount works with normal root image.

docker-compose orientdb3.0.5

I am currently trying to setup OrientDB 3.0.5 in a distributed mode using docker-compose.

After adding my first server(which starts up perfectly all right).
I am not able to use the configured ORIENTDB_ROOT_PASSWORD.

My current docker-compose.yml

version: '3'
services:
  orientdb3:
    image: orientdb:3.0.5
    networks:
    - default
    environment:
      ORIENTDB_ROOT_PASSWORD: "randomrootpassword123"
      ORIENTDB_NODE_NAME: "odb1"
      ORIENTDB_OPTS_MEMORY: "-Xms4G -Xmx4G"
    ports:
      - 2480:2480
      - 2424:2424
    logging:
      driver: json-file
      options:``
        max-size: "200k"
        max-file: "10"
    restart: on-failure

Starting and connecting will work fine, but the randomrootpassword123 I entered is not available, which renders me unable to login.

Any help would be appreciated and if more info is needed feel free to ask.

Docker Image Size

The base image is java:Alpine which is pretty large unfortunately. Alpine itself is very small, but the open-jdk version is cumbersome because it is a full JDK. In the case of OrientDB, only a JRE is truly needed. Currently, the image size is about 650MB. The purpose of this issue is to consider another Docker using Alpine and OpenJDK but slimmed down to a more appropriate size.

website: download-page has wrong docker run code (typo)

There is a tiny typo on this webpage: http://orientdb.com/download/
if you copy the docker-run code, it shows two different kinds of dashes for --name, like so:
docker run -d —-name orientdb -p 2424:2424 -p 2480:2480 -e ORIENTDB_ROOT_PASSWORD=root orientdb:latest
I'm using chrome with Windows 10. Using the same dash as with the other parameters solves it. Unfortunately it's at a point where beginners might stumble over that

install plugins without internet connection

Hi there,

i am trying to spin up a OrientDB container in an Openshift cluster. My company blocks all internal systems from internet access, that's why i am currently facing the issue that plugins cannot be installed during the container creation.

That is a typical error i am running into.

2018-02-16 12:57:42:520 INFO  Installing dynamic plugin 'orientdb-studio-3.0.0RC1.zip'...Error on installing dynamic plugin 'studio'
--
com.orientechnologies.orient.core.exception.OConfigurationException: HTTP listener not registered while installing Static Content command

once the container was able to start, it is already stopping itself. Not sure if that is related to the missing studio plugin.

Caused by: com.orientechnologies.orient.core.exception.OConfigurationException: HTTP listener not found
--
at com.orientechnologies.teleporter.main.OTeleporter.startup(OTeleporter.java:494)
... 12 more
  
2018-02-16 12:57:42:529 WARNI onAfterDynamicPlugins() Configuration document is empty
2018-02-16 12:57:42:529 INFO  OrientDB Studio available at http://localhost:2480/studio/index.html
2018-02-16 12:57:42:530 INFO  OrientDB Server is active v3.0.0RC1 (build c5d4dee2d069d270f25a585e976a7fc3b21260be, branch develop).
2018-02-16 12:57:59:163 WARNI Received signal: SIGTERM
2018-02-16 12:57:59:165 INFO  OrientDB Server is shutting down...

is there a way to install plugins offline?

[HELP Needed] Deploying orientdb on OpenShift

I tried deploying OrientDB from the official docker file, managed to solve the permission issues and now I ran into these 2 errors:

2021-09-29 13:37:06:754 INFO  Installing dynamic plugin 'orientdb-studio-3.2.2.zip'... [OServerPluginManager]Error on installing dynamic plugin 'studio'
com.orientechnologies.orient.core.exception.OConfigurationException: HTTP listener not registered while installing Static Content command
2021-09-29 13:37:06:662 INFO  Installing dynamic plugin 'orientdb-etl-3.2.2.jar'... [OServerPluginManager]Error on installing dynamic plugin 'etl'
java.lang.reflect.InvocationTargetException

Can anyone help solve these issues?
I also tried to deploy it from this git repository, but i ran into different errors during the build phase.
The last thing I tried was deploying a pod based on the steps described here: https://catalog.redhat.com/software/containers/orientdb/orientdb-community/59539c48d65ec866552d2ead?container-tabs=gti&gti-tabs=registry-tokens

I deployed the pod, but I don't know how to access the OrientDB being run by the pod.
Any help is much appreciated.

Is there anyway I can expose the gremlin console ?

This question might come from my lack of knowledge, but the install is great, it has gremlin ready to play with it on request, my understanding fails when I need to expose gremlin over an open port.

I am not sure if I can achieve that with the current image or if I need to install Rexster alongside to allow my app to ping gremlin requests to it.

ERR_CONNECTION_RESET when connect to http://localhost:2480

I runned OrientDB container:

docker run -d --name orientdb-dev -p 2424:2424 -p 2480:2480 -v ~/dv/orientdb/config:/orientdb/config -v ~/dv/orientdb/databases:/orientdb/databases -v ~/dv/orientdb/backup:/orientdb/backup -e ORIENTDB_ROOT_PASSWORD=mypassword orientdb:2.2.0

And when I open http://localhost:2480 in Google Chrome, cann't connect due ERR_CONNECTION_RESET

docker ps -a
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                   PORTS                                            NAMES
d170d05a4711        orientdb:2.2.0      "server.sh"              31 minutes ago      Up 31 minutes            0.0.0.0:2424->2424/tcp, 0.0.0.0:2480->2480/tcp   orientdb-dev

I don't know if I have to edit orientdb-server-config.xml to allow a direct connection, if that the case please add to documentation

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<orient-server>
    <network>
        <protocols>
            <protocol implementation="com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary" name="binary"/>
        </protocols>
        <listeners>
            <listener protocol="binary" socket="default" port-range="2424-2430" ip-address="127.0.0.1"/>
        </listeners>
    </network>
    <storages/>
    <users>
        <user resources="*" password="mypassword_encrypted" name="root"/>
        <user resources="connect,server.listDatabases,server.dblist" password="guestpassword_encrypted" name="guest"/>
    </users>
    <security>
        <users/>
        <resources/>
    </security>
    <isAfterFirstTime>true</isAfterFirstTime>
</orient-server>

Error on installing dynamic plugin 'studio'

Hello!

I have the error with installing dynamic plugin studio when I try to attach persistent volumes.

# docker version
Client:
 Version:      1.11.1
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   5604cbe
 Built:        Tue Apr 26 23:44:17 2016
 OS/Arch:      darwin/amd64

Server:
 Version:      1.11.1
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   5604cbe
 Built:        Wed Apr 27 00:34:20 2016
 OS/Arch:      linux/amd64
# docker-composer version
docker-compose version 1.7.0, build 0d7bf73
docker-py version: 1.8.0
CPython version: 2.7.9
OpenSSL version: OpenSSL 1.0.1j 15 Oct 2014
# docker-compose.yml
orientdb:
    ports:
        - 2424:2424
        - 2480:2480
    volumes:
        - /var/orientdb/backup:/orientdb/backup
        - /var/orientdb/config:/orientdb/config
        - /var/orientdb/databases:/orientdb/databases
    extends:
        file: common.yml
        service: orientdb
docker-compose up -d
docker-compose logs orientdb

Attaching to foo_orientdb
foo_orientdb | 
foo_orientdb | OrientDB console v.2.2.0 (build develop@r79d281140b01c0bc3b566a46a64f1573cb359783; 2016-05-18 14:14:32+0000) www.orientdb.com
foo_orientdb | Type 'help' to display all the supported commands.
foo_orientdb | Installing extensions for GREMLIN language v.2.6.0
foo_orientdb | 
foo_orientdb | orientdb> create database plocal:/orientdb/databases/foo root bar plocal graph
foo_orientdb | 
foo_orientdb | Creating database [plocal:/orientdb/databases/foo] using the storage type [plocal]...
foo_orientdb | Database created successfully.
foo_orientdb | 
foo_orientdb | Current database is: plocal:/orientdb/databases/foo
foo_orientdb |            .                                          
foo_orientdb |           .`        `                                 
foo_orientdb |           ,      `:.                                  
foo_orientdb |          `,`    ,:`                                   
foo_orientdb |          .,.   :,,                                    
foo_orientdb |          .,,  ,,,                                     
foo_orientdb |     .    .,.:::::  ````                                 :::::::::     :::::::::   
foo_orientdb |     ,`   .::,,,,::.,,,,,,`;;                      .:    ::::::::::    :::    :::  
foo_orientdb |     `,.  ::,,,,,,,:.,,.`  `                       .:    :::      :::  :::     ::: 
foo_orientdb |      ,,:,:,,,,,,,,::.   `        `         ``     .:    :::      :::  :::     ::: 
foo_orientdb |       ,,:.,,,,,,,,,: `::, ,,   ::,::`   : :,::`  ::::   :::      :::  :::    :::  
foo_orientdb |        ,:,,,,,,,,,,::,:   ,,  :.    :   ::    :   .:    :::      :::  :::::::     
foo_orientdb |         :,,,,,,,,,,:,::   ,,  :      :  :     :   .:    :::      :::  :::::::::   
foo_orientdb |   `     :,,,,,,,,,,:,::,  ,, .::::::::  :     :   .:    :::      :::  :::     ::: 
foo_orientdb |   `,...,,:,,,,,,,,,: .:,. ,, ,,         :     :   .:    :::      :::  :::     ::: 
foo_orientdb |     .,,,,::,,,,,,,:  `: , ,,  :     `   :     :   .:    :::      :::  :::     ::: 
foo_orientdb |       ...,::,,,,::.. `:  .,,  :,    :   :     :   .:    :::::::::::   :::     ::: 
foo_orientdb |            ,::::,,,. `:   ,,   :::::    :     :   .:    :::::::::     ::::::::::  
foo_orientdb |            ,,:` `,,.                                  
foo_orientdb |           ,,,    .,`                                  
foo_orientdb |          ,,.     `,                                          GRAPH DATABASE  
foo_orientdb |        ``        `.                                                          
foo_orientdb |                  ``                                          orientdb.com
foo_orientdb |                  `                                    
foo_orientdb | 
foo_orientdb | 2016-05-23 14:07:53:691 WARNI Not enough physical memory available for DISKCACHE: 2,002MB (heap=494MB direct=524,288MB). Set lower Maximum Heap (-Xmx setting on JVM) and restart OrientDB. Now running with DISKCACHE=256MB [orientechnologies]
foo_orientdb | 2016-05-23 14:07:53:696 INFO  OrientDB config DISKCACHE=256MB (heap=494MB direct=524,288MB os=2,002MB) [orientechnologies]
foo_orientdb | 2016-05-23 14:07:53:956 INFO  Loading configuration from: /orientdb/config/orientdb-server-config.xml... [OServerConfigurationLoaderXml]
foo_orientdb | 2016-05-23 14:07:54:525 SEVER Server configuration file not found: /orientdb/config/orientdb-server-config.xml [OServerConfigurationLoaderXml]
foo_orientdb | 2016-05-23 14:07:54:529 INFO  OrientDB Server v2.2.0 (build develop@r79d281140b01c0bc3b566a46a64f1573cb359783; 2016-05-18 14:14:32+0000) is starting up... [OServer]
foo_orientdb | 2016-05-23 14:07:54:542 INFO  Databases directory: /orientdb/databases [OServer]
foo_orientdb | 2016-05-23 14:07:54:793 INFO  {db=OSystem} Creating the system database 'OSystem' for current server [OSystemDatabase]
foo_orientdb | 2016-05-23 14:07:55:195 INFO  {db=OSystem} Saving Command Cache config for db: OSystem [OCommandCacheSoftRefs]
foo_orientdb | 2016-05-23 14:07:56:675 SEVER ODefaultServerSecurity.loadConfig() Could not access the security JSON file: /orientdb/config/security.json [ODefaultServerSecurity]
foo_orientdb | 2016-05-23 14:07:56:819 INFO  Listening binary connections on 127.0.0.1:2424 (protocol v.36, socket=default) [OServerNetworkListener]
foo_orientdb | 2016-05-23 14:07:56:825 WARNI Found ORIENTDB_ROOT_PASSWORD variable, using this value as root's password [OServer]
foo_orientdb | 2016-05-23 14:07:57:920 INFO  Installing dynamic plugin 'studio-2.2.zip'... [OServerPluginManager]Error on installing dynamic plugin 'studio'
foo_orientdb | com.orientechnologies.orient.core.exception.OConfigurationException: HTTP listener not registered while installing Static Content command
foo_orientdb |  at com.orientechnologies.orient.server.plugin.OServerPluginManager.registerStaticDirectory(OServerPluginManager.java:215)
foo_orientdb |  at com.orientechnologies.orient.server.plugin.OServerPluginManager.installDynamicPlugin(OServerPluginManager.java:364)
foo_orientdb |  at com.orientechnologies.orient.server.plugin.OServerPluginManager.updatePlugin(OServerPluginManager.java:202)
foo_orientdb |  at com.orientechnologies.orient.server.plugin.OServerPluginManager.updatePlugins(OServerPluginManager.java:290)
foo_orientdb |  at com.orientechnologies.orient.server.plugin.OServerPluginManager.startup(OServerPluginManager.java:93)
foo_orientdb |  at com.orientechnologies.orient.server.OServer.registerPlugins(OServer.java:1135)
foo_orientdb |  at com.orientechnologies.orient.server.OServer.activate(OServer.java:390)
foo_orientdb |  at com.orientechnologies.orient.server.OServerMain.main(OServerMain.java:41)
foo_orientdb | 
foo_orientdb | 2016-05-23 14:07:57:932 SEVER ODefaultServerSecurity.onAfterActivate() Configuration document is empty [ODefaultServerSecurity]

Any ideas? Thanks!

Error docker start

Hi.

When run command
docker start orientdb
only have
orientdb
and after exit.
Next, i used
docker start -i orientdb
to see de problem and terminal show

removing old pid file /orientdb/bin/orient.pid
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 1431830528 bytes for committing reserved memory.
# Can not save log file, dump to screen..
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 1431830528 bytes for committing reserved memory.
# Possible reasons:
#   The system is out of physical RAM or swap space
#   In 32 bit mode, the process size limit was hit
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Use 64 bit Java on a 64 bit OS
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)
#   Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
#  Out of Memory Error (os_linux.cpp:2662), pid=1, tid=0x00007f68b041eae8
#
# JRE version:  (8.0_171-b11) (build )
# Java VM: OpenJDK 64-Bit Server VM (25.171-b11 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 3.8.0
# Distribution: Custom build (Wed Jun 13 18:28:11 UTC 2018)
# Core dump written. Default location: /orientdb/bin/core or core.1
#

obviously I have to increase the memory of java or something similar but ... any command they have or an easy way to solve?

thanks

./bin/gremlin.sh requires bash, but only sh is available in container

$ docker run --rm -d --name orientdb -p 2424:2424 -p 2480:2480 -e ORIENTDB_ROOT_PASSWORD=test -e ORIENTDB_NODE_NAME=odb1 orientdb:3.0.3-tp3 /orientdb/bin/server.sh -Ddistributed=true
{sha}

$ docker exec -it {sha} /bin/orientdb/gremlin.sh
OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "no such file or directory": unknown

I tried to rename the shebang in this file to /bin/sh but the script itself doesn't like that, failing with an error:

$ docker exec -it {sha} /orientdb/bin/gremlin.sh
/orientdb/bin/gremlin.sh: line 45: syntax error: unexpected redirection

I ended up just installing bash --

$ docker exec -it {sha} apk add --no-cache bash gawk sed grep bc coreutils

With that done, it works as expected:

$ docker exec -it {sha} /orientdb/bin/gremlin.sh

         \,,,/
         (o o)
-----oOOo-(3)-oOOo-----
gremlin> 

How can I add an SSL certificate to OrientDB Rest API?

I am using an EC2 instance of Amazon AMI, I am not sure what is the correct way to add an SSL certificate to the orientdb-docker container to use its REST API with HTTPS.

I reviewed this article:

OrientDB SSL

But I do not see what is the correct way to implement it with docker.

someone could give me an idea of how is the SSL configuration in orientdb-docker.

Thank you

Getting some errors

Hi,

When I run the ODB docker container (latest) in a docker-compose.yml file with docker-compose up, I get these messages returned.

orientdb    | 2016-05-17 06:35:18:660 WARNI Not enough physical memory available for DISKCACHE: 2,002MB (heap=494MB). Set lower Maximum Heap (-Xmx setting on JVM) and restart OrientDB. Now running with DISKCACHE=256MB [orientechnologies]
orientdb    | 2016-05-17 06:35:18:668 INFO  OrientDB config DISKCACHE=-541MB (heap=494MB os=2,002MB disk=17,247MB) [orientechnologies]
orientdb    | 2016-05-17 06:35:18:785 INFO  Loading configuration from: /orientdb/config/orientdb-server-config.xml... [OServerConfigurationLoaderXml]
orientdb    | 2016-05-17 06:35:19:070 INFO  OrientDB Server v2.1.16 (build 2.1.x@r13efec7610a3eceb539db5ebfb31dea2534aa819; 2016-04-19 10:56:07+0000) is starting up... [OServer]
orientdb    | 2016-05-17 06:35:19:074 INFO  Databases directory: /orientdb/databases [OServer]
orientdb    | 2016-05-17 06:35:19:106 INFO  Listening binary connections on 0.0.0.0:2424 (protocol v.32, socket=default) [OServerNetworkListener]
orientdb    | 2016-05-17 06:35:19:110 INFO  Listening http connections on 0.0.0.0:2480 (protocol v.10, socket=default) [OServerNetworkListener]
orientdb    | 2016-05-17 06:35:19:132 INFO  Installing dynamic plugin 'studio-2.1.zip'... [OServerPluginManager]
orientdb    | 2016-05-17 06:35:19:239 INFO  Installing GREMLIN language v.2.6.0 - graph.pool.max=50 [OGraphServerHandler]
orientdb    | 2016-05-17 06:35:19:240 INFO  [OVariableParser.resolveVariables] Error on resolving property: distributed [orientechnologies]
orientdb    | 2016-05-17 06:35:19:242 INFO  Installing Script interpreter. WARN: authenticated clients can execute any kind of code into the server by using the following allowed languages: [sql] [OServerSideScriptInterpreter]

And then docker-composer times out with:

ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).

If I set `COMPOSE_HTTP_TIMEOUT to a higher value it just sits with the messages given above, then times out later.

Is this normal procedure?

Scott

Permission Error with Orientdb on Openshift

I deployed an orientdb container onto openshift and am having an issue with opening the orient console. When I go into the bin folder within the orient container I run ./console.sh to start the orientdb console and I get this error:

bash-4.4$ ./console.sh Exception in thread "main" com.orientechnologies.common.exception.OSystemException: Cannot access to the input stream. Check permissions of running process at com.orientechnologies.common.console.TTYConsoleReader.(TTYConsoleReader.java:113) at com.orientechnologies.orient.console.OConsoleDatabaseApp.main(OConsoleDatabaseApp.java:168)

If anyone has had a similar issue to this or has any insight on how to resolve this issue any ideas would be appreciated.

Or if there needs to be more clarification on this question, please let me know.
Thanks

overriding configuration params in docker-compose.yml

Hello,
I see from the documentation that I can override configuration params upon startup using -D as shown below.

docker run -d --name orientdb -p 2424:2424 -p 2480:2480 \
    -v <config_path>:/orientdb/config \
    -v <databases_path>:/orientdb/databases \
    -v <backup_path>:/orientdb/backup \
    -e ORIENTDB_ROOT_PASSWORD=rootpwd \
    -e ORIENTDB_NODE_NAME=odb1 \
    orientdb /orientdb/bin/server.sh  -Ddistributed=true

Is it also possible to override configuration params like this in docker-compose.yml?
Can someone please help?

What a structure?

What a project structure?
Why is not using tagging/branching for versions?
How many folders are planned to be added?
Is not synced with docker hub...

Docker container should not run as root!

Currently the docker container for orientdb runs as root and that means that the user has to grant the container access to the entire filesystem and that is super dangerous. The image should be changed to reuqire a user named orientdb in the group docker to run properly. Then the instructions for install should be updated to say:

  * Create a database user: `sudo useradd -N -r orientdb -g docker -s /sbin/nologin`
  * Create directories: `sudo mkdir -p /var/orientdb/config /var/orientdb/databases /var/orientdb/backup`
  * Change directory ownership `sudo chown -R /var/orientdb`
  * Run OrientDB with docker: 
      docker run -d --name orientdb -p 2424:2424 -p 2480:2480 \
        -v config_path:/var/orientdb/config \
        -v databases_path:/var/orientdb/databases \
        -v backup_path:/var/orientdb/backup \
        -e ORIENTDB_ROOT_PASSWORD=root \
        -e ORIENTDB_NODE_NAME=odb1 \
        orientdb /orientdb/bin/server.sh  -Ddistributed=true

Better description when use a config volume

Please change the doc so that it is obvious what happen, when we start the container with a config volume.
Or add an option, that the default docker config will be stored there and not a basic config, if no config is found.

I am an orientdb noob and was really confused because the black box container didn't do anything.

Documentation: ORIENTDB_ROOT_PASSWORD

The 2.1.5 image on Docker Hub seems to require an ORIENTDB_ROOT_PASSWORD environment variable, so I imagine there ought to be a readme that mentions this.

empty response when upgrading from v2.2.3 to v2.2.4

I have upgraded the orientdb from v2.2.3 to v2.2.4 from our gitlab-ci-multi-runner, but I see a strange behaviour.

With v2.2.3 all the tests cases work properly, but with v2.2.4 I receive at the first request to orientdb of the tests an empty response => EOF but http status is 200 OK

The query is a simple select, something like this:

SELECT FROM class_name WHERE some_id = '1'

Some information about the CI:

  • as said, running a ci test in Gitlab with gitlab-ci-multi-runner (v1.2.0) using Docker
  • with orientdb-docker v2.2.3 works properly, with v2.2.4 fails
  • the ci runs on a Centos 7 env

Any idea?

oetl.sh can't find json config file

Hello.
I am trying to import data from json file with ETL in my docker container.
When running official command from Orentdb Docker :
docker run --rm -it -v /orientdb/config orientdb /orientdb/bin/oetl.sh importAccount.json

I am receiving this error :

OrientDB etl v.3.2.2 (build 6df1d1942b88896dabea123fe1b8b0c6975e025a, branch UNKNOWN) https://www.orientdb.com
2021-12-09 12:46:46:382 INFO Detected limit of amount of simultaneously open files is 1048576, limit of open files for disk cache will be set to 523776 [ONative]Exception in thread "main" com.orientechnologies.orient.core.exception.OConfigurationException: Error on loading config file: importAccount.json
at com.orientechnologies.orient.etl.OETLProcessorConfigurator.parseConfigAndParametersWithContext(OETLProcessorConfigurator.java:89)
at com.orientechnologies.orient.etl.OETLProcessorConfigurator.parseConfigAndParameters(OETLProcessorConfigurator.java:68)
at com.orientechnologies.orient.etl.OETLProcessor.main(OETLProcessor.java:121)
Caused by: java.io.FileNotFoundException: importAccount.json (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at com.orientechnologies.common.io.OIOUtils.readFileAsString(OIOUtils.java:133)
at com.orientechnologies.orient.etl.OETLProcessorConfigurator.parseConfigAndParametersWithContext(OETLProcessorConfigurator.java:79) ... 2 more

This is my container CLI, as you can see importAccount.json file is in bin folder.
OrientCLI

As I understand oetl.sh can't find json file specified because of this error:

(No such file or directory)

I tried moving this file writing full path but nothing helps.

Inside docker oetl.sh working fine until it needs to insert data from json file. (Orient is running so data can't be inserted)

404 link

docker-library/docs/orientdb => link inside Readme.md leads to 404 page.

orientdb crashes

I'm just starting to learn orientdb...

Started orientdb via the docker command per orient docs (but I removed -d arg to keep it in foreground):

$ docker run --name orientdb -p 2424:2424 -p 2480:2480 -e ORIENTDB_ROOT_PASSWORD=root orientdb:latest

When I download the GratefulDeadConcerts database, the JVM crashed with segmentation violation:

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f442da33bc5, pid=1, tid=0x00007f440cfc0ab0
#
# JRE version: OpenJDK Runtime Environment (8.0_111-b14) (build 1.8.0_111-internal-alpine-r0-b14)
# Java VM: OpenJDK 64-Bit Server VM (25.111-b14 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [ld-musl-x86_64.so.1+0x4fbc5]  memcpy+0x11
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /orientdb/bin/hs_err_pid1.log

I noticed during startup, it complained about memory:

WARNI Not enough physical memory available for DISKCACHE: 1,997MB (heap=491MB direct=524,288MB). Set lower Maximum Heap (-Xmx setting on JVM) and restart OrientDB. Now running with DISKCACHE=256MB [orientechnologies]

ARM64 support

OrientDB is working pretty well for arm64v8 architecture.

I would be happy to raise a PR if you allow me to do so.

Moreover, this doesn't even require changes in Dockerfile too.
The only thing which is required is to either add a new folder for arm64v8 or just expose contents of x86_64 outside to be used for both x86_64 & arm64v8.

I can provide Build & Run logs as well for confirmation.

Regards,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.