Connection-refused in SiteWise Connector 6. Is there a bug?

0

FYI: I ran into problems using the latest SiteWise connector. Downgrading solved the issue. Is there a bug here?

Before:

  • Connector was upgraded to version 6
  • Network changed (from wifi location a, to wifi-location b)
  • Greengrass functions and were reponsive (e.g. on self-build lamdbas)
  • Sitewise connector was down showing Connection issues (See log snippet).
  • The configurations in /var/sitewise/config/ didnt update anymore and held the old settings, event

Actions to correct the issue:

  • All gateways re-created (this step may not be required)
  • Downgraded IoT SiteWise Connector to version 5
  • Restarted greengrassd

KR,
Henk-Jan

Log snippet:
[2020-05-14T23:29:21.318+02:00][INFO]-2020-05-14 23:29:21 INFO OpcUaConfigOverrideModule:45 - No overrides specified for the OPC-UA configuration
[2020-05-14T23:29:22.804+02:00][INFO]-2020-05-14 23:29:22 INFO CompositeConfigurationProvider:27 - Unable to load configuration file. Attempting to use environment variables
[2020-05-14T23:29:22.812+02:00][INFO]-2020-05-14 23:29:22 INFO CompositeConfigurationProvider:31 - Unable to load configuration file from Environment variables. Using default config.
[2020-05-14T23:29:22.974+02:00][ERROR]-com.amazonaws.greengrass.streammanager.client.StreamManagerClientImpl: Connect failed
[2020-05-14T23:29:22.974+02:00][ERROR]-java.net.ConnectException: Connection refused (Connection refused)
[2020-05-14T23:29:22.974+02:00][ERROR]- at java.net.PlainSocketImpl.socketConnect(Native Method)
[2020-05-14T23:29:22.974+02:00][ERROR]- at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
[2020-05-14T23:29:22.974+02:00][ERROR]- at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
[2020-05-14T23:29:22.974+02:00][ERROR]- at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
[2020-05-14T23:29:22.974+02:00][ERROR]- at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

질문됨 4년 전261회 조회
3개 답변
0
수락된 답변

Hi Henk-Jan,

The new SW connector (version 6) requires stream manager to be enabled and AWS IoT Greengrass Core software v1.10.0 or higher. In your case, looking at the error message, I think it is because stream manager has not been enabled.

Once you update the GG group to enable stream manager, it should resolve this issue. You may have to deploy the changes to your group for it to take effect.

Adding info in links below:
Updates needed on GG group to SW Gateway setup: https://docs.aws.amazon.com/iot-sitewise/latest/userguide/configure-gateway.html#setup-connector

Requirements of SW connector: https://docs.aws.amazon.com/greengrass/latest/developerguide/iot-sitewise-connector.html#iot-sitewise-connector-req

Hope that helps,
Santosh

답변함 4년 전
0

Thanks Santhosh,
I upgraded to 6 and switched on the stream-manager and it now works perfectly.
I overlooked this one.
Kind regards,
Henk-Jan

답변함 4년 전
0

Hi Henk-Jan,

That is great to hear. Thank you for the confirmation. Really helps to get the feedback that it worked :-).

Best,
Santosh

답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