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
-
Refresh the page after 5 minutes. If the certificate has expired, contact vStack support to renew it.
-
Find the node of the management VM. Run this over SSH on any node:
vstack-cluster statusFind the
zpool_z01service (the pool of the management VM) and its node.STARTED— go to step 3.STARTINGorRECOVERING— the pool is failing over, wait. The pool is not listed under the nodes, or the response ismgmt unreachableorZMQ socket error— contact support. Details — View the cluster state on a node. -
Check that the management VM is running. On the node from step 2:
vstack-vm vm listThe management VM is the row with number 0, shown as
000000000in the output.Started— the VM is running.Offline, no row, orsuspendedorstoppedinPOOL_STATE— contact support. -
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 /Availis less than 2 GB — Center does not accept requests: free up space (step 6). The address does not respond over SSH — contact support. -
Check the Center services on the management VM:
service vstack_center_dispatcher statusservice vstack_center_endpoint statusservice rabbitmq statusservice postgresql statusservice angie statusNormally, each service responds that it is running. Otherwise, contact support.
-
Free up space if less than 2 GB is free. See what will be removed from the package cache, then remove it:
pkg clean -anpkg clean -ayDelete old log archives in
/var/log, for examplemessages.0.bz2. Center starts accepting requests again automatically, without a restart.
Check the result
- The web interface opens, and sign-in works. If sign-in fails — Cannot sign in to the web interface.
- Some VMs did not start — VMs did not start after a node failure.
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.