Octoprint not runing on Mate 22.04 (Raspberry-4 with 8GB Ram)

Unable to get OctoPrint connection to 3D printer working on /dev/ttyAMA0 after upgrading from Mate 20.04 to Mate 22.04. (Fresh install of everything done twice already) Hardware is a Creality CR6-SE with community firmware connected to Pi4 with 8GB in Argon case with 250GB SSD (Kernel Linux 5.15.0-1013-raspi aarch64)

Any help would be greatly appreciated. * * *
ERROR Log Info:
Connecting to port /dev/ttyAMA0, baudrate 115200
Serial detection: Handshake attempt #3 with timeout 2.0s
M110 detected, setting current line number to 0
Changing monitoring state from "Detecting serial connection" to "Error"
Changing monitoring state from "Error" to "Offline after error"

Same results running Octoprint in Safe Mode
User is a member of tty & dialout groups
Have also tried deleting tty & ttyAMA0 from the /dev directory

(Appears to have most the of same issues that accompanied having the brltty.service (Braille service) running in version 20.10, but 22.04 doesn't load the brltty.service.)

anything in dmesg?

I am no expert at reading dmesg data, but nothing jumps out as a problem to me.
USB Section looked like this:
[ 2.548884] usb usb1: SerialNumber: 0000:01:00.0
[ 2.553627] hub 1-0:1.0: USB hub found
[ 2.553698] hub 1-0:1.0: 1 port detected
[ 2.554204] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 2.554216] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[ 2.554228] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[ 2.554423] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[ 2.554431] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.554437] usb usb2: Product: xHCI Host Controller
[ 2.554442] usb usb2: Manufacturer: Linux 5.15.0-1014-raspi xhci-hcd
[ 2.554446] usb usb2: SerialNumber: 0000:01:00.0
[ 2.568019] hub 2-0:1.0: USB hub found
[ 2.568116] hub 2-0:1.0: 4 ports detected
[ 2.573581] brcmstb-i2c fef04500.i2c: @97500hz registered in polling mode
[ 2.575172] brcmstb-i2c fef09500.i2c: @97500hz registered in polling mode
[ 2.595104] dwc2 fe980000.usb: supply vusb_d not found, using dummy regulator
[ 2.595276] dwc2 fe980000.usb: supply vusb_a not found, using dummy regulator
[ 2.615819] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
[ 2.807634] dwc2 fe980000.usb: EPs: 8, dedicated fifos, 4080 entries in SPRAM
[ 2.808085] dwc2 fe980000.usb: DWC OTG Controller
[ 2.809322] dwc2 fe980000.usb: new USB bus registered, assigned bus number 3
[ 2.809368] dwc2 fe980000.usb: irq 24, io mem 0xfe980000
[ 2.809540] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[ 2.809547] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.809553] usb usb3: Product: DWC OTG Controller
[ 2.809558] usb usb3: Manufacturer: Linux 5.15.0-1014-raspi dwc2_hsotg
[ 2.809562] usb usb3: SerialNumber: fe980000.usb
[ 2.860469] hub 3-0:1.0: USB hub found
[ 2.860531] hub 3-0:1.0: 1 port detected
[ 2.887593] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[ 3.038283] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[ 3.038316] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 3.038330] usb 1-1: Product: USB2.0 Hub
[ 3.040232] hub 1-1:1.0: USB hub found
[ 3.040536] hub 1-1:1.0: 4 ports detected
[ 3.163970] usb 2-2: new SuperSpeed USB device number 2 using xhci_hcd
[ 3.185341] usb 2-2: New USB device found, idVendor=174c, idProduct=1156, bcdDevice= 1.00
[ 3.185361] usb 2-2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 3.185374] usb 2-2: Product: Forty
[ 3.185385] usb 2-2: Manufacturer: Argon
[ 3.185396] usb 2-2: SerialNumber: 0000000000E4
[ 3.218738] usbcore: registered new interface driver usb-storage
[ 3.226952] scsi host0: uas
[ 3.227309] usbcore: registered new interface driver uas
[ 3.227844] scsi 0:0:0:0: Direct-Access Argon Forty 0 PQ: 0 ANSI: 6
[ 3.228853] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 3.229636] sd 0:0:0:0: [sda] 500118192 512-byte logical blocks: (256 GB/238 GiB)
[ 3.229645] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 3.229801] sd 0:0:0:0: [sda] Write Protect is off
[ 3.229808] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[ 3.230022] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 3.230603] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
[ 3.268778] sda: sda1 sda2
[ 3.284223] sd 0:0:0:0: [sda] Attached SCSI disk
[ 3.335618] usb 1-1.3: new high-speed USB device number 3 using xhci_hcd
[ 3.467206] usb 1-1.3: New USB device found, idVendor=0ac8, idProduct=3460, bcdDevice= 1.00
[ 3.467240] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3.467253] usb 1-1.3: Product: Kodak Dual Webcamera
[ 3.467265] usb 1-1.3: Manufacturer: Sakar Corp.
[ 3.547690] usb 1-1.4: new low-speed USB device number 4 using xhci_hcd
[ 3.659542] usb 1-1.4: New USB device found, idVendor=17ef, idProduct=6019, bcdDevice= 1.00
[ 3.659562] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3.659568] usb 1-1.4: Product: Lenovo USB Optical Mouse
[ 3.659573] usb 1-1.4: Manufacturer: PixArt
[ 3.676807] usbcore: registered new interface driver usbhid
[ 3.676823] usbhid: USB HID core driver
[ 3.687097] input: PixArt Lenovo USB Optical Mouse as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:17EF:6019.0001/input/input0
[ 3.687365] hid-generic 0003:17EF:6019.0001: input,hidraw0: USB HID v1.11 Mouse [PixArt Lenovo USB Optical Mouse] on usb-0000:01:00.0-1.4/input0
[ 3.935332] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[ 4.471723] systemd[1]: Inserted module 'autofs4'

