Author Topic: Can't access CWP Admin panel  (Read 14184 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Can't access CWP Admin panel
« on: May 09, 2018, 03:38:34 PM »
https://XXXXXX:2031/

Give me Unable to connect message.
Server  and sites loading fine.

service cwpsrv restart give me error:
 srv2 systemd[1]: Failed to start CentOS Web Panel service (...).
May 09 17:25:17 srv2 systemd[1]: Unit cwpsrv.service entered failed state.
May 09 17:25:17 srv2 systemd[1]: cwpsrv.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

What to do ?

Offline
*
Re: Can't access CWP Admin panel
« Reply #1 on: May 09, 2018, 03:48:28 PM »
Problem is with SSL certificate. after change hostname cwpsrv dosn't run

Offline
*
Re: Can't access CWP Admin panel
« Reply #2 on: May 09, 2018, 03:55:50 PM »
After I run /scripts/generate_hostname_ssl
I can connect via https connection but browser worn me about self signed cert

Then I update hostname via CWP Admin panel and try to restart cwpsrv.
It dosn't work.
I get error:
May 09 17:52:31 cwpsrv[19029]: cwpsrv: [emerg] SL_CTX_use_PrivateKey_file("/etc/pki/tls/private/hostname
May 09 17:52:31 cwpsrv[19029]: cwpsrv:configuration file /usr/local/cwpsrv/conf/cwpsrv.conf test failed
 
« Last Edit: May 09, 2018, 04:00:47 PM by cwp »

Offline
*
Re: Can't access CWP Admin panel
« Reply #3 on: May 10, 2018, 05:21:05 PM »
There is something wrong with it. I think some of last CWP update break it.

I have 3 CWP servers.

On one I didn't change hostname for a long time and there is everything ok.
I checked files and see that:
/etc/pki/tls/certs/hostname.crt is linked to srv1.server.com.cert file

On my two another servers where I can't restart CWP after hostname change I see that:
/etc/pki/tls/certs/hostname.crt is linked to srv2.server.com.crt file
and this
/etc/pki/tls/certs/srv2.server.com.crt is linked to srv2.server.com.cert file

Did You change last time something with hostname change script ?

« Last Edit: May 10, 2018, 05:31:42 PM by cwp »

Offline
*
Re: Can't access CWP Admin panel
« Reply #4 on: May 14, 2018, 05:27:54 PM »
I had this problem recently too.

Try connecting to your server with ssh. You need to be logged in as root, so use su or sudo

Code: [Select]
# /bin/bash /scripts/restart_cwpsrv
look for error messages. In my case, I had to do:

Code: [Select]
# journalctl -xe
to find the fault (which was related to a missing ssh public and private key pair).

I hope this helps