Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: KurJay on April 29, 2020, 04:42:21 AM

Title: CWP update error pkttyagent:
Post 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

Code: [Select]
[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
Title: Re: CWP update error pkttyagent:
Post by: ghoste on April 29, 2020, 07:28:06 AM
Same problem - 13 servers cwp-Pro
Title: Re: CWP update error pkttyagent:
Post by: KurJay on April 29, 2020, 08:08:13 AM
Me 5 Do Please Help

Regards
Title: Re: CWP update error pkttyagent:
Post by: Sandeep on April 29, 2020, 08:47:31 AM
this is OS related error not cwp.

to fix run this command :
Code: [Select]
mount proc -o remount,hidepid=2 && mount proc -o remount,hidepid=0 && systemctl restart polkit.service
Title: Re: CWP update error pkttyagent:
Post by: ghoste on April 29, 2020, 09:18:32 AM

I ran the command and if I cross sh/scripts/update_cwp the same error appears again
Title: Re: CWP update error pkttyagent:
Post by: KurJay on April 29, 2020, 09:35:45 AM
Same here I try to google and there is no found any answer

Code: [Select]
[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
Title: Re: CWP update error pkttyagent:
Post by: Sandeep on April 29, 2020, 09:41:37 AM
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
Title: Re: CWP update error pkttyagent:
Post by: KurJay on April 29, 2020, 10:01:36 AM
Run again
Reboot

Still have error
Code: [Select]
[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
Title: Re: CWP update error pkttyagent:
Post by: Sandeep on April 29, 2020, 10:05:35 AM
service httpd restart

and

 service postfix restart

do you getting same error for both ?
Title: Re: CWP update error pkttyagent:
Post by: KurJay on April 29, 2020, 10:07:49 AM
This is fresh install server Just Install 3 hours ago just want to change FTP Port and resstart

Code: [Select]
[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 ~]#
Title: Re: CWP update error pkttyagent:
Post by: KurJay on April 29, 2020, 10:09:53 AM
service httpd restart

and

 service postfix restart

do you getting same error for both ?

Yes sir still the same error
Code: [Select]
[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 ~]#
Title: Re: CWP update error pkttyagent:
Post by: Sandeep on April 29, 2020, 10:13:23 AM
run this command :
virt-what
Title: Re: CWP update error pkttyagent:
Post by: KurJay on April 29, 2020, 10:18:57 AM
run this command :
virt-what

Code: [Select]
[root@db ~]# virt-what
vmware
[root@db ~]#
Title: Re: CWP update error pkttyagent:
Post by: Sandeep on April 29, 2020, 10:19:29 AM
send the root password and server ip with ssh in pm for the checks.
Title: Re: CWP update error pkttyagent:
Post by: KurJay on April 29, 2020, 10:24:30 AM
send the root password and server ip with ssh in pm for the checks.

Done
Title: Re: CWP update error pkttyagent:
Post by: KurJay on April 29, 2020, 10:33:22 AM
(https://img.ciberindo.net/uploads/error/202DB-29APR2020.png?_t=1588156224)

The Server act like carzy too

Regards
Title: Re: CWP update error pkttyagent:
Post by: Sandeep on April 29, 2020, 11:59:19 AM
disable hide process security feature
Title: Re: CWP update error pkttyagent:
Post by: KurJay on April 29, 2020, 12:26:02 PM
ok
Title: Re: CWP update error pkttyagent:
Post by: KurJay on April 29, 2020, 12:28:22 PM
disable hide process security feature for the fix.

Thanks man it solve

Code: [Select]
[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 ~]#
Title: Re: CWP update error pkttyagent:
Post by: DNA on April 30, 2020, 04:50:39 PM
disable hide process security feature

Already disabled hide process but getting the below issues

Code: [Select]
# 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)
Title: Re: CWP update error pkttyagent:
Post by: Sandeep on April 30, 2020, 05:40:46 PM
please run the command if you're facing the issue check the previous replies and ensure secure process is deactivated
Title: Re: CWP update error pkttyagent:
Post by: juanyves on April 30, 2020, 10:38:05 PM
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?
Title: Re: CWP update error pkttyagent:
Post by: Rug3r on July 04, 2020, 04:15:40 PM
Same issue on a fresh install today. I have tried everything in this post and still have the issue. It is a KVM.
Title: Re: CWP update error pkttyagent:
Post by: NFT on July 11, 2020, 06:16:05 AM
Code: [Select]
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

 
Quote
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]