Comments (15)
Hi Marcel, I cannot reproduce this effect. I just tried the latest snapshot from https://openhab.ci.cloudbees.com/job/openHAB2/34/ and it all works nicely when changing demo.items. I am using Mac OSX, on which platform are you testing?
from openhab-addons.
Hi Kai,
I'm on Win7. java version "1.7.0_45" Java(TM) SE Runtime Environment (build 1.7.0_45-b18) Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
Steps I take to reproduce the issue:
download build#34, extract both distribution-2.0.0-SNAPSHOT-demo.zip and distribution-2.0.0-SNAPSHOT-distribution.zip. Run start_debug.bat
edit demo.items (e.g. add a space or linefeed) and save.
Loop begins.
1 thing I noticed, while it is in the loop, when I replace the files (overwrite it) the loop stops e.g. with the one from the zip, or one saved earlier. I don't quite understand why, So it does not seem to be related to any error in the file itself. Also I played with Unix vs DOS format linefeeds and that also did not influence things.
from openhab-addons.
Seems to be related to Windows then - I will try to investigate this on a Windows machine next week.
from openhab-addons.
Hi Kai,
Indeed, seems to be windows related. When I run the same on linux it is without errors.
from openhab-addons.
Marcel, I retested this on Windows 8 with
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode, sharing)
and it works nicely. May I ask you to retest if the problem has disappeared with the alpha release for you as well?
from openhab-addons.
I had the same issue several times now. I cannot guarantee the root cause is the same though. With me the rootcause was in the hidden characters for EOL / EOF which windows uses. (I'm not into the text encoding stuff / don't want to be into it :))
In the past I noticed when editing files through notepad++ on windows, I got into the endless loop when I loaded them after a transfer with SCP. Then I "worked around" the issue by just creating new files on the Raspberry Pi (that's my archlinux config running openhab) using nano. All went fine for the passed months.
Somehow last week "something" triggered the endless loop again. Since I don't recall editing a file in windows, I thought this must have a different rootcause. So I downloaded openhab 1.6.0 just an hour ago, but the issue persists as I transfer my config files from one dir to the new install.
Logging:
1970-01-01 01:15:25.861 [INFO ] [c.internal.ModelRepositoryImpl] - Refreshing model 'zwave.items'
1970-01-01 01:15:35.984 [INFO ] [c.internal.ModelRepositoryImpl] - Refreshing model 'zwave.items'
1970-01-01 01:15:46.278 [INFO ] [c.internal.ModelRepositoryImpl] - Refreshing model 'zwave.items'
1970-01-01 01:15:56.422 [INFO ] [c.internal.ModelRepositoryImpl] - Refreshing model 'zwave.items'
1970-01-01 01:16:06.531 [INFO ] [c.internal.ModelRepositoryImpl] - Refreshing model 'zwave.items'
1970-01-01 01:16:16.662 [INFO ] [c.internal.ModelRepositoryImpl] - Refreshing model 'zwave.items'
1970-01-01 01:16:26.764 [INFO ] [c.internal.ModelRepositoryImpl] - Refreshing model 'zwave.items'
Now I opened one of the "items files" again using VI and see again strange EOL characters. Example:
Group Alles^M
Group Woonkamer (Alles) ^M
Group Keuken (Alles) ^M
Group Verlichting (Alles) ^M
Group Hal (Alles)^M
^M
String VoiceCommand^M
Switch ItemLampDressoir "Lamp dressoir" (Woonkamer,Verlichting) { zwave="2:command=switch_binary" }^M
EDIT: The characters are not visible in nano! I removed the special characters with vi and the problem is immediately gone.
Hope it helps...
from openhab-addons.
Now I reverted to the 1.5.0 config because Z-Wave seems to be broken in the latest repo. I see the problem again even when I do not have the ^M endings in the file. It seems like it's related to the creation date of the file. I have to trouble getting the correct date and time from a NTP server at startup of Archlinux.
All the files the system starts "refresing" have a creation date which is in the future. As soon as I open it and save it. It stops refreshing the model...
Just to give you all info. Don't want to send someone into the wrong path :)
-rw-r--r-- 1 root root 261 Jan 1 01:14 VoiceCommands.ignore
-rw-r--r-- 1 root root 1145 Jan 1 01:35 Heating.rules
-rw-r--r-- 1 root root 228 Jan 1 01:36 System.rules
-rw-r--r-- 1 root root 225 Jun 16 2014 README
-rw-r--r-- 1 root root 164 Nov 11 2014 Security.rules
[root@alarmpi rules]# date
Thu Jan 1 01:37:39 CET 1970
EDIT: Confirmed. Re-saved all the config files and my system is operational again. Heating is essential in the winter ;)
from openhab-addons.
All the files the system starts "refresing" have a creation date which is in the future.
Thanks for your analysis! This is very interesting and a date in the future might indeed explain the effect. How does it happen that the date is in the future? Simply by having non-sychronized environments?
from openhab-addons.
Yes. I didn't setup ntp in a persistent manner yet on archLinux. Therefore after I reboot my raspberry ends up at epoch timestart 1-1-1970...
from openhab-addons.
That explains :-)
So not sure if there is anything to do about that - shall we close this issue?
from openhab-addons.
Hi Kai,
I did indeed some more investigation. The source of the issue comes from the AbstractWatchQueueReader. In there the event is triggered many times without me touching the file actually before it was just when I edited a file, now it just continues to loop on
18:21:48.647 DEBUG o.e.s.c.d.i.ConfigDispatcher[:236] - Processing config file 'runtime.cfg'
18:21:48.803 DEBUG o.e.s.c.d.i.ConfigDispatcher[:236] - Processing config file 'logging.cfg'
I did not really find any cause of this behavior, the code looks straight from the java documentation.
Maybe it is some strange behavior of my virus scanner or something. I don't see this on my other laptop.
from openhab-addons.
@marcelrv So in your case it is not due to a timestamp in the future?
from openhab-addons.
No, indeed. my laptop is configured with normal time settings incl ntp updates as far as I know.
Is there a setting that I can stop the scanning fully, as this renders the laptop unusable with OH
from openhab-addons.
No, afaik there is no such option. Feel free to enter a feature request for this (best directly in ESH https://bugs.eclipse.org/bugs/buglist.cgi?product=SmartHome&component=Core).
from openhab-addons.
Quick update on this older issue (no solution though :( )
For now I believe the rootcause of the issue is the interaction of OH2 with the file and with the installed virus scanner (McAfee On-Access scan). I believe OH causes the virusscanner to be triggered and somehow that triggers again the processing in OH
21:11:48.963 [DEBUG] [.c.d.internal.ConfigDispatcher:222 ] - Processing config file 'logging.cfg'
21:11:48.971 [DEBUG] [.c.d.internal.ConfigDispatcher:222 ] - Processing config file 'runtime.cfg'
21:11:48.979 [DEBUG] [.c.d.internal.ConfigDispatcher:222 ] - Processing config file 'logging.cfg'
21:11:48.988 [DEBUG] [.c.d.internal.ConfigDispatcher:222 ] - Processing config file 'runtime.cfg'
21:11:48.996 [DEBUG] [.c.d.internal.ConfigDispatcher:222 ] - Processing config file 'logging.cfg'
21:11:49.004 [DEBUG] [.c.d.internal.ConfigDispatcher:222 ] - Processing config file 'runtime.cfg'
Issue made in the ESH list https://bugs.eclipse.org/bugs/show_bug.cgi?id=465285
from openhab-addons.
Related Issues (20)
- [rfxcom] No support for Brel and Dooya bidirectional motors
- [netatmo] Camera thing repeatly going OFFLINE with "Erreur interne" and ONLINE immediately after
- [hue] Bridge (v1) going OFFLINE and then ONLINE frequently due to connection lost HOT 4
- [shelly] Addon channels not discovered when in cover mode with Shelly Plus 2PM #14 HOT 7
- [shelly] Add support for pulse counter of Shelly Plus UNI HOT 1
- [solarforecast] suspend API calls over night HOT 4
- [dsmr] Just tested it in 4.2.0-SNAPSHOT and the "Actual Power Delivery" channel is shown twice in the UI. HOT 2
- [shelly] Range Extender Support is enabled by default HOT 1
- [shelly] Info events are sent to the alarm channel HOT 2
- [shelly] BLU HT - sensor channels missing HOT 2
- [dsmr] Add support for e-MUCS P1 V1.7
- [jablotron] connection to jablotron account fails as API has changed HOT 6
- [denonmarantz] Add HTTP protocol support for newer receivers
- [shelly] Shelly Pro 3EM shows only 1 meter instead of 3
- [stiebeleltron] Add SG-Ready to the Stiebel-Eltron ISG binding HOT 1
- [icalendar] gracefully ending maintenance
- Night build is failing due to SAT errors for airq, airquality and airvisualnode HOT 1
- [shelly] Some channels on Shelly Pro 3EM report NULL HOT 3
- [Shelly] New Device Mini 1 Gen 3
- [tado] IllegalArgumentException TadoModeTerminationCondition: declares multiple JSON fields named 'type' HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openhab-addons.