Author Topic: 502 Bad Gateway - FIX  (Read 803 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
502 Bad Gateway - FIX
« on: April 03, 2024, 06:35:37 AM »
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

Quote
systemctl restart php-fpm.service

But I got following error/warnings

Quote
** (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

Quote
sh /scripts/restart_cwpsrv

Gave

Quote
** (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

Quote
mount proc -o remount,hidepid=0
Quote
systemctl restart polkit.service

And then

Quote
sh /scripts/restart_cwpsrv

Solved the issue