Author Topic: CWP doesn't start after AutoSSL  (Read 1315 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
CWP doesn't start after AutoSSL
« on: December 30, 2023, 04:17:02 PM »
I installed CWP on my server without any issues. I was able to access it, adjusted the security settings, and when I applied AutoSSL to my domains and restarted the server, the CWP service no longer starts. Here are the error messages:

Code: [Select]
[root@server ~]# systemctl restart cwpsrv.service
Job for cwpsrv.service failed because the control process exited with error code.
See "systemctl status cwpsrv.service" and "journalctl -xe" for details.

Code: [Select]
[root@server ~]# systemctl status cwpsrv.service
● cwpsrv.service - CentOS Web Panel service (daemon)
   Loaded: loaded (/usr/lib/systemd/system/cwpsrv.service; enabled; vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Sat 2023-12-30 13:12:46 -03; 3s ago
  Process: 90930 ExecStartPre=/usr/local/cwpsrv/bin/cwpsrv -t (code=exited, status=1/FAILURE)

Code: [Select]
[root@server ~]# journalctl -xe
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- A unidade cwpsrv.service está sendo iniciada.
dez 30 13:15:29 server.phinfo.com.br cwpsrv[91184]: cwpsrv: [warn] he "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /usr/local/cwpsrv/conf.d/api.conf:8
dez 30 13:15:29 server.phinfo.com.br cwpsrv[91184]: cwpsrv: [emerg] annot load certificate "/etc/pki/tls/certs/hostname.bundle": PEM_read_bio_X509_AUX() failed (SSL: error:0906D06C:PEM routines:PEM_read_bio:no>
dez 30 13:15:29 server.phinfo.com.br cwpsrv[91184]: cwpsrv:configuration file /usr/local/cwpsrv/conf/cwpsrv.conf test failed
dez 30 13:15:29 server.phinfo.com.br systemd[1]: cwpsrv.service: Control process exited, code=exited status=1
dez 30 13:15:29 server.phinfo.com.br systemd[1]: cwpsrv.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- The unit cwpsrv.service has entered the 'failed' state with result 'exit-code'.
dez 30 13:15:29 server.phinfo.com.br systemd[1]: Failed to start CentOS Web Panel service (daemon).
-- Subject: A unidade cwpsrv.service falhou
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- A unidade cwpsrv.service falhou.
--
-- O resultado é failed.
dez 30 13:15:29 server.phinfo.com.br kernel: Firewall: *TCP_IN Blocked* IN=eno1 OUT= MAC=08:94:ef:4f:8d:7c:b4:8a:5f:50:68:50:08:00 SRC=80.82.70.133 DST=177.234.149.165 LEN=40 TOS=0x00 PREC=0x00 TTL=245 ID=6970>

Offline
****
Re: CWP doesn't start after AutoSSL
« Reply #1 on: December 30, 2023, 08:18:04 PM »
Post the response from

ls -a /etc/pki/tls/certs/hostname.*
Google Hangouts:  rcschaff82@gmail.com

Offline
*****
Re: CWP doesn't start after AutoSSL
« Reply #2 on: January 01, 2024, 10:04:45 PM »
What distro & version do you have CWP install on?

Offline
*
Re: CWP doesn't start after AutoSSL
« Reply #3 on: January 02, 2024, 08:38:16 PM »
/etc/pki/tls/certs/hostname.bundle  /etc/pki/tls/certs/hostname.csr
File hostname.bundle is empty


Almalinux 8.9 / CWP8

Offline
****
Re: CWP doesn't start after AutoSSL
« Reply #4 on: January 02, 2024, 09:17:48 PM »
Please run

/scripts/generate_hostname_ssl
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: CWP doesn't start after AutoSSL
« Reply #5 on: January 03, 2024, 02:27:15 PM »
Thank you very much. I reinstalled the server due to other errors that were occurring, and now everything is working correctly.