Since my openhabian on a Pi4 did’t work anymore, probably due to an SD-Card error, I flashed a openHABian v1.7.1 image to an new SD and completed the setup process. Since I didn’t had a regular config-backup I replaced the Files /usr/share/openhab, /var/lib/openhab and /etc/default/openhab with the files from my broken installation. This works pretty well but installation of bindings does’t work anymore. I get the same log message every minute:
I still have a backup of my old OH-SD so If I don’t manage to fix the new installation maybe there is another way to migrate the config to a working OH3?
Ok so I‘ll Check userdata/etc/org.apache.karaf.features.xml but I donˋt understand where this is located exactly on my System. How do I geht the absolut path?
<?xml version="1.0" encoding="UTF-8"?>
<featuresProcessing xmlns="http://karaf.apache.org/xmlns/features-processing/v1.0.0">
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- you can eventually blacklist features repositories, features, or even bundle here, to exclude from resolution -->
<!-- <blacklistRepositories/> -->
</featuresProcessing>
I replaces it with
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- you can eventually blacklist features repositories, features, or even bundle here, to exclude from resolution -->
<!-- <blacklistRepositories/> -->
<bundleReplacements>
<bundle originalUri="mvn:org.ops4j.pax.logging/pax-logging-api/[0,2.0.13)" replacement="mvn:org.ops4j.pax.logging/pax-logging-api/2.0.13" mode="maven" />
<bundle originalUri="mvn:org.ops4j.pax.logging/pax-logging-log4j2/[0,2.0.13)" replacement="mvn:org.ops4j.pax.logging/pax-logging-log4j2/2.0.13" mode="maven" />
<bundle originalUri="mvn:org.ops4j.pax.logging/pax-logging-logback/[0,2.0.13)" replacement="mvn:org.ops4j.pax.logging/pax-logging-logback/2.0.13" mode="maven" />
</bundleReplacements>
but I_t didn’t work. I also tried to replace “2.0.13” with “2.0.12” since Error massage says
mvn:org.ops4j.pax.logging/pax-logging-api/2.0.12
but I’t didn’t work either. Do I have to restart the system or something else in order for this to work?
I finally solved it. I did a config-Backup on the partially working system, set up a new System and imported the Backup. It refused to start openhab, but I fixed it with @Kai ‘s recommendation.