Repetier Server doesn't see connected USB devices
Repetier Server doesn't see my printers connected over USB ports. It is installed on Rockchip (Tronsmart Draco Aw80 - allwinner 80 - with old armhf cpu) device with Ubuntu (14 version).
I tried to add repetierserver user to the "admin" group and nothing have changed. Then I've added that user to the "root" group after this RepetierService failed to start. It got back online when I removed it from the "root" group.
What could I do to fix that?
Troubleshooting log says these:
I tried to add repetierserver user to the "admin" group and nothing have changed. Then I've added that user to the "root" group after this RepetierService failed to start. It got back online when I removed it from the "root" group.
What could I do to fix that?
Troubleshooting log says these:
[27.11.2022 20:33:40] : Execute error response:df: '/run/user/1000/gvfs': Permission denied df: '/media/linaro/Volumn1': Permission denied
[27.11.2022 20:33:40] : While executing:/var/lib/Repetier-Server/scripts/hardware_info
[27.11.2022 20:34:38] : Execute error response:df: '/run/user/1000/gvfs': Permission denied df: '/media/linaro/Volumn1': Permission denied
[27.11.2022 20:34:38] : While executing:/var/lib/Repetier-Server/scripts/hardware_info
[27.11.2022 20:35:38] : Execute error response:df: '/run/user/1000/gvfs': Permission denied df: '/media/linaro/Volumn1': Permission denied
[27.11.2022 20:35:38] : While executing:/var/lib/Repetier-Server/scripts/hardware_info
[27.11.2022 20:36:39] : Execute error response:df: '/run/user/1000/gvfs': Permission denied df: '/media/linaro/Volumn1': Permission denied
[27.11.2022 20:36:39] : While executing:/var/lib/Repetier-Server/scripts/hardware_info
[27.11.2022 20:37:39] : While executing:/var/lib/Repetier-Server/scripts/hardware_info
[27.11.2022 20:37:39] : While executing:/var/lib/Repetier-Server/scripts/hardware_info
[27.11.2022 20:38:39] : While executing:/var/lib/Repetier-Server/scripts/hardware_info
[27.11.2022 20:38:39] : While executing:/var/lib/Repetier-Server/scripts/hardware_info
[27.11.2022 20:39:39] : While executing:/var/lib/Repetier-Server/scripts/hardware_info
[27.11.2022 20:39:39] : While executing:/var/lib/Repetier-Server/scripts/hardware_info
[27.11.2022 20:40:39] : While executing:/var/lib/Repetier-Server/scripts/hardware_info
[27.11.2022 20:40:39] : While executing:/var/lib/Repetier-Server/scripts/hardware_info
[27.11.2022 20:41:58] : While executing:/var/lib/Repetier-Server/scripts/hardware_info
Comments
I've noticed that in /dev/ folder device names (all those tty0 to tty63 and so on) that have owner root:tty or root:dialout are visible to repetier server but my printer file (usbdev1.4) had root:root as an owner. BUT changing it to root:tty didn't help.
Also, visible ones they had "crw--w----" permissions but giving 755 permissions (it became "crwxr-xr-x" after that) to that file didn't make it visible in the "ports" list in the printer config page. Even 777 didn't work.
https://askubuntu.com/questions/112568/how-do-i-allow-a-non-default-user-to-use-serial-device-ttyusb0
second answer might be what causes your linux to only allow root user access. If that is change dto include group and group is what repetierserver is member of it should work.
Not perfect, but also working is if you run Repetier-Server as root. Change /lib/system/systemd/RepetierServer.service to use user root instead. Updates will reset that setting of course!
THe hardware_info issue is that your directory /run/user/1000/gvfs is not readable by repetieruser. If it shows up in bolt menu normal with 10 entries you can just ignore it. It is just one drive you can not see free space from. This file has no relevance and is only informational determining the bolt icon menu content. YOu can even delete the file and remove the bolt icon with it.
I tried the solution from the askubuntu.com that you kindly provided, it changed the permissions (now it looks like this crw-rw-rw- 1 root root 189, 8 Nov 28 16:22 usbdev1.9), but repetier still doesn't see the devise.
The "not perfect" solution didn't work because I couldn't find the file you've specified (RepetierServer.service)
I've even searched for it with this command: sudo find / -name RepetierServer.service.
I'm ok with the not perfect solution if it would work.
sudo service RepetierServer restart
it will show the command for reloading - always forget it.
Why do you think usbdev1.9 i sthe correct device? Never seen that name as serial port before. Better see under /dev/serial/by-id or by-path for them. There all serial devices for printers get a link to the real device, but it normally bette rto use the link in case you have more serial devices and then detecting order determines the real name.
all I have there is:
it says:
* Stopping Repetier-Server rsd
* Starting Repetier-Server rsd
Actually, I'm not sure if it is the device I need, it increments every time I reconnect the printer. So next time I unplug and plug the printer it should be usbdev2.0, next 2.1 and so on...
Did you check /dev/serial/...
it might be that you do not see it because your linux is not compiled with serial device support. I know at least the default NanoPI linux does not have it compiled in.
On my pi I get with
lsmod
these modules:
Most important usbserial I guess. ch341 and cp210x are the drivers of printers connected and used by usbserial.
Yes, I've already found it there. I've changed all users to root, now htop shows that repetierserver is running with root privileges.
this is my lsmod output:
This is what I get on the usbdev1.20 (old usbdev1.9)
this is output of the lsusb
This are files inside my memstick.
Thank you very much for your help! I really really appreciate it.
Pity that I didn't succeed. I have to print heavy high poly models and repetier installed on my orangepi zero freezes very often. When it doesn't freeze it is able to control only one of my printers (when I print high poly objects), the second one just barely moves and then stays inactive.
I've found this solution Solved: Ender 3 USB connection issue on Ubuntu 22.04 : octoprint (reddit.com) I have the same printer (Ender 3 V2) but I don't have the mentioned package (BRLTTY) so it didn't help me as well...
But I'm now pretty sure your linux kernel is lacking serial device support. It sees the usb device which you already identified, but without serial driver you get no /dev/serial/... and no /dev/ttyASB... or /dev/ttyACM... and you can not connect. Now ubuntu is 14 is around 8 years old - did you check if there is a newer version available for your board? Maybe that has serial support active, which is the easy solution. The other is to compile your own kernel but that is not always easy. If you have settings for the current it would be just changing driver selection and recompile.
If there would be no serial support, could it still do that?
About the newer version: Ubuntu 14 is the latest version available on the companiy's (Tronsmart) website.
I see it is advertised as streaming box which might explain serial support missing. You might google if you find a linux image for the rockchip being used. Even if it does not know the display driver (maybe it does) you get at least a linux with serial and network with some luck.
I'm planning to separate my printers. One on orangepizero and another one on raspberrypi zero. I hope that raspberry pi zero (first edition) has enough performance for that.
By the way the only thing I don't like in repetier server software is that it resumes the print only after short disconnection.
> the only thing I don't like in repetier server software is that it resumes the print only after short disconnection.
What do you mean? Timeouts or real disconnections due to linux disconnecting usb? If printer has timeouts due to communication errors and supports busy (in console enable ack and run G4 S10 and see if you see a busy message) you can reduce timeout to 3s.
For a general continue to be possible use the rescue system. But test it first if it works, e.g. printer does no extra moves on it's own and also maybe do a preheat before moving/homing so nozzle does not stick to old print.