In addition to what sihui brings up, there is only one time where clearing the cache is advisable or necessary: when there is a problem installing/uninstalling an add-on. All clearing the cache does is force openHAB to redownload and install all the add-ons.
That isn’t controlled by an add-on. But by clearing the cache you now have forced OH to reinstall all the addons.
And as the link sihui explains, the add-ons are not longer on Bintray. You need to upgrade to 3.0.2 or later so that OH will look for the add-ons in the right location.
Hi
I run this command and got some exception - something with java files:
the output is
java.io.FileNotFoundException: /var/lib/openhab/cache/org.eclipse.osgi/.manager/.fileTableLock (Permission denied)
Jun 08 15:18:32 openhab karaf[23715]: at java.base/java.io.RandomAccessFile.open0(Native Method)
Jun 08 15:18:32 openhab karaf[23715]: at java.base/java.io.RandomAccessFile.open(RandomAccessFile.java:345)
Jun 08 15:18:32 openhab karaf[23715]: at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:259)
Jun 08 15:18:32 openhab karaf[23715]: at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:214)
Jun 08 15:18:32 openhab karaf[23715]: at org.eclipse.osgi.internal.location.Locker_JavaNio.lock(Locker_JavaNio.java:36)
Jun 08 15:18:32 openhab karaf[23715]: at org.eclipse.osgi.storagemanager.StorageManager.lock(StorageManager.java:388)
Jun 08 15:18:32 openhab karaf[23715]: at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:701)
Jun 08 15:18:32 openhab karaf[23715]: at org.eclipse.osgi.storage.Storage.getChildStorageManager(Storage.java:1776)
Jun 08 15:18:32 openhab karaf[23715]: at org.eclipse.osgi.storage.Storage.getInfoInputStream(Storage.java:1793)
Jun 08 15:18:32 openhab karaf[23715]: at org.eclipse.osgi.storage.Storage.<init>(Storage.java:132)
Jun 08 15:18:32 openhab karaf[23715]: at org.eclipse.osgi.storage.Storage.createStorage(Storage.java:85)
Jun 08 15:18:32 openhab karaf[23715]: at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:68)
Jun 08 15:18:32 openhab karaf[23715]: at org.eclipse.osgi.launch.Equinox.<init>(Equinox.java:31)
Jun 08 15:18:32 openhab karaf[23715]: at org.eclipse.osgi.launch.EquinoxFactory.newFramework(EquinoxFactory.java:24)
Jun 08 15:18:32 openhab karaf[23715]: at org.apache.karaf.main.Main.launch(Main.java:256)
Jun 08 15:18:32 openhab karaf[23715]: at org.apache.karaf.main.Main.main(Main.java:178)
Jun 08 15:18:32 openhab systemd[1]: openhab.service: Main process exited, code=exited, status=255/EXCEPTION
Jun 08 15:18:32 openhab systemd[1]: openhab.service: Failed with result 'exit-code'.
Jun 08 15:18:37 openhab systemd[1]: openhab.service: Service RestartSec=5s expired, scheduling restart.
Jun 08 15:18:37 openhab systemd[1]: openhab.service: Scheduled restart job, restart counter is at 15.
Jun 08 15:18:37 openhab systemd[1]: Stopped openHAB instance, reachable at http://openhab:8080.