Author Topic: cwp service failed  (Read 362 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
cwp service failed
« on: Today at 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.

Offline
***
Re: cwp service failed
« Reply #1 on: Today at 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

Offline
**
Re: cwp service failed
« Reply #2 on: Today at 05:37:47 AM »
Thanks @Netino got a shock this morning too
Web Design, Development & Web Hosting
https://6sense.com.au

Offline
***
Re: cwp service failed
« Reply #3 on: Today at 07:08:35 AM »
I clicked on "Change Hostname" that generated a new hostname SSL which resolved this issue.

Offline
*
Re: cwp service failed
« Reply #4 on: Today at 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.  >:(

Offline
*
Re: cwp service failed
« Reply #5 on: Today at 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!

Offline
*
Re: cwp service failed
« Reply #6 on: Today at 09:28:39 AM »
I run this and solved too

Code: [Select]
/usr/local/cwpsrv/htdocs/resources/scripts/generate_hostname_ssl

Offline
*
Re: cwp service failed
« Reply #7 on: Today at 10:24:51 AM »
The real solution is

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

Link it. Just in case.

Offline
*
Re: cwp service failed
« Reply #8 on: Today at 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.
« Last Edit: Today at 11:18:07 AM by djprmf »

Offline
*
Re: cwp service failed
« Reply #9 on: Today at 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?

Online
*
Re: cwp service failed
« Reply #10 on: Today at 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.

Offline
*
Re: cwp service failed
« Reply #11 on: Today at 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. ;)

Offline
*
Re: cwp service failed
« Reply #12 on: Today at 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.