I am getting
An unforeseen error occurredmessage when trying to access any tab from Plesk Automation Control Panel.
The following errors appear in
Connection problem: The requested URL returned error: 502
/usr/local/psa/admin/logs/panel.log(on PA Management node) with DEBUG enabled:
ERR (3) [panel]: The unexpected HTTP code '502' was received on the HTTP request to the agent at 'https://192.0.2.2:8443/agent.cgi'.
502 Bad Gateway error indicates that the issue is caused by a connectivity issue between Management Node and the Service Node with IP 192.0.2.2
pem service on the Service Node (192.0.2.2):
# service pem restart