It seems there is no proper connection to the printer:
2022-10-11 12:53:03,464 - Changing monitoring state from "Offline" to "Opening serial connection"
2022-10-11 12:53:03,482 - Connecting to port /dev/ttyS0, baudrate 115200
2022-10-11 12:53:03,558 - Changing monitoring state from "Opening serial connection" to "Connecting"
2022-10-11 12:53:03,572 - Connected to: Serial<id=0x71e209b0, open=True>(port='/dev/ttyS0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2022-10-11 12:53:03,582 - Send: N0 M110 N0*125
2022-10-11 12:53:04,586 - Could not write anything to the serial port in 5 tries, something appears to be wrong with the printer communication
2022-10-11 12:53:04,589 - Changing monitoring state from "Connecting" to "Offline after error"
2022-10-11 12:53:05,846 - Unexpected error while reading serial port, please consult octoprint.log for details: OSError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:3997
2022-10-11 12:53:05,898 - Connection closed, closing down monitor