Search Engine: Elastic

Article ID: 133372, created on Nov 5, 2018, last review on Nov 22, 2018

  • Applies to:
  • Operations Automation 7.0
  • Operations Automation 7.4

Symptoms

Provisioning "Panel_6_1" for APS application Cloud Infrastructure task fails with:

APS Application Error: 
500 Internal Server Error
[ApplicationUnknownError] [IM] Exit code != 0.

Body: {
"message": "[IM] Exit code != 0",
"error": "ApplicationUnknownError",
"http_request": "POST /vps/api/panels"
}

The following error could be found in /var/log/pa/vps.log on Instance Manager node :

`2018-11-05 07:52:51,827 () INFO  Vm2VfApiOperationsReactor [ActiveMQ Session Task-8346] - in-bound request XML
<Envelope xmlns=""><correlationId>CALLBACK_0f4a31ce-c682-4f2b-8ddb-286afdcf89d9</correlationId><kind>1204</kind><payload>
// callback exec_cb exec_done
{
  "rc" : 0,
  "node_timestamp" : 3298660092525067826,
  "exec_rc" : 1,
  "stdout_str" : null,
  "stderr_str" : "Job for nginx.service failed because the control process exited with error code. See \"systemctl status nginx.service\" and \"journalctl -xe\" for details.\n"
}</payload></Envelope>`

It is not possible to start nginx service on affected server:

# systemctl status nginx.service
● nginx.service - Startup script for nginx service
   Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2018-11-05 02:28:08 EST; 27s ago
  Process: 7963 ExecStartPre=/usr/bin/test $NGINX_ENABLED = yes (code=exited, status=2)

Cause

Software-related issue on Plesk application side.

Resolution

Contact Plesk support to track the status of the issue.

The following workarounds could be applied to fix the issue:

1) If it is required to fix only one virtual environment:

Connect to the affected virtual server and execute the following command:

# plesk sbin nginxmng --enable

Check if the nginx service started:

# service nginx status
● nginx.service - Startup script for nginx service
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2018-11-05 03:23:41 EST; 4min 36s ago
...

2) The following pre- and post-installation scripts could be added to w/a the issue on platform:

Go to Provider control panel > Services > Cloud Infrastructure > Plesk in VPS, choose affected plesk configuration and add the following scripts:

Pre-installation script:

    /usr/bin/crontab -l | { /bin/cat; /bin/echo "*/10 * * * * /sbin/plesk sbin nginxmng --enable"; } | /usr/bin/crontab --

Post-installation script:

    /usr/bin/crontab -l | /bin/grep -v nginxmng | /usr/bin/crontab -

5356b422f65bdad1c3e9edca5d74a1ae 8fc71f07abe5b233fea1ae0377cd5e3d 55fe109b4b4fe3fbb893f22dbb85a41a 1941880841f714e458ae4dc3d9f3062d 0871c0b47b3b86ae3b1af4c2942cd0ce

Email subscription for changes to this article
Save as PDF