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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