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)

asked 4 years ago254 views
3 Answers
0
Accepted Answer

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

answered 4 years ago
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

answered 4 years ago
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

answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions