Closed VitaliyKulikov closed 2 years ago
I have the same problem on Arch. Also the configuration file /usr/lib/systemd/system/amdfand.service is marked executable. AUR package maintainer will probably fix this.
This is weird. Can you give me your output of this command:
systemctl status | grep amdfan
It seems you have more than 1 instances activated. Lock file should raise error only if there's pid file with PID which is alive.
Now, I don't have the problem. What I did:
sudo systemctl enable --now amdfand.service
It is really weird.
here boot log for service:
$ journalctl -xb -4 --no-pager | grep amdfand.service
Feb 11 14:50:26 dulia systemd[1]: Configuration file /usr/lib/systemd/system/amdfand.service is marked executable. Please remove executa
ble permission bits. Proceeding anyway.
░░ Subject: A start job for unit amdfand.service has finished successfully
░░ A start job for unit amdfand.service has finished successfully.
Feb 11 14:50:34 dulia systemd[1]: amdfand.service: Main process exited, code=exited, status=1/FAILURE
░░ An ExecStart= process belonging to unit amdfand.service has exited.
Feb 11 14:50:34 dulia systemd[1]: amdfand.service: Failed with result 'exit-code'.
░░ The unit amdfand.service has entered the 'failed' state with result 'exit-code'.
Feb 11 14:50:38 dulia systemd[1]: amdfand.service: Scheduled restart job, restart counter is at 1.
░░ Automatic restarting of the unit amdfand.service has been scheduled, as the result for
░░ Subject: A stop job for unit amdfand.service has finished
░░ A stop job for unit amdfand.service has finished.
░░ Subject: A start job for unit amdfand.service has finished successfully
░░ A start job for unit amdfand.service has finished successfully.
Feb 11 14:50:38 dulia systemd[1]: amdfand.service: Main process exited, code=exited, status=1/FAILURE
░░ An ExecStart= process belonging to unit amdfand.service has exited.
Feb 11 14:50:38 dulia systemd[1]: amdfand.service: Failed with result 'exit-code'.
░░ The unit amdfand.service has entered the 'failed' state with result 'exit-code'.
Feb 11 14:50:42 dulia systemd[1]: amdfand.service: Scheduled restart job, restart counter is at 2.
░░ Automatic restarting of the unit amdfand.service has been scheduled, as the result for
░░ Subject: A stop job for unit amdfand.service has finished
░░ A stop job for unit amdfand.service has finished.
░░ Subject: A start job for unit amdfand.service has finished successfully
░░ A start job for unit amdfand.service has finished successfully.
Feb 11 14:50:42 dulia systemd[1]: amdfand.service: Main process exited, code=exited, status=1/FAILURE
...
so, only one instance is going to start and restart.
also, after such boot. i have seen pwm1_enable = 2
i have done 2 boots already without reinstalling. working fine. we can postpone this issue. i will provide more findings if any. thanks.
I think I know what is the issue. Stored PID from previous run happens to be already used by other process in this run so this causes collision.
Maintainer of library didn't covered so I need to make additional check if name of process is the same
I updated binary in release, AUR package is also updated. Please confirm this fixed issue
The issue seems to be solved.
I restarted the system several times, so far no problem. Usually it would fail at every boot session after some time. After 3 hours the service is still working.
can confirm so far no problem.
Update, I have the problem again.
This time it's a little different. After 4 days of normal behavior, the service started failing again.
ERROR amdfand > MalformedPidFile(ParseIntError { kind: Empty })
@Zile995 please check and confirm issue was fixed
amdfand cargo version 1.0.11
ERROR amdfand > MalformedPidFile(ParseIntError { kind: Empty })
I have strange behavior during boot with the new version. service auto restarting provides the same result, but the system reboot has been successful. it happened twice already. seems, it happens
randomly
during boot. no service crash after boot.it was linux-kernel update before. i am using manjaro-unstable (archlinux-stable). but, strange that with the same software reboot helps after error during boot.