Logging stopped after update to openHAB 2.2.0 Build #1010

Hello,

during the upgrade, apt-get informed that there would be a new version of file:
/var/lib/openhab2/etc/org.ops4j.pax.logging.cfg
And i choose the default to keep the altered file allready on the system.
A mistake i guess, as since the reboot there are no log entries in openhab and events log any more.
Severall other files had new versions as well:
/var/lib/openhab2/etc/org.eclipse.smarthome.voice.cfg
/var/lib/openhab2/etc/jmx.acl.org.apache.karaf.config.cfg
/var/lib/openhab2/etc/jmx.acl.org.apache.karaf.bundle.cfg
/var/lib/openhab2/etc/org.eclipse.smarthome.audio.cfg
I went for ā€œkeep version present on systemā€ for all.

Everything seems to run OK, but i have no means of control any more.
WOuld anyone have an idea how to fix this?
System is Ubuntu 16.04.3 LTS.
Many thanks in advance,
Best regards,
-OLI

Thanks Udo, looks i should have read this first :frowning:
However, iFixedit! and actually it was easy, just needed to go like:

jarvis@JARVIS-MKII:~$ sudo mv /var/lib/openhab2/etc/org.ops4j.pax.logging.cfg /var/lib/openhab2/etc/org.ops4j.pax.logging.cfg.OLD
jarvis@JARVIS-MKII:~$ sudo cp /var/lib/openhab2/etc/org.ops4j.pax.logging.cfg.dpkg-dist /var/lib/openhab2/etc/org.ops4j.pax.logging.cfg

Iā€™ll also post this in the linked thread in case others flunked like meā€¦
Only backdraft is that my nice, tamed logs are getting filled up again.
But that is work for anyother day.
Best Regards,
-OLI

9 Likes

Yes, you will have to adapt the old logging rules to the new syntax. :slight_smile:

Iā€™ll definitly save that for a rainy day!
A veeery rainy day :slight_smile:

1 Like

Thanks a million for this!! I ran some dodgy script earlier that I thought messed it upā€¦ Now many hours later I find this post and voila, its working again!!

hi all,

I still dont get the log files to work againā€¦after the upgrade to 2.2.0 (build 1066) , there is no information written to the logs. Also after copying the config as described aboveā€¦ still not working.

any ideas ?

best regards
Maik

thanks, that helped me too! :heart:

Same problem after update to OH 2.2.
Oliā€™s solution worked for me

You just should have said ā€œyesā€ when being asked if the logging configuration should be replaced by the new one :wink: see here:

This was awesome information! Someone needs to add this to the upgrade list!