Many issues with v2.1

I use config-files for everything.

I had that same problem with lifx, had to uninstall the binding in paper and put org.eclipse.smarthome.binding.lifx-0.9.0.b4.jar in my /usr/share/openhab2/addons/ directory. I ran into this issue ONLY when using .things file.

I deactivated the docker0interface so the ip address issue is solved.

But the other problems still exist.

What is in your addons.cfg file? @sipvoip was that issue also with 2.1?

Issue started a few weeks ago after lifx changs.

addons.cfg

package = expert



# A comma-separated list of bindings to install (e.g. "sonos,knx,zwave")
binding = chromecast,lifx,harmonyhub,owserver1,mqtt1,kostalinverter,kodi,avmfritz,netatmo,onkyo,enocean1,epsonprojector1,weather1

# A comma-separated list of UIs to install (e.g. "basic,paper")
ui = paper,classic,basic

# A comma-separated list of persistence services to install (e.g. "rrd4j,jpa")
persistence = rrd4j,influxdb

# A comma-separated list of actions to install (e.g. "mail,pushover")
action = mqtt, mail

# A comma-separated list of transformation services to install (e.g. "map,jsonpath")
#transformation =

# A comma-separated list of voice services to install (e.g. "marytts,freetts")
#voice =

# A comma-separated list of miscellaneous services to install (e.g. "myopenhab")
misc = openhabcloud

I restored a backup for now and I am going to bed.

Thanks for the help so far.
I will try to solve these issues tomorrow or the day after when I have time.

I notice transformation “map” is missing, adding that should reduce your errors but I doubt that’s the root cause. After doing that, stop openhab and clear (not delete) your /var/lib/openhab2/cache and tmp folders before starting openhab again. Is there any difference?

Upgraded yesterday evening as well since then my homematic binding and zwave binding stopped working. All things are in state uninitialized.
Already removed the binding and re-installed. No changes.
In debug mode I don’t see any obvious hints other than very less info about the bindings at all. Seems like the bindings itself do not initialize properly.
Still investigating.

I think I found the easy fix:
Deleting the content of /var/lib/openhab2/cache and /var/lib/openhab2/tmp.

At least openhab is running and accessible again.

But lets go through the error I posted above and try to figure out what the different courses are.

There is no queryable persistence service registered with the id ‘rrd4j’

I guess this is just, because the vaulues for the last few minutes were missing so some values (AVR, MIN, MAX) could not be calculated.

Found multiple local interfaces - ignoring 192.168.1.34

I am not sure yet, but the webservice is accessible via the normal IP address.
So I think this is a problem af a binding maybe. (harmony is not working yet?!)

Validation issues found in configuration model ‘netatmo.things’, using it anyway:

Not sure yet.

Cannot get service reference for transformation service of type MAP

I am not getting this WARN anymore. Deleting the cache might solved this.

Cannot delegate command ‘OFF’ for item ‘Subwoofer_Color’ to handler for channel ‘lifx:colorlight:subwoofer:color’, because no thing with the UID ‘lifx:colorlight:subwoofer’ could be found.

I am not getting this WARN anymore. Deleting the cache might solved this.

It will have solved this, you might have missed my reply to you above:

I’m not entirely sure why this is happening though, it seems as if this is specific to APT so will have to continue looking.

Note that you will have to make the /tmp and set it’s permissions if you’ve deleted it. (I’m working on that) I’ll go back an edit the above to say just clear it.

Nope, I’m also seeing this with manual installed snapshot builds, especially with the #93* builds.
First start has the errors @christoph_wempe mentioned above (except the multiple interfaces) , second start (after everything has settled) is clean.
Only a few times I had to delete tmp and cache a second time to make it work.
In my opinion. not that big of an issue …

I still don’t understand the whole problem.

But from a user perspective, I would suggest the update should clean the cache and tmp folders if this prevents issues.

The folders are cleared on each update, but there must be something else happening on a new versions first launch which I don’t quite understand yet. I will keep looking into the issue.

the Harmony binding is still not working.
The Hub is discovered, but I cannot send or receive activity commands.

