SitewiseEdgePublisher Broken State - How to fix?

1

Had an Iot Sitewise Gateway running successfully, but the gateway host computer crashed, and when it restarted, the deployment failed. I have since deleted and tried to recreate the deployment several times - every time it fails because the SitewiseEdgePublisher component fails to start.

I've copied the component log - looks like Java.lang.ClassNotFound is the issue, but how do I fix this?

I've tried redeploying and deploying earlier versions of the component with no success.

2023-07-20T13:43:54.584Z [INFO] (pool-2-thread-18) aws.iot.SiteWiseEdgePublisher: shell-runner-start. {scriptName=services.aws.iot.SiteWiseEdgePublisher.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgePublisher, currentState=STARTING, command=["java -cp C:\greengrass\v2\packages\artifacts\aws.iot.SiteWiseEdgePublisher\2.4..."]} 2023-07-20T13:43:55.126Z [WARN] (Copier) aws.iot.SiteWiseEdgePublisher: stderr. Error: Could not find or load main class com.amazon.iot.sitewise.component.Publisher. {scriptName=services.aws.iot.SiteWiseEdgePublisher.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgePublisher, currentState=STARTING} 2023-07-20T13:43:55.127Z [WARN] (Copier) aws.iot.SiteWiseEdgePublisher: stderr. Caused by: java.lang.ClassNotFoundException: com.amazon.iot.sitewise.component.Publisher. {scriptName=services.aws.iot.SiteWiseEdgePublisher.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgePublisher, currentState=STARTING} 2023-07-20T13:43:55.128Z [INFO] (Copier) aws.iot.SiteWiseEdgePublisher: Startup script exited. {exitCode=1, serviceName=aws.iot.SiteWiseEdgePublisher, currentState=STARTING} 2023-07-20T13:43:55.140Z [INFO] (pool-2-thread-18) aws.iot.SiteWiseEdgePublisher: shell-runner-start. {scriptName=services.aws.iot.SiteWiseEdgePublisher.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgePublisher, currentState=STARTING, command=["java -cp C:\greengrass\v2\packages\artifacts\aws.iot.SiteWiseEdgePublisher\2.4..."]} 2023-07-20T13:43:55.659Z [WARN] (Copier) aws.iot.SiteWiseEdgePublisher: stderr. Error: Could not find or load main class com.amazon.iot.sitewise.component.Publisher. {scriptName=services.aws.iot.SiteWiseEdgePublisher.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgePublisher, currentState=STARTING} 2023-07-20T13:43:55.659Z [WARN] (Copier) aws.iot.SiteWiseEdgePublisher: stderr. Caused by: java.lang.ClassNotFoundException: com.amazon.iot.sitewise.component.Publisher. {scriptName=services.aws.iot.SiteWiseEdgePublisher.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgePublisher, currentState=STARTING} 2023-07-20T13:43:55.660Z [INFO] (Copier) aws.iot.SiteWiseEdgePublisher: Startup script exited. {exitCode=1, serviceName=aws.iot.SiteWiseEdgePublisher, currentState=STARTING} 2023-07-20T13:43:55.670Z [INFO] (pool-2-thread-18) aws.iot.SiteWiseEdgePublisher: shell-runner-start. {scriptName=services.aws.iot.SiteWiseEdgePublisher.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgePublisher, currentState=STARTING, command=["]} 2023-07-20T13:43:56.193Z [WARN] (Copier) aws.iot.SiteWiseEdgePublisher: stderr. Error: Could not find or load main class com.amazon.iot.sitewise.component.Publisher. {scriptName=services.aws.iot.SiteWiseEdgePublisher.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgePublisher, currentState=STARTING} 2023-07-20T13:43:56.193Z [WARN] (Copier) aws.iot.SiteWiseEdgePublisher: stderr. Caused by: : com.amazon.iot.sitewise.component.Publisher. {scriptName=services.aws.iot.SiteWiseEdgePublisher.lifecycle.Startup.Script, serviceName=aws.iot.SiteWiseEdgePublisher, currentState=STARTING} 2023-07-20T13:43:56.194Z [INFO] (Copier) aws.iot.SiteWiseEdgePublisher: Startup script exited. {exitCode=1, serviceName=aws.iot.SiteWiseEdgePublisher, currentState=STARTING}

ConorH
asked 9 months ago335 views
1 Answer
2

Hi there, We are currently in the process of releasing a new version that should resolve this issue. In the meantime you can downgrade the Publisher component to or deploy the version "2.3.2" to get around this issue.

AWS
meltan
answered 9 months ago
profile pictureAWS
EXPERT
Greg_B
reviewed 9 months ago
  • Hello! As an update, version 2.4.1 of the Publisher component is now available and should resolve this issue.

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