Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zenoh in Docker does not load plugins from /root/.zenoh/lib #1031

Closed
philrhc opened this issue May 15, 2024 · 3 comments
Closed

Zenoh in Docker does not load plugins from /root/.zenoh/lib #1031

philrhc opened this issue May 15, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@philrhc
Copy link

philrhc commented May 15, 2024

Describe the bug

Zenoh router does not load plugins from /root/.zenoh/lib

curl 'http://localhost:8000/@/router/local'
[
{ "key": "@/router/79887a32dad6ef34f82f4ed312390b69", "value": {"locators":["tcp/172.29.0.2:7447"],"metadata":null,"plugins":{"rest":{"path":"/libzenoh_plugin_rest.so"}},"sessions":[],"version":"v0.11.0-rc.3 built with rustc 1.72.0 (5680fa18f 2023-08-23)","zid":"79887a32dad6ef34f82f4ed312390b69"}, "encoding": "application/json", "time": "None" }
]

To reproduce

Created a minimum repo w/ the docker compose but should be fairly easy to test w/ a docker compose file
https://github.com/philrhc/zenoh_docker_plugins

System info

OS: Ubuntu 22.04.4 LTS
Arch: x86_64
CPU: 12th Gen Intel(R) Core(TM) i7-1265U
version:v0.11.0-rc.3 built with rustc 1.72.0 (5680fa18f 2023-08-23)
zid:79887a32dad6ef34f82f4ed312390b69

@philrhc philrhc added the bug Something isn't working label May 15, 2024
@philrhc
Copy link
Author

philrhc commented May 21, 2024

got one step further:
it looks like zenoh does not load plugins by default from /root/.zenoh/lib as mentioned here:

https://zenoh.io/docs/getting-started/quick-test/

By default the Zenoh router will search for plugins and backends libraries to load in ~/.zenoh/lib. Thus, to make it able to find the libraries, you can copy them into a zenoh-docker/lib directory on your local host and mount the zenoh-docker directory as a volume in your container targeting /root/.zenoh.

ideally i can pass the configuration file to zenohd somehow...

@philrhc
Copy link
Author

philrhc commented May 21, 2024

ok, closing because i don't think this is a bug, i think it is a fault in the documentation. I'll continue investigating...

@philrhc philrhc closed this as completed May 21, 2024
@philrhc
Copy link
Author

philrhc commented May 23, 2024

if anyone else has the same problem, this should be helpful:
https://github.com/xvanov/advrob-project/blob/zenoh-router/desktop/compose.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant