Technical

Cannot Initiate CMAP Service (all nodes): Restore Corosync Config and Skip Reinstall

Cannot Initiate CMAP Service (all nodes): Restore Corosync Config and Skip Reinstall

Cannot Initiate CMAP Service (all nodes) is corosync refusing to start because its config is broken or missing. The fix is to restore the automatic backup from /var/lib/corosync and restart the cluster stack — no reinstall needed.

Contemporary computer with black screen placed on stand near row of server steel racks in data center

What the error actually means

Corosync reads /etc/corosync/corosync.conf to build the in-memory CMAP database. If that file is corrupt, has invalid syntax, or references a node that doesn’t exist, corosync exits with “Cannot Initiate CMAP Service”. On a Proxmox cluster, all nodes show the error because they all run corosync and the config is synced across them.

Check the log on one node:

journalctl -u corosync -n 50 --no-pager

You’ll see something like parse error in config or ring0 interface not found. That tells you the config is the problem.

High-angle view of a yellow ethernet cable on a bright blue background.

Restore the backup

Corosync keeps a copy of the last known-good config. On Debian-based systems (Proxmox VE), it’s at /var/lib/corosync/corosync.conf.bak. If that’s missing, check /etc/corosync/corosync.conf.example or another node’s /etc/corosync/corosync.conf if they’re still intact.

  1. Stop corosync on all nodes: systemctl stop corosync
  2. Copy the backup over the broken config: cp /var/lib/corosync/corosync.conf.bak /etc/corosync/corosync.conf
  3. Start corosync on one node: systemctl start corosync
  4. If it starts clean, start it on the others.

If the backup is also bad, you’ll need to rebuild the config. The minimal file for a two-node cluster looks like this:

totem {
  version: 2
  secauth: off
  cluster_name: mycluster
  transport: udpu
  interface {
    ringnumber: 0
    bindnetaddr: 192.168.1.0
    mcastport: 5405
  }
}
nodelist {
  node {
    ring0_addr: 192.168.1.10
    name: pve1
    nodeid: 1
  }
  node {
    ring0_addr: 192.168.1.11
    name: pve2
    nodeid: 2
  }
}
quorum {
  provider: corosync_votequorum
  two_node: 1
}

Adjust the IPs and names to match your nodes. Then restart corosync and pve-cluster on each node.

Why this happens

Most often it’s a bad edit to corosync.conf — a typo, wrong IP, or a node removed without updating the nodelist. Sometimes an interrupted update leaves the file half-written. The error on all nodes just means the bad config got synced everywhere.

If you’re doing cluster changes, make a manual backup first: cp /etc/corosync/corosync.conf /etc/corosync/corosync.conf.manual. The automatic backup gets overwritten on every successful start, so it might already contain the bad config.

For removing a node cleanly, see Proxmox Remove Last Node From Cluster: What Actually Works.

Leave a comment

Comments are reviewed before they appear. Your email is never published.