Error: Failed to autodetect serial port, please set it manually. Raspberry Pi 3 Model A+

I turned on the device and saw the problem State: Error: Failed to autodetect serial port, please set it manually. What to do? Raspberry Pi 3 Model A+

Logs:octoprint (1).log (13.2 KB)

Connecting to: /dev/ttyAMA0
Changing monitoring state from "Offline" to "Opening serial port"
Connected to: Serial<id=0x7202e190, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
Starting baud rate detection...
Changing monitoring state from "Opening serial port" to "Detecting baudrate"
Trying baudrate: 115200
Could not write anything to the serial port in 5 tries, something appears to be wrong with the printer communication
Changing monitoring state from "Detecting baudrate" to "Offline (Error: Could not write to serial port)"
Connection closed, closing down monitor
Closing down send loop

Recv: Compiled: Sep 3 2018
Recv: echo: Free Memory: 9679 PlannerBufferBytes: 1232
Recv: echo:Stored settings retrieved
Recv: echo:SD init fail
There was a timeout while trying to connect to the printer
Changing monitoring state from "Connecting" to "Offline"
Connection closed, closing down monitor
Connecting to: /dev/ttyUSB0
Changing monitoring state from "Offline" to "Opening serial port"
Connected to: Serial<id=0x68941950, open=True>(port='/dev/ttyUSB0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
Changing monitoring state from "Opening serial port" to "Connecting"
Send: N0 M110 N0125
Send: N0 M110 N0
125
Recv: start
Recv: echo: External Reset
Send: N0 M110 N0*125
Recv: Marlin 1.0.0
Recv: echo: Last Updated: Sep 3 2018 15:45:59 | Author: (Ender3)

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your printer's firmware is known to lack mandatory safety features (e.g.
thermal runaway protection). This is a fire risk.

Learn more at https://faq.octoprint.org/warning-firmware-unsafe
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Recv: Compiled: Sep 3 2018
Recv: echo: Free Memory: 9679 PlannerBufferBytes: 1232
Recv: echo:Stored settings retrieved
There was a timeout while trying to connect to the printer
Changing monitoring state from "Connecting" to "Offline"
Connection closed, closing down monitor