Skip to content

bundle:update file:// syntax#2658

Open
dilyanpalauzov wants to merge 1 commit intoopenhab:mainfrom
dilyanpalauzov:bundle_update_file
Open

bundle:update file:// syntax#2658
dilyanpalauzov wants to merge 1 commit intoopenhab:mainfrom
dilyanpalauzov:bundle_update_file

Conversation

@dilyanpalauzov
Copy link
Copy Markdown
Contributor

There is one slash too much, which causes:

openhab> bundle:update 210 file:///localhost/tmp/A.jar               
Error executing command: /localhost/tmp/A.jar (No such file or directory)

@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 8, 2026

Thanks for your pull request to the openHAB documentation! The result can be previewed at the URL below (this comment and the preview will be updated if you add more commits).

Built without sensitive environment variables

Name Link
🔨 Latest commit 22cba2f
🔍 Latest deploy log https://app.netlify.com/projects/openhab-docs-preview/deploys/69887eafa121980007535aab
😎 Deploy Preview https://deploy-preview-2658--openhab-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

@florian-h05 florian-h05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me, this works on Linux:

bundle:update 187 file:///usr/share/openhab/org.openhab.core.io.rest.core-5.2.0-SNAPSHOT.jar

@dilyanpalauzov
Copy link
Copy Markdown
Contributor Author

For me with three slashes after file: does not work, it works with two slashes.

pi@maza:~ $ sudo bash
root@maza:/home/pi# openhab-cli console

Logging in as openhab
Password:  

                           _   _     _     ____  
   ___   ___   ___   ___  | | | |   / \   | __ ) 
  / _ \ / _ \ / _ \ / _ \ | |_| |  / _ \  |  _ \ 
 | (_) | (_) |  __/| | | ||  _  | / ___ \ | |_) )
  \___/|  __/ \___/|_| |_||_| |_|/_/   \_\|____/ 
       |_|       5.1.3 - Release Build

Use '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
To exit, use '<ctrl-d>' or 'logout'.

openhab> bundle:update 208 file:///localhost/tmp/org.openhab.core.model.rule-5.1.4-SNAPSHOT.jar                 
Error executing command: /localhost/tmp/org.openhab.core.model.rule-5.1.4-SNAPSHOT.jar (Няма такъв файл или дире
 тория)
openhab> bundle:update 208 file://localhost/tmp/org.openhab.core.model.rule-5.1.4-SNAPSHOT.jar                 
openhab>                                                                                                        

@florian-h05
Copy link
Copy Markdown
Contributor

What path is localhost?

@dilyanpalauzov
Copy link
Copy Markdown
Contributor Author

What path is localhost?

I do not understand the question.

Comment thread administration/bundles.md

```text
openhab>bundle:update 303 file:///localhost/srv/openhab-sys/org.openhab.binding.my-5.0.0-SNAPSHOT.jar
openhab>bundle:update 303 file://localhost/srv/openhab-sys/org.openhab.binding.my-5.0.0-SNAPSHOT.jar
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either use absolute paths or explain how localhost gets resolved:

Suggested change
openhab>bundle:update 303 file://localhost/srv/openhab-sys/org.openhab.binding.my-5.0.0-SNAPSHOT.jar
openhab>bundle:update 303 file:///srv/openhab-sys/org.openhab.binding.my-5.0.0-SNAPSHOT.jar

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently the openHAB-documentation at https://www.openhab.org/docs/administration/bundles.html#using-bundle-install-and-bundle-update says literally:

openhab>bundle:update 303 file:///localhost/srv/openhab-sys/org.openhab.binding.my-5.0.0-SNAPSHOT.jar

I do not know how localhost is resolved, but this example does not work. To get it working one slash has to be removed.

The documentation for Apache Karaf - https://karaf.apache.org/manual/latest/ - does not mention bundle:update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants