A strange problem with the CentOS Web panel was caused by 100% disk usage. The user gets redirected to the login page despite the fact that the login was successful.
![CWP Successful login keeps redirecting back to the login page image 69 - CWP Successful login keeps redirecting back to the login page](https://i0.wp.com/pcx3.com/wp-content/uploads/2022/04/image-69.png?resize=736%2C131&ssl=1)
According to cwpsrv status the error is: Failed to parse PID from file /usr/local/cwpsrv/var/run/nginx.pid: Invalid argument
![CWP Successful login keeps redirecting back to the login page image 70 - CWP Successful login keeps redirecting back to the login page](https://i0.wp.com/pcx3.com/wp-content/uploads/2022/04/image-70.png?resize=736%2C235&ssl=1)
Again, this is odd because just Apache is installed… However, I googled the error and found that it is a known issue with nginx on Ubuntu: https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1581864
But, in my case the disk usage was full since the user had enabled local backups:
![CWP Successful login keeps redirecting back to the login page image 71 - CWP Successful login keeps redirecting back to the login page](https://i0.wp.com/pcx3.com/wp-content/uploads/2022/04/image-71.png?resize=423%2C111&ssl=1)
So, I first removed all files in the /backups directory and restarted cwpsrv.
rm -rf /bvackup/* && sh /scripts/restart_cwpsrv
Since this still gave the same error: Failed to parse PID from file /usr/local/cwpsrv/var/run/nginx.pid: Invalid argument I followed this workaround for above mentioned bug on nginx:
mkdir /etc/systemd/system/nginx.service.d
printf "[Service]\nExecStartPost=/bin/sleep 0.1\n" > /etc/systemd/system/nginx.service.d/override.conf
systemctl daemon-reload
systemctl restart cwpsrv
After which I was able to log into the CWP admin account and disable backups.
![CWP Successful login keeps redirecting back to the login page image 72 - CWP Successful login keeps redirecting back to the login page](https://i0.wp.com/pcx3.com/wp-content/uploads/2022/04/image-72.png?resize=736%2C778&ssl=1)