Author Topic: Update CWP getting errors.. Ajax Error / grep: write error  (Read 1112 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Update CWP getting errors.. Ajax Error / grep: write error
« on: January 11, 2023, 09:56:59 AM »
Hi,

I'm trying to run the update command sh /scripts/update_cwp

First I used the CWP Pro Terminal and got this message:

[root@svr1 /]# sh /scripts/update_cwp


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


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


######################
Update Server Packages
######################
grep: write error
Redirecting to /bin/systemctl reload cwpsrv.service
Redirecting to /bin/systemctl reload cwp-phpfpm.service
Redirecting to /bin/systemctl restart cwpsrv.service
[root@svr1 admin]# [root@svr1 admin]# [root@svr1 admin]# ^C
[root@svr1 admin]#


I then ran the same command in the Simple terminal

user@svr1.site.com ~$ sh /scripts/update_cwp
[ERROR] AJAX: error


Any advice appreciated.

Thanks

Offline
*
Re: Update CWP getting errors.. Ajax Error / grep: write error
« Reply #1 on: February 01, 2023, 05:06:18 AM »
I fixed some other errors and everything works again.

If you get these two errors when running CWP update command: sh /scripts/update_cwp

Code: [Select]
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)

Solution: https://forum.centos-webpanel.com/index.php?topic=9168.0