I am running OpenHAB in a docker container on my x86 NAS. I followed thoroughly the following documentation to enable the next gen rule engine (and I triple-checked that I did not miss something):
EDIT: There is only ONE difference I am using jython-standalone-2.7.2.jar instead of jython-standalone-2.7.0.jar !!!
I am starting my docker container through the UI provided by the NAS vendor but I have taken care that all JAVA_EXTRA_OPTS are passed at container startup.
But I don’t see anything related in the log regarding script engine or the “Hello World” script that should be running.
Can someone provide me a debug strategy on how to verify step by step what should be running and what is missing?
I really followed the installation instruction above very carefully. And if no one minds I would like to save the space and time to paste all my setup information here again.
It would be helpful if I can check for
some process that should be running
files that should be existing
some ACLs, permissions to be set correctly
some changes to scripts (init.py ???) that should be manually made
Look at the regular installation instructions… it looks like you might not have set the log levels (step 2 and 3).
Manual installations are a but complicated, so you may want to just use the beta Jython add-on. I also have some add-ons in the Eclipse Marketplace that I am polishing up (more info this weekend).
I used your addon and once copied to the addon directory I get the following errors in karaf.log:
15:53:25.501 [INFO ] [ome.core.service.AbstractWatchService] - Loading script 'python/core/000_startup.py'
15:53:26.460 [WARN ] [jython.Startup ] -
*******************************************************************************
Jython version: 2.7.2.final
Operating system: Linux
OS Version: 4.4.59+
Java vendor: Azul Systems, Inc.
Java VM name: OpenJDK 64-Bit Server VM
Java runtime name: OpenJDK Runtime Environment
Java runtime version: 1.8.0_265-b11
sys.path: /openhab/conf/automation/lib/python
/openhab/userdata/cache/org.eclipse.osgi/296/0/bundleFile/Lib
__classpath__
__pyclasspath__/
*******************************************************************************
15:53:26.463 [INFO ] [ome.core.service.AbstractWatchService] - Loading script 'python/core/components/100_DirectoryTrigger.py'
15:53:27.544 [ERROR] [ript.internal.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py': ImportError: No module named configuration in <script> at line number 20
15:53:27.546 [INFO ] [ome.core.service.AbstractWatchService] - Loading script 'python/core/components/100_OsgiEventTrigger.py'
15:53:28.468 [ERROR] [ript.internal.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py': ImportError: No module named configuration in <script> at line number 10
15:53:28.470 [INFO ] [ome.core.service.AbstractWatchService] - Loading script 'python/core/components/100_StartupTrigger.py'
15:53:29.251 [ERROR] [ript.internal.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/core/components/100_StartupTrigger.py': ImportError: No module named configuration in <script> at line number 10
15:53:29.253 [INFO ] [ome.core.service.AbstractWatchService] - Loading script 'python/core/components/200_JythonBindingInfoProvider.py'
15:53:29.876 [ERROR] [ript.internal.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/core/components/200_JythonBindingInfoProvider.py': ImportError: No module named configuration in <script> at line number 8
15:53:29.878 [INFO ] [ome.core.service.AbstractWatchService] - Loading script 'python/core/components/200_JythonExtensionProvider.py'
15:53:31.268 [ERROR] [ript.internal.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/core/components/200_JythonExtensionProvider.py': ImportError: No module named configuration in <script> at line number 10
15:53:31.270 [INFO ] [ome.core.service.AbstractWatchService] - Loading script 'python/core/components/200_JythonItemChannelLinkProvider.py'
15:53:31.875 [ERROR] [ript.internal.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py': ImportError: No module named configuration in <script> at line number 9
15:53:31.876 [INFO ] [ome.core.service.AbstractWatchService] - Loading script 'python/core/components/200_JythonItemProvider.py'
15:53:32.465 [ERROR] [ript.internal.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/core/components/200_JythonItemProvider.py': ImportError: No module named configuration in <script> at line number 9
15:53:32.467 [INFO ] [ome.core.service.AbstractWatchService] - Loading script 'python/core/components/200_JythonThingProvider.py'
15:53:33.057 [ERROR] [ript.internal.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingProvider.py': ImportError: No module named configuration in <script> at line number 8
15:53:33.059 [INFO ] [ome.core.service.AbstractWatchService] - Loading script 'python/core/components/200_JythonThingTypeProvider.py'
15:53:33.622 [ERROR] [ript.internal.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/core/components/200_JythonThingTypeProvider.py': ImportError: No module named configuration in <script> at line number 8
15:53:33.624 [INFO ] [ome.core.service.AbstractWatchService] - Loading script 'python/core/components/200_JythonTransform.py'
15:53:34.195 [ERROR] [ript.internal.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/core/components/200_JythonTransform.py': ImportError: No module named configuration in <script> at line number 10
15:53:34.197 [INFO ] [ome.core.service.AbstractWatchService] - Loading script 'python/personal/hello_world.py'
15:53:35.426 [ERROR] [ript.internal.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/python/personal/hello_world.py': ImportError: No module named configuration in <script> at line number 5
@5iver, the jython addon is great and a bullet proof method to ease the setup of ng-ruleengine in docker environments. Please continue your efforts to make it a standard addon.