Author Topic: New update broke http conf files and php fpm  (Read 6678 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
New update broke http conf files and php fpm
« on: December 30, 2021, 01:29:08 PM »
CWP folks,

The latest update that happened overnight completely hosed my system. It appears that the following was changed:

ALL php-fpm user files have characters in them like:  [꣫end%] instead of [username] it looks like the template files have errors in them which caused the change.

All my webserver configurations were rebuilt including ones that were customized.

Folks, we cannot willy nilly change out configuration files. This is still causing me hours of downtime and rebuilding from scratch. There is no good reason to do this without proper warning and testing

Offline
*
Re: New update broke http conf files and php fpm
« Reply #1 on: December 30, 2021, 01:46:56 PM »
Having massive issues here too. Did something with the SSL and I can't find the issue.
Anyone else seeing this?

Offline
*
Re: New update broke http conf files and php fpm
« Reply #2 on: December 30, 2021, 02:03:11 PM »
Having massive issues here too. Did something with the SSL and I can't find the issue.
Anyone else seeing this?

Check your host files and see the 2 topics below. My vhosts are being over written every night for the past 2 nights. could be bandwidth bug or whatever is described.

Offline
*
Re: New update broke http conf files and php fpm
« Reply #3 on: December 30, 2021, 03:57:48 PM »
With the recent nightly automatic update, it seems like the CWP web service has bound to port 443 instead of its custom SSL port, which is causing the normal Apache web service to fail when it attempts to bind to it as well?

[~]$ netstat -tulpn | grep :443
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      4657/cwpsrv: master

● httpd.service - Web server Apache
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2021-12-30 07:51:27 PST; 2s ago
  Process: 32736 ExecStart=/usr/local/apache/bin/apachectl start (code=exited, status=1/FAILURE)

Dec 30 07:51:27 systemd[1]: Starting Web server Apache...
Dec 30 07:51:27 apachectl[32736]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:443
Dec 30 07:51:27 apachectl[32736]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:443
Dec 30 07:51:27 apachectl[32736]: no listening sockets available, shutting down
Dec 30 07:51:27 apachectl[32736]: AH00015: Unable to open logs
Dec 30 07:51:27 systemd[1]: httpd.service: control process exited, code=exited status=1
Dec 30 07:51:27 systemd[1]: Failed to start Web server Apache.
Dec 30 07:51:27 systemd[1]: Unit httpd.service entered failed state.
Dec 30 07:51:27 systemd[1]: httpd.service failed.

Offline
*
Re: New update broke http conf files and php fpm
« Reply #4 on: December 30, 2021, 07:39:50 PM »
To get my sites back up and running I had to comment out all of the lines in /usr/local/apache/conf.d/ssl.conf

Definitely not a long term solution for people who need SSL from Apache.

Hopefully the CWP folks can figure out a permanent fix!

Offline
*
Re: New update broke http conf files and php fpm
« Reply #5 on: December 30, 2021, 07:56:35 PM »
cwp they just messed with new update,  i can't even update my cwp pro. anyone can help me  :-\

iam getting this
i can't update cwp pro due to problem.
[root@******~]# /scripts/update_cwp
Could not open input file: /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php

not working.

Offline
***
Re: New update broke http conf files and php fpm
« Reply #6 on: December 31, 2021, 03:52:29 AM »
As reported by CWP team, the solutions is just:
Code: [Select]
rm -f /usr/local/cwp/users/suspended/*.bandwidth
/scripts/cwp_api webservers rebuild_all

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

Regards,
Netino

Offline
***
Re: New update broke http conf files and php fpm
« Reply #7 on: December 31, 2021, 03:55:11 AM »
(...)
i can't update cwp pro due to problem.
[root@******~]# /scripts/update_cwp
Could not open input file: /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php

not working.

Try first the following command, to update Ioncube loader:
Code: [Select]
# /scripts/update_ioncube

After that, try the command:
Code: [Select]
/scripts/update_cwp

Offline
*
Re: New update broke http conf files and php fpm
« Reply #8 on: December 31, 2021, 09:30:36 AM »
Hi,

we have the same issue here, every conf file were built again overwritting the ones that we had changed, this cause downtime in our servers, and we need to act every day. The problem is that this issue is happening every night at 3 AM.

Every time this process change domain .conf files and templates files, changing

Our config
<VirtualHost *:80>

To
<VirtualHost IP:80>

Thanks

Offline
*
Re: New update broke http conf files and php fpm
« Reply #9 on: December 31, 2021, 10:44:14 AM »
(...)
i can't update cwp pro due to problem.
[root@******~]# /scripts/update_cwp
Could not open input file: /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php

not working.

Try first the following command, to update Ioncube loader:
Code: [Select]
# /scripts/update_ioncube

After that, try the command:
Code: [Select]
/scripts/update_cwp


stil same problem. not working :(

Offline
***
Re: New update broke http conf files and php fpm
« Reply #10 on: January 01, 2022, 01:45:00 AM »
stil same problem. not working :(

No error messages?
I can't guess what happen in your server without error messages.

Any error log messages?

After /scripts/update_cwp' command, you *must* to run:
Code: [Select]
rm -f /usr/local/cwp/users/suspended/*.bandwidth
/scripts/cwp_api webservers rebuild_all
« Last Edit: January 01, 2022, 01:46:53 AM by Netino »

Offline
*
Re: New update broke http conf files and php fpm
« Reply #11 on: January 01, 2022, 04:00:45 AM »
Day 3 of this happening.

The script command isn't working.

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

** (pkttyagent:23902): WARNING **: 04:00:00.159: 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)

Offline
*
Re: New update broke http conf files and php fpm
« Reply #12 on: January 01, 2022, 04:09:04 AM »
ok, i disabled Hide all processes and now i get this with the script so not sure if it worked or not

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

Offline
***
Re: New update broke http conf files and php fpm
« Reply #13 on: January 01, 2022, 10:09:55 PM »
ok, i disabled Hide all processes and now i get this with the script so not sure if it worked or not

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

You have enabled and installed Varnish Server in CWP panel?