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
gefragt vor 10 Monaten346 Aufrufe
1 Antwort
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
beantwortet vor 10 Monaten
profile pictureAWS
EXPERTE
Greg_B
überprüft vor 10 Monaten
  • Hello! As an update, version 2.4.1 of the Publisher component is now available and should resolve this issue.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen