[SOLVED] Erro while saving a rule

I just installed successfully my new raspberry pi 4 with the openhabian image from here:
I can access the openhab from my browser and can access the openhabian from ssh.
I turned off the simple mode on item linking.
I added some things including door sensor.

Than I created new files on /etc/openhab2/items :
I created new file - /etc/openhab2/things/home.things
I created new file - /etc/openhab2/sitemaps/home.sitemap

I created an item called Main_door and linked it to the sensor.
Then I created a rule:

rule "Log open door"
    Item Main_door changed to OPEN
    logInfo("Lobi", "door is open")

But I am getting this error on the log:

[WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/home.rules

What am I doing wrong?

Try restarting OH with sudo systemctl restart openhab2 from command line. Then give OH time to restart and try your rule again. Per the log, OH did not complete the rule update before it was executed.

I see in the error log you placed the home.rules file in the rules folder, but you do not tell that here. But is dat correct?

So just to be sure, did you place the home.rules in the /etc/openhab2/rules folder ?

Second question, does a reboot fix the issue? sudo reboot 0

You right I put it in mistake on the items folder…