Yes I used openhab-cli clean-cache,
No I mean the problem wasn’t resolved to intrude the second option. I used the sudo command at the start logged in as openhabian user.
The permissions are as follows
`[22:20:17] openhabian@openHABianPi:/$ ls -l /var/lib/openhab2/
total 16332
drwxrwxr-x+ 4 openhab openhab 4096 Dec 21 18:53 cache
drwxrwxr-x+ 5 openhab openhab 4096 Dec 21 18:53 config
-rw-rw-r-- 1 root root 7248681 Dec 21 17:58 dump-2018-12-21_175738-883.zip
-rw-rw-r-- 1 root root 9432921 Dec 21 18:56 dump-2018-12-21_185623-990.zip
drwxrwxr-x+ 3 openhab openhabian 12288 Dec 21 18:43 etc
drwxrwxr-x+ 3 openhab openhab 4096 Dec 21 17:41 jsondb
drwxrwxr-x+ 2 openhab openhab 4096 May 28 2018 openhabcloud
drwxrwxr-x+ 5 openhab openhabian 4096 May 28 2018 persistence
drwxrwxr-x+ 8 openhab openhab 4096 Dec 21 21:29 tmp
-rw-rw-r-- 1 openhab openhab 37 May 28 2018 uuid`