Have you also started the munge service?
Make sure to start it as well by using systemctl as follows.
sudo systemctl start munge
sudo systemctl status munge
I recommend you follow this guide I wrote on how to install Slurm in a single node environment for Ubuntu 22.04.
Cheers.