Gathering debug data in Armbian with sosreport

A detailed archive of system logs and configuration files is needed to analyze various failures, freezes, or simply incorrect behavior of the controller.

A convenient tool for collecting such an archive is the package sosreport .

To use it:

* install the sosreport and sysstat:

packages beforehand
sudo apt-get install sosreport sysstat

* Enable sysstat:

- edit the  /etc/defaults/sysstat file so that it contains the line ENABLED="true":

sudo nano /etc/defaults/sysstat

- Start the service with commands:

sudo systemctl enable sysstat
sudo systemctl start sysstat

* after a failure, collect the archive as soon as possible:

sudo sosreport -a

We pass the collected archive for analysis, for example, via tech support forum.