No usb/serial connection with Ender 5 after a reinstall

What is the problem?

printer cannot connect to octoprint

What did you already try to solve it?

check dmesg and serial.log

Have you tried running in safe mode?

no

Did running in safe mode solve the problem?

nope

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog ... no bundle, no support!)
octoprint-systeminfo-20240821124700.zip (17.7 KB)

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

Octoprint 1.10.2 , Ender 5, chrome browser, OS armbian Armbian_community_24.8.0-trunk.596_Orangepizero_noble_current_6.6.44.img.xz

this is a new installation for an issue on network in previuos installation,
until yesterday the upgraded octoprint and the printer was fine

today i reinstalled armbian on a new SD , setting the network, upgraded OS, fight a lot with octoprint installation (pip building wheels) but now it start fine.

it cannot connect with ttyUSB0 , i also checked on the octoprint backup the old settings.

[ 521.664547] usb 6-1: new full-speed USB device number 3 using ohci-platform
[ 521.889605] usb 6-1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[ 521.889663] usb 6-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 521.889690] usb 6-1: Product: USB Serial
[ 521.892004] ch341 6-1:1.0: ch341-uart converter detected
[ 521.904210] usb 6-1: ch341-uart converter now attached to ttyUSB0

i don't rememeber because 3 or 4 years ago i had some issue on this board/installation, may be i need to setup something on OS

can you help me ?

I'm going to guess that it is a permissions problem with the serial device. I'm not sure if there are any active OrangePi / Armbian experts on this forum but see this topic. In particular, note the comment regarding usermod and the tty permission.

BTW, thank you for the excellent post.

Also noticed your restore didn't complete. Could have borked the install
No space on device? Other than that, an OrangePi is not the target for OctoPi...

yes, the /tmp is not enough only 240MB
but i opted to setup again

i changed the group for device /dev/ttyUSB0 , it still to not connect

i also installed mingetty in order to test serial connection, but for now i don't' see "messages"/ output from serial console and mingetty exits

i am reinstalling octoprint....

but it find the old configuration. where are the config files ? can i remove it in order to recreate it ?

i tested usb with my laptop on windows, the USB serial console works and i can send Command, evety time i connect to ttyUSB the board on ender 5 reboots, but is normal.

back again on orangepi, when i execute mingetty ttyUSB0 from root user , the ender 5 board reboots, mingetty exits and i cannot send command, this can be an issue or not infact i run mingetty without options

from octopi user the ender5 board didn't reset....... i need to investigate in this direction.

it works
sudo chmod -R 777 /dev/ttyUSB0 in ordert to connect with octopi user

it needs to be permanent across reboots , **

i put in /etc/bash.bashrc, but is not correct, it doesn't work. any suggestion ?

added the user octopi into dialout group, it is sufficient to start ttyUSB0
sudo usermod -a -G dialout octopi

many thanks to all expecially to b-morgan to put me on the right way