• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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