Try this:
sudo tail -f /var/log/syslog

Then plug in the USB to the printer and turn it on. You should see it detect the port in case the port name has changed.

Not sure what you expect to see, but here is what showed up as /dev/ttyAMA0 timed out it's connection.
octoprint@Pi4-Mate:~$ sudo tail -f /var/log/syslog

Sep 11 11:35:45 Pi4-Mate dbus-daemon[839]: [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service' requested by ':1.33' (uid=0 pid=858 comm="/usr/lib/snapd/snapd " label="unconfined")
Sep 11 11:35:45 Pi4-Mate systemd[1]: Starting Time & Date Service...
Sep 11 11:35:45 Pi4-Mate dbus-daemon[839]: [system] Successfully activated service 'org.freedesktop.timedate1'
Sep 11 11:35:45 Pi4-Mate systemd[1]: Started Time & Date Service.
Sep 11 11:36:15 Pi4-Mate systemd[1]: systemd-timedated.service: Deactivated successfully.
Sep 11 11:45:43 Pi4-Mate systemd[1]: Starting Cleanup of Temporary Directories...
Sep 11 11:45:43 Pi4-Mate systemd[1]: systemd-tmpfiles-clean.service: Deactivated successfully.
Sep 11 11:45:43 Pi4-Mate systemd[1]: Finished Cleanup of Temporary Directories.
Sep 11 11:45:52 Pi4-Mate python3[908]: 2022-09-11 11:45:52,081 - octoprint.server.heartbeat - INFO - Server heartbeat <3#033[0m
Sep 11 11:46:02 Pi4-Mate python3[908]: 2022-09-11 11:46:02,472 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 909, 'printer_state': 'OFFLINE'}#033[0m
Sep 11 11:48:27 Pi4-Mate python3[908]: 2022-09-11 11:48:27,528 - octoprint.util.comm - INFO - Changing monitoring state from "Offline" to "Opening serial connection"#033[0m
Sep 11 11:48:27 Pi4-Mate python3[908]: 2022-09-11 11:48:27,530 - octoprint.util.comm - INFO - Connecting to port /dev/ttyAMA0, baudrate 115200#033[0m
Sep 11 11:48:27 Pi4-Mate python3[908]: 2022-09-11 11:48:27,547 - octoprint.util.comm - INFO - Changing monitoring state from "Opening serial connection" to "Connecting"#033[0m
Sep 11 11:48:27 Pi4-Mate python3[908]: 2022-09-11 11:48:27,553 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0#033[0m
Sep 11 11:48:57 Pi4-Mate python3[908]: 2022-09-11 11:48:57,589 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0#033[0m
Sep 11 11:49:07 Pi4-Mate python3[908]: 2022-09-11 11:49:07,608 - octoprint.util.comm - INFO - Changing monitoring state from "Connecting" to "Offline"#033[0m
Sep 11 11:49:07 Pi4-Mate python3[908]: 2022-09-11 11:49:07,616 - octoprint.plugins.action_command_notification - INFO - Notifications cleared#033[0m

Mate may be following Ubuntu releass .Try a sudo systemctl stop brltty; sudo systemctl disable brltty

Hope this post helps you

YOU ARE 100% CORRECT in your POST!!!
I finally got there myself before reading your answer by unplugging and plugging the printer and looking at sudo dmesg results.

The FIX I used is found at: usbfs: interface 0 claimed by ch34x while 'brltty' sets config #1 路 Issue #18 路 juliagoda/CH341SER 路 GitHub

From the comments it appears several others have used it successfully also.

1 Like

Looks as if your solution WORKS as suggested. But, I had tried to do `sudo systemctl disable brltty.service' and with service at the end it failed to find the service and failed to correct my problem.

The FIX I used is found at: [usbfs: interface 0 claimed by ch34x while 'brltty' sets config #1 路 Issue #18

From the comments it appears several others have used it successfully also.

Another fix is just: sudo apt remove brltty

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.