SATA HAT FAN not working - Disks overheating

Hello everyone,
I just discovered that my NAS’ RAID kept crashing after some hours… It was because the FAN stopped working and disks kept crashing due to overheat in NAS case. I dont know why and when this happened, but I can see the following errors when I restart the service:

OK root@ncloud:~# systemctl restart rockpi-sata.service 
OK root@ncloud:~# journalctl -xe
-- 
-- The job identifier is 643.
Aug 26 13:08:25 ncloud python3[1784]: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Aug 26 13:08:25 ncloud python3[1784]: Can't connect to pigpio at [](8888)
Aug 26 13:08:25 ncloud python3[1784]: Did you start the pigpio daemon? E.g. sudo pigpiod
Aug 26 13:08:25 ncloud python3[1784]: Did you specify the correct Pi host/port in the environment
Aug 26 13:08:25 ncloud python3[1784]: variables PIGPIO_ADDR/PIGPIO_PORT?
Aug 26 13:08:25 ncloud python3[1784]: E.g. export PIGPIO_ADDR=soft, export PIGPIO_PORT=8888
Aug 26 13:08:25 ncloud python3[1784]: Did you specify the correct Pi host/port in the
Aug 26 13:08:25 ncloud python3[1784]: pigpio.pi() function? E.g. pigpio.pi('soft', 8888)
Aug 26 13:08:25 ncloud python3[1784]: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Aug 26 13:08:26 ncloud python3[1784]: Process Process-4:
Aug 26 13:08:26 ncloud python3[1784]: Traceback (most recent call last):
Aug 26 13:08:26 ncloud python3[1784]:   File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
Aug 26 13:08:26 ncloud python3[1784]:     self.run()
Aug 26 13:08:26 ncloud python3[1784]:   File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
Aug 26 13:08:26 ncloud python3[1784]:     self._target(*self._args, **self._kwargs)
Aug 26 13:08:26 ncloud python3[1784]:   File "/usr/bin/rockpi-sata/fan.py", line 81, in running
Aug 26 13:08:26 ncloud python3[1784]:     change_dc(get_dc())
Aug 26 13:08:26 ncloud python3[1784]:   File "/usr/bin/rockpi-sata/fan.py", line 75, in change_dc
Aug 26 13:08:26 ncloud python3[1784]:     gpio.hardware_PWM(12, 25000, dc * 10000)
Aug 26 13:08:26 ncloud python3[1784]:   File "/usr/lib/python3/dist-packages/pigpio.py", line 2045, in hardware_PWM
Aug 26 13:08:26 ncloud python3[1784]:     self.sl, _PI_CMD_HP, gpio, PWMfreq, 4, extents))
Aug 26 13:08:26 ncloud python3[1784]:   File "/usr/lib/python3/dist-packages/pigpio.py", line 1062, in _pigpio_command_ext
Aug 26 13:08:26 ncloud python3[1784]:     sl.s.sendall(ext)
Aug 26 13:08:26 ncloud python3[1784]: AttributeError: 'NoneType' object has no attribute 'sendall'

What can I do to make it work again? I ran # sudo pigpiod but this doesnt help.

It seems that people have to help themselves here…
I found the solution.

/lib/systemd/system/pigpiod.service

[Service]
ExecStart=/usr/bin/pigpiod -l -n 127.0.0.1

Source: https://github.com/joan2937/pigpio/issues/195

Thx for nothing! :slight_smile:

If you read in the older topic, you are not the first who encountered this error.
But the point is that you could solve it!

I had a different problem, and it took more than 2 months to figure out what is going wrong and solve it.