openHAB 4.1 Milestone discussion

Since upgrading to OH 4.1.0.M2 (and subsequent SNAPHOT) on Windows 10 I am seeing the following in openhab.log:

11:31:30.271 [WARN ] [pax.web.service.spi.model.ServerModel] - ServletModel{id=ServletModel-41,name='/',urlPatterns=[/*],contexts=[{WB,OCM-1,default,/}]} can't be registered now in context / under "/*" mapping. Conflict with ServletModel{id=ServletModel-31,name='/',urlPatterns=[/*],contexts=[{WB,OCM-1,default,/}]}.
11:31:30.274 [WARN ] [pax.web.service.spi.model.ServerModel] - Skipped registration of ServletModel{id=ServletModel-41,name='/',urlPatterns=[/*],contexts=[{WB,OCM-1,default,/}]} because of existing mappings. Servlet will be added as "awaiting registration".

and (this has been around for a while but I thought was linked to a different issue)

11:31:31.281 [WARN ] [tty.util.ssl.SslContextFactory.config] - Trusting all certificates configured for Client@717d3100[provider=null,keyStore=null,trustStore=null]
11:31:31.283 [WARN ] [tty.util.ssl.SslContextFactory.config] - No Client EndPointIdentificationAlgorithm configured for Client@717d3100[provider=null,keyStore=null,trustStore=null]

Could this be related to Upgrade to Karaf 4.4.4 by wborn · Pull Request #3814 · openhab/openhab-core · GitHub

Thanks
Mark

When i install PID Controller
image
it installs Jython Scripting

If that happens a second time (just uninstall and try again), please open an issue on GitHUB and tag me.

I upgraded OH to the 4.1.0.M2 and thought that the problem with toast container not beeing removed should be fixed with this milestone build. (Fix SSE failure toast container not removed by florian-h05 · Pull Request #2075 · openhab/openhab-webui · GitHub)

Could someone please confirm, that this pull is already included in M2? I also tried to clean the browser cache, but the problem still persists.

Using Chrome (118.0.5993.89) on windows.

Have tried many times i create an issue.

Can you try with latest snapshot? I tried it several times now, from the add-on-detail page and also from the add-on store. It always correctly installs pidcontroller.

Is there an issue with cloud connector on 4.1?
I get this when installing:

2023-10-30 10:33:50.840 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-misc-openhabcloud': Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-misc-openhabcloud; type=karaf.feature; version="[4.1.0.SNAPSHOT,4.1.0.SNAPSHOT]"; filter:="(&(osgi.identity=openhab-misc-openhabcloud)(type=karaf.feature)(version>=4.1.0.SNAPSHOT)(version<=4.1.0.SNAPSHOT))" [caused by: Unable to resolve openhab-misc-openhabcloud/4.1.0.SNAPSHOT: missing requirement [openhab-misc-openhabcloud/4.1.0.SNAPSHOT] osgi.identity; osgi.identity=org.openhab.io.openhabcloud; type=osgi.bundle; version="[4.1.0.202310300417,4.1.0.202310300417]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.io.openhabcloud/4.1.0.202310300417: missing requirement [org.openhab.io.openhabcloud/4.1.0.202310300417] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.json)(version>=20231013.0.0)(!(version>=20231014.0.0)))"]]

I suspect the same here. I just updated my milestone revision, getting this error at startup :

2023-10-30 12:39:48.627 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-binding-meteoalerte, openhab-binding-synopanalyzer, openhab-persistence-mapdb, openhab-binding-exec, openhab-binding-airquality, openhab-transformation-rollershutterposition, openhab-misc-openhabcloud, openhab-binding-network, openhab-binding-amazonechocontrol, openhab-binding-ecowatt, openhab-automation-jsscripting, openhab-binding-linky, openhab-binding-somfytahoma, openhab-binding-gce, openhab-binding-mqtt, openhab-binding-netatmo, openhab-transformation-map, openhab-binding-rfxcom, openhab-binding-tradfri, openhab-binding-vigicrues, openhab-binding-logreader, openhab-binding-telegram, openhab-binding-mynice, openhab-binding-systeminfo, openhab-transformation-scale, openhab-binding-icalendar, openhab-binding-sagercaster, openhab-binding-mail, openhab-persistence-jdbc-mariadb, openhab-automation-jrubyscripting, openhab-binding-sonos, openhab-transformation-regex, openhab-binding-openuv, openhab-transformation-jsonpath, openhab-ui-basic, openhab-binding-astro, openhab-binding-androiddebugbridge, openhab-binding-freeboxos’: Error:
Error downloading mvn:org.json/json/20231013

Issue opened here

1 Like

I was pretty busy the last few days but checked today whether there was anything else useful in the logs but this is the only line when I try to switch the monitoring state:

2023-10-30 22:04:55.854 [INFO ] [andler.capability.SecurityCapability] - Monitoring changes can only be done on local camera.

If it would help I could of course also provide the logs of the ApiBridgeHandler that contains the API response. I would need to through that first to see if there is anything confidential in there


It is included in M2. I haven’t experienced that issue anymore on Safari on iOS 17.x, and I wouldn’t have submitted that PR if the fix did not work on Chromium 118 on Linux.

@Nico_R You reported that issue, is is solved for you?

Hey @florian-h05 ,

i’am on the stable version. I will let you know when i change and able to test.

Thanks!

1 Like

Hello all,

The profile JS transformation is not working in a text file item file

here is my try

Rollershutter	myLivingShutter	"Wohnzimmer  [%d]"	{ channel="deconz:windowcovering:000000000000:a4c1385ebde6490601:position" [profile="transform:JS", toItemScript="rollershutter.js"] }

rollershutter.js

(function(position) {
    var newposition = 100 - position; 
    return newposition;
}) (input)

I doesn’t work

But if I do it via main UI everything is fine

but it doesn’t work anything wrong?

See dlso here

The Solution is there must be again the JS before the script name, but the documentation don’t tell it

correct solution

Rollershutter	myLivingShutter	"Wohnzimmer  [%d]"	{ channel="deconz:windowcovering:000000000000:a4c1385ebde6490601:position" [profile="transform:JS", toItemScript="JS:rollershutter.js"] }

is this an implementation or documentation error?

Upgraded to OH4.1M3 from OH4.1M2 a few days ago. (Rpi4-2GB) I have one issue with the UI (IP:8080). It loads fine from one of my saved icons, but if I refresh (the arrow circle) I just get a blank screen. This happens with Safari, Edge and Chrome. It also appears I cannot copy the url to a new window.

I don’t know if this is related, but I have two new WARN messages during startup

2023-11-07 09:34:43.004 [WARN ] [ax.web.service.spi.model.ServerModel] - ServletModel{id=ServletModel-14,name='cxf-servlet',urlPatterns=[/*],contexts=[{WB,OCM-1,default,/}]} can't be registered now in context / under "/*" mapping. Conflict with ServletModel{id=ServletModel-12,name='/',urlPatterns=[/*],contexts=[{WB,OCM-1,default,/}]}.
2023-11-07 09:34:43.050 [WARN ] [ax.web.service.spi.model.ServerModel] - Skipped registration of ServletModel{id=ServletModel-14,name='cxf-servlet',urlPatterns=[/*],contexts=[{WB,OCM-1,default,/}]} because of existing mappings. Servlet will be added as "awaiting registration".

After two instances they do not appear again. Full startup log below;

2023-11-07 09:34:43.004 [WARN ] [ax.web.service.spi.model.ServerModel] - ServletModel{id=ServletModel-14,name='cxf-servlet',urlPatterns=[/*],contexts=[{WB,OCM-1,default,/}]} can't be registered now in context / under "/*" mapping. Conflict with ServletModel{id=ServletModel-12,name='/',urlPatterns=[/*],contexts=[{WB,OCM-1,default,/}]}.
2023-11-07 09:34:43.050 [WARN ] [ax.web.service.spi.model.ServerModel] - Skipped registration of ServletModel{id=ServletModel-14,name='cxf-servlet',urlPatterns=[/*],contexts=[{WB,OCM-1,default,/}]} because of existing mappings. Servlet will be added as "awaiting registration".
2023-11-07 09:34:45.698 [INFO ] [org.openhab.core.Activator          ] - Starting openHAB 4.1.0.M3 (build Milestone Build)
2023-11-07 09:34:46.429 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Time zone set to 'America/New_York'.
2023-11-07 09:34:46.431 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to 'en_US'.
2023-11-07 09:34:46.434 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Measurement system set to 'US'.
2023-11-07 09:34:52.809 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'myhouse3on4.sitemap'
2023-11-07 09:34:53.346 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'myhouse.sitemap'
2023-11-07 09:34:53.389 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'ftpcamera.things'
2023-11-07 09:34:53.490 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'astro.things'
2023-11-07 09:34:53.506 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'jdbc.persist'
2023-11-07 09:34:53.648 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'mapdb.persist'
2023-11-07 09:34:53.776 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'refresh-if.rules'
2023-11-07 09:34:59.264 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'backdoor_area_Motion.rules'
2023-11-07 09:35:00.171 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'water_leakage.rules'
2023-11-07 09:35:00.276 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'thermostat_main_cool.rules'
2023-11-07 09:35:00.985 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Optimize_furnace.rules'
2023-11-07 09:35:00.991 [INFO ] [.core.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2023-11-07 09:35:01.319 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'front_door_lights.rules'
2023-11-07 09:35:01.752 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'thermostat_up_heat.rules'
2023-11-07 09:35:02.022 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Garage_Mud_Room.rules'
2023-11-07 09:35:02.792 [WARN ] [ax.web.service.spi.model.ServerModel] - ServletModel{id=ServletModel-33,name='/',urlPatterns=[/*],contexts=[{WB,OCM-1,default,/}]} can't be registered now in context / under "/*" mapping. Conflict with ServletModel{id=ServletModel-12,name='/',urlPatterns=[/*],contexts=[{WB,OCM-1,default,/}]}.
2023-11-07 09:35:02.795 [WARN ] [ax.web.service.spi.model.ServerModel] - Skipped registration of ServletModel{id=ServletModel-33,name='/',urlPatterns=[/*],contexts=[{WB,OCM-1,default,/}]} because of existing mappings. Servlet will be added as "awaiting registration".
2023-11-07 09:35:02.800 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'lightchg_nook.rules'
2023-11-07 09:35:03.183 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'sony.rules'
2023-11-07 09:35:03.559 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'thermostat_up_cool.rules'
2023-11-07 09:35:03.980 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'basement_lights.rules'
2023-11-07 09:35:04.242 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'globe_light.rules'
2023-11-07 09:35:04.477 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'external_camera_Gif.rules'
2023-11-07 09:35:05.546 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Office_motion.rules'
2023-11-07 09:35:06.158 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Wattage_reports-js.rules'
2023-11-07 09:35:07.609 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'thermostat_main_heat.rules'
2023-11-07 09:35:08.400 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Kitchen_motion.rules'
2023-11-07 09:35:09.401 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'lightchg_kitchen.rules'
2023-11-07 09:35:10.141 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Wattage_reports.rules'
2023-11-07 09:35:11.220 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Nook_Motion.rules'
2023-11-07 09:35:12.000 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'time_stamp.rules'
2023-11-07 09:35:12.226 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'bath_humidity.rules'
2023-11-07 09:35:12.780 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'scene_control_js_ui.rules'
2023-11-07 09:35:13.048 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Light-count.rules'
2023-11-07 09:35:18.613 [INFO ] [persistence.jdbc.internal.JdbcMapper] - JDBC::openConnection: Driver is available::Yank setupDataSource
2023-11-07 09:35:18.751 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Sink_Motion.rules'
2023-11-07 09:35:19.169 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Driveway_lights.rules'
2023-11-07 09:35:19.451 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'HEM-refresh-js.rules'
2023-11-07 09:35:20.795 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'HEM-refresh.rules'
2023-11-07 09:35:21.504 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Sensors.items'
2023-11-07 09:35:21.591 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'ftpimage.items'
2023-11-07 09:35:21.626 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'house-mode.items'
2023-11-07 09:35:21.643 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Light_count.items'
2023-11-07 09:35:22.519 [INFO ] [.network.internal.utils.NetworkUtils] - CIDR prefix is smaller than /24 on interface with address 169.254.214.21/16, truncating to /24, some addresses might be lost
2023-11-07 09:35:22.524 [INFO ] [.network.internal.utils.NetworkUtils] - CIDR prefix is smaller than /24 on interface with address 172.18.0.1/16, truncating to /24, some addresses might be lost
2023-11-07 09:35:25.091 [INFO ] [ternal.dhcp.DHCPPacketListenerServer] - DHCP request packet listener online
2023-11-07 09:35:27.965 [INFO ] [e.automation.internal.RuleEngineImpl] - Rule engine started.
2023-11-07 09:35:27.999 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to 'localhost' with clientid openhab

Lastly, which I resolved with a clean-cache restart was very strange. I kept getting this error (see below) beyond the startup window, but never had a rule file with this name. My thought was that there is a (new?) routine to copy the rules files (add tmp_) during an upgrade and then delete them. Apparently this file was missed on the delete. Despite the error it did not seem to affect the “real” rule.

2023-11-06 13:36:04.610 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'tmp_Optimize_furnace-1' failed: An error occurred during the script execution: context in tmp_Optimize_furnace
2023-11-06 13:54:07.314 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'tmp_Optimize_furnace-1' failed: An error occurred during the script execution: context in tmp_Optimize_furnace
2023-11-07 08:00:04.570 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'tmp_Optimize_furnace-1' failed: An error occurred during the script execution: context in tmp_Optimize_furnace
2023-11-07 08:23:10.786 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'tmp_Optimize_furnace-1' failed: An error occurred during the script execution: context in tmp_Optimize_furnace

Otherwise all seems fine.

EDIT: NEVERMIND Realized I still had a snapshot ui snapshot jar in the addons (It was to address the stepper card issue with M2). Removed it and refresh now works on Chrome, Edge and Safari. On restart the above log Warns are also gone.

1 Like

Hi Florian
I tested this again after I upgraded to 4.1.0.M3 and for me the problem still persists and it is easily reproducable:

Steps to reproduce the problem:

  1. open any OH page
  2. unplug the network cable and wait till the toast “Communication failure” appears
  3. plug the network cable back and wait until the toast disappears
  4. check that the toast container is still present and blocks the tabs under it to be clicked (see attached screenshot)

Tested on Windows 10 with Edge 119.0.2151.58, Chrome 119.0.6045.160 and freshly installed Firefox 120.0.

Should I create new issue for it or can we reopen the Container of toast ,,Communication failed" blocks the lower UI area · Issue #2069 · openhab/openhab-webui · GitHub again?
Or do you think it could be server-side cache problem as nobody else is complaining except me?

Hi Dusan,

I have just re-tested this on my system, and I now was able tro reproduce it.
Some time ago I provided a fix for it, but it seems that this fix got lost when I rebased one of my other PRs.

TLDR: I have created a PR to re-apply my fix.

2 Likes

Hello,

Thank you all for the ongoing developing of OH and spending your freetime for the whole community.

I have a question
what will be the new features of OH4.1?

Thank you

Please read the release notes linked in the announcement.

I just updated to M4 and I’ve recognized, that an item-state was not restored after the restart from the rrd4j database. The configuration hasn’t changed since about 2 years. I set the value manually, but after another restart it was lost again.
Has anybody a similar behavior?

More information please, what item type, what binding ?

1 Like