hi, i have exactly the same problem also on raspberry 4, openhabian 1.6 and OPENHAB 3.0.0M2.
I can’t install any addons.
I get the same errors, did you then solve it?
thanks
I had this with a fresh install on OH3.0.0.M2 running within docker. The error disappeared after I set the network interface, cleared cache/tmp and restarted. Not sure if that was what solved it.
Not sure it has to do with anything. I face the same issue.
Did a manual
sudo apt purge openhab2
sudo apt update
sudo apt purge openhab
sudo apt install openhab
Hi,
I had the same issue and reinstalled multiple times.
Finally I figured out how to avoid that error (on my installation of OH3 M5):
By default the Remote Repository Access was enabled.
You find it under “Settings -> "AddOns Management”
After disabling it, the installation of the components works fine.
I had the same issue with a fresh setup of openhab 3.1 as docker container on a new raspberry pi 4: Trying to install any addon through the UI brought this message
“Installation of add-on xy failed”.
The logs contained this line:
[ERROR] [t.core.internal.addons.AddonResource] - Exception while installing add-on: null
… which isn’t that useful.
User and group ids where setup correctly to the id of a host user (1000) ans passed to the container. I could verify this, as the userdata (logs and openhab settings) was written to the relevant host directory. I’ve also tried to give all users write access to the userdata directory, but it didn’t help.
In the end it was solved by disabling access to remote repository as decribed by @peter_demus, though I do not understand why this solves the problem and why I’m still able to install addons without manually downloading them.
Further on I needed to manually create the items, rules, scripts, services, sitemaps and things directories in openhab/conf.