Openhab.log stop logging - How to upgrade Karaf. Please help

  • Platform information:
    • Hardware: CPUArchitecture/RAM/storage
    • OS: RPi3 (openhab server), Windows 10_
    • Java Runtime Environment: java version “1.8.0_161”
    • openHAB version: 2.2
  • Issue of the topic: Openhab.log stop logging

Pardon me if this topic has been asked already. I tried to search on why openhab.log stop logging. I tried this
but it did not solve the problem. I read about upgrading karaf which I think i missed answering “YES” when I was upgrading/updating RPi3

sudo mv /var/lib/openhab2/etc/org.ops4j.pax.logging.cfg /var/lib/openhab2/etc/org.ops4j.pax.logging.cfg.old
sudo mv /var/lib/openhab2/etc/org.ops4j.pax.logging.cfg.dpkg-dist /var/lib/openhab2/etc/org.ops4j.pax.logging.cfg

What is the simplest way to upgrade Karaf? Is it going to affect openhab system after upgrade? Thanks for your help.

Issue resolved. I purged and reinstall Openhab then restore from backup.

Tip: Regularly backup your system.