Control Web Panel

WebPanel => Updates => Topic started by: gailclark80 on December 29, 2021, 05:45:20 AM

Title: After update today, nginx/1.20.0 error
Post by: gailclark80 on December 29, 2021, 05:45:20 AM
My CWPpro version is: 0.9.8.1109

After the automatic update today, the website cannot be accessed, and my website show "404 Not Found, nginx/1.20.0"

what's the problem?
How to fix it?


I checked the error_log

AH00112: Warning: DocumentRoot [/usr/local/apache/htdocs/suspended-page] does not exist
AH00112: Warning: DocumentRoot [/usr/local/apache/htdocs/suspended-page] does not exist
AH00112: Warning: DocumentRoot [/usr/local/apache/htdocs/suspended-page] does not exist
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using linode.com. Set the 'ServerName' directive globally to suppress this message
Title: Re: After update today, nginx/1.20.0 error
Post by: Leo on December 29, 2021, 05:54:49 AM
Somehow the last update messed up everything. It changed the default package and all domains in my account got suspended. Their vhost file is not reverting back to original so I had to fix it one by one manually. File and folder permissions also got messed up. I am only using the stable version update which is supposed to be 2 weeks tested and all of a sudden an update breaks my entire file system. I think I will stop with auto updates. It's simply an invitation for disaster in a production environment.
Title: Re: After update today, nginx/1.20.0 error
Post by: Masonic on December 29, 2021, 06:12:27 AM
That's interesting. We are getting 404's for all of our sites hosted on centoswebpanel servers but as far as I can see account packages are still the same. Also, we're using apache webserver if that has anything to do with the current disaster.
Title: Re: After update today, nginx/1.20.0 error
Post by: liviudiaconu85 on December 29, 2021, 06:36:35 AM
The same thing happens to me 404 for 4 CWP servers.
Title: Re: After update today, nginx/1.20.0 error
Post by: jijib on December 29, 2021, 06:39:02 AM
Yes, NGINX is giving 404 Not Found error on all servers. This is a big issue.
Title: Re: After update today, nginx/1.20.0 error
Post by: studio4host on December 29, 2021, 06:40:03 AM
try to run cwp update manually, it looks like new automatic suspensions for bandwidth exceeders was not working properly with unlimited accounts.

