skip to Main Content

I follow this installation guide : https://docs.janusgraph.org/getting-started/installation/

I run :

docker run -it -p 8182:8182 janusgraph/janusgraph

but when i try to connect with the gremlin console I have this exception :

gremlin-driver-initializer] INFO org.apache.tinkerpop.gremlin.driver.ConnectionPool - Signalled closing of connection pool on Host{address=localhost/127.0.0.1:8182, hostUri=ws://localhost:8182/gremlin} with core size of 2
18:32:42.556 [gremlin-driver-initializer] ERROR org.apache.tinkerpop.gremlin.driver.Client - Could not initialize client for Host{address=localhost/127.0.0.1:8182, hostUri=ws://localhost:8182/gremlin}
18:32:42.560 [main] ERROR org.apache.tinkerpop.gremlin.driver.Client -
java.net.ConnectException: Connection refused: no further information*

I try with docker desktop and realize than my container automatically stop after 26 seconds. I have read than docker container automatically stop when nothing run on it. When I inspect it there is the message :

/etc/opt/janusgraph/janusgraph-server.yaml will be used to start JanusGraph Server in foreground.

Could you help me to configure it ?

2

Answers


  1. Chosen as BEST ANSWER

    Thanks for your help, HadoopMarc, but it wasn't a issue of different console version, i try to call:

    docker inspect <container-id> 
    

    and I discover that :

    "State": {
        "Status": "exited",
        "Running": false,
        "Paused": false,
        "Restarting": false,
        "OOMKilled": true,
        "Dead": false,
        "Pid": 0,
        "ExitCode": 137,
        "Error": "",
        "StartedAt": "2022-11-22T08:18:16.4661912Z",
        "FinishedAt": "2022-11-22T08:19:21.7929991Z"
    },
    

    with "OOMKilled": true. I affect more RAM to my docker container ( swith from 1Go to 20 Go and my docker container successfully started ! :)

    But still with no logs .. :(


  2. When you start the container with janusgraph server like you did, it should proceed with log messages until:

    6028 [gremlin-server-boss-1] INFO  org.apache.tinkerpop.gremlin.server.GremlinServer  - Gremlin Server configured with worker thread pool of 1, gremlin pool of 8 and boss thread pool of 1.
    6028 [gremlin-server-boss-1] INFO  org.apache.tinkerpop.gremlin.server.GremlinServer  - Channel started at port 8182.
    

    It then keeps running in a waiting loop for clients to connect.

    When connecting from a local gremlin console with the same TinkerPop version as logged by the janusgraph container, connecting should proceed as follows:

    plugin activated: janusgraph.imports
    gremlin> :remote connect tinkerpop.server conf/remote.yaml
    ==>Configured localhost/127.0.0.1:8182
    gremlin> :remote console
    ==>All scripts will now be sent to Gremlin Server - [localhost/127.0.0.1:8182] - type ':remote console' to return to local mode
    gremlin> g.V()
    gremlin> g.addV()
    ==>v[4264]
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search