A long time ago I installed Openhabian with OH2 on a raspberry pi. I later upgraded to OH3 through openhab-config after it became available, and it worked fine. I upgraded again in the same way yesterday, and now it looks like almost nothing works. Rules do not trigger, the Android app does not find my server, and the web interface does not work. I have tried cleaning the cache and rebooting, but it doesn’t help. This is the full contents of /var/log/openhab/openhab.log:
2023-04-11 12:43:53.387 [ERROR] [ternal.service.BootFeaturesInstaller] - Error installing boot features
org.apache.karaf.features.internal.util.MultiException: Error:
Error downloading mvn:org.apache.karaf.wrapper/org.apache.karaf.wrapper.core/4.3.7
at org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader.<init>(MavenDownloadManager.java:91) ~[?:?]
at org.apache.karaf.features.internal.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:72) ~[?:?]
at org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:457) ~[?:?]
at org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:452) ~[?:?]
at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:224) ~[?:?]
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:399) ~[?:?]
at org.apache.karaf.features.internal.service.Deployer.handlePrerequisites(Deployer.java:1121) ~[?:?]
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:394) ~[?:?]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1069) ~[?:?]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:1004) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
Suppressed: java.io.IOException: Error downloading mvn:org.apache.karaf.wrapper/org.apache.karaf.wrapper.core/4.3.7
at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:77) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: java.io.IOException: Error resolving artifact org.apache.karaf.wrapper:org.apache.karaf.wrapper.core:jar:4.3.7: [Could not find artifact org.apache.karaf.wrapper:org.apache.karaf.wrapper.core:jar:4.3.7 in openhab (https://openhab.jfrog.io/openhab/libs-release/)]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.configureIOException(AetherBasedResolver.java:803) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:774) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:657) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:598) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:565) ~[?:?]
at org.apache.karaf.features.internal.download.impl.MavenDownloadTask.download(MavenDownloadTask.java:52) ~[?:?]
at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:60) ~[?:?]
... 6 more
Suppressed: shaded.org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.apache.karaf.wrapper:org.apache.karaf.wrapper.core:jar:4.3.7 in openhab (https://openhab.jfrog.io/openhab/libs-release/)
at shaded.org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:48) ~[?:?]
at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:368) ~[?:?]
at shaded.org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:75) ~[?:?]
at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:642) ~[?:?]
at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:262) ~[?:?]
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:489) ~[?:?]
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:390) ~[?:?]
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:215) ~[?:?]
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:192) ~[?:?]
at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:247) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:767) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:657) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:598) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:565) ~[?:?]
at org.apache.karaf.features.internal.download.impl.MavenDownloadTask.download(MavenDownloadTask.java:52) ~[?:?]
at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:60) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Error resolving artifact org.apache.karaf.wrapper:org.apache.karaf.wrapper.core:jar:4.3.7
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:413) ~[?:?]
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:215) ~[?:?]
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:192) ~[?:?]
at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:247) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:767) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:657) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:598) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:565) ~[?:?]
at org.apache.karaf.features.internal.download.impl.MavenDownloadTask.download(MavenDownloadTask.java:52) ~[?:?]
at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:60) ~[?:?]
... 6 more
I did some searching, and the only relevant thing I found was someone with the wrong Java version, who was told to ensure that they ran on Java 11. Which it appears I do:
$ java --version
openjdk 11.0.13 2021-10-19 LTS
OpenJDK Runtime Environment Zulu11.52+13-CA (build 11.0.13+8-LTS)
OpenJDK Client VM Zulu11.52+13-CA (build 11.0.13+8-LTS, mixed mode)
As mentioned above, I upgraded with openhab-config, and I am still able to open it. If I open the menu item to select branch, it claims I am on “some other version you fetched yourself”, which seems wrong. If I try to select “release”, it fails and give the following message:
There was an error or interruption during the execution of:
"01 | Select Branch"
Please try again. If the error persists, please read
/opt/openhabian/docs/openhabian-DEBUG.md or
https://github.com/openhab/openhabian/blob/main/docs/openhabian-DEBUG.md how
to proceed.
The command line prints:
$ sudo openhabian-config
2023-04-11_20:35:46_CEST [openHABian] Checking for root privileges... OK
2023-04-11_20:35:47_CEST [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
fatal: detected dubious ownership in repository at '/opt/openhabian'
To add an exception for this directory, call:
git config --global --add safe.directory /opt/openhabian
fatal: detected dubious ownership in repository at '/opt/openhabian'
To add an exception for this directory, call:
git config --global --add safe.directory /opt/openhabian
fatal: detected dubious ownership in repository at '/opt/openhabian'
To add an exception for this directory, call:
git config --global --add safe.directory /opt/openhabian
2023-04-11_20:35:47_CEST [openHABian] openHABian configuration tool version: []{}()
2023-04-11_20:35:47_CEST [openHABian] Checking for changes in origin branch openHAB3... fatal: not in a git directory
FAILED (git email)
2023-04-11_20:35:47_CEST [openHABian] Adding slightly tuned bash configuration files to system... OK
fatal: detected dubious ownership in repository at '/opt/openhabian'
To add an exception for this directory, call:
git config --global --add safe.directory /opt/openhabian
fatal: detected dubious ownership in repository at '/opt/openhabian'
To add an exception for this directory, call:
git config --global --add safe.directory /opt/openhabian
fatal: detected dubious ownership in repository at '/opt/openhabian'
To add an exception for this directory, call:
git config --global --add safe.directory /opt/openhabian
fatal: detected dubious ownership in repository at '/opt/openhabian'
To add an exception for this directory, call:
git config --global --add safe.directory /opt/openhabian
2023-04-11_20:37:32_CEST [openHABian] Updating myself... fatal: detected dubious ownership in repository at '/opt/openhabian'
To add an exception for this directory, call:
git config --global --add safe.directory /opt/openhabian
mv: cannot stat '/opt/openhabian/docs/NEWS.md': No such file or directory
FAILED (update git repo)
fatal: detected dubious ownership in repository at '/opt/openhabian'
To add an exception for this directory, call:
git config --global --add safe.directory /opt/openhabian
fatal: detected dubious ownership in repository at '/opt/openhabian'
To add an exception for this directory, call:
git config --global --add safe.directory /opt/openhabian
fatal: detected dubious ownership in repository at '/opt/openhabian'
To add an exception for this directory, call:
git config --global --add safe.directory /opt/openhabian
I really have no idea how to fix this, and I really don’t want to reinstall everything. Is someone able to parse what the problem is from the log? Or have some suggestions for what to try?