Control Web Panel
WebPanel => CentOS-WebPanel GUI => Topic started by: cwp_user2018 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 ?
-
Problem is with SSL certificate. after change hostname cwpsrv dosn't run
-
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
-
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 ?
-
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
# /bin/bash /scripts/restart_cwpsrv
look for error messages. In my case, I had to do:
# journalctl -xe
to find the fault (which was related to a missing ssh public and private key pair).
I hope this helps