Error while opening file during update: /etc/openhab2/rules/TESTING.rules - But there is no file: "TESTING.rules"

Hi all,
after upgrade from 2.5.8-1 to 2.5.10-1 with openhabian-config i get a lot of warnings in the log:

  • 2020-11-03 11:33:39.433 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/Schnarch_cron_OFF.rules
  • 2020-11-03 11:33:39.438 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/TESTING.rules
  • 2020-11-03 11:33:39.442 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/WLAN_cron_OFF_test.rules
  • 2020-11-03 11:33:39.446 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/on__HeizungHauptschalter.rules
  • 2020-11-03 11:33:39.450 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/on_KuecheHeizung.rules
  • 2020-11-03 11:33:39.453 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/hzg_Schlafzimmer_monatlich_an.rules
  • 2020-11-03 11:33:39.457 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/badezimmerlicht.rules
  • 2020-11-03 11:33:39.460 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/LichtAusNachts.rules
  • 2020-11-03 11:33:39.470 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/WLAN_cron_ON.rules
  • 2020-11-03 11:33:39.475 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/Flurtuer_zu_WohnHeizung.rules
  • 2020-11-03 11:33:39.479 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/Mischer_auto_auf.rules
  • 2020-11-03 11:33:39.483 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/off_SchlafHeizung.rules
  • 2020-11-03 11:33:39.488 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/refresh_SolarMain.rules
  • 2020-11-03 11:33:39.491 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/flurlicht.rules
  • 2020-11-03 11:33:39.499 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/Schnarch_cron_ON.rules
  • 2020-11-03 11:33:39.502 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/Mischer_abends_zu.rules
  • 2020-11-03 11:33:39.506 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/on_WohnzimmerHeizung.rules
  • 2020-11-03 11:33:39.508 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/off_KuecheHeizung.rules
  • 2020-11-03 11:33:39.511 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/Treppenhauslicht.rules
  • 2020-11-03 11:33:39.515 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/brauchwasser_sw2.rules
  • 2020-11-03 11:33:39.518 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/Fenster_auf_BadHeizung.rules
  • 2020-11-03 11:33:39.520 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/off__HeizungHauptschalter.rules
  • 2020-11-03 11:33:39.523 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/off_ArbeitHeizung.rules
  • 2020-11-03 11:33:39.525 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/Fenster_zu_BadHeizung.rules
  • 2020-11-03 11:33:39.531 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/on_ArbeitHeizung.rules
  • 2020-11-03 11:33:39.534 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/Flurtuer_auf_WohnHeizung_if.rules
  • 2020-11-03 11:33:39.537 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/hzg_Schlafzimmer_monatlich_aus.rules
  • 2020-11-03 11:33:39.540 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/on__FlurlichtHauptschalter.rules
  • 2020-11-03 11:33:39.542 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/iphone2.rules
  • 2020-11-03 11:33:39.545 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/iphone.rules
  • 2020-11-03 11:33:39.547 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/Flurtuer_auf_WohnHeizung.rules
  • 2020-11-03 11:33:39.550 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/on_BadHeizung.rules
  • 2020-11-03 11:33:39.553 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/WLAN_cron_OFF.rules
  • 2020-11-03 11:33:39.556 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/off_BadHeizung.rules
  • 2020-11-03 11:33:39.558 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/WLAN_cron_ON_test.rules
  • 2020-11-03 11:33:39.561 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/off__FlurlichtHauptschalter.rules
  • 2020-11-03 11:33:39.563 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/Brunnen_OFF_crontest.rules
  • 2020-11-03 11:33:39.566 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/brauchwasser.rules
  • 2020-11-03 11:33:39.568 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/on_SchlafHeizung.rules
  • 2020-11-03 11:33:39.571 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/Badezimmerradio.rules
  • 2020-11-03 11:33:39.574 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/off_WohnzimmerHeizung.rules
  • 2020-11-03 11:33:39.576 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/PC_ON_crontest.rules
  • 2020-11-03 11:33:39.579 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/schlafzimmerlicht.rules
  • 2020-11-03 11:33:39.582 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/refresh_mischerTemp.rules

