Openhab 2.1 config files not reloading

Hi everyone,

as the title already mentions I have an issue with the release of Openhab 2.1. My configuration is completely text based because I’m migrating from 1.8.3. Openhab runs on Ubuntu 16.04.

Issue is that the configuration files are not reloaded after changes. There are no errors or warnings in the logs. Basically nothing happens when saving a config file.

Anybody else facing this issue with 2.1 stable release? Any ideas?
Tanks in advance.

Cheers,
Sebastian

which types of config files are not reloaded live (with OH2.1 running)?
items, rules, sitemaps, etc ?
can you post an example?

Also: do the files work properly as they are?
Do the changes become active only after restarting OH2.1?

Are the file mounted to your OH server in a CIFS mount? I experienced that problem as I had my config files on a shared folder from my NAS. Turns out that CIFS at least does not generate the file events that OH 2 relies upon to know when a file has changed.

Hi,

thanks for your feedback.

Up to now I tried it with things and items files. Also with map transformations.
None of them works.

Here is an example for things:

Thing network:device:repeaterBuero  "Repeater Büro" @ "Arbeitszimmer"       [ hostname="192.168.178.28", port=0, retry=3, timeout=5000, refresh_interval=900000, use_system_ping="false", dhcplisten="true" ]
Thing network:device:repeaterWz     "Repeater Wohnzimmer" @ "WOhnzimmer"    [ hostname="192.168.178.26", port=0, retry=3, timeout=5000, refresh_interval=900000, use_system_ping="false", dhcplisten="true" ]
Thing network:device:fritzbox       "Fritzbox" @ "FLur EG"                  [ hostname="192.168.178.1", port=0, retry=3, timeout=5000, refresh_interval=900000, use_system_ping="false", dhcplisten="true" ]
Thing network:device:milight        "Milight Bridge" @ "Wohnzimmer"         [ hostname="192.168.178.24", port=0, retry=3, timeout=5000, refresh_interval=900000, use_system_ping="false", dhcplisten="true" ]
Thing network:device:harmony        "Harmony Hub" @ "Wohnzimmer"            [ hostname="192.168.178.34", port=0, retry=3, timeout=5000, refresh_interval=900000, use_system_ping="false", dhcplisten="true" ]
Thing network:device:printer        "Drucker" @ "Arbeitszimmer"             [ hostname="192.168.178.40", port=0, retry=3, timeout=5000, refresh_interval=900000, use_system_ping="false", dhcplisten="true" ]

Thing exec:command:knockServer      "Server herunterfahren über knock"      [ command="/opt/openhab/openhab2/conf/shellscripts/knock_server_down.sh", interval=0, autorun=false ]
Thing exec:command:ipTest           "DSL Leitung testen"                    [ command="/opt/openhab/openhab2/conf/shellscripts/speedtest.sh", interval=0, autorun=false ]

ntp:ntp:time                        "Datum und Uhrzeit"                     [ hostname="0.de.pool.ntp.org", refreshInterval=10, refreshNtp=360, timeZone="Europe/Berlin", locale="de_DE" ]


Thing astro:sun:home                "Astro Tag"                             [ geolocation="49.xxxxx,6.xxxxx" ]
Thing astro:moon:home               "Astro Nacht"                           [ geolocation="49.xxxxx,6.xxxxx" ]

and an items example:

Switch NetRepeaterBuero			        "Repeater Büro"   						(gNet, pSave, pGraph)	                { channel="network:device:repeaterBuero:online" }
Switch NetRepeaterWz			        "Repeater Wohnzimmer"					(gNet, pSave, pGraph)	                { channel="network:device:repeaterWz:online" }
Switch NetFritzbox				"Fritzbox"		   						(gNet, pSave, pGraph, mWarning)	        { channel="network:device:fritzbox:online" }
Switch NetMilight				"Milight Bridge"						(gNet, pSave, pGraph, mWarning)	        { channel="network:device:milight:online" }
Switch NetHarmony				"HarmonyHub"							(gNet, pSave, pGraph)	                { channel="network:device:harmony:online" }
Switch NetPrinter				"Drucker Brother MFC-J480DW"			(gNet, pSave, pGraph)	                { channel="network:device:printer:online" }

Switch WolServer   				"Server starten"						                                        { wol="192.168.178.255#00:11:32:02:BC:75", autoupdate="false" }

Switch ExecKnockServer			        "Server herunterfahren"											                { channel="exec:command:knockServer:run", autoupdate="false" }

String IpDate					"Letzter Test [%s]" 					(pSave)
Number IpPing					"Ping [%.1f ms]"						(pSave)
Number IpDown					"Download [%.1f Mbit/s]"				(pSave, pGraph, mWarning)
Number IpUp			                "Upload [%.1f Mbit/s]"					(pSave, pGraph)
Switch IpTest					"Test starten"												                    { channel="exec:command:ipTest:run", autoupdate="false" }

When restarting openhab or reloading the core via Karaf console with bundle:restart org.eclipse.smarthome.model.core everything works perfect. No warnings or errors regarding the config files can be found in the logs and all changes become active.

Currently I run openhab2.1 just as a test system on my desktop PC. Live system still is 1.8.3 on a pi2.
Config is not mounted from a share. OH is manually installed to /opt/openhab/openhab2 and all config files are located there.

Hope this helps. If you need any further information just ask.

Thanks.
Sebastian

Hi all,

just want to give you an short update. It seems to work now.
Not sure what exactly was the reason. Only thing I changed was an update for visual studio code and the oh extension.
So I think it could be related to this issue

Cheers
Sebastian

All,

I experience the same issue since I have moved my root to a USB-Stick (using Raspi2 with micro-SD).
The strange thing is, that it works right away with changing the sitemap and rules, but not the items file.

Any idea?

EDIT 1:
bundle:restart org.eclipse.smarthome.model.core
did help and the systems works as expected.

EDIT 2:
After restarting I get a warning though:
Cannot customize folder watcher for folder '/etc/openhab2'