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
feita há 10 meses346 visualizações
1 Resposta
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
respondido há 10 meses
profile pictureAWS
ESPECIALISTA
Greg_B
avaliado há 10 meses
  • Hello! As an update, version 2.4.1 of the Publisher component is now available and should resolve this issue.

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas