DEPLOY-V2: Executable Shell Script. How to check install notification messages? #4831
Replies: 4 comments 7 replies
-
I have another question, regarding the verifier script: Does it have to have some special logic? In my case, I have created the following simple script that would help me to know if the version of Kura has been updated successfully or not to the version 5.3.0.
It should be enough? Many thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
Hi @alexcorvis84!
|
Beta Was this translation helpful? Give feedback.
-
Sorry for the delay, I have tried the following requests to the
and
where
and
I noticed that the device does not seem to reboot on its own, we will try to look into that. I have restarted the device manually after that the main script has been executed, as a workaround you can have your install script to trigger the reboot after a small delay, for example using the
and the follwing in /opt/job.log:
In the case when
and
The verifier script is deleted immediately after it is executed at the next framework startup after the update has been received, so you should not find it if you check the Regarding the notifications, I don't know if there is a way to receive them from Kapua. They are however processed by the cloud platform, to update the status of the device operation on the cloud side. When I run the request with postman, a new operation is created, it can be inspected using the |
Beta Was this translation helpful? Give feedback.
-
@alexcorvis84 Does the provided answer work for you? If so we can mark the answer and close the discussion. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have created a script that updates Kura (running in a RaspberryPi) from version 5.2.0 to 5.3.0.
For its installation, I use the Kapua REST API download service.
I have been able to get the download progress notifications using the Device Management - Notification, but I don't know how I can manage to get the installation notification.
On the online documentation, it's listed that in in case of Executable Shell Script, the completion notification will not be sent if the verifier script is not provided and/or the framework is not restarted.
I'm providing the verifier script specifying a download URL.
Here is an example of the request:
Once the script run and device is restarted, I can only find the following file called kura-Raspberry-Pi-5.3.0.sh_persistance in the path /opt/eclipse/kura_5.3.0_raspberry-pi-armhf-nn/data/persistance
Where or how can I retrieve/see the install notification message?
Many thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions