Failed installing after apt-get upgrade

  • Platform information:
    • Hardware: Raspberry Pi 2b
    • Raspbian Strech
    • Java Runtime Environment: openjdk version “1.8.0_152”
    • openHAB version: 2.2.0 Beta

I have a testinstallation of OH2 running several month now. This installation should replace my good running OH1 sometimes.
After doing an apt-get update and apt-get upgrade an error appears at start.
The repo I’m using is: deb https://dl.bintray.com/openhab/apt-repo2 testing main

The errormesage is:
2018-01-05 11:09:50.828 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-ui-“classic, openhab-ui-habmin”, openhab-action-“mail”, openhab-persistence-“rrd4j”, openhab-transformation-“map, openhab-transformation-jsonpath”, openhab-binding-weatherunderground", openhab-misc-“restdocs”, openhab-binding-"exec’: Error restarting bundles:
Unable to acquire the state change lock for the module: osgi.identity; type=“osgi.bundle”; version:Version=“0.10.0.b1”; osgi.identity=“org.eclipse.smarthome.model.script.runtime”; singleton:=“true” [id=147] STARTED [STARTED]

What I tried:

  1. delete the content of tmp and cache
  2. remove all rules
  3. remove the climacons with karaf console
  4. remove homatic binding with karaf console

The error is still there. Any idea what to try next?
Greetings Zennix

Hi @Zennix,

Looks like a couple of issues:

  1. The addons cfg has obtained quotation marks somehow. Edit the ‘/var/lib/openhab2/etc/org.openhab.addons.cfg’ file so that it doesn’t contain quotations. Post the contents of the file here if you’re not sure of the syntax and we can let you know.

  2. openhab could also be having trouble with permissions, what is he output of the command openhab-cli info. This might not be a problem though if 1 resolves the issue though.

Hi Ben,

thanks for helping me. After removing the quotation marks the first issue has gone.
Now I got the following error at start:

2018-01-06 10:51:41.036 [INFO ] [er.internal.HomeBuilderDashboardTile] - Started Home Builder at /homebuilder
2018-01-06 10:51:43.829 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at http://192.168.0.131:8080
2018-01-06 10:51:43.853 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at https://192.168.0.131:8443
2018-01-06 10:51:59.966 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Haus.items’
2018-01-06 10:52:00.309 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Steckdosen.items’
2018-01-06 10:52:00.667 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Weather.items’
2018-01-06 10:52:00.856 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Tage.items’
2018-01-06 10:52:00.952 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'MQTT.items’
2018-01-06 10:52:01.085 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Homematic.items’
2018-01-06 10:52:02.473 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'rrd4j.persist’
2018-01-06 10:52:09.834 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2018-01-06 10:52:11.191 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2018-01-06 10:52:15.017 [ERROR] [xtext.validation.CompositeEValidator] - Error executing EValidator
java.util.ConcurrentModificationException: null
… Java error mesages

The output of openhab-cli info:

root@rasp-02:~# openhab-cli info
Version: 2.2.0 (Build)

User: openhab (Active Process 2776)
User Groups: openhab tty dialout gpio

Directories: Folder Name | Path | User:Group
----------- | ---- | ----------
OPENHAB_HOME | /usr/share/openhab2 | openhab:openhab
OPENHAB_RUNTIME | /usr/share/openhab2/runtime | openhab:openhab
OPENHAB_USERDATA | /var/lib/openhab2 | openhab:openhab
OPENHAB_CONF | /etc/openhab2 | openhab:openhab
OPENHAB_LOGDIR | /var/log/openhab2 | openhab:openhab

URLs: http://192.168.0.131:8080
https://192.168.0.131:8443

Any further idea?

Thanks / Zennix

Found it, was a problem with my sitemap.

Thanks

1 Like

Hi Thomas,

I have the same problem. Could you give me a hint how to solve it - don’t know what to check at my sitemap.

Welf

Hi WeRo,

didn’t know exactly what the problem with the sitemap was. Sorry.

Try to make a clean sitemap file in /etc/openhab2/sitemaps like

sitemap Haus label=“Hauptmenue”
Frame label=“Datum und Zeit”
{
Text item=Datum
Text item=Zeit
}

create the two items Datum and Zeit in your items file or take ohter string item to show.

Greetings / Zennix