Skip to main content

Cluster web interface and API are unavailable

Cluster management is unavailable, but the virtual machines (VMs) keep running. If the node of the management VM — the one where Center runs — failed before this, the web interface becomes available again automatically: the pool fails over in about 1–2 minutes, then the management VM boots. If a Center update is in progress — The web interface does not respond after a Center update.

What you see​

  • The browser does not open the Center web interface or shows error 502, 503 or 504. The API does not respond.

  • The web interface opens, but any action fails with the ZMQ request failed … error or the notification:

    Request timed out (error code: -10500)
  • Actions end immediately with the Server is busy, retry later (error code: -10503) notification: Center received more concurrent requests than it accepts. Repeat the action in a minute; if the notification keeps appearing, follow the steps below.

  • The browser warns that the site certificate has expired.

What to do​

  1. Refresh the page after 5 minutes. If the certificate has expired, contact vStack support to renew it.

  2. Find the node of the management VM. Run this over SSH on any node:

    vstack-cluster status

    Find the zpool_z01 service (the pool of the management VM) and its node. STARTED — go to step 3. STARTING or RECOVERING — the pool is failing over, wait. The pool is not listed under the nodes, or the response is mgmt unreachable or ZMQ socket error — contact support. Details — View the cluster state on a node.

  3. Check that the management VM is running. On the node from step 2:

    vstack-vm vm list

    The management VM is the row with number 0, shown as 000000000 in the output. Started — the VM is running. Offline, no row, or suspended or stopped in POOL_STATE — contact support.

  4. Check the free space on the management VM. Connect over SSH to the web interface address — it is the address of the management VM:

    df -h /

    Avail is less than 2 GB — Center does not accept requests: free up space (step 6). The address does not respond over SSH — contact support.

  5. Check the Center services on the management VM:

    service vstack_center_dispatcher status
    service vstack_center_endpoint status
    service rabbitmq status
    service postgresql status
    service angie status

    Normally, each service responds that it is running. Otherwise, contact support.

  6. Free up space if less than 2 GB is free. See what will be removed from the package cache, then remove it:

    pkg clean -an
    pkg clean -ay

    Delete old log archives in /var/log, for example messages.0.bz2. Center starts accepting requests again automatically, without a restart.

Check the result​

What not to do​

  • Do not reboot nodes to restore access to the web interface: the pools of the node fail over, and its VMs stop.
  • Do not delete other files on the management VM: they hold Center data.

If this did not help​

Write down the time of the failure and what happened before it: a node failure, an update, an action with a pool. Save the command output from steps 2–5. Collect the rest from the list in Collect data for support and contact vStack technical support.