I’m also getting the error message in the JAR files
[21:12:29] openhabian@openHABianPi:/usr/share/openhab2/addons/archive/zwave$ ls -l
total 12
-rw-rw-r-- 1 openhab openhab 854 Sep 28 14:07 org.openhab.binding.zwave-2.5.0-SNAPSHOT.20190928141422.old
-rw-rw-r-- 1 openhab openhab 854 Sep 30 20:47 org.openhab.binding.zwave-2.5.0-SNAPSHOT.20190930205104.old
-rw-rw-r-- 1 openhab openhab 854 Sep 30 20:51 org.openhab.binding.zwave-2.5.0-SNAPSHOT.20190930210809.old
[21:12:32] openhabian@openHABianPi:/usr/share/openhab2/addons/archive/zwave$ cat org.openhab.binding.zwave-2.5.0-SNAPSHOT.2019093021*
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 403 Trying to access a file outside of the directory, target: org.openhab.addons.bundles/org.openhab.binding.zwave/2.5.0-SNAPSHOT/org.openhab.binding.zwave-2.5.0-SNAPSHOT.jar</title>
</head>
<body><h2>HTTP ERROR 403</h2>
<p>Problem accessing /job/openHAB2-Bundles/lastSuccessfulBuild/org.openhab.addons.bundles%24org.openhab.binding.zwave/artifact/org.openhab.addons.bundles/org.openhab.binding.zwave/2.5.0-SNAPSHOT/org.openhab.binding.zwave-2.5.0-SNAPSHOT.jar. Reason:
<pre> Trying to access a file outside of the directory, target: org.openhab.addons.bundles/org.openhab.binding.zwave/2.5.0-SNAPSHOT/org.openhab.binding.zwave-2.5.0-SNAPSHOT.jar</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.z-SNAPSHOT</a><hr/>
</body>
</html>
This may be contributing to my timeout error. I am on openhab 2.4 stable, on openhabian on a Raspberry Pi 3B.
After running into challenges correctly getting the zwave binding updated, I deleted the binding with the script successfully, confirmed the serial binding was installed (the binding and the logs told me it was), and then tried to re-update the binding with the script.
sudo -u openhab ./zzManualInstall.sh
[... selecting update zwave ]
***** SUMMARY *****
Addons path: /usr/share/openhab2/addons
OpenHAB account: openhab
Requested action: Install or upgrade Z-Wave binding
Current OpenHAB snapshot version: 2.5.0
Requested Z-Wave version: OpenHAB snapshot
Is this correct?
1) Yes, start now 3) Exit
2) No, take me back to the first menu
#? 1
Uninstalling any managed binding(s) and installing serial transport...
Logging in as openhab
... a 'No matching bundles' error mesage is normal, if a binding had not been previously installed.
Backing up and uninstalling any unmanaged installs of Z-Wave...
!!!!! It has taken more than two minutes to uninstall the Z-Wave binding, so exi ting !!!!!
And looking at the logs:
2019-09-30 21:07:57.782 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Stopped ZWave serial handler
==> /var/log/openhab2/events.log <==
2019-09-30 21:07:57.821 [hingStatusInfoChangedEvent] - 'zwave:serial_zstick:713fde47' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
==> /var/log/openhab2/openhab.log <==
2019-09-30 21:07:59.322 [INFO ] [internal.service.FeaturesServiceImpl] - The specified feature: 'openhab-transport-serial' version '2.4.0' is already installed
2019-09-30 21:07:59.325 [INFO ] [internal.service.FeaturesServiceImpl] - Adding features: openhab-transport-serial/[2.4.0,2.4.0]
2019-09-30 21:08:08.497 [INFO ] [internal.service.FeaturesServiceImpl] - Changes to perform:
2019-09-30 21:08:08.504 [INFO ] [internal.service.FeaturesServiceImpl] - Region: root
2019-09-30 21:08:08.506 [INFO ] [internal.service.FeaturesServiceImpl] - Bundles to install:
2019-09-30 21:08:08.507 [INFO ] [internal.service.FeaturesServiceImpl] - mvn:org.openhab.binding/org.openhab.binding.zwave/2.4.0
2019-09-30 21:08:08.518 [INFO ] [internal.service.FeaturesServiceImpl] - Installing bundles:
2019-09-30 21:08:08.519 [INFO ] [internal.service.FeaturesServiceImpl] - mvn:org.openhab.binding/org.openhab.binding.zwave/2.4.0
2019-09-30 21:08:09.160 [INFO ] [internal.service.FeaturesServiceImpl] - Done.
The relevant directory structure and permissions:
[21:11:56] openhabian@openHABianPi:/usr/share/openhab2/addons$ ls -l
total 580
drwxrwxr-x+ 4 openhab openhab 4096 Sep 28 14:07 archive
-rw-rw-r-- 1 openhab openhab 548391 Sep 30 20:51 org.apache.servicemix.bundles.xstream-1.4.7_1.jar
-rw-rw-r-- 1 openhab openhab 70 Dec 17 2018 README
-rwxrw-r-- 1 openhab openhab 35992 Sep 28 14:03 zzManualInstall.sh
===
[21:12:29] openhabian@openHABianPi:/usr/share/openhab2/addons/archive/zwave$ ls -l
total 12
-rw-rw-r-- 1 openhab openhab 854 Sep 28 14:07 org.openhab.binding.zwave-2.5.0-SNAPSHOT.20190928141422.old
-rw-rw-r-- 1 openhab openhab 854 Sep 30 20:47 org.openhab.binding.zwave-2.5.0-SNAPSHOT.20190930205104.old
-rw-rw-r-- 1 openhab openhab 854 Sep 30 20:51 org.openhab.binding.zwave-2.5.0-SNAPSHOT.20190930210809.old
My inferences from this, please correct me if I’m wrong:
- The script is attempting to download an incorrect file, at least from my stock openhabian stable 2.4 install.
- I’m pretty sure I have the script in the correct location, am running as the correct user,e tc.
- When no correct zwave binding is installed, somehow the old binding was re-installed. (I initially saw all my zwave devices not working, and had restarted the whole raspberry pi. Upon restarting, zwave was running using the old version I believe.
=====================
If this helps,
The path in the error jar file was:
org.openhab.addons.bundles/org.openhab.binding.zwave/2.5.0-SNAPSHOT/org.openhab.binding.zwave-2.5.0-SNAPSHOT.jar
I have no idea if there is a prefix that is assumed.
The currently correct and working path was:
https://openhab.jfrog.io/openhab/online-repo-snapshot/2.5/org/openhab/addons/bundles/org.openhab.binding.zwave/2.5.0-SNAPSHOT/org.openhab.binding.zwave-2.5.0-SNAPSHOT.jar
My solution, following the readme instructions here https://github.com/openhab-5iver/openHAB-utils/ :
[given that these commands are so often obliquely referred to, I include the full command for others’ references]
I went into karaf
openhab-cli console
removed the current zwave binding
bundle:uninstall org.openhab.binding.zwave
downloaded the correct file to the addons directory with wget
wget https://openhab.jfrog.io/openhab/online-repo-snapshot/2.5/org/openhab/addons/bundles/org.openhab.binding.zwave/2.5.0-SNAPSHOT/org.openhab.binding.zwave-2.5.0-SNAPSHOT.jar
exited karaf
logout
and restarted the whole system (sudo reboot now). I assume this could have been done in karaf, but this works and old habits & all.
Going back into karaf console and running (bundle:list | grep ZWave) gave me:
267 x Active x 80 x 2.5.0.201909300431 x openHAB Add-ons :: Bundles :: ZWave Binding
I assume this means I’m up and running with the most recent zwave snapshot.
Frustratingly, my new LZW30 switch is still not recognized. This is a concern for another thread.
While I initially started this post to troubleshoot the script and getting the latest zwave snapshot updated, when successful, I decided to leave it as a more complete how-to for others trying to do the same thing when 5iver’s update script is giving the download errors/incorrect jar files.
[also, perhaps it will help 5iver update his script for this not uncommon error, should it be applicable]