Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: Radical Redemption on May 23, 2020, 08:36:28 AM

Title: CWP updater errors
Post by: Radical Redemption on May 23, 2020, 08:36:28 AM
Quote
[root@mercury ~]# sh /scripts/update_cwp

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


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


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

** (pkttyagent:18110): WARNING **: 10:35:25.137: 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:18177): WARNING **: 10:35:25.905: 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:18220): WARNING **: 10:35:27.587: 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)
Title: Re: CWP updater errors
Post by: rcschaff on May 23, 2020, 08:57:46 AM
A forum search would have resulted in the following advice:
The workaround is as follows:

Code: [Select]
groupadd -g 23 nohidproc
usermod -a -G nohidproc polkitd
mount -o remount,rw,hidepid=2,gid=nohidproc /proc
systemctl restart polkit
###Add the following in /etc/fstab as well
echo "proc /proc proc defaults,hidepid=2,gid=nohidproc 0 0" >> /etc/fstab

###After mount the new mountpoint

mount -a
systemctl restart polkit
Title: Re: CWP updater errors
Post by: pixelpadre on May 23, 2020, 10:09:01 AM
Can you imagine if this was a post in the cpanel forum.  That would be hilarious.
Title: Re: CWP updater errors
Post by: Radical Redemption on May 23, 2020, 11:03:13 AM
Can you imagine if this was a post in the cpanel forum.  That would be hilarious.

No, i can't.