Congratulations to all the developers on Openhab, I have been experimenting with it over the past few months. It is very addictive. Unfortunately I have run into an issue I cannot resolve.
- Platform information:
- Hardware: Intel Core i3, 8GB Memory, Intel NUC
- OS: Windows 10
- Java Runtime Environment: Zulu22.214.171.124 (I tried a 32 and 64 bit version also)
- openHAB version: 2.5 M2 New ‘standard’ install. No binding, things etc…
- Installed: Experimental rule engine
I’ve attempted to install jython scripting so I can write my rules in Python. I followed these two guides here:
However, as soon as I place the jython-standalone .jar file in
conf\automation\jython and restart Openhab all logging stops. For example when I
log:tail in the console I get nothing.
If I delete the jython-standalone .jar file and restart Openhab again,
log:tail produces all the usual output. It also shows all the ServiceEvents REGISTERED of all the .py files etc… But when I save a .py file it of course says
ScriptEngine for py not available
Maybe surprisingly Openhab seems to be running ok, even when I get no logs. The various interfaces all work, and sensor data seems to come through. So it would seem that only the logging is broken.
userdata\logs folder I do not see the timestamp updated either. The timestamp stays the same as the last time Openhab ran.
I have tried:
- restoring the log config file
org.ops4j.pax.logging.cfgon my ‘production’ version of Openhab (I saw this on some other threads)
- deleting tmp, cache folders at various stages
- a completely empty ‘standard’ fresh install using 2.5 M2 version (only with experimental rule engine installed)
- setting EXTRA_JAVA_OPTS as env variable, and in the start.bat file:
-Xbootclasspath/a:D:\OpenHAB\openHAB_2-5_M2\conf\automation\jython\jython-standalone-2.7.1.jar -Dpython.home=D:\OpenHAB\openHAB_2-5_M2\conf\automation\jython -Dpython.path=D:\OpenHAB\openHAB_2-5_M2\conf\automation\lib\python
- Tried jython 2.7.0, 2.7.1
Unfortunately without the logs, finding the problem becomes rather difficult.
Has anyone come across this before? If you have any other ideas I would love to hear them, as I have run out!