Page 1 of 1

Cannot return to OPI after failed OPI-to-Kinguard upgrade

Posted: Sun Dec 09, 2018 8:14 am
by DarS
(I've posted two topics related to the same upgrade, although each topic focuses on a separate subject).
My MS Windows ownCloud clients were complaining about OPI server being too old, and recently fully refused to synchronize. This pushed me towards OPI-to-Kinguard upgrade. I tried to do it yesterday:
- backup of OPI was made on USB memory
- new SD card with Kinguard image was prepared
- Kinguard SD card was booted, but the system failed to install and operate (see my second post for details)
OK, it happens. I did not want to live without my OPI email account, so I inserted the old OPI SD card and attempted to boot the old system. But ... it failed!
This was a nasty surprise I must say. The properly closed system booted again as ... a fresh new install of OPI.
GUI window asking for OPI Activation Code and for setting Master Password was displayed:
20181208-OPI.01-boot_after_failed_upgrade.png
20181208-OPI.01-boot_after_failed_upgrade.png (97.3 KiB) Viewed 12335 times
Two questions:
  • what is the fastest way to fully recover my old OPI system and to start getting emails back again?
  • why OPI recovery (via entering the old, original SD card) is not stateless and leads to such strange results?
Having the old, intact SD card with OPI I was certain that I can recover it at any time. But now I see that this was a myth. And that even cloning the SD card would not guarantee that the system will return to operation. This is scary and ruins any contingency plans for OPI device.

Regards,
-DarS

Re: Cannot return to OPI after failed OPI-to-Kinguard upgrade

Posted: Sun Dec 09, 2018 10:47 am
by pa
Hi Darek,

From what I read in your other post, it seems to me as you have succeeded in the upgrade, and that is why you see this as a fresh install.
Reading your post it seems as if you have a fresh USB backup, I would recommend to power off the system, insert the USB memory and a newly formatted SD-card. Run the setup and restore the data from the USB memory.

When doing the upgrade to the Kinguard platform, there was too many parts that was updated, including moving from owncloud to nextcloud, and there was no realistic way for us to keep the old data structure on the SD card to make a totally seem less upgrade.

In the release notes we describe the recommended way to do the upgrade, but I think that we need to update this to also describe the incompatibility with the old SD card format.

/PA

Re: Cannot return to OPI after failed OPI-to-Kinguard upgrade

Posted: Mon Dec 10, 2018 5:00 am
by DarS
Hi PA,
Thanks for your help. Indeed, it was me who made wrong assumptions...
Having some experience with Raspberry Pi, I took for granted that the SD card contains not only user data but also the operating system. So I was certain that I could select OPI or Kinguard by swapping the SD cards.
I forgot that OPI device has the embedded Flash memory and the OS sits there. So once you upgrade the system, the card swap will not make any difference (except for user data, of course).

Thanks for smooth and flawless migration to Kinguard. It all went well!
Regards,
-DarS