geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jens Deppe (JIRA)" <>
Subject [jira] [Commented] (GEODE-746) When starting a locator using --bind-address, gfsh prints incorrect connect message
Date Thu, 21 Jan 2016 04:15:39 GMT


Jens Deppe commented on GEODE-746:

Actually, there are two things wrong here. The first is simply the incorrect text being displayed.

The second is the message stating {{Failed to connect; unknown cause: Connection refused}}.

I believe what's happening is that the locator is connecting back to itself to check it's
status. The problem becomes more evident when we bind the jmx manager to an address. At that
point, gfsh will not be able to successfully connect to the JMX manager and will get an error
Connecting to Locator at [host=localhost, port=19991] ..
Connecting to Manager at [host=localhost, port=1099] ..
Connection refused to host:; nested exception is: Connection refused
This can be resolved by setting  {{java.rmi.server.hostname=}} on the locator. We
should consider setting {{java.rmi.server.hostname}} when using {{jmx-manager-bind-address}}
(or just {{bind-address}}).

> When starting a locator using --bind-address, gfsh prints incorrect connect message
> -----------------------------------------------------------------------------------
>                 Key: GEODE-746
>                 URL:
>             Project: Geode
>          Issue Type: Improvement
>          Components: management
>            Reporter: Jens Deppe
> When starting my locator with {{gfsh start locator --name=locator1 --port=19991 --bind-address=}},
the output from gfsh looks like this:
> {noformat}
> ..............................
> Locator in /Users/jdeppe/debug/locator1 on[19991] as locator1 is currently
> Process ID: 2666
> Uptime: 15 seconds
> GemFire Version: 8.2.0.Beta
> Java Version: 1.7.0_72
> Log File: /Users/jdeppe/debug/locator1/locator1.log
> JVM Arguments: -Dgemfire.enable-cluster-configuration=true -Dgemfire.load-cluster-configuration-from-dir=false
-Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true -Dsun.rmi.dgc.server.gcInterval=9223372036854775806
> Class-Path: /Users/jdeppe/gemfire/82/lib/gemfire.jar:/Users/jdeppe/gemfire/82/lib/locator-dependencies.jar
> Please use "connect --locator=[19991]" to connect Gfsh to the locator.
> Failed to connect; unknown cause: Connection refused
> {noformat}
> The connect string shown is just displaying my host address and not the bind address.

This message was sent by Atlassian JIRA

View raw message