Skip to content

MUNGE

First, install the MUNGE packages:

sudo apt install munge libmunge2 libmunge-dev

This should install successfully as long as you're connected to the internet. To test the installation:

munge -n | unmunge | grep STATUS

You should see STATUS: SUCCESS. There should now be a MUNGE key at /etc/munge/munge.key. If you don't see one, create one manually:

sudo /usr/sbin/mungekey

Set the correct permissions:

sudo chown -R munge: /etc/munge/ /var/log/munge/ /var/lib/munge/ /run/munge/
sudo chmod 0700 /etc/munge/ /var/log/munge/ /var/lib/munge/
sudo chmod 0755 /run/munge/
sudo chmod 0700 /etc/munge/munge.key
sudo chown -R munge: /etc/munge/munge.key

Restart the MUNGE service and enable it at startup:

sudo systemctl enable munge
sudo systemctl restart munge

Investigate service errors with:

sudo systemctl status munge

Or:

sudo cat /var/log/munge/munged.log

Info

You'll need to copy this key over to every other node in the cluster — see the MUNGE page on the Login Node and Worker Nodes sections.