kapua
kapua copied to clipboard
After Rebooting Kura Device Packages Are Missing
If user reboots Kura device that has multiple packages installed, some of the packages get deleted from kura after the reboot process.
Testflow:
- Login as kapua-sys or any other user that has proper permissions
- Connect a live Kura device to Kapua (e.g. device0)
- install all available packages from Eclipse marketplace for Kapua 4.1.0 Demo heater kura driver gpio kura example driver sensehat kura driver ble sensortag kura example eddystone scanner kura example ibeacon advertiser kura example ibeacon scanner kura driver s7plc kura example beacon scanner kura example eddystone advertiser kura example publisher kura example ble sensortag kura protocol modbus kura example ble sensortag kura example wire math multiport provider Kura wire devel component provider Kura Wire Script Filter Example Beacon Example GPIO Raspberry Pi Sensehat Example Bundle Wire Math Singleport Provider
- After installation, go to Commands tab and execute command
sudo reboot
- After device reboots, check the Packages tab again
Expected behavior If Device is rebooted, packages should not disappear.
Screenshot No. 1:
Screenshot No. 2:
Version of Kapua 1.1.0-SNAPSHOT
Main component affected [x] Console (in case of console please report info on which browser you encountered the problem) [ ] REST API [ ] Message Broker [ ] - Others
Browsers used:
- Google Chrome (Version 74.0.3729.131 (Official Build) (64-bit))
- Safari (Version 12.1)
- Mozilla Firefox (66.0.3 (64-bit))
- Opera (Version:60.0.3255.70)
Hi @LeoNerdoG ,
isn't this more on the Kura side?
Regards,
Alberto
Hey @Coduz, I have been workin with Kura team on this and they reported (and I also tried) that if packages are installed in Kura, they stay there even after reboot. But if they are strictly installed through Kapua, they get deleted somehow when device is rebooted. So on their side everything looks ok. But I guess this is "mutual" problem, that would need detail examination.
Hi @LeoNerdoG ,
I've spoke with Matteo suggest that could be that the bundles have not loaded yet. You did the check of installed packages right after reboot or you waited a while? Matteo also suggest to check also the content
/opt/eclipse/kura/data/packages
to check installed packages.
Regards,
Alberto
Hej @Coduz, Yes, i have checked and refreshed the "installed" subtab and all the packages were there. I have checked this again now and the issue persists. 75% percent of packages get deleted after user executes command "sudo reboot" from kapua.
@Coduz update: I have waited for half an hour and packages are not listed in /opt/eclipse/kura/data/packages so I guess this is the problem? Maybe if we add the packages too fast, Kura cannot handle it? I can talk with Matteo today regarding this.
Hi @LeoNerdoG ,
the strange thing is that this occurs only with Kapua remote management. We will wait Kura guys to give us information.
I still think that this problem is more on Kura side rather than Kapua side.
Regards,
Alberto
Hey @Coduz, I have talked with Kura team today and I also reported issue on their side. They said, they will take a look 😄 So we should "sit back and relax" until we get som info from them 😄
Regards, Leo