octo4a
octo4a copied to clipboard
Error while scanning for serial ports: "Permission denied: '/dev'"
I have setup Octo4a on an old Samsung, running LineageOS 18.1 (A11), rooted, without GApps. Everything went well, the app recognizes the printer and it asks for serial permissions. Even though I gave these permissions, when I go to the web interface it says that no serial ports have been found. I found the following error in the logs:
🐙 Traceback (most recent call last):
🐙 File "/usr/lib/python3.10/site-packages/octoprint/util/comm.py", line 202, in serialList
🐙 with os.scandir("/dev") as it:
🐙 PermissionError: [Errno 13] Permission denied: '/dev'``
I'm having the same issue. OnePlus 7 Pro.
I've installed Octo4a on my android smartphone (Xiaomi MI A3) and run it as OctoPi. I can access it from my laptop and install Plugins etc., but it cannot connect the printer (Flsun Q5) via my phone. I get always 'no serial port found' so I suspect there is no, or bad, connection to the actual port from the printer.
I use the original cable that comes with the printer. It seems to work as I connected the cable directly to the laptop and the printer can be managed through the laptop via Repetier.
Whwre is the issue?
Screenshots from the app and the laptop
i am also getting the same error on my B131DL phone... but some other user got it to work.. not sure how..
Same here on android nougat NVidia shield tablet. The app does not have permission to open devices.
On a separate note, I was only able to install octo4a after rooting the device and troubleshooting a million things about the install. It is very raw.
UPDATE: I managed to fix this by simply chmod 666 /dev/ttyS?
My device is rooted therefore I am not sure whether this will work in non-rooted ones
My old phone was not rooted and @Drzet's command did not work for me. But connecting to the printer works and when connected it stops trying to scan dev so it stops spamming the log.
Also happens on both my Android phones, Motorola 5GS and Huawai P30 Pro. But at least on Motorola, octoprint server works fine, except it drains so much battery that charging via OTG can't keep up. This may not be caused by this permission denied issue though.
The same here...
same here, is possible to solve it and run on a non-rooted device?
Having the same problem on not rooted Sony Xperia Compact X.
Same issue on Motorola One 5G ace, running version 1.2.6
Hi, this message is mostly harmless - octo4a's serial driver will still be functional, as its hardcoded to use /dev/ttyOcto4a
as a serial port. The log is displayed when OctoPrint tries to scan /dev/
serial ports periodically, which is not functional - nor necessary. Octo4a 2.0.0 suppresses this error by default, by disabling "autorefresh" in OctoPrint's serial settings.