Issue of the topic:
when i load the rules page i get a small pop-up in the upper right corner saying
“error loading rule list”
when i create a rule and press the save button, nothing happen, … it isn’t saved. so when reloading the page, the created rule is gone.
If i manually create a test.rules file in /ets/openhab2/rules and make openhab2 the owner and groep, it appears in the rules list, but still i cannot save it when i add something.
restarting the openhab2 service or rebooting the computer, does not solve it, it still keeps saying error loading rule list
OH2 is 4 years out of date at this point. Specific support for it here in the forums is going to be very hard to find.
The ability to create rules using the OH2’s paperUI was very experimental, so it is not surprising that you should it that it is fragile and prone to breaking.
The new UI (MainUI) that is included in OH3 and OH4 is much more complete and the UI managed rules are stable and robust. The best advice that you can be given for this issue is to start to think about upgrading to a newer OH version for stability, security, and feature availability.
The only things I can add to what @JustinG wrote are:
Errors in openhab.log?
In no version can you create a rule through a separate text file and edit it in the UI. Only managed rules (i.e. those created through the UI) can be edited through the UI.
Furthermore, It’s been a very long time but I’m pretty sure that only Nashorn JS was really supported as a rules language in PaperUI. Rules DSL used an entirely different rules engine in ON 2 and I’m pretty sure managed rules were not supported.
Beyond that, Justin is right, there won’t be many left on this forum who can help. And if you’ve encountered a bug, there never going to be a fix published for it.