How to install a SNAPSHOT version of binding in a openHAB 3.1.0 release installation

Hi
I´m a newbie with openhab and I´m trying to install a snapshot of a volumio2 binding, the link is https://github.com/stargazer74/openhab-addons/releases/download/3.1.0/org.openhab.binding.volumio2-3.1.0-SNAPSHOT.jar
I copied the jar file in the folder /usr/share/openhab/addons but I can´t find it in the openhab installation. I looked in the bindings and in the repository

The instructions for openhab 2 I found did not help me.
Thanks a much
Jörg

Have you checked the log?
It could be that there is a missing dependency which you need to install first.

Stop openhab service and start it again.
Check the log for any messages about the addon and post it here.

1 Like

What did you exactly do ?
Did you

  • Uninstall the old binding
  • Download the jar file for the later version of the binding
  • Place that jar file into the addons folder.

Did you try to clear the cache ?
What is shown in openhab.log file ?

1 Like

Hej @dirkdirk
One of the log shows 2021-09-18 11:47:46.535 [WARN ] [org.apache.felix.fileinstall ] - Fehler beim Starten des Bundles: file:/usr/share/openhab/addons/org.openhab.binding.volumio2-3.1.0 -SNAPSHOT.jar org.osgi.framework.BundleException: Modul konnte nicht aufgelöst werden: org.openhab.binding.volumio2 [313]
2021-09-18 11:48:13.917 [WARN ] [core.karaf.internal.FeatureInstaller] - Das Bindungs-Add-On ‘volumio2-3’ existiert nicht - ignoriert es.
I´v change the language to read it.

Hej @Wolfgang_S
There was no old binding.
I have got the link from the author of the binding
yes I´v place it in the addons folder
No I´vnt try to clear the cache (don´t know where :frowning: )
a copy of the log is in the answer to Dirk.
My english is not so good :frowning: that I understand all and must take help of Google translation in some cases
But thanks for trying help Me :wink:

Looks like there is a space in the filename. Remove that.

1 Like

Hej @J-N-K
I have take a look but there is no space in the filename.

So the space between 3.1.0 and -SNAPSHOT in the log is from copying?

Try diag 313 on the console and show what can’t be resolved.

@J-N-K
Hmmm I could be little stupid, but how did I come in the console from openhab ?

@J-N-K
Have found it but must change to all. I would do it later today.
Thanks a lot
Jörg

1 Like

@J-N-K
I tryed to come in in console but password was not accepted. I changed password of openhabian after installation and with My account i don´t come in. Or must I change to su openhabian to come in?
WBR
Jörg

Unfortunately I have no idea how the permission on openhabian are set. On my System the console is only available with sudo openhab-cli console.

1 Like

@J-N-K
I would try it again.

The console password is also fixed at habopen and is not easily changed.

2 Likes

@Bruce_Osborne @dirkdirk @Wolfgang_S with su openhabian come I little bit closer. Now is the question why is password not excepted. Could be wrong keyboard installed.
Is not the keyboard. I think I have no user openhab, I only have the user openhabian but if I try to log in i openhab-cli console there comes up openhab as user.
An idea to fix ?
could be passwd openhab a possibility?
Tryed it and get back : passwd: Du kan inte visa eller modifiera lösenordsinformationen för openhab.
Thanks @Bruce_Osborne that was the dooropener

WBR
Jörg

@J-N-K
Here it comes
openhab> diag 313
openHAB Add-ons :: Bundles :: Volumio2 Binding (313)

Status: Installed
Unsatisfied Requirements:
osgi.wiring.package; filter:="(osgi.wiring.package=org.apache.http)"; resolution:=“optional”
osgi.wiring.package; filter:="(osgi.wiring.package=org.apache.http.client)"; resolution:=“optional”
osgi.wiring.package; filter:="(osgi.wiring.package=org.apache.http.client.methods)"; resolution:=“optional”
osgi.wiring.package; filter:="(osgi.wiring.package=org.apache.http.conn)"; resolution:=“optional”
osgi.wiring.package; filter:="(osgi.wiring.package=org.apache.http.entity)"; resolution:=“optional”
osgi.wiring.package; filter:="(osgi.wiring.package=org.apache.http.message)"; resolution:=“optional”
osgi.wiring.package; filter:="(osgi.wiring.package=org.apache.http.params)"; resolution:=“optional”
osgi.wiring.package; filter:="(osgi.wiring.package=org.apache.http.protocol)"; resolution:=“optional”
osgi.wiring.package; filter:="(osgi.wiring.package=android.net)"; resolution:=“optional”
osgi.wiring.package; filter:="(osgi.wiring.package=android.net.http)"; resolution:=“optional”
osgi.wiring.package; filter:="(osgi.wiring.package=android.security)"; resolution:=“optional”
osgi.wiring.package; filter:="(osgi.wiring.package=android.util)"; resolution:=“optional”
osgi.wiring.package; filter:="(osgi.wiring.package=com.android.org.conscrypt)"; resolution:=“optional”
osgi.wiring.package; filter:="(osgi.wiring.package=dalvik.system)"; resolution:=“optional”
osgi.wiring.package; filter:="(osgi.wiring.package=org.apache.harmony.xnet.provider.jsse)"; resolution:=“optional”
osgi.wiring.package; filter:="(osgi.wiring.package=sun.security.ssl)"; resolution:=“optional”
osgi.wiring.package; filter:="(&(osgi.wiring.package=org.apache.commons.io)(&(version>=2.2.0)(!(version>=3.0.0))))"
Declarative Services

It seems that the proper version of commons-up is missing. Please check what the output of

list -s | grep -i commons

shows.

1 Like

@J-N-K [quote=“J-N-K, post:17, topic:126634”]
list -s | grep -i commons
[/quote]
65 x Active x 80 x 3.12.0 x org.apache.commons.lang3
150 x Active x 80 x 9.1.0 x org.objectweb.asm.commons
317 x Active x 80 x 3.7.2 x org.apache.commons.commons-net

install mvn:commons-io/commons-io/2.8.0

1 Like

openhab> install mvn:commons-io/commons-io/2.8.0
Bundle IDs:
Error executing command: Error installing bundles:
Unable to install bundle mvn:commons-io/commons-io/2.8.0: org.osgi.framework.BundleException: Error reading bundle content.