Re: Could not alias [g] to [g] as [g]
Yamiteru XYZ <yamit...@...>
When I replaced Cassandra with ScyllaDB it stopped working. Could it be that ScyllaDB is not compatible with either JanusGraph or Elasticsearch?
toggle quoted message
Show quoted text
On Monday, January 11, 2021 at 5:34:06 PM UTC+1 Yamiteru XYZ wrote:
So it looks like the docker-compose-cql-es.yml works without a problem.On Sunday, January 10, 2021 at 4:30:54 PM UTC+1 HadoopMarc wrote:Hi,Can you also try with the tested docker-compose-cql-es.yml from:It has subtle differences with the yml file you listed. If you have a working situation to compare with, it easier to find what is wrong. If this does not work, it is easy for others to reproduce the issue.Best wishes, MarcOp zondag 10 januari 2021 om 13:17:50 UTC+1 schreef ya...@...:Hi,- yes I can estabilish ws connection to my server with a general ws test client.- the g in javascript prints this value:GraphTraversalSource {graph: Graph {},traversalStrategies: TraversalStrategies { strategies: [ [RemoteStrategy] ] },bytecode: Bytecode { sourceInstructions: [], stepInstructions: [] },graphTraversalSourceClass: [class GraphTraversalSource],graphTraversalClass: [class GraphTraversal extends Traversal]}- when I try to print count like this I get no value at all:g.V().count().toList()
.then(v => console.log("-- COUNT --", v))
.catch(e => console.log("-- ERROR --", e));When I use "ws://46.36.36.121:8182/gremlin" instead of "ws://localhost:8182/gremlin" from my local machine I get the same "Could not alias [g] to [g] as [g] not in the Graph or TraversalSource global bindings" error.Miroslav.On Thursday, January 7, 2021 at 5:08:12 PM UTC+1 HadoopMarc wrote:OK, I see that you run gremlin-npm locally on your server. Are you sure that localhost is exposed in the gremlin server? What happens if you connect from your local machine towards the ip address of the sever?MarcOp donderdag 7 januari 2021 om 17:02:44 UTC+1 schreef HadoopMarc:HiI am lost in the stream of messages. I gather that:
- you can establish a ws connection to your server with a general ws test client
- you can run a "const g = traversal().withRemote(remote);" in javascript without error (has g indeed a value unequal to null???)
- you try to export the GraphTraversalSource g and use it in some other module: how do you it does not work?
Can you try and print some debug statement using g in the module where it is defined. Look here for inspiration for a query using g:Best wishes, MarcOp donderdag 7 januari 2021 om 15:50:02 UTC+1 schreef ya...@...:Can you help me? It's really frustrating and I cannot find a solution. I can even give you ssh access so you can try to find a solution. Anything. I'm desperate.On Wednesday, January 6, 2021 at 4:25:10 PM UTC+1 Yamiteru XYZ wrote:It wasn't as stated in later posts..On Wednesday, January 6, 2021 at 3:27:08 PM UTC+1 HadoopMarc wrote:Thnaks for posting back that the issue was solved!Op woensdag 6 januari 2021 om 12:02:38 UTC+1 schreef ya...@...:I use this code on my server:import { process, driver } from "gremlin";
const url = 'ws://localhost:8182/gremlin';
const traversal = process.AnonymousTraversalSource.traversal;
const DriverRemoteConnection = driver.DriverRemoteConnection;
const DriverClientConnection = driver.Client;
const remote = new DriverRemoteConnection(url);
const client = new DriverClientConnection(url);
export const g = traversal().withRemote(remote);
export const c = client;
export const T = process.t;
export const __ = process.statics;
export default g;On Tuesday, January 5, 2021 at 2:33:55 PM UTC+1 HadoopMarc wrote:OK, I understand now what you mean with "I see this error only on my server ". What happens if you try to open a websocket connection with a test webscocket client, e.g. for firefox:It might be that the server does not have an open 8182 port. For less wilder guesses, I really need more information (client stacktrace, server logs, etc).Best wishes, MarcOp dinsdag 5 januari 2021 om 12:38:27 UTC+1 schreef ya...@...:I'm using the docker version and I haven't changed anything. Where do I find the yaml config? I've tested it on 2 PC's (ubuntu and windows) and it works without a problem. It doesn't work only on a server (ubuntu).On Monday, January 4, 2021 at 5:37:37 PM UTC+1 HadoopMarc wrote:Hi,Can you show the gremlin server yaml config file (part of janusgraph) as well as the groovy script file it refers to? The groovy script should define the GraphTraversalSource g that you want to bind to.Best wishes, MarcOp zondag 3 januari 2021 om 23:56:20 UTC+1 schreef ya...@...:Hi, I have JanusGraph with Scylla and Elasticsearch in a docker. I'm connecting to JanusGraph on backend using gremlin.
I see this error only on my server and not on my local machine. What does it mean and more importantly how do I fix it? I'm a noob when it comes to backend and database stuff so please be kind. Thank you.