I suspended a client account. After few days, I unsuspended the account.
but client user panel started giving 502 bad gateway error.
I got a suggestion to run
systemctl restart php-fpm.service
But I got following error/warnings
** (pkttyagent:5436): WARNING **: 08:19:01.450: Unable to register authenticatio n agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine u ser of subject
Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.E rror.Failed: Cannot determine user of subject (polkit-error-quark, 0)
Failed to restart php-fpm.service: Unit not found.
Even running
sh /scripts/restart_cwpsrv
Gave
** (pkttyagent:9067): WARNING **: 08:22:24.617: Unable to register authenticatio n agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine u ser of subject
Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.E rror.Failed: Cannot determine user of subject (polkit-error-quark, 0)
Now saw another suggession to fix this WARNING as
mount proc -o remount,hidepid=0
systemctl restart polkit.service
And then
sh /scripts/restart_cwpsrv
Solved the issue