invana / invana-studio

Open source graph visualiser.
Apache License 2.0
174 stars 19 forks source link

invana-studio doesn't connect to invana-engine using docker compose #82

Closed reubensjohn closed 3 years ago

reubensjohn commented 3 years ago

This is my docker compose file

version: '3'

volumes: 
    janusgraph-default-data:

services:
    janusgraph:
        image: docker.io/janusgraph/janusgraph:latest
        container_name: janusgraph
        ports:
            - "8182:8182"
        # The mounted volume only makes sense if JanusGraph is being run with the BerekeleyDB storage.
        volumes:
            - "janusgraph-default-data:/var/lib/janusgraph"

    invanaui:
        image: invanalabs/invana-studio
        container_name: invana-studio
        ports:
            - "8888:8888"

    invanaengine:
        image: invanalabs/invana-engine
        container_name: invana-engine
        ports:
            - "8200:8200"
        environment:
            - GREMLIN_SERVER_URL=ws://janusgraph:8182/gremlin

When I try connecting to the invana-engine, I tried both 'http://localhost:8200/graphql' and 'http://invanaengine:8200/graphql'

Both didn't work. The url shows 'http://invana-studio.herokuapp.com/connect?error=Failed%20to%20connect&transporterStatus=999'

Am I doing anything wrong? My janus graph is working and I am able to execute Gremlin queries on it via my node.js app

Screen Shot 2021-04-12 at 11 17 46 PM
github-actions[bot] commented 3 years ago

Thank you for being awesome and taking part in our design, development and feedback loop. Cheers.

reubensjohn commented 3 years ago
Screen Shot 2021-04-12 at 11 19 04 PM
reubensjohn commented 3 years ago

when ran from the compose it shows this error in url http://localhost:8888/connect?error=Failed%20to%20connect&transporterStatus=999

reubensjohn commented 3 years ago

Sorry forgot to mention earlier, I don't see any errors in the terminal. The gremlin server startup seems okay as part of the 'docker compose up' as well

reubensjohn commented 3 years ago

I also tried by running three separate containers on local machine ( janusgraph at 8182, invana-studio at 8888 and invana-engine @ 8200 . This time also it didn't connect. I tried the invana-engine graphql endpoint http://localhost:8200/graphql and I get a message this page is not working now. The invana-engine docker run didn't show any errors . Now I am stuck. Looks like the engine is not working properly , but no errors in logs.

rrmerugu commented 3 years ago

Hey @reubensjohn i will look into this tomorrow.. will update you

reubensjohn commented 3 years ago

Thank you @rrmerugu

rrmerugu commented 3 years ago

Can you check try docker-compose now. I fixed the invana-engine docker.

Try again and let me know if this works. Cheers

reubensjohn commented 3 years ago

I will try today and let you know. Thanks for the help

reubensjohn commented 3 years ago

Now the studio connects to the engine and the Janus graph. I can add nodes, but it doesn't render the graph. It looks like in a loop saying 'Rendering Graph'

Screen Shot 2021-04-19 at 9 40 33 PM
reubensjohn commented 3 years ago

And I can see the nodes in the Data tabular view ![Uploading Screen Shot 2021-04-19 at 9.41.39 PM.png…]()

reubensjohn commented 3 years ago
Screen Shot 2021-04-19 at 9 41 39 PM
reubensjohn commented 3 years ago

I used your sample compose file from your repo, same outcome. What could be wrong? I tried adding an edge by running the command 'g.V(4216).addEdge(founded,g.V(4104))' and it didn't add the edge . Not sure why !!

rrmerugu commented 3 years ago

Regarding the loading issue, you can manually stop the rendering (looks like the graph is not stabilising for some issue.)

About adding an edge query, looks like query is failing because of the variable founded in your query, which is not defined in the query. I will add a feature to see why the query is failing. Thanks for pointing it out.

I have added the issue #84 and #85 to cover further issues . Marking this issue as closed.

reubensjohn commented 3 years ago

Thank you for the help