'openhab.cfg' cannot be read and rules file not loaded

'openhab.cfg' cannot be read

I got this at startup.

And not all rules files loaded too:

2015-10-01 17:28:05.208 [ERROR] [r.i.DefaultResourceDescription] - presense.rules (No such file or directory)
java.io.FileNotFoundException: presense.rules (No such file or directory)
        at java.io.FileInputStream.open(Native Method) ~[na:1.7.0_79]

But rules file exists.
How to fix that?


OH 1.8 synology x86

That is concerning. I’ve never seen that one. The first thing I would check is that the permissions are OK for the openhab user to read.

I assume some did load? This is a known issue that to my knowledge has not been fixed yet. When you have multiple rules files sometimes the rules engine hits some sort of bug that prevents it from reading in all the files. There have been some work arounds proposed but they are all clunky and unreliable. Personally, I make sure to check the logs and when I see that error I simply touch the failed rules files and openHAB loads it on this second attempt.

Same problem here: