How can one revive "aws.iot.SiteWiseEdgePublisher" from the broken state given relevant methods like Deploy etc. don't work?

0

I have a production SiteWise Gateway running on an AWS SSM node but for no apparent reason, the "aws.iot.SiteWiseEdgePublisher" component stopped working and went into a Broken state. The Greengrass nucleus and other components are running, and reporting green on their health on the console.

Tried:

  1. Used the AWS console (SiteWise -> Edge (gateway)) to downgrade or upgrade the publisher to trigger deployment, but the core device responded on downgrade but after that went to broken state, and not responding to other deployment requests.
  2. Tried using the Greengraas CLI on device to restart or stop the service but no results.
  3. Tried deployment from IoT Core on the core device but no response and deployment failed.
  4. Hard reboot on the servers that run Greengrass but publisher is still in broken state

So I tried the above but none yielded any results, so any suggestion/advice? I would prefer not to touch the Sitewise deployment because it has quite a lot of machine models and assets mapped to incoming data, so it will be massive work.

  • What do you mean exactly by "broken state"? Can you provide relevant error messages?

  • can you think of anything that might have changed in the setup (device, permissions, etc) before the component went in Broken state? You can find the logs in /greengrass/v2/logs, but please be careful in not posing sensitive data

  • @Philips: With Broken State I mean that the component is broken as reported by AWS, and is not working (aka Broken).

    @MassimilianoAWS: To be honest nothing has changed, we haven't changed any setting such as device, permission or configuration. But I did check the logs for the component, and below are some snippets other than Info or WARN:

    2022-08-25T09:44:08.866Z [INFO] (Copier) aws.iot.SiteWiseEdgePublisher: stdout. [ERROR] 2022-08-25 12:44:08.864 [ComponentService-Executor-0] SiteWisePublisherProcess - {"message":"Failed to start publisher process: (ProvisionException) Unable to provision, see the following errors:. {scriptName=services.aws.iot.SiteWiseEdgePublisher.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgePublisher, currentState=STARTING} 2022-08-25T09:44:08.866Z [INFO] (Copier) aws.iot.SiteWiseEdgePublisher: stdout. {scriptName=services.aws.iot.SiteWiseEdgePublisher.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgePublisher, currentState=STARTING} 2022-08-25T09:44:08.866Z [INFO] (Copier) aws.iot.SiteWiseEdgePublisher: stdout. 1) Error in custom provider, org.mapdb.DBException$GetVoid: Record does not exist, recid=31793. {scriptName=services.aws.iot.SiteWiseEdgePublisher.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgePublisher, currentState=STARTING} 2022-08-25T09:44:08.866Z [INFO] (Copier) aws.iot.SiteWiseEdgePublisher: stdout. at com.amazon.iot.sitewise.component.publisher.guice.ComponentSDKModule.provideConnectorStreamReader(Com

  • 2022-08-25T14:56:06.788Z [INFO] (Copier) aws.iot.SiteWiseEdgePublisher: stdout. [ERROR] 2022-08-25 17:56:06.785 [ComponentService-Executor-0] ComponentService - { "message": "An error occurred while attempting to start process SiteWisePublisherProcess: (ComponentStartupFailureException) Failed to start up publisher." }. {scriptName=services.aws.iot.SiteWiseEdgePublisher.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgePublisher, currentState=STARTING}

    2022-08-25T14:56:06.791Z [INFO] (Copier) aws.iot.SiteWiseEdgePublisher: stdout. [ERROR] 2022-08-25 17:56:06.789 [main] ComponentService - { "message": "Failed to start component: Failure occurred while attempting to start processes, see log entries for more information" }. {scriptName=services.aws.iot.SiteWiseEdgePublisher.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgePublisher, currentState=STARTING}

    2022-08-25T14:56:14.138Z [INFO] (Copier) aws.iot.SiteWiseEdgePublisher: stdout. [ERROR] 2022-08-25 17:56:14.137 [ComponentService-Executor-0] SiteWisePublisherProcess - {"message":"Failed to start publisher process: (ProvisionException) Unable to provision, see the following errors:. {scriptName=services.aws.iot.SiteWiseEdgePublisher.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgePublisher, currentState=STARTING}

    2022-08-25T14:56:19.219Z [INFO] (Copier) aws.iot.SiteWiseEdgePublisher: stdout. [ERROR] 2022-08-25 17:56:19.218 [ComponentService-Executor-0] SiteWisePublisherProcess - {"message"

No Answers

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