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
質問済み 10ヶ月前346ビュー
1回答
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
回答済み 10ヶ月前
profile pictureAWS
エキスパート
Greg_B
レビュー済み 10ヶ月前
  • Hello! As an update, version 2.4.1 of the Publisher component is now available and should resolve this issue.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