Creating a bug report/issue
I have searched the existing open and closed issues
Required Information
- DietPi version |
cat /boot/dietpi/.version
dietpi@DietPi:~$ cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=20
G_DIETPI_VERSION_RC=1
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
- Distro version |
echo $G_DISTRO_NAME $G_RASPBIAN
dietpi@DietPi:~$ echo $G_DISTRO_NAME $G_RASPBIAN
trixie
- Kernel version |
uname --all
dietpi@DietPi:~$ uname --all
Linux DietPi 6.12.63+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.63-1 (2025-12-30) x86_64 GNU/Linux
- Architecture |
dpkg --print-architecture
dietpi@DietPi:~$ dpkg --print-architecture
amd64
- SBC model |
echo $G_HW_MODEL_NAMEor (EG: RPi3)
dietpi@DietPi:~$ echo $G_HW_MODEL_NAME
Native PC (x86_64)
Dell Wyse 3040
- Power supply used | (EG: 5V 1A RAVpower)
Dell supplied power supply
- SD card used | (EG: SanDisk ultra)
onboard emmc
Additional Information (if applicable)
- Software title |
klipper - Was the software title installed freshly or updated/migrated?
yes, installed yesterday - Can this issue be replicated on a fresh installation of DietPi?
issue exists on a fresh install
Steps to reproduce
- Install Klipper and Moonraker via Kiuah tool.
- Try to connect klipper to printer via usb.
Expected behaviour
Klipper software should be able to connect to the 3d printer.
Actual behaviour
Klipper logs are returning errors about permissions connecting to the USB device.
mcu 'mcu': Starting serial connect
mcu 'mcu': Unable to open serial port: [Errno 13] could not open port /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0: [Errno 13] Permission denied: '/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0'
webhooks client 140714176212208: New connection
webhooks client 140714176212208: Client info {'program': 'Moonraker', 'version': 'v0.9.3-140-gbac55c6'}
mcu 'mcu': Unable to open serial port: [Errno 13] could not open port /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0: [Errno 13] Permission denied: '/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0'
Extra details
Kiuah was run as dietpi user and NOT as root. So klipper is running as dietpi user.
I added dietpi to the dialout group as suggested by a bunch of other help theads and have logged in and out, rebooted dietpi and the printer.
dietpi@DietPi:~$ id
uid=1000(dietpi) gid=1000(dietpi) groups=1000(dietpi),20(dialout)
I have tried multiple USB cables to ensure a bad cable isn’t the problem and it works with other devices just fine.
dietpi@DietPi:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
Bus 001 Device 007: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Disconnect and reconnect of 3d printer
[69879.118678] usb 1-1: USB disconnect, device number 7
[69879.120259] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[69879.120436] ch341 1-1:1.0: device disconnected
[69882.401230] usb 1-1: new full-speed USB device number 8 using xhci_hcd
[69882.539098] usb 1-1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[69882.539144] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[69882.539164] usb 1-1: Product: USB Serial
[69882.542536] ch341 1-1:1.0: ch341-uart converter detected
[69882.545620] usb 1-1: ch341-uart converter now attached to ttyUSB0
dietpi@DietPi:~$ ls -l /dev/
total 0
crw------- 1 root root 10, 260 Jan 19 21:45 acpi_thermal_rel
crw-r--r-- 1 root root 10, 235 Jan 19 21:45 autofs
drwxr-xr-x 2 root root 140 Jan 19 21:45 block
crw------- 1 root root 10, 234 Jan 19 21:45 btrfs-control
drwxr-xr-x 3 root root 60 Jan 19 21:45 bus
drwxr-xr-x 2 root root 3120 Jan 20 17:10 char
crw------- 1 root root 5, 1 Jan 19 21:46 console
lrwxrwxrwx 1 root root 11 Jan 19 21:45 core -> /proc/kcore
crw------- 1 root root 10, 259 Jan 19 21:45 cpu_dma_latency
crw------- 1 root root 10, 203 Jan 19 21:45 cuse
drwxr-xr-x 8 root root 160 Jan 19 21:45 disk
drwxr-xr-x 2 root root 60 Jan 19 21:45 dma_heap
drwxr-xr-x 3 root root 100 Jan 19 21:45 dri
crw------- 1 root root 240, 0 Jan 19 21:45 drm_dp_aux0
crw------- 1 root root 240, 1 Jan 19 21:45 drm_dp_aux1
crw------- 1 root root 240, 2 Jan 19 21:45 drm_dp_aux2
lrwxrwxrwx 1 root root 13 Jan 19 21:45 fd -> /proc/self/fd
crw-rw-rw- 1 root root 1, 7 Jan 19 21:45 full
crw-rw-rw- 1 root root 10, 229 Jan 19 21:45 fuse
crw------- 1 root root 254, 0 Jan 19 21:45 gpiochip0
crw------- 1 root root 254, 1 Jan 19 21:45 gpiochip1
crw------- 1 root root 254, 2 Jan 19 21:45 gpiochip2
crw------- 1 root root 254, 3 Jan 19 21:45 gpiochip3
crw------- 1 root root 254, 4 Jan 19 21:45 gpiochip4
crw------- 1 root root 10, 228 Jan 19 21:45 hpet
drwxr-xr-x 2 root root 0 Jan 19 21:45 hugepages
crw------- 1 root root 10, 183 Jan 19 21:45 hwrng
lrwxrwxrwx 1 root root 12 Jan 19 21:45 initctl -> /run/initctl
drwxr-xr-x 3 root root 260 Jan 19 21:45 input
crw-r--r-- 1 root root 1, 11 Jan 19 21:45 kmsg
crw-rw---- 1 root kvm 10, 232 Jan 19 21:45 kvm
lrwxrwxrwx 1 root root 28 Jan 19 21:45 log -> /run/systemd/journal/dev-log
crw-rw---- 1 root disk 10, 237 Jan 19 21:45 loop-control
drwxr-xr-x 2 root root 60 Jan 19 21:45 mapper
crw------- 1 root root 243, 0 Jan 19 21:45 mei0
crw-r----- 1 root kmem 1, 1 Jan 19 21:45 mem
brw-rw---- 1 root disk 179, 0 Jan 19 21:45 mmcblk0
brw-rw---- 1 root disk 179, 256 Jan 19 21:45 mmcblk0boot0
brw-rw---- 1 root disk 179, 512 Jan 19 21:45 mmcblk0boot1
brw-rw---- 1 root disk 179, 1 Jan 19 21:45 mmcblk0p1
brw-rw---- 1 root disk 179, 2 Jan 19 21:45 mmcblk0p2
crw------- 1 root root 244, 0 Jan 19 21:45 mmcblk0rpmb
drwxrwxrwt 2 root root 40 Jan 19 21:45 mqueue
drwxr-xr-x 2 root root 60 Jan 19 21:45 net
crw-rw-rw- 1 root root 1, 3 Jan 19 21:45 null
crw------- 1 root root 10, 144 Jan 19 21:45 nvram
crw-r----- 1 root kmem 1, 4 Jan 19 21:45 port
crw------- 1 root root 108, 0 Jan 19 21:45 ppp
crw------- 1 root root 10, 1 Jan 19 21:45 psaux
crw-rw-rw- 1 root tty 5, 2 Jan 20 17:12 ptmx
drwxr-xr-x 2 root root 0 Jan 19 21:45 pts
crw-rw-rw- 1 root root 1, 8 Jan 19 21:45 random
crw-rw-r-- 1 root netdev 10, 242 Jan 19 21:45 rfkill
lrwxrwxrwx 1 root root 4 Jan 19 21:45 rtc -> rtc0
crw------- 1 root root 249, 0 Jan 19 21:45 rtc0
drwxr-xr-x 4 root root 80 Jan 20 17:10 serial
drwxrwxrwt 2 root root 40 Jan 19 21:45 shm
crw------- 1 root root 10, 231 Jan 19 21:45 snapshot
drwxr-xr-x 3 root root 260 Jan 19 21:45 snd
lrwxrwxrwx 1 root root 15 Jan 19 21:45 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root 15 Jan 19 21:45 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root 15 Jan 19 21:45 stdout -> /proc/self/fd/1
crw-rw-rw- 1 root tty 5, 0 Jan 20 17:11 tty
crw------- 1 root tty 4, 0 Jan 19 21:45 tty0
crw------- 1 root tty 4, 1 Jan 19 21:46 tty1
crw------- 1 root tty 4, 10 Jan 19 21:45 tty10
crw------- 1 root tty 4, 11 Jan 19 21:45 tty11
crw------- 1 root tty 4, 12 Jan 19 21:45 tty12
crw------- 1 root tty 4, 13 Jan 19 21:45 tty13
crw------- 1 root tty 4, 14 Jan 19 21:45 tty14
crw------- 1 root tty 4, 15 Jan 19 21:45 tty15
crw------- 1 root tty 4, 16 Jan 19 21:45 tty16
crw------- 1 root tty 4, 17 Jan 19 21:45 tty17
crw------- 1 root tty 4, 18 Jan 19 21:45 tty18
crw------- 1 root tty 4, 19 Jan 19 21:45 tty19
crw------- 1 root tty 4, 2 Jan 19 21:45 tty2
crw------- 1 root tty 4, 20 Jan 19 21:45 tty20
crw------- 1 root tty 4, 21 Jan 19 21:45 tty21
crw------- 1 root tty 4, 22 Jan 19 21:45 tty22
crw------- 1 root tty 4, 23 Jan 19 21:45 tty23
crw------- 1 root tty 4, 24 Jan 19 21:45 tty24
crw------- 1 root tty 4, 25 Jan 19 21:45 tty25
crw------- 1 root tty 4, 26 Jan 19 21:45 tty26
crw------- 1 root tty 4, 27 Jan 19 21:45 tty27
crw------- 1 root tty 4, 28 Jan 19 21:45 tty28
crw------- 1 root tty 4, 29 Jan 19 21:45 tty29
crw------- 1 root tty 4, 3 Jan 19 21:45 tty3
crw------- 1 root tty 4, 30 Jan 19 21:45 tty30
crw------- 1 root tty 4, 31 Jan 19 21:45 tty31
crw------- 1 root tty 4, 32 Jan 19 21:45 tty32
crw------- 1 root tty 4, 33 Jan 19 21:45 tty33
crw------- 1 root tty 4, 34 Jan 19 21:45 tty34
crw------- 1 root tty 4, 35 Jan 19 21:45 tty35
crw------- 1 root tty 4, 36 Jan 19 21:45 tty36
crw------- 1 root tty 4, 37 Jan 19 21:45 tty37
crw------- 1 root tty 4, 38 Jan 19 21:45 tty38
crw------- 1 root tty 4, 39 Jan 19 21:45 tty39
crw------- 1 root tty 4, 4 Jan 19 21:45 tty4
crw------- 1 root tty 4, 40 Jan 19 21:45 tty40
crw------- 1 root tty 4, 41 Jan 19 21:45 tty41
crw------- 1 root tty 4, 42 Jan 19 21:45 tty42
crw------- 1 root tty 4, 43 Jan 19 21:45 tty43
crw------- 1 root tty 4, 44 Jan 19 21:45 tty44
crw------- 1 root tty 4, 45 Jan 19 21:45 tty45
crw------- 1 root tty 4, 46 Jan 19 21:45 tty46
crw------- 1 root tty 4, 47 Jan 19 21:45 tty47
crw------- 1 root tty 4, 48 Jan 19 21:45 tty48
crw------- 1 root tty 4, 49 Jan 19 21:45 tty49
crw------- 1 root tty 4, 5 Jan 19 21:45 tty5
crw------- 1 root tty 4, 50 Jan 19 21:45 tty50
crw------- 1 root tty 4, 51 Jan 19 21:45 tty51
crw------- 1 root tty 4, 52 Jan 19 21:45 tty52
crw------- 1 root tty 4, 53 Jan 19 21:45 tty53
crw------- 1 root tty 4, 54 Jan 19 21:45 tty54
crw------- 1 root tty 4, 55 Jan 19 21:45 tty55
crw------- 1 root tty 4, 56 Jan 19 21:45 tty56
crw------- 1 root tty 4, 57 Jan 19 21:45 tty57
crw------- 1 root tty 4, 58 Jan 19 21:45 tty58
crw------- 1 root tty 4, 59 Jan 19 21:45 tty59
crw------- 1 root tty 4, 6 Jan 19 21:45 tty6
crw------- 1 root tty 4, 60 Jan 19 21:45 tty60
crw------- 1 root tty 4, 61 Jan 19 21:45 tty61
crw------- 1 root tty 4, 62 Jan 19 21:45 tty62
crw------- 1 root tty 4, 63 Jan 19 21:45 tty63
crw------- 1 root tty 4, 7 Jan 19 21:45 tty7
crw------- 1 root tty 4, 8 Jan 19 21:45 tty8
crw------- 1 root tty 4, 9 Jan 19 21:45 tty9
crw------- 1 root tty 4, 64 Jan 20 16:04 ttyS0
crw-rw---- 1 root dialout 4, 65 Jan 19 21:45 ttyS1
crw-rw---- 1 root dialout 4, 66 Jan 19 21:45 ttyS2
crw-rw---- 1 root dialout 4, 67 Jan 19 21:45 ttyS3
crw-rw---- 1 root dialout 188, 0 Jan 20 17:10 ttyUSB0
crw-rw---- 1 root kvm 10, 258 Jan 19 21:45 udmabuf
crw------- 1 root root 10, 239 Jan 19 21:45 uhid
crw------- 1 root root 10, 223 Jan 19 21:45 uinput
crw-rw-rw- 1 root root 1, 9 Jan 19 21:45 urandom
crw------- 1 root root 10, 257 Jan 19 21:45 userfaultfd
crw-rw---- 1 root tty 7, 0 Jan 19 21:45 vcs
crw-rw---- 1 root tty 7, 1 Jan 19 21:45 vcs1
crw-rw---- 1 root tty 7, 2 Jan 19 21:45 vcs2
crw-rw---- 1 root tty 7, 3 Jan 19 21:45 vcs3
crw-rw---- 1 root tty 7, 4 Jan 19 21:45 vcs4
crw-rw---- 1 root tty 7, 5 Jan 19 21:45 vcs5
crw-rw---- 1 root tty 7, 6 Jan 19 21:45 vcs6
crw-rw---- 1 root tty 7, 128 Jan 19 21:45 vcsa
crw-rw---- 1 root tty 7, 129 Jan 19 21:45 vcsa1
crw-rw---- 1 root tty 7, 130 Jan 19 21:45 vcsa2
crw-rw---- 1 root tty 7, 131 Jan 19 21:45 vcsa3
crw-rw---- 1 root tty 7, 132 Jan 19 21:45 vcsa4
crw-rw---- 1 root tty 7, 133 Jan 19 21:45 vcsa5
crw-rw---- 1 root tty 7, 134 Jan 19 21:45 vcsa6
crw-rw---- 1 root tty 7, 64 Jan 19 21:45 vcsu
crw-rw---- 1 root tty 7, 65 Jan 19 21:45 vcsu1
crw-rw---- 1 root tty 7, 66 Jan 19 21:45 vcsu2
crw-rw---- 1 root tty 7, 67 Jan 19 21:45 vcsu3
crw-rw---- 1 root tty 7, 68 Jan 19 21:45 vcsu4
crw-rw---- 1 root tty 7, 69 Jan 19 21:45 vcsu5
crw-rw---- 1 root tty 7, 70 Jan 19 21:45 vcsu6
drwxr-xr-x 2 root root 60 Jan 19 21:45 vfio
crw------- 1 root root 10, 256 Jan 19 21:45 vga_arbiter
crw------- 1 root root 10, 137 Jan 19 21:45 vhci
crw-rw---- 1 root kvm 10, 238 Jan 19 21:45 vhost-net
crw-rw---- 1 root kvm 10, 241 Jan 19 21:45 vhost-vsock
crw------- 1 root root 10, 130 Jan 19 21:45 watchdog
crw------- 1 root root 245, 0 Jan 19 21:45 watchdog0
drwxr-xr-x 2 root root 60 Jan 19 21:45 wmi
crw-rw-rw- 1 root root 1, 5 Jan 19 21:45 zero
I really just can’t get a good grasp on what is causing this permission issue.
