[ 
https://issues.apache.org/jira/browse/TINKERPOP-2685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17474968#comment-17474968
 ] 

Igor Ostapenko commented on TINKERPOP-2685:
-------------------------------------------

Well, I've tried to trace it and I've found that in my case this line works not 
as expected, it yields true and steps into the if block: 
[https://github.com/apache/tinkerpop/blob/master/gremlin-server/src/main/bin/gremlin-server.sh#L74]

As a result it makes it worse, i.e. 
GREMLIN_YAML=/opt/gremlin-server//opt/gremlin-server/conf/gremlin-server.yaml. 
This is unexpected branch of logic what, obviously, ends up with server start 
error.

The next question for me is why test -r works wrong way for 3.5.1, but it works 
fine for 3.5.0.

3.5.0:

 
{code:java}
# let's use /bin/bash as bin/gremlin-server.sh does
> docker run --rm -it --entrypoint '' tinkerpop/gremlin-server:3.5.0 /bin/bash
bash-5.0$ pwd
/opt/gremlin-server
bash-5.0$ test -r conf/gremlin-server.yaml ; echo $?
0{code}
 

3.5.1:

 
{code:java}
> docker run --rm -it --entrypoint '' tinkerpop/gremlin-server:3.5.1 /bin/bash
bash-5.1$ pwd
/opt/gremlin-server
bash-5.1$ test -r conf/gremlin-server.yaml ; echo $?
1
bash-5.1$ head -n2 conf/gremlin-server.yaml
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file

{code}
 

> "docker run tinkerpop/gremlin-server:3.5.1" does not work
> ---------------------------------------------------------
>
>                 Key: TINKERPOP-2685
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2685
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.5.1
>            Reporter: Igor Ostapenko
>            Priority: Blocker
>
>  
> {code:java}
> $ docker run tinkerpop/gremlin-server:3.5.1
> WARNING: /opt/gremlin-server//opt/gremlin-server/conf/gremlin-server.yaml is 
> unreadable
> Configuration file not found.
> Usage: /opt/gremlin-server/bin/gremlin-server.sh 
> {start|stop|restart|status|console|install <group> <artifact> <version>|<conf 
> file>}
>     start        Start the server in the background using 
> conf/gremlin-server.yaml as the
>                  default configuration file
>     stop         Stop the server
>     restart      Stop and start the server
>     status       Check if the server is running
>     console      Start the server in the foreground using 
> conf/gremlin-server.yaml as the
>                  default configuration file
>     install      Install dependencies
> If using a custom YAML configuration file then specify it as the only 
> argument for Gremlin
> Server to run in the foreground or specify it via the GREMLIN_YAML 
> environment variable.
> {code}
> But `docker run tinkerpop/gremlin-server:3.5.0` works fine.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to