Applicable to:
- Plesk for Linux
Symptoms
- When trying to install a Let's Encrypt or Digicert certificate in Plesk, the following error appears:
click here to see the error message
PLESK_ERROR: Internal error ;-P
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>502 Bad Gateway</title>
<link rel="stylesheet" href="/error_docs/styles.css">
</head>
<body>
<div class="page">
<div class="main">
<div class="error-description">
<h1>Server Error</h1>
<div class="error-code">502</div>
<h2>Bad Gateway</h2>
<p class="lead">Web server received an invalid response while acting as a gateway or proxy server.</p>
<hr/>
<p>If you think this is an error, please <a href=" https://www.plesk.com/bug-report/ " target="_blank">let us know</a> so we can fix it!</p>
<p>That's what you can do</p>
<div class="help-actions">
<a href="javascript:location.reload();">Reload Page</a>
<a href="javascript:history.back();">Back to Previous Page</a>
<a href="/">Home Page</a>
</div>
</div>
<div class="help-links">
<a href=" https://www.plesk.com/bug-report/ " class="help-link" title="Report a problem" target="_blank">
<div class="icon report"><svg><use xlink:href="/error_docs/symbols.svg#report"></use></svg></div>
</a>
<a href=" https://docs.plesk.com/ " class="help-link" title="Documentation" target="_blank">
<div class="icon documentation"><svg><use xlink:href="/error_docs/symbols.svg#documentation"></use></svg></div>
</a>
<a href=" https://kb.plesk.com/ " class="help-link" title="Knowledge base" target="_blank">
<div class="icon knowledge-base"><svg><use xlink:href="/error_docs/symbols.svg#knowledge-base"></use></svg></div>
</a>
<a href=" https://talk.plesk.com/ " class="help-link" title="Forum" target="_blank">
<div class="icon forum"><svg><use xlink:href="/error_docs/symbols.svg#forum"></use></svg></div>
</a>
<a href=" https://www.youtube.com/channel/UCeU-_6YHGQFcVSHLbEXLNlA " class="help-link" title="YouTube" target="_blank">
<div class="icon youtube"><svg><use xlink:href="/error_docs/symbols.svg#youtube"></use></svg></div>
</a>
<a href=" https://www.facebook.com/Plesk " class="help-link" title="Facebook" target="_blank">
<div class="icon facebook"><svg><use xlink:href="/error_docs/symbols.svg#facebook"></use></svg></div>
</a>
</div>
</div>
</div>
<script defer src="/error_docs/svgxuse.min.js"></script>
</body>
</html> - Error in
/var/log/plesk/sw-cp-server/error_log
:CONFIG_TEXT: [error] 4788#0: *4076 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 203.0.113.1, server: , request: "POST /modules/letsencrypt/index.php/index/install/return/domain?dom_id=14&site_id=1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "203.0.113.2:8443", referrer: "https://203.0.113.2:8443/modules/letsencrypt/index.php/index/install/return/domain?dom_id=14&site_id=1"
- Domain name where the certificate is installed to, resolves into Plesk server address:
# dig +short example.com @8.8.8.8
203.0.113.2 - For Debian/Uubntu only, system packages are updated:
# apt update
# apt upgrade
Cause
Malfunction of sw-cp-server
and/or sw-engine
service.
Resolution
Note: if you don't have root access to Plesk server via SSH, contact your hosting provider regarding the issue
-
Connect to the server via SSH
-
Restart both services:
# service sw-cp-server restart
# service sw-engine restart
Comments
0 comments
Please sign in to leave a comment.