How to get a fresh installation running?

Hi,

background, but no topic: I was running OH2.1 for half a year and upgraded yesterday to OH 2.2. Timer and logging was not running and now am trying to go back to OH 2.1.

Unfortunately OH does not seem to start on a fresh installation. When I stop OH and start again, there are no new logs created in /var/log/openhab2.

Does anybody have similar experience?

  • Platform information:
    • Hardware: Intel I5
    • OS: Ubuntu 16.04.3 LTS
    • Java Runtime Environment: 1.8.0_151
    • openHAB version: 2.1 (2.2 - no version is running up)
  • Please post configurations (if applicable):
    • Items configuration: Installation standard

The old version is running again. I think the trick was to “apt-get purge” instead of “apt-get remove”…

# remove the installed version completely
apt-get purge openhab2*

# show all version numbers
apt-cache policy openhab2
apt-cache policy openhab2-addons

# install an old version
sudo apt-get install openhab2=2.1.0-1 openhab2-addons=2.1.0-1

# prevent upgrading to the new version
echo "openhab2 hold" | sudo dpkg --set-selections
echo "openhab2-addons hold" | sudo dpkg --set-selections
#list holds: dpkg --get-selections | grep openhab
#reset hold: echo "<package-name> install" | sudo dpkg --set-selections

The original problem was when apt asked you to keep your edited config files or use the packaged config files you chose to keep your edited config files. OH 2.2 uses a new logger that has a different format for its config. By keeping your old logging config file you broke the logger.