Control Web Panel

WebPanel => Updates => Topic started by: kadybee on July 28, 2026, 02:16:55 AM

Title: cwp service failed
Post by: kadybee on July 28, 2026, 02:16:55 AM
Don't know if it's a common thing but on all of my servers, after the update script ran overnight, the cwpsrv.service failed citing an SSL issue. 

Couldn't get into the Web Panel obviously.
I did resolve it and don't know if there is a better way, but if it helps anyone:

I SSH'd into server, ran the command:  /scripts/generate_hostname_ssl
That got the cwpsrv.service started allowing access to the Web Panel but with a bad SSL Cert - use a browser without strict TLS and bypass the warnings.

Then navigate to Server Settings / Change Hostname and select Change Hostname on that page.

Hope that helps anyone with the same issue.
Title: Re: cwp service failed
Post by: Netino on July 28, 2026, 04:47:49 AM
This is a bug from the CWP newer version.
Try to do this, I think is more simple:
Code: [Select]
# [[ -e "/etc/pki/tls/certs/hostname.crt" ]] || ln -s /etc/pki/tls/certs/hostname.{cert,crt}

Regards,
Netino
Title: Re: cwp service failed
Post by: 6Sense on July 28, 2026, 05:37:47 AM
Thanks @Netino got a shock this morning too
Title: Re: cwp service failed
Post by: Jamshed Datori on July 28, 2026, 07:08:35 AM
I clicked on "Change Hostname" that generated a new hostname SSL which resolved this issue.
Title: Re: cwp service failed
Post by: Reikor on July 28, 2026, 07:23:13 AM
OMG CWpro did it again.

They dropped an update and fuck ut all cwpro in the world.

i have 34 cwpro instances down just because the update fucket up the hostname.crt to hostname.cert

Now i have to get into each server just to create a symlink.

Thanks.  >:(
Title: Re: cwp service failed
Post by: unlim on July 28, 2026, 09:25:12 AM
This is a bug from the CWP newer version.
Try to do this, I think is more simple:
Code: [Select]
# [[ -e "/etc/pki/tls/certs/hostname.crt" ]] || ln -s /etc/pki/tls/certs/hostname.{cert,crt}

Regards,
Netino

It works.
Thank you!
Title: Re: cwp service failed
Post by: setecabanas on July 28, 2026, 09:28:39 AM
I run this and solved too

Code: [Select]
/usr/local/cwpsrv/htdocs/resources/scripts/generate_hostname_ssl
Title: Re: cwp service failed
Post by: Reikor on July 28, 2026, 10:24:51 AM
The real solution is

ln -s /etc/pki/tls/certs/hostname.{cert,crt}

Link it. Just in case.
Title: Re: cwp service failed
Post by: djprmf on July 28, 2026, 10:33:05 AM
How to fix it

Enter by SSH and run:
/usr/local/cwpsrv/htdocs/resources/scripts/generate_hostname_ssl

This could allow to enter the panel - with a SSL error.
After the login, go to "Server Settings" > "Change Hostname", and just click the button "Change Hostname".
This will recreate the SSL and allow to enter.

If the domain of the server have HSTS, enter in the panel by the IP of the server:
https://SERVERIP:2031/
Ignore the SSL error and continue with the same steps as before.

Also, after everything goes back to normal, run the CWP updated by SSH.
sh /scripts/update_cwp

Appears that there is a "1.3" new version that seems to be somehow big.
Title: Re: cwp service failed
Post by: cgauthey on July 28, 2026, 11:14:35 AM

I'm getting the error: "The module firewallv2 does not exist."

How do I reactivate it? Do I need to restart the server?
Title: Re: cwp service failed
Post by: ghoste on July 28, 2026, 11:17:59 AM
https://forum.centos-webpanel.com/updates/alma-9-1-3-update/msg53773/?topicseen#msg53773

Let's discuss the issues in a single post; otherwise, a bunch of topics will get opened, and it will just create chaos again.
Title: Re: cwp service failed
Post by: djprmf on July 28, 2026, 11:19:43 AM
https://forum.centos-webpanel.com/updates/alma-9-1-3-update/msg53773/?topicseen#msg53773

Let's discuss the issues in a single post; otherwise, a bunch of topics will get opened, and it will just create chaos again.

This appears to be the main topic, and was first, so makes sense consider it the "main" topic about the issue.
The one stated is related, but have other issues. ;)
Title: Re: cwp service failed
Post by: kadybee on July 28, 2026, 01:07:06 PM
Try to do this, I think is more simple:

Thanks @Netino, much neater solution, I couldn't see that it was just a naming error.