I just reproduced this on a test system.

After the update I get:

2017-07-02 01:41:04.621 [TRACE] [discovery.HarmonyHubDiscoveryService] - Request packet sent to: 224.0.0.1 Interface: eth0
2017-07-02 01:41:04.628 [TRACE] [discovery.HarmonyHubDiscoveryService] - Request packet sent to: 255.255.255.255 Interface: eth0
2017-07-02 01:41:04.629 [TRACE] [discovery.HarmonyHubDiscoveryService] - Request packet sent to: 192.168.1.255 Interface: eth0
2017-07-02 01:41:04.856 [TRACE] [discovery.HarmonyHubDiscoveryService] - READ email:my@mailadress.com;mode:3;accountId:652xxxx;ip:192.168.1.26;port:5222;uuid:e74e1192-8fe0-4a2a-801c-19afd37xxxx;hubId:97;current_fw_version:4.12.36;productId:Pimento;setupSessionType:0;setupSessionClient:Mob-c1578473-7192-4516-a879-f89ce1bacad2;setupSessionIsStale:true;setupSessionSetupType:;setupStatus:0;host_name:Wohnzimmer;friendlyName:Wohnzimmer;discoveryServerUri:https://svcs.myharmony.com/Discovery/Discovery.svc;openApiVersion:2;minimumOpenApiClientVersionRequired:1;recommendedOpenApiClientVersion:1;protocolVersion:{XMPP="1.0", HTTP="1.0", RF="1.0", WEBSOCKET="1.0"};hubProfiles:{Harmony="2.0"};remoteId:6655130;oohEnabled:true
2017-07-02 01:41:05.074 [TRACE] [discovery.HarmonyHubDiscoveryService] - READ email:my@mailadress.com;mode:3;accountId:652xxxx;ip:192.168.1.26;port:5222;uuid:e74e1192-8fe0-4a2a-801c-19afd37xxxx;hubId:97;current_fw_version:4.12.36;productId:Pimento;setupSessionType:0;setupSessionClient:Mob-c1578473-7192-4516-a879-f89ce1bacad2;setupSessionIsStale:true;setupSessionSetupType:;setupStatus:0;host_name:Wohnzimmer;friendlyName:Wohnzimmer;discoveryServerUri:https://svcs.myharmony.com/Discovery/Discovery.svc;openApiVersion:2;minimumOpenApiClientVersionRequired:1;recommendedOpenApiClientVersion:1;protocolVersion:{XMPP="1.0", HTTP="1.0", RF="1.0", WEBSOCKET="1.0"};hubProfiles:{Harmony="2.0"};remoteId:6655130;oohEnabled:true
2017-07-02 01:41:05.292 [TRACE] [discovery.HarmonyHubDiscoveryService] - READ email:my@mailadress.com;mode:3;accountId:652xxxx;ip:192.168.1.26;port:5222;uuid:e74e1192-8fe0-4a2a-801c-19afd37xxxx;hubId:97;current_fw_version:4.12.36;productId:Pimento;setupSessionType:0;setupSessionClient:Mob-c1578473-7192-4516-a879-f89ce1bacad2;setupSessionIsStale:true;setupSessionSetupType:;setupStatus:0;host_name:Wohnzimmer;friendlyName:Wohnzimmer;discoveryServerUri:https://svcs.myharmony.com/Discovery/Discovery.svc;openApiVersion:2;minimumOpenApiClientVersionRequired:1;recommendedOpenApiClientVersion:1;protocolVersion:{XMPP="1.0", HTTP="1.0", RF="1.0", WEBSOCKET="1.0"};hubProfiles:{Harmony="2.0"};remoteId:6655130;oohEnabled:true
2017-07-02 01:42:20.778 [ERROR] [harmonyhub.handler.HarmonyHubHandler] - Could not start activity
java.lang.NullPointerException
        at org.openhab.binding.harmonyhub.handler.HarmonyHubHandler.handleCommand(HarmonyHubHandler.java:109)[206:org.openhab.binding.harmonyhub:2.1.0]
        at org.eclipse.smarthome.core.thing.internal.ThingManager$4.call(ThingManager.java:377)[106:org.eclipse.smarthome.core.thing:0.9.0.b5]
        at org.eclipse.smarthome.core.thing.internal.ThingManager$4.call(ThingManager.java:1)[106:org.eclipse.smarthome.core.thing:0.9.0.b5]
        at org.eclipse.smarthome.core.common.SafeMethodCaller.executeDirectly(SafeMethodCaller.java:218)[99:org.eclipse.smarthome.core:0.9.0.b5]
        at org.eclipse.smarthome.core.common.SafeMethodCaller.callAsynchronous(SafeMethodCaller.java:189)[99:org.eclipse.smarthome.core:0.9.0.b5]
        at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:83)[99:org.eclipse.smarthome.core:0.9.0.b5]
        at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:67)[99:org.eclipse.smarthome.core:0.9.0.b5]
        at org.eclipse.smarthome.core.thing.internal.ThingManager.receiveCommand(ThingManager.java:374)[106:org.eclipse.smarthome.core.thing:0.9.0.b5]
        at org.eclipse.smarthome.core.items.events.AbstractItemEventSubscriber.receive(AbstractItemEventSubscriber.java:47)[99:org.eclipse.smarthome.core:0.9.0.b5]
        at org.eclipse.smarthome.core.internal.events.OSGiEventManager$1.call(OSGiEventManager.java:192)[99:org.eclipse.smarthome.core:0.9.0.b5]
        at org.eclipse.smarthome.core.internal.events.OSGiEventManager$1.call(OSGiEventManager.java:1)[99:org.eclipse.smarthome.core:0.9.0.b5]
        at org.eclipse.smarthome.core.common.SafeMethodCaller$CallableWrapper.call(SafeMethodCaller.java:181)[99:org.eclipse.smarthome.core:0.9.0.b5]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_131]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_131]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_131]
        at java.lang.Thread.run(Thread.java:748)[:1.8.0_131]

