camunda/camunda-platform-get-started

local remote ip don't work

tbfly opened this issue · 3 comments

tbfly commented

"
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: /0.0.0.0:26500
Caused by: java.net.ConnectException: Connection refused: no further information
at java.base/sun.nio.ch.Net.pollConnect(Native Method) ~[na:na]
at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:669) ~[na:na]
at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:944) ~[na:na]
"

cat src/main/resources/application.properties

zeebe.client.gateway.address=10.1.8.114:26500
zeebe.client.security.plaintext=true

tbfly commented

" Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: /0.0.0.0:26500 Caused by: java.net.ConnectException: Connection refused: no further information at java.base/sun.nio.ch.Net.pollConnect(Native Method) ~[na:na] at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:669) ~[na:na] at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:944) ~[na:na] "

cat src/main/resources/application.properties

zeebe.client.gateway.address=10.1.8.114:26500 zeebe.client.security.plaintext=true

Does it must be setting as "zeebe.client.gateway.address=127.0.0.1:26500" ?

While:
https://github.com/camunda-cloud/zeebe/blob/develop/clients/java/src/main/java/io/camunda/zeebe/client/impl/ZeebeClientBuilderImpl.java

public static final String DEFAULT_GATEWAY_ADDRESS = "0.0.0.0:26500";

@OverRide
public ZeebeClientBuilder withProperties(final Properties properties) {

if (properties.containsKey(ClientProperties.GATEWAY_ADDRESS)) {
  gatewayAddress(properties.getProperty(ClientProperties.GATEWAY_ADDRESS));
}

......
}

tbfly commented

" Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: /0.0.0.0:26500 Caused by: java.net.ConnectException: Connection refused: no further information at java.base/sun.nio.ch.Net.pollConnect(Native Method) ~[na:na] at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:669) ~[na:na] at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:944) ~[na:na] "

cat src/main/resources/application.properties

zeebe.client.gateway.address=10.1.8.114:26500 zeebe.client.security.plaintext=true

REF: fix by spring-zeebe branch:
camunda-community-hub/spring-zeebe@af567c7

REF issues:
camunda-community-hub/spring-zeebe#123

tbfly commented

done by spring-zeebe.
use setting:

zeebe.client.broker.gatewayAddress=xxx:26500