0

My Pi stopped responding yesterday. It normally serves an html page with sensor data using apache. When I browsed to the IP I got 403. When I tried to SSH I got

kex_exchange_identification: read: Connection reset by peer

Connection reset by 192.168.1.11 port 22

I cycled the power and it is back and appears to be functioning normally. The Python script collecting data from a sensor and logging it every 5 minutes using cron stopped about 36 hrs ago so it seems like a full system crash. Can anyone suggest where I should look for logs on RasPiOS Buster that might indicate what went wrong, or how I can get the Pi to create such logs, if they're not enabled by default?

Ninja Chris
  • 123
  • 1
  • 1
  • 5

1 Answers1

1

Login via ssh or console and look at /var/log/syslog using more, less, grep or your favourite editor.

Connection reset by peer is an error generated when the remote side drops the connection. It implies that networking was up and that it established the connection but was dropped by USER software.

https://selivan.github.io/2017/02/07/rsyslog-log-forward-save-filename-handle-multi-line-failover.html

Simon Banks
  • 610
  • 1
  • 7
  • 15