/var/log/openhab will be created if openhab is running. You must convert all samba folders if you use samba also set to openhab without 2.
Everything will be as before.
I have manually created the openhab folder under /var/log now.
When i check the service status i see the permission error:
Dec 22 14:28:25 openhab3 karaf[8246]: Caused by: java.io.FileNotFoundException: /var/log/openhab/openhab.log (Permission denied)
EDIT:
I have now modified the permission and openhab was able to create the logfile.
Anyway after a reboot the folder /var/log/openhab was removed automatically. (/var/log/openhab2) still exists.
So… I had the same issue… I installed openHABian Configuration Tool from instructions found here : openHABian | openHAB
I tried the “Fix permissions” but got “There was an error or interruption during the execution of “10 Apply Improvements”” as others before me.
Then I tried a few other improvements from the configuration tool that seemed safe and after a while the “fix permissions” went through and Openhab 3 eventually started. But also it took a loooooooooong time the first time.
I’m also getting the same error using the OH3 openhabian-config tool.
Applying file permissions recommendations… FAILED (openhab folders)
How did you make it working?
At the moment I’m unable to copy a backup to \openhabiandevice\openHAB-userdata.
Also using WinSCP give me an permission error to /var/lib/openhab/backups
I don’t remember exactly what I’ve done. I know fix permissions did not work when I first tried, then I’ve tried other options of the openhabian-config tool then when I tried fix permissions again it worked.
So it was maybe just luck. I’ll have to try again soon because I had another issue (nothing to do with OH3) and had to use a backup… but I did not have an OH3 backup yet