12 Replies
seems like it does not work out of the box, seeing dbus permission denied errors - has somebody already cracked this and has BT sensors working in SK server running in Docker? @naugehyde or maybe @Karl-Erik Gustafsson ?
Been running plugin in docker long times and no issues.
the plugin did not start properly until i added volume mapping
/var/run/dbus:/var/run/dbus
Was about to ask volume mapping. That is needed there.
now the plugin starts but server log shows stuff like
Check that you have at least these in place
i had mapped /var/run/dbus/ and privileged was there already. adding NET_ADMIN did not change anything, same errors. no sensors show
time up for today, i'll get back to this
The error occurs when UNKNOWN attempts to read the classMap variable from its constructor which should be set at plug-in load time.
Not sure why that might be happening in docker.
Not running SK in docker but I'll take a look when I can.
In the meantime, @Teppo Kurki can you send the entire log? There may have been an uncaught error earlier
figured out the error: I am running docker from master, where the js files are under
dist
but the server reports being 2.13.5, and your hack of choosing between dist
and lib
is not firing
i would much, much prefer exposing server's functionality in an organized manner, via the API, instead of plugins reaching into dist/lib directly...an API would be welcome. alternatively you could expose the functionality in the plugin's
app
parameter.I think dist/lib selection might work but as it is tight to server version and official 2.13.5 has lib and now master has dist but still report version as 2.13.5 therefore selection between dist and lib is not activated. Need manually add
sudo ln -s dist lib
Yep, I just modified the plugin code. Not many people running off master..