kapua icon indicating copy to clipboard operation
kapua copied to clipboard

After Rebooting Kura Device Packages Are Missing

Open LeoNerdoG opened this issue 5 years ago • 7 comments

If user reboots Kura device that has multiple packages installed, some of the packages get deleted from kura after the reboot process.

Testflow:

  1. Login as kapua-sys or any other user that has proper permissions
  2. Connect a live Kura device to Kapua (e.g. device0)
  3. 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
  4. After installation, go to Commands tab and execute command sudo reboot
  5. After device reboots, check the Packages tab again

Expected behavior If Device is rebooted, packages should not disappear.

Screenshot No. 1: Screenshot 2019-05-14 at 08 24 41

Screenshot No. 2: Screenshot 2019-05-14 at 08 55 48

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)

LeoNerdoG avatar May 14 '19 06:05 LeoNerdoG

Hi @LeoNerdoG ,

isn't this more on the Kura side?

Regards,

Alberto

Coduz avatar Jun 04 '19 15:06 Coduz

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.

LeoNerdoG avatar Jun 05 '19 04:06 LeoNerdoG

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

Coduz avatar Jun 05 '19 09:06 Coduz

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.

LeoNerdoG avatar Jun 05 '19 09:06 LeoNerdoG

@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.

LeoNerdoG avatar Jun 06 '19 05:06 LeoNerdoG

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

Coduz avatar Jun 06 '19 08:06 Coduz

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

LeoNerdoG avatar Jun 06 '19 08:06 LeoNerdoG