Control Web Panel
		WebPanel => CentOS-WebPanel Bugs => Topic started by: KurJay on April 29, 2020, 04:42:21 AM
		
			
			- 
				Try to update from the admin panel can not update and update using ssh error
[root@fol services]# sh /scripts/update_cwp
====================================================
============= CentOS Web Panel Cron ================
====================================================
###########################
Firewall Flush Daily Blocks
###########################
######################
Update Server Packages
######################
** (pkttyagent:27984): WARNING **: 11:31:39.187: 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 cwpsrv.service
** (pkttyagent:28129): WARNING **: 11:31:51.170: 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:28202): WARNING **: 11:31:51.365: 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:28371): WARNING **: 11:31:53.030: 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@fol services]#
Any Help ? Thanks
			 
			
			- 
				Same problem - 13 servers cwp-Pro
			
 
			
			- 
				Me 5 Do Please Help
Regards
			 
			
			- 
				this is OS related error not cwp.
to fix run this command :
mount proc -o remount,hidepid=2 && mount proc -o remount,hidepid=0 && systemctl restart polkit.service
			 
			
			- 
				
I ran the command and if I cross sh/scripts/update_cwp the same error appears again
			 
			
			- 
				Same here I try to google and there is no found any answer
[root@db /]# mount proc -o remount,hidepid=2 && mount proc -o remount,hidepid=0 && systemctl restart polkit.service
[root@db /]# sh /scripts/update_cwp
====================================================
============= CentOS Web Panel Cron ================
====================================================
###########################
Firewall Flush Daily Blocks
###########################
######################
Update Server Packages
######################
Redirecting to /bin/systemctl restart cwpsrv.service
** (pkttyagent:27342): WARNING **: 16:35:06.860: 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:27408): WARNING **: 16:35:07.059: 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:27535): WARNING **: 16:35:07.917: 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@db /]#
Regards
			 
			
			- 
				run the command again and reboot your server and check 
you can see some services are fixed and the error is not same as before 
			 
			
			- 
				Run again 
Reboot
Still have error
[root@db ~]# sh /scripts/update_cwp
====================================================
============= CentOS Web Panel Cron ================
====================================================
###########################
Firewall Flush Daily Blocks
###########################
######################
Update Server Packages
######################
Redirecting to /bin/systemctl restart cwpsrv.service
** (pkttyagent:9907): WARNING **: 16:58:00.435: 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)
Redirecting to /bin/systemctl restart httpd.service
** (pkttyagent:9973): WARNING **: 16:58:00.613: 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)
Redirecting to /bin/systemctl reload httpd.service
** (pkttyagent:10101): WARNING **: 16:58:02.265: Unable to register authenticati                                                                                        on agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine                                                                                         user of subject
Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.E                                                                                        rror.Failed: Cannot determine user of subject (polkit-error-quark, 0)
[root@db ~]#
Regards
			 
			
			- 
				service httpd restart 
and
 service postfix restart
do you getting same error for both ?
			 
			
			- 
				This is fresh install server Just Install 3 hours ago just want to change FTP Port and resstart
[root@db1 ~]# service pure-ftpd restart
Redirecting to /bin/systemctl restart pure-ftpd.service
** (pkttyagent:9331): WARNING **: 17:06:18.324: 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@db1 ~]#
			 
			
			- 
				
service httpd restart 
and
 service postfix restart
do you getting same error for both ?
Yes sir still the same error
[root@db ~]# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
** (pkttyagent:13382): WARNING **: 17:06:30.243: 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@db ~]# service postfix restart
Redirecting to /bin/systemctl restart postfix.service
** (pkttyagent:13526): WARNING **: 17:06:39.331: 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@db ~]#
			 
			
			- 
				run this command :
virt-what 
			 
			
			- 
				
run this command :
virt-what
[root@db ~]# virt-what
vmware
[root@db ~]#
			 
			
			- 
				send the root password and server ip with ssh in pm for the checks.
			
 
			
			- 
				
send the root password and server ip with ssh in pm for the checks.
Done
			 
			
			- 
				(https://img.ciberindo.net/uploads/error/202DB-29APR2020.png?_t=1588156224)
The Server act like carzy too
Regards
			 
			
			- 
				disable hide process security feature
			
 
			
			- 
				ok
			
 
			
			- 
				
disable hide process security feature for the fix.
Thanks man it solve
[root@db ~]# sh /scripts/update_cwp
====================================================
============= CentOS Web Panel Cron ================
====================================================
###########################
Firewall Flush Daily Blocks
###########################
######################
Update Server Packages
######################
Redirecting to /bin/systemctl restart cwpsrv.service
Redirecting to /bin/systemctl restart httpd.service
Redirecting to /bin/systemctl reload httpd.service
[root@db ~]#
			 
			
			- 
				
disable hide process security feature
Already disabled hide process but getting the below issues
# sh /scripts/update_cwp 
====================================================
============= CentOS Web Panel Cron ================
====================================================
###########################
Firewall Flush Daily Blocks
###########################
######################
Update Server Packages
######################
Redirecting to /bin/systemctl restart cwpsrv.service
** (pkttyagent:31001): WARNING **: 22:49:03.733: 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:31065): WARNING **: 22:49:03.906: 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:31193): WARNING **: 22:49:06.659: 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)
			 
			
			- 
				please run the command if you're facing the issue check the previous replies and ensure secure process is deactivated
			
 
			
			- 
				Got the same problem when I try and restart httpd from a terminal, from dashboard doesn't give problem. Disabling hide process security feature fix it. But why?
			
 
			
			- 
				Same issue on a fresh install today. I have tried everything in this post and still have the issue. It is a KVM.
			
 
			
			- 
				
Admin -> Security -> Secure Processes -> Disable Protection
security_UserProcess
Security - Hide all processes if not owned by the user [STATUS: DISABLED]
This are not a fix, but a bad workaround, as also the build-in security notifications will alert you
 Danger: Hidden Processes - SECURITY ISSUE
Hide all processes if not owned by the user is NOT activated on your server, click here to enable it. 
[/color]