- Forum
- Main Forum
- English Section
- SSL Certificate
- CWP7 Panel Down After Update – 502 Bad Gateway and Missing hostname Certificate
×
RO CSVI is a great tool that is used to update eshops and projects with a lot of data
CWP7 Panel Down After Update – 502 Bad Gateway and Missing hostname Certificate
- infogate
-
Συντάκτης θέματος
- Αποσυνδεμένος
- Administrator
-
- Imagination is the beginning of creation
12 Ώρες 22 Λεπτά πριν #352
από infogate
The best possible way to start your online marketing : fspirits.com/go/leadsleap-home
Create Amazing AI Videos : fspirits.com/go/video-express-ai
Start your affiliate journey here: fspirits.com/go/olsp-academy
Edit And Create Videos: fspirits.com/go/create-studio-pro
Best Solution To Create Graphics: fspirits.com/go/artistly
Smart Chat Automation: fspirits.com/go/chatterpal
Multi-Purpose Video Maker: fspirits.com/go/avatar-builder
Multi-Purpose Video Creator: fspirits.com/go/videocreator
AI Human Spokesperson Videos: fspirits.com/go/humanpal
CWP7 Panel Down After Update – 502 Bad Gateway and Missing hostname Certificate δημιουργήθηκε από infogate
I recently experienced the same problem on several CWP7 servers running AlmaLinux 8 and AlmaLinux 9.The hosted websites continued working normally, but the CWP administrator panel on port 2031 became unavailable:The browser displayed a 502 Bad Gateway error. Initially, it looked like Apache or CWP PHP-FPM was down, but the actual cause was different.SymptomsThe CWP service would not start:It showed:Running the CWP configuration test revealed the real error:Error:The CWP PHP-FPM service was still running, and Apache continued serving all websites. Therefore, this was specifically a cwpsrv certificate problem.What caused the outage?The following files were missing:However, the valid Let’s Encrypt certificate still existed inside the CWP ACME directory:In my case, an automatic overnight update upgraded cwpsrv and restarted the service. The update did not necessarily delete the certificate. The certificate copy may have already been missing, while cwpsrv continued working because the certificate was loaded in memory.When the update restarted cwpsrv, it could no longer load the missing certificate file and refused to start.Important hostname warningDo not automatically trust:On some VPS servers, especially older AlmaLinux 8 installations, this may return the hosting provider’s hostname, for example:The actual CWP hostname may be:You must use the hostname for which the CWP panel certificate was issued.To see the available CWP certificates, run:Safe recovery procedureFirst, stop the continuous cwpsrv restart loop:Set the correct CWP hostname manually:For example:Confirm that the certificate files exist:You should find:Verify the certificate and private key before installing anythingGenerate the certificate public-key hash:Generate the installed private-key hash:The two hashes must be identical.Example:Do not continue if the hashes are different. A mismatched certificate and private key will not work.Restore the missing certificate filesIf the hashes match, run:Then restore the complete certificate chain:Test the CWP configuration:You may still see a warning similar to:This is only a warning. The important result is that the configuration test succeeds.Now restart CWP:Finally, test the panel locally:An HTTP 200, 301 or 302 response normally confirms that the CWP panel is responding again.You should now be able to access:Important safety notes
The valid certificate was still available inside:After verifying that the certificate matched the existing private key, restoringandimmediately brought the CWP panel back online.I hope this guide saves other CWP administrators time—especially if the problem appears suddenly after an automatic overnight cwpsrv update.
[url]https://server-hostname:2031/[/url]systemctl status cwpsrv --no-pager -lExecStartPre=/usr/local/cwpsrv/bin/cwpsrv -t
status=1/FAILURE/usr/local/cwpsrv/bin/cwpsrv -tcannot load certificate "/etc/pki/tls/certs/hostname.crt":
BIO_new_file() failed
No such file or directoryconfiguration file /usr/local/cwpsrv/conf/cwpsrv.conf test failed/etc/pki/tls/certs/hostname.crt
/etc/pki/tls/certs/hostname.bundle/root/.acme.sh/cwp_certs/your-server-hostname/hostname -fvps2578003.fastwebserver.deolympus.freespirits.grls -lah /root/.acme.sh/cwp_certs/systemctl stop cwpsrvCWP_HOST="your-server-hostname.example.com"
ACME_DIR="/root/.acme.sh/cwp_certs/$CWP_HOST"CWP_HOST="olympus.freespirits.gr"
ACME_DIR="/root/.acme.sh/cwp_certs/$CWP_HOST"ls -lah "$ACME_DIR"your-server-hostname.example.com.cer
fullchain.cer
ca.cer
your-server-hostname.example.com.keyopenssl x509 -in "$ACME_DIR/$CWP_HOST.cer"
-pubkey -noout |
openssl pkey -pubin -outform DER |
sha256sumopenssl pkey
-in /etc/pki/tls/private/hostname.key
-pubout -outform DER |
sha256sumd57038207e6788661d6962d896bda76796de9ae74e14d45ad7d0434620d62faf
d57038207e6788661d6962d896bda76796de9ae74e14d45ad7d0434620d62fafinstall -m 644
"$ACME_DIR/$CWP_HOST.cer"
/etc/pki/tls/certs/hostname.crtinstall -m 644
"$ACME_DIR/fullchain.cer"
/etc/pki/tls/certs/hostname.bundle/usr/local/cwpsrv/bin/cwpsrv -tthe "ssl" directive is deprecatedsystemctl restart cwpsrv
systemctl status cwpsrv --no-pager -lcurl -kI --connect-timeout 10 [url]https://127.0.0.1:2031/[/url][url]https://your-server-hostname.example.com:2031/[/url]- Never copy a certificate from another server unless it explicitly covers the destination server’s hostname.
- Always compare the certificate and private-key hashes first.
- Do not replaceunless you are certain it is missing or incorrect.
/etc/pki/tls/private/hostname.key
- This problem is unrelated to Apache when hosted websites continue working.
- A running cwpsrv process can keep working even after its certificate file disappears because the certificate is already loaded in memory. The failure may only become visible after a restart or update.
- Avoid scripts that indiscriminately delete or truncate system logs. They may not delete the certificate directly, but they can destroy the evidence needed to identify what happened.
/etc/pki/tls/certs/hostname.crt/root/.acme.sh/cwp_certs/CWP-HOSTNAME/hostname.crthostname.bundleThe best possible way to start your online marketing : fspirits.com/go/leadsleap-home
Create Amazing AI Videos : fspirits.com/go/video-express-ai
Start your affiliate journey here: fspirits.com/go/olsp-academy
Edit And Create Videos: fspirits.com/go/create-studio-pro
Best Solution To Create Graphics: fspirits.com/go/artistly
Smart Chat Automation: fspirits.com/go/chatterpal
Multi-Purpose Video Maker: fspirits.com/go/avatar-builder
Multi-Purpose Video Creator: fspirits.com/go/videocreator
AI Human Spokesperson Videos: fspirits.com/go/humanpal
Παρακαλούμε Σύνδεση ή Δημιουργία λογαριασμού για να συμμετάσχετε στη συζήτηση.
- Forum
- Main Forum
- English Section
- SSL Certificate
- CWP7 Panel Down After Update – 502 Bad Gateway and Missing hostname Certificate
Χρόνος δημιουργίας σελίδας: 0.064 δευτερόλεπτα