• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Internal error ;-P - 502 Bad Gateway - nginx | when adding new Domain or renew Let's Encrypt

Martin_Berlin

New Pleskian
Product: Plesk Onyx 17.5.3 Update #22 Linux

I get these errors (see below) when I add a new Domain or when I renew Let's Encrypt Certificate

I did this but it didn't help:
plesk installer --select-release-current --reinstall-patch --upgrade-installed-components

Please help!
Thanks

Code:
Adding New Domain Name
Internal error ;-P
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->

Code:
Let's Encrypt SSL/TLS Certificate for ...
Internal error ;-P
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
 
Same error when I change Web Hosting Access:

Code:
Web Hosting Access for ... ···
Internal error ;-P
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
 
Hi Martin_Berlin,

pls. consider to add corresponding log - entries from your "panel.log", as the Plesk Let's Encrypt Extension and Plesk log their actions there.
In addition, pls. consider to add as well your current used operating system. :)


Additional informations:


Sometimes, it is as well a good idea to change the log - level ( TEMPORARILY! ), to get more informations in Plesk - log - files:

 
Hi UFHH01,

Thank you for helping.

My operation system is Ubuntu 16.04.3 LTS‬.

I followed your advise and enabled:
; Enable logging of SQL queries
show.sql_query = on

I reproduced the error by renewing a Let's encrypt Certificate and got again this error displayed in the panel:
Code:
Internal error ;-P
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->

But there where no entries in
/usr/local/psa/admin/logs/panel.log

I think the renew of the Certificate works as it's displaying
"Information: Let's Encrypt SSL/TLS certificate has been installed on..."
When I go to the startpage again.

The error says something about nginx - but the
/var/log/nginx/error.log doesn't show anything.

Do you've got any other idea?

Thanky you!
 
Hi Martin_Berlin,

actually, the statement:
But there where no entries in
/usr/local/psa/admin/logs/panel.log
... is actually not very clear here. Do you mean, that Plesk didn't log the Let's Encrypt actions?

In addition, pls. note, that the DEBUG - LEVEL - mode for the Plesk Control Panel has to be set with:
Code:
[debug]
; Enable debug mode (do not use in production environment)
enabled = on
... inside the file "/usr/local/psa/admin/conf/panel.ini" Pls. consider to read again: => How to enable/disable debug logging in Plesk Onyx and earlier versions for Linux? for further informations.

I think the renew of the Certificate works as it's displaying
"Information: Let's Encrypt SSL/TLS certificate has been installed on..."
When I go to the startpage again.
and
The error says something about nginx - but the
/var/log/nginx/error.log doesn't show anything.
Would you mind to post the exact error message, as "The error says something about nginx" is unfortunately not very precise. :-(


Did you as well CHECK, if the new certificate has been installed for your (sub)domain? And if you checked it, could you tell us HOW your steps were to check it?
 
Back
Top