No logs getting getting logged in log file for gremlin server
Hello ,
This query is regarding the logs that I am not able to get while the janusgraph server start up inside a docker container .
Details below :
I am upgrading janusgraph version - 1.0.0-rc2 from an older version. Trying to deploy the server inside a docker container. Inside the docker file, I have used the base image of openjdk:11 and have provided , "CMD "bin/janusgraph-server.sh" "start" "<location_of_conf.yaml>" ". This does not start the pod successfully. It runs into CrashBackLoopOff error with no other details. Whereas, on correcting the same CMD in Dockerfile to "CMD "bin/janusgraph-server.sh" "start" && tail -f logs/janusgraph.log" , server starts up successfully but logs are not getting logged inside janusgraph.log file. Thanks.
3 Replies
Hello, i'm not sure if this more of a docker question than a Gremlin Server question, but maybe someone from @janusgraph can help? or maybe @ColeGreer has some thoughts based on general Gremlin Server knowledge?
Any reason why you're not using the official JanusGraph Docker image? https://hub.docker.com/r/janusgraph/janusgraph
You could try starting the server in the foreground which should let it log to stdout with
bin/janusgraph-server.sh console <location_of_conf.yaml>
There's nothing jumping out at me as a problem people may encounter when setting up regular Gremlin Server in docker. I suspect the issue is the janusgraph configuration but that is well outside of my domain and I would really only be speculating. I will defer to @Florian Hockmann and other @janusgraph folks on this one.