• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Trial license 502 Bad Gateway error

ZbyszekL

Basic Pleskian
Hi,

I did a fresh install of PLESK 12.5.30 on Debian 8.

I tried to put a trial license key i license manager but every time I got 502 Bad Gateway NGINX error.

So far I tried solutions:
http://kb.odin.com/en/118757 - not working
http://kb.odin.com/en/126289 - not working
http://kb.odin.com/en/124975 - not working

Logs:
/var/log/sw-cp-server/error_log
referrer: "https://**.***.**.51:8443/plesk/license/"
2016/01/31 09:19:19 [error] 889#0: *3 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 217.99.254.41, server: , request: "GET /server/key_update.php?key_type=plesk HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "**.***.**.51:8443", referrer: "https://4**.***.**.51:8443/plesk/license/"

grep buffer /etc/sw-cp-server/config
fastcgi_buffers 128 128k;
fastcgi_buffer_size 256k;

ls -lta /etc/sw/keys/registry.xml
-rw-rw---- 1 psaadm swkey-data 923 sty 31 09:32 /etc/sw/keys/registry.xml
 
ls -lta /etc/sw/keys/registry.xml
-rw-rw---- 1 psaadm swkey-data 923 sty 31 09:32 /etc/sw/keys/registry.xml
On my test server I see:

[root@ppu12-5 ~]# ls -lta /etc/sw/keys/registry.xml
-rw-rw---- 1 root swkey-data 1596 Feb 1 05:28 /etc/sw/keys/registry.xml

In this article https://kb.odin.com/en/126289 point 2:

Make sure the file '/etc/sw/keys/registry.xml' exists and and has correct permissions:

# ll -lta /etc/sw/keys/registry.xml
-rw-rw---- 1 root swkey-data 9908 Aug 22 10:54 /etc/sw/keys/registry.xml
 
Back
Top