Can't connect to USB device when running in Docker

Your shell output shows that the connection from the frontend is detected and that the frontend is asking for the server config. But because no additionals verbose logs are shown I think the .env file is not imported. It should be located at the same folder where config.js and server.js are.

If it does not work with the env file, you could change all defaults in config.js (if not using the Windows or Mac executables).

pi@octonas:~/LaserWeb4 $ git remote -v
origin  https://github.com/LaserWeb/LaserWeb4.git (fetch)
origin  https://github.com/LaserWeb/LaserWeb4.git (push)
pi@octonas:~/LaserWeb4 $ git branch
* dev-es6
pi@octonas:~/LaserWeb4 $ git pull
Already up to date.
pi@octonas:~/LaserWeb4 $

I did try master branch but there is nothing much there… and it recommands dev-es6

I did copy the .env to node_module/lw.comm-server with no effects on logs.

As I wrote, try to use the lw.comm-server repo instead of LaserWeb4. The lw.comm-server has everything for a runtime environment.

youhooo !
Its working.
Switching to lw.comm-server repo did the job.
USB port now shows all my connected devices.
here is my setup. I can now controll my 3D printer (via octoprint), my ortur LaserMaser2 (via LaserWeb) and other stuff from my RPI3 server.


thanks @cprezzi

2 Likes