[
https://issues.apache.org/jira/browse/GEODE-6868?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16864519#comment-16864519
]
Juan José Ramos Cassella commented on GEODE-6868:
-------------------------------------------------
Hello [~achoudhary],
This is the expected behaviour, yes.
According to the output you executed {{gfsh}} directly in
{{/usr/local/Cellar/apache-geode/1.9.0/bin}}.
The {{status locator}} command uses the current directory
({{/usr/local/Cellar/apache-geode/1.9.0/bin}} in your case) as the default
value for the {{--dir}} parameter (directory on which the locator is running),
and tries to recover the member's state from some binary files stored within
that working directory. Since you specified {{locator}} as the name for your
locator, the actual working directory and relevant files for the member will be
located under {{{{/usr/local/Cellar/apache-geode/1.9.0/bin/locator}}, not
{{/usr/local/Cellar/apache-geode/1.9.0/bin}}.
Long story short, you should use {{status locator --dir=locator}} to get the
correct output. Please have a look at the [{{status
locator}}|https://geode.apache.org/docs/guide/19/tools_modules/gfsh/command-pages/status.html#topic_E96D0EFA513C4CD79B833FCCDD69C832]
command documentation for further details.
Cheers.
> status locator gives wrong output
> ---------------------------------
>
> Key: GEODE-6868
> URL: https://issues.apache.org/jira/browse/GEODE-6868
> Project: Geode
> Issue Type: Bug
> Components: gfsh
> Reporter: Ashish Choudhary
> Priority: Major
>
> start locator process
> start locator --name=locator
> Once the locator is up run status command
> run status locator on gfsh
> gfsh>status locator
> Locator in /usr/local/Cellar/apache-geode/1.9.0/bin on 111.123.1.5[10334] is
> currently not responding.
> Run the same steps above to check status of server. You will see similar
> wrong output that currently not responding.
> However everything works fine if you add --name=memberName in status command
> for locator and server.
> Is this expected behavior?.
> [https://geode.apache.org/docs/guide/14/tools_modules/gfsh/command-pages/status.html#topic_E96D0EFA513C4CD79B833FCCDD69C832]
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)