Openhab 2.2 stable upgrade errors

openhab2
upgrade
Tags: #<Tag:0x00007f6ce65a98d0> #<Tag:0x00007f6ce65a9768>

(Ben Clark) #21

Yep that’s the one,

Let’s try more debugging…

sudo systemd-analyze verify /usr/lib/systemd/system/openhab2.service
sudo systemctl daemon-reload

(Christos) #22

Does not seem to recognise ‘verify’

pi@raspberrypi:/etc/openhab2 $ sudo systemd-analyze verify
Unknown operation 'verify'.
pi@raspberrypi:/etc/openhab2 $ sudo systemd-analyze
blame           critical-chain  dot             dump            plot            set-log-level   time

(Bram Ottoy) #23

Hi,

I had the same issue - based on your post I looked at the openhab2.service file in the

/lib/systemd/system

I noticed that the openhab2.service file was the old version.

I removed it - together with a systemctl daemon-reload / enable - and now it works …

Thanks for your input !!


(Ben Clark) #24

Hi @Brambot, I think you’re on the answer there!

@cgeo can you delete the /lib/systemd/systemd/openhab2.service file (not the one in /usr/) and do another reload?


(Christos) #25

Guys,

With the suggestion of @Brambot I got past the error. But it was not over. Logs indicated several permission issues

Dec 19 00:16:59 raspberrypi karaf[27231]: Unable to update instance pid: /var/lib/openhab2/tmp/instances/instance.properties (Permission denied)
Dec 19 00:19:12 raspberrypi karaf[27642]: 2017-12-19 00:19:12,547 CM Configuration Updater (ManagedService Update: pid=[org.ops4j.pax.logging]) ERROR Cannot access RandomAccessFile java.io.FileNotFoundException: /var/log/openhab2/audit.log (Permission denied) java.io.FileNotFoundException: /var/log/openhab2/audit.log (Permission denied)
Dec 19 00:15:23 raspberrypi karaf[26526]: java.io.FileNotFoundException: /var/lib/openhab2/cache/org.eclipse.osgi/.manager/.fileTableLock (Permission denied)

I really do not know how this has happened honestly. I restored the permissions to openhab for

/var/log/openhab2/audit.log
/var/lib/openhab2/tmp
/var/lib/openhab2/cache

and now everything starts up fine!

Many thanks @Benjy and @Brambot

The support was better than what I get for paid enterprise software :slight_smile:


Openhab 2.2 problem after upgrade
(Ben Clark) #26

Glad you got it sorted! And that we have an answer to give to other people that may encounter this error!


(Antony Skinner) #27

I getting continual repeated messages in the logs that I never got before the upgrade

2017-12-19 12:50:13.040 [me.event.ThingUpdatedEvent] - Thing ‘zway:zwayDevice:192_168_1_210:5’ has been updated.
2017-12-19 12:50:20.391 [me.event.ThingUpdatedEvent] - Thing ‘zway:zwayDevice:192_168_1_210:5’ has been updated.
2017-12-19 12:50:41.410 [me.event.ThingUpdatedEvent] - Thing ‘zway:zwayDevice:192_168_1_210:4’ has been updated.
2017-12-19 12:52:33.468 [me.event.ThingUpdatedEvent] - Thing ‘zway:zwayDevice:192_168_1_210:5’ has been updated.
2017-12-19 13:00:12.216 [me.event.ThingUpdatedEvent] - Thing ‘zway:zwayDevice:192_168_1_210:5’ has been updated.
2017-12-19 13:01:25.941 [me.event.ThingUpdatedEvent] - Thing ‘zway:zwayDevice:192_168_1_210:4’ has been updated.
2017-12-19 13:02:33.788 [me.event.ThingUpdatedEvent] - Thing ‘zway:zwayDevice:192_168_1_210:5’ has been updated.
2017-12-19 13:05:32.673 [me.event.ThingUpdatedEvent] - Thing ‘zway:zwayDevice:192_168_1_210:4’ has been updated.
2017-12-19 13:07:33.868 [me.event.ThingUpdatedEvent] - Thing ‘zway:zwayDevice:192_168_1_210:5’ has been updated.
2017-12-19 13:10:38.100 [me.event.ThingUpdatedEvent] - Thing ‘zway:zwayDevice:192_168_1_210:5’ has been updated.

Any ideas, they fill the logs


(E. Gerland) #28

Hi Lars,
same issue same settings here.
Did you find a solution?


(Space Master85) #29

I also get continously repeated messages in the logs.

2017-12-21 22:36:15.085 [me.event.ThingUpdatedEvent] - Thing ‘milight:bridgeV6:iBoxLED’ has been updated.
2017-12-21 22:36:20.089 [me.event.ThingUpdatedEvent] - Thing ‘milight:bridgeV6:iBoxLED’ has been updated.
2017-12-21 22:36:25.092 [me.event.ThingUpdatedEvent] - Thing ‘milight:bridgeV6:iBoxLED’ has been updated.
2017-12-21 22:36:30.094 [me.event.ThingUpdatedEvent] - Thing ‘milight:bridgeV6:iBoxLED’ has been updated.
2017-12-21 22:36:35.095 [me.event.ThingUpdatedEvent] - Thing ‘milight:bridgeV6:iBoxLED’ has been updated.
2017-12-21 22:36:40.099 [me.event.ThingUpdatedEvent] - Thing ‘milight:bridgeV6:iBoxLED’ has been updated.
2017-12-21 22:36:45.101 [me.event.ThingUpdatedEvent] - Thing ‘milight:bridgeV6:iBoxLED’ has been updated.
2017-12-21 22:36:50.104 [me.event.ThingUpdatedEvent] - Thing ‘milight:bridgeV6:iBoxLED’ has been updated.
2017-12-21 22:36:55.107 [me.event.ThingUpdatedEvent] - Thing ‘milight:bridgeV6:iBoxLED’ has been updated.
2017-12-21 22:37:00.109 [me.event.ThingUpdatedEvent] - Thing ‘milight:bridgeV6:iBoxLED’ has been updated.

Does anybody know how to fix that?


(Lars) #30

Nope…not yet. Its still a open issue for me. But “good” to hear, that i am not alone. This means, there is a reproducable issue connected to German language-settings…so there is at least hope for a solution.


(Anders Alfredsson) #31

I see the same thing in my log, and I don’t have German language, so probably not connected to that.


(Jeffrey Wijmans) #32

Hi,

Have you been able to also solve the neato binding? I get the same error with trying to start the binding.

openhab> bundle:start 207
Error executing command: Error executing command on bundles:
Error starting bundle 207: Could not resolve module: org.openhab.binding.neato [207]
Unresolved requirement: Import-Package: org.apache.commons.codec.binary; version="1.6.0"

Thanks!


(Peter) #33

Same here! Is there a way to fix this?


(Jeff McCusker) #34

I posted this in another topic earlier. Hope it helps.

I ran this in karaf. This was right after I updated to 2.2. I’m no computer wiz so I’m not sure what negative effects this would have but it stopped the flood of milight updates in the log.

log:set ERROR smarthome.event.ThingUpdatedEvent