Fatal Error :147:17 CAN NOT LOG EVENTS

I have updated to the latest OH 4.2.3 from 4.1.2 and suddenly lost event logs.

Console tells:

openhab> log:list
[Fatal Error] :147:17: Content is not allowed in trailing section.
Error executing command: Unable to retrieve level for logger

Anybody knows how to fix it?

In all likelihood your log4j2.xml file is corrupted or otherwise wrong. You don’t say how your OH is installed. Did you accept the new config files, particularly /var/lib/openhab/etc/log4j2.xml during the update? I don’t remember if there are changes between these versions but if there are and you didn’t accept the new one during the apt upgrade it might no longer be compatable. Does the file look reasonable?

It is installed on the Raspberry Pi 4 Model B Rev 1.2
I played with new USB Zigbee dongle and tried to change debug settings. I did not do anything with the /var/lib/openhab/etc/log4j2.xml
:frowning:

I edited the file you mentioned and see some inconsistency at the end of the syntax…

I do not have an idea how it came to it but i was playing with zigbee indeed

How to resolve it?
I deleted the part com.zsmartsystems.zigbee"/> and made restart but it did not help.

I got it fixed with the help of this post

If you change the logging level in any way (through the UI, through the karaf console), it modifies that file.

Screen shots are all but impossible to read, but it kind of looks like there’s an extra </Loggers> and </Configuration> tags that also need to be removed.

yes you were right. I had to analyse the whole file and removed </Loggers> and </Configuration> tags