Code: [Select]
/scripts/update_cwp
Title: Re: After update today, nginx/1.20.0 error
Post by: gailclark80 on December 29, 2021, 06:50:23 AM
I have try /scripts/update_cwp
then restart Apache and Nginx, the website still show "404 Not Found, nginx/1.20.0"
Title: Re: After update today, nginx/1.20.0 error
Post by: jijib on December 29, 2021, 06:51:40 AM
Also the CPanels all give 404 not found
Title: Re: After update today, nginx/1.20.0 error
Post by: BigBang on December 29, 2021, 06:54:25 AM
2 cwp panels - all sites down.
Title: Re: After update today, nginx/1.20.0 error
Post by: studio4host on December 29, 2021, 06:57:10 AM
there is one more way to resolve it
Code: [Select]
rm -f /usr/local/cwp/users/suspended/*.bandwidth
/scripts/cwp_api webservers rebuild_all
Title: Re: After update today, nginx/1.20.0 error
Post by: BigBang on December 29, 2021, 07:02:35 AM
there is one more way to resolve it
Code: [Select]
rm -f /usr/local/cwp/users/suspended/*.bandwidth
/scripts/cwp_api webservers rebuild_all
Thanks! Working.
Title: Re: After update today, nginx/1.20.0 error
Post by: jijib on December 29, 2021, 07:07:15 AM
Working! Thank you!
Title: Re: After update today, nginx/1.20.0 error
Post by: cata77 on December 29, 2021, 08:40:13 AM
there is one more way to resolve it
Code: [Select]
rm -f /usr/local/cwp/users/suspended/*.bandwidth
/scripts/cwp_api webservers rebuild_all

It works also for me. Thanks for the hint
Title: Re: After update today, nginx/1.20.0 error
Post by: artidens on December 29, 2021, 11:59:30 AM
there is one more way to resolve it
Code: [Select]
rm -f /usr/local/cwp/users/suspended/*.bandwidth
/scripts/cwp_api webservers rebuild_all

That worked, thanks.

Is it possible to change the scheduled time for the auto update? Now it is done around 3am and I don't like to wake up in the middle of the night to fix possible errors caused by the update.



Title: Re: After update today, nginx/1.20.0 error
Post by: thundercat on December 29, 2021, 12:51:09 PM
I had the exact same problem.

So I talked with my vps provider, and made a backup restore of my VPS.

Now I get:

Code: [Select]
Warning: mysqli_connect(): (HY000/2002): Connection refused in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0

Warning: mysqli_connect(): (HY000/2002): Connection refused in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0

Warning: mysqli_connect(): (HY000/2002): Connection refused in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Warning: mysqli_connect(): (HY000/2002): Connection refused in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0


Trying to start mysql server, please wait!
Try to restart Control Web Panel with command: sh /scripts/restart_cwpsrv

**Check your MySQL root password in: /usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php and /root/.my.cnf


Warning: mysqli_error() expects exactly 1 parameter, 0 given in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0
Could not connect:

Seems like mariadb service cannot start no matter what I do.

So I bought a one time support with centos support, that has not been replied yet.


I wish I had found this earlier.  >:(
Title: Re: After update today, nginx/1.20.0 error
Post by: ErikNahim on December 29, 2021, 08:33:13 PM
there is one more way to resolve it
Code: [Select]
rm -f /usr/local/cwp/users/suspended/*.bandwidth
/scripts/cwp_api webservers rebuild_all

What is this command for?
I observe that it worked for many but I want to know what its function is please
Title: Re: After update today, nginx/1.20.0 error
Post by: Netino on December 29, 2021, 09:54:48 PM
there is one more way to resolve it
Code: [Select]
rm -f /usr/local/cwp/users/suspended/*.bandwidth
/scripts/cwp_api webservers rebuild_all

What is this command for?
I observe that it worked for many but I want to know what its function is please

The first command remove all bandwidth limits from your sites, and the second rebuil all sites configurations of your webservers.

Regards,
Netino
Title: Re: After update today, nginx/1.20.0 error
Post by: mgworek on December 30, 2021, 01:22:19 PM
For the last 2 nights/mornings I woke up to see all our vhosts overwritten and none of our sites working. On one server, we only have one site on it. I would never think it would have to do with bandwidth issues but should I go ahead and try the fix above and see what happens?

Thanks
Title: Re: After update today, nginx/1.20.0 error
Post by: Netino on December 31, 2021, 03:46:45 AM
For the last 2 nights/mornings I woke up to see all our vhosts overwritten and none of our sites working. On one server, we only have one site on it. I would never think it would have to do with bandwidth issues but should I go ahead and try the fix above and see what happens?

Yes.
This is being reported by CWP team, and the users in this forum, as the solution.
Title: Re: After update today, nginx/1.20.0 error
Post by: agrigio on December 31, 2021, 11:06:02 AM
Again today the accounts are suspended and get nginx 1.21 ERROR
Title: Re: After update today, nginx/1.20.0 error
Post by: thundercat on December 31, 2021, 12:28:57 PM
Hello, I have the same problem but I get this when I try to run the second line of the commands:

Code: [Select]
/scripts/cwp_api webservers rebuild_all
sh: /etc/varnish/default.vcl: No such file or directory
sh: /etc/varnish/default.vcl: No such file or directory
sh: /etc/varnish/default.vcl: No such file or directory
mkdir: cannot create directory '/etc/varnish/conf.d': No such file or directory
sh: /etc/varnish/default.vcl: No such file or directory
sh: /etc/varnish/conf.d/vhosts.conf: No such file or directory
sh: /etc/varnish/conf.d/vhosts.conf: No such file or directory
ls: cannot access /etc/varnish/conf.d/vhosts/*.conf: No such file or directory
rm: cannot remove '/etc/nginx/conf.d/vhosts': Is a directory
You have new mail in /var/spool/mail/root
[root@resonant-power ~]# cd /scripts/cwp_api
-bash: cd: /scripts/cwp_api: Not a directory
[root@resonant-power ~]# cd scripts
-bash: cd: scripts: No such file or directory
[root@resonant-power ~]# cd /local
-bash: cd: /local: No such file or directory
You have new mail in /var/spool/mail/root

Can someone help me with this?
Title: Re: After update today, nginx/1.20.0 error
Post by: mgworek on December 31, 2021, 02:14:54 PM
Yes.
This is being reported by CWP team, and the users in this forum, as the solution.
[/quote]

This fix didn't really help. Like a post above this, it happened again last night/tonight. one of my five servers didn't break this morning. The other four, same problem. Like the other post above, the 2nd command didn't fully run, I got errors as well. After the errors, I copied the good host conf files to the server to get it working.
Title: Re: After update today, nginx/1.20.0 error
Post by: brijeshb on January 06, 2022, 06:41:53 AM
After recent update, all nginx/php-fpm configuration files regenerates everyday since a week now. So I made templates so after everyday regeneration doesn't break websites. But this is big problem. I tried all the commands but still every morning when I check configuration files, they are showing modified.

This needs to be fixed urgently guys.
Title: Re: After update today, nginx/1.20.0 error
Post by: Netino on January 06, 2022, 09:02:22 PM
After recent update, all nginx/php-fpm configuration files regenerates everyday since a week now. So I made templates so after everyday regeneration doesn't break websites. But this is big problem. I tried all the commands but still every morning when I check configuration files, they are showing modified.

This needs to be fixed urgently guys.

Did you change the template files.?
Title: Re: After update today, nginx/1.20.0 error
Post by: Igor S. on January 26, 2022, 10:33:01 AM
Check if your SQL server running and works. If yes check your SQL root password in: /usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php and /root/.my.cnf