Author Topic: sh update_cwp script giving errors  (Read 6961 times)

0 Members and 2 Guests are viewing this topic.

Offline
*
sh update_cwp script giving errors
« on: May 03, 2020, 11:40:01 AM »
hello,

sh update_cwp script giving below error/warnings. how to fix it ? anybody knows

[root@server scripts]# sh update_cwp


====================================================
============= CentOS Web Panel Cron ================
====================================================


###########################
Firewall Flush Daily Blocks
###########################


######################
Update Server Packages
######################
Redirecting to /bin/systemctl reload cwpsrv.service

** (pkttyagent:25879): WARNING **: 13:35:08.241: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)
Redirecting to /bin/systemctl reload cwp-phpfpm.service

** (pkttyagent:25899): WARNING **: 13:35:08.355: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)
https://packagecloud.io/varnishcache/varnish5/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2600:1f1c:2e5:6901:786e:510b:4f4f:d29c: Network is unreachable"
Trying other mirror.
Redirecting to /bin/systemctl restart cwpsrv.service

** (pkttyagent:26220): WARNING **: 13:35:48.302: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)
Redirecting to /bin/systemctl restart httpd.service

** (pkttyagent:26287): WARNING **: 13:35:48.590: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)
Redirecting to /bin/systemctl reload httpd.service

** (pkttyagent:26331): WARNING **: 13:35:51.144: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)



Regards,

Zeeshan Javed

Offline
****
Re: sh update_cwp script giving errors
« Reply #1 on: May 03, 2020, 06:00:28 PM »
try
systemctl stop polkit

/scripts/cwp_update

then you should be able to retstart polkit
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: sh update_cwp script giving errors
« Reply #2 on: May 03, 2020, 06:18:47 PM »
no luck :( see the below output.

[root@server scripts]# systemctl stop polkit

** (pkttyagent:24840): WARNING **: 20:17:27.611: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)
[root@server scripts]#

Offline
****
Re: sh update_cwp script giving errors
« Reply #3 on: May 03, 2020, 06:31:04 PM »
From what I'm reading, polkit hardened their latest release.  It is having adverse affects on every operating system.  Hopefully their will be a bug release soon.  But I haven't had any issue restarting services other than that warning message appears.
Google Hangouts:  rcschaff82@gmail.com

Offline
**

Offline
**
Re: sh update_cwp script giving errors
« Reply #5 on: May 14, 2020, 12:57:46 PM »
Please check from https://opentechy.com/how-to-fix-gdbus-errororg-freedesktop-policykit1-error-failed/

Hi "evansa",

The solution you posted and suggested works perfectly.

Thanks for the support.


« Stay hungry, stay foolish. »