- Newest
- Most votes
- Most comments
The way I resolved the issue. By doing the fresh installation of the core device. Then I went on with SiteWise and configure the gateway. At this point still no data stream coming in from the OPC UA server. Then I went and check the aws.iot.SiteWiseEdgeCollectorOpcua.log and aws.iot.SiteWiseEdgePublisher.log. In the Publisher log, I found an error about not having sufficient rights to my policies. I went and update my GreengrassV2TokenExchangeRoleAccess policy as per this:
https://docs.aws.amazon.com/iot-sitewise/latest/userguide/configure-gateway-ggv2.html
Lastly, I restart the Greengrass service and this fixes the problem. The manual is not very friendly and it requires good updates for the GreenGrass v2 installation for the OPC UA component.
Hi,
there are several topics that you can validate to make sure data arrive in the Cloud:
- are there any errors in the logs for the SiteWise collector (aws.iot.SiteWiseEdgeCollectorOpcua.log) or publisher (aws.iot.SiteWiseEdgePublisher.log)
- did you enable a data stream prefix? Sometimes the console adds a prefix automatically. If there is a prefix you can remove it or add it to your alias definition
- is the data source for the gateway in sync
- does your gateway receive the data streams? They are stored in a Greengrass stream:
grep -ia propertyalias /greengrass/v2/work/aws.greengrass.StreamManager/SiteWise*Stream/*.log
- You can try to use
/
as Node ID in your data source configuration to capture all data streams - what is the data type for the measurement exposed by the Kepware server? It must match one of the supported data types for SiteWise
Cheers,
Philipp
Relevant content
- Accepted Answerasked 2 years ago
- asked 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
are there any errors in the logs for the SiteWise collector (aws.iot.SiteWiseEdgeCollectorOpcua.log) or publisher (aws.iot.SiteWiseEdgePublisher.log) - Not sure if I can interpert errors.
did you enable a data stream prefix? Sometimes the console adds a prefix automatically. If there is a prefix you can remove it or add it to your alias definition - No
is the data source for the gateway in sync - Yes
does your gateway receive the data streams? They are stored in a Greengrass stream: grep -ia propertyalias /greengrass/v2/work/aws.greengrass.StreamManager/SiteWiseStream/.log - I don't see any logs. Permission Denied.
You can try to use / as Node ID in your data source configuration to capture all data streams - Try it but no change to behavior.
what is the data type for the measurement exposed by the Kepware server? It must match one of the supported data types for SiteWise - I am using Double for Float (OPC UA)