Special the secound warning:

  • 2020-11-03 11:33:39.438 [WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/TESTING.rules

I can not understand because the rules “TESTING.rules” does not exist. This is a rules, which I have used four, five weeks ago for TESTING -so it´s name - and I have deleted the rules after tests are finished. So there is no such a rules file in the given path!
Can anybody explain me, how I can find and delete this rule?
Somewhere in CACHE? or TMP or?
In the meantime I have stoped the service and clear all files underneath /var/lib/openhab2 -> /cache and -> /tmp as often discripted. No change in behaviour: The warning about the error are still there
Also I changed recursivly all ownership of all files underneath /etc/openhab2 to user openhab and group openhab. Some errors gone some not…

Thank you for explain where the secound storag place for rules is and helping me deleting the “TESTING.rules” ad all other older deleted ones.
Cheers
Stef
Platform information:

Tinkerboard 2GB RAM
Debian 10
Java Runtime Environment: openjdk version "1.8.0_252"

OpenJDK Runtime Environment (Zulu 8.46.0.225-CA-linux_aarch32hf) (build 1.8.0_252-b225)
OpenJDK Client VM (Zulu 8.46.0.225-CA-linux_aarch32hf) (build 25.252-b225, mixed mode, Evaluation)

openHAB version: openhabian 2.5.10-1

It’s not that these files are thought to exist, it is that it thinks they have just been updated.
Random guess - you have your editor open on another system.

“Random guess - you have your editor open on another system.”

What does this mean?

Of course I have open a secound shell to monitor openhab:
first:
tail -f /var/log/openhab2/openhab.log

and on the secound shell i lunch commands: for example:
java --version
or
sudo systemctl restart openhab2

I was thinking along the lines of, perhaps you use VSCode or something for rules editing, and it is active somewhere. Something appears to be ‘touching’ rules files. Maybe it’s more along the lines of a backup service.

Another thought - are you using zram?

no.
I don´t know what zram is?

How can I check if “zram” is part of my system? (Maybe is a part of linaro (debian 10 based linux OS for Tinkerboard)

Normaly I use vi to build and change files

There is no other backup system installed (without embedded scripts by openhab)

Thanks

BTW:
When I step back to 2.5.8-1 the errors are gone - Reinstall 2.5.10-1 the errors are back.
Strange!!!

openhabian user? Then I think you get zram by default.

zram copies a selection of working files from hard storage to memory at each boot, and mirrors your filesystem in memory. Better performance, reduced SD card writes.
Of course it has to write updates back to hard storage at some time.
You can probably see what I’m speculating here, something messed up sometime and your hardstore is out of sync with memory copy for whatever reason - location, permissions, fault, blah, I’ve no idea.

You may need to temporarily disable zram to see what is happening, but I don’t know much about that.
Check your openhabian version at least - there have been changes in this area.
@mstormi may be able to say if I’m completely misleading you here.

Hi,
I red the artikel:

First I tried to uninstall zram using option 38 as discript in the doc.
I got the error:
│ There was an error or interruption during the execution of: │
│ “30 | System Settings” │
│ │
│ Please try again. If the error persists, please read │
│ /opt/openhabian/docs/openhabian-DEBUG.md or │
https://github.com/openhab/openhabian/blob/master/docs/openhabian-DEBUG.md
│ how to proceed. │

Now I´m confused and the “…openhabian-DEBUG.md” is in my eyes - sorry for that - not easy understandable. Better the github doc about that.

BUT in the docs above they talk abaout /etc/zram as configuration place. This path is not in my system.

As I say before: Using openhab2-2.5.8-1 there are no errors on exactly the same openhabian basic system.
In my eyes, if the error is couse by the use of zram, it must be there in both software levels.
Or is ZRAM using are forced with the new 2.5.10-1 level?

Thanks Stef

There have been changes in zram configuration, that’s all I know. What version of openhabian are you using now? What have you used before?

i didn’t change openhabian by myself.
i do an update with openhabian-config using 03 openhab to latest stable

where can i see the version of openhabian ? is there openhabian -v or something else?

BTW My systen is runing on a m.2 disk attached via USB

Gruß Stefan Heinz
send mobile

Hinweis: Der Inhalt dieser eMail ist vertraulich und ausschließlich für den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser eMail sein sollten, setzen Sie sich bitte mit dem Absender der eMail oder unter der angegebenen Telefonnummer in Verbindung und vernichten Sie diese eMail auf Ihren Speichermedien.

Notice: The information contained in this email is confidential. It is intended solely for the addressee named above. If you are not the intended recipient, please notify the sender immediately and destroy this message on any media of yours.