CWP updater errors

Started by Radical Redemption, May 23, 2020, 08:36:28 AM

Previous topic - Next topic

Radical Redemption

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)

rcschaff

A forum search would have resulted in the following advice:
The workaround is as follows:

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
Google Hangouts:  rcschaff82@gmail.com

pixelpadre

Can you imagine if this was a post in the cpanel forum.  That would be hilarious.

Radical Redemption

Quote from: 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.

No, i can't.