after having played a little bit with openHAB two years ago (V3.X), I recently restarted my learnings here.
My first opponent is a modbus based energy counter. Most reads used to work quite well.
When trying to set up an additional poller, things just didn’t work reliably, so I decided to change the logging level for the binding to debug.
This has lead to openHAB to stop writing the normal log files I used to monitor with fronttail. It seems, thos logs have now been redirected to the debug console (I’m accessing it via Portainer)
I haven’t found a possiblity yet to undo this, since the binding configuration page is blank now.
I have experienced something simliar before, to solution back then was to erase the entire configuration and restart with OH. Guess you understand that I am not keen on doing this again.
I also did try to set the log levels on the console according to the descriptions but failed
openhab> set WARN org.openhab.binding.modbus
[Fatal Error] :137:17: Content is not allowed in trailing section.
Error executing command: Unable to set level for logge r
openhab> log:set WARN org.openhab.binding.modbus
[Fatal Error] :137:17: Content is not allowed in trailing section.
Error executing command: Unable to set level for logge r
the correct command would be log:set WARN org.openhab.binding.modbus
(and default instead of warn to reset) log:get will get you an overview
But I’d think that’s unrelated.
Frontail and Docker ? Sounds like unusual homegrown stuff as Frontail normally only is in openHABian but that in turn incompatible with container stuff so your issues more likely it’s related to that.
I do understand your concerns about the frontail container, yet this has worked very stable during the last week. Furthermore it stopped working exactly when I changed the logging.
And it does not explain the Binding page to appear blank.
thanks for pushing me in the right direction: actally the cfg files were of, yet is seems, the lo4j2.xml got screwed up some how: opening it, chrome returned the same cryptic error that I had received earlier on using the console.
Browing through the contents, I found the very last line to hold a syntax error:
After fixing this, ebverything seems to be working as normal, including fronttail
I guess I’m gonna post bug on GitHub. This behaviour indicates that there’s either an issue closing references for these config files, or (direct string manipulation) modifications are used without validation / error handling.
Please only do if you can safely reproduce the issue, and reduce the use case to its essence.
If it only happens when Docker or Frontail are involved, it’s no openHAB issue.