The harmony binding is working now.

Beside playing around with other bindings.I rebooted the system agein.
Maybe that solved it… :confused:

Does this mean, I need to delete everything like
sudo rm --recursive /var/lib/openhab2/cache/*

Which looks like this in my case:

-rw-r--r--   1 openhab openhab 1060 Jul  1 15:22 1498914492823.log
-rw-r--r--   1 openhab openhab  639 Jul  1 15:23 1498915357614.log
-rw-r--r--   1 openhab openhab  639 Jul  1 16:17 1498915555260.log
drwxr-xr-x   3 openhab openhab 4096 Jul  1 15:22 org.eclipse.core.runtime
drwxr-xr-x 219 openhab openhab 4096 Jul  3 11:57 org.eclipse.osgi

Correct, same command for /var/lib/openhab2/tmp too:

sudo rm --recursive /var/lib/openhab2/cache/*
sudo rm --recursive /var/lib/openhab2/tmp/*

openHAB should be stopped before you do this.

2 Likes

Alright. Thanks, Ben.

I tried it, but now 40 bindings are in the “Installed” status in the karaf console.

By the way, what is the difference between installed and resolved (active is quite clear ;-))

I looks like there is not happening much, so I might need to start the bindings manually again!?

Hi,

Sorry if not on topic, but, I just want to say that for me all worked just fine.
I have had OPenHab2 for a while on CentOs 7, runs under ‘root’ from /opt/openhab2 directory.
I made a full backup prior to the upgrade, then ran a script ‘sh -c “$(curl -fsSL https://raw.githubusercontent.com/openhab/openhab-distro/2.1.0/distributions/openhab/src/main/resources/bin/update)” – 2.1.0’ from the /opt/openhab2 directory and so far everything runs just fine with 2.1, system came up clean, no errors, no issues.
Bindings i have active are Z-Wave - came on with all devices and seems to work, hue emulation with link to alexa for audiocontrol, exec binding, plex and onkyo, persistence is set to MySQL. Link to cloud control and app also came up automatically.
So, so far it ‘just works’, and i did not have to delete /tmp content or do anything else.

2 Likes