Could you please check both the journal log (sudo journalctl -ef -u snap.maas.supervisor) and supervisord log (/var/snap/maas/current/supervisord/supervisord.log) for errors and paste what you find?
Here is the output from the first (journalctl -ef -u snap.maas.supervisor)
. . .
– Reboot –
Mar 30 14:16:15 maas systemd[1]: Started Service for snap application maas.supervisor.
Mar 30 14:16:15 maas maas.supervisor[3651]: cannot write to fd 11: Operation not permitted
Mar 30 14:16:15 maas systemd[1]: snap.maas.supervisor.service: Main process exited, code=exited, status=1/FAILURE
Mar 30 14:16:15 maas systemd[1]: snap.maas.supervisor.service: Failed with result ‘exit-code’.
Mar 30 14:16:15 maas systemd[1]: snap.maas.supervisor.service: Scheduled restart job, restart counter is at 1.
Mar 30 14:16:15 maas systemd[1]: Stopped Service for snap application maas.supervisor.
Mar 30 14:16:15 maas systemd[1]: Started Service for snap application maas.supervisor.
Mar 30 14:16:15 maas maas.supervisor[3677]: cannot write to fd 11: Operation not permitted
Mar 30 14:16:15 maas systemd[1]: snap.maas.supervisor.service: Main process exited, code=exited, status=1/FAILURE
Mar 30 14:16:15 maas systemd[1]: snap.maas.supervisor.service: Failed with result ‘exit-code’.
Mar 30 14:16:15 maas systemd[1]: snap.maas.supervisor.service: Scheduled restart job, restart counter is at 2.
Mar 30 14:16:15 maas systemd[1]: Stopped Service for snap application maas.supervisor.
Mar 30 14:16:15 maas systemd[1]: Started Service for snap application maas.supervisor.
Mar 30 14:16:15 maas maas.supervisor[3700]: cannot write to fd 11: Operation not permitted
Mar 30 14:16:15 maas systemd[1]: snap.maas.supervisor.service: Main process exited, code=exited, status=1/FAILURE
Mar 30 14:16:15 maas systemd[1]: snap.maas.supervisor.service: Failed with result ‘exit-code’.
Mar 30 14:16:16 maas systemd[1]: snap.maas.supervisor.service: Scheduled restart job, restart counter is at 3.
Mar 30 14:16:16 maas systemd[1]: Stopped Service for snap application maas.supervisor.
Mar 30 14:16:16 maas systemd[1]: Started Service for snap application maas.supervisor.
Mar 30 14:16:16 maas maas.supervisor[3723]: cannot write to fd 11: Operation not permitted
Mar 30 14:16:16 maas systemd[1]: snap.maas.supervisor.service: Main process exited, code=exited, status=1/FAILURE
Mar 30 14:16:16 maas systemd[1]: snap.maas.supervisor.service: Failed with result ‘exit-code’.
Mar 30 14:16:16 maas systemd[1]: snap.maas.supervisor.service: Scheduled restart job, restart counter is at 4.
Mar 30 14:16:16 maas systemd[1]: Stopped Service for snap application maas.supervisor.
Mar 30 14:16:16 maas systemd[1]: Started Service for snap application maas.supervisor.
Mar 30 14:16:16 maas maas.supervisor[3749]: cannot write to fd 11: Operation not permitted
Mar 30 14:16:16 maas systemd[1]: snap.maas.supervisor.service: Main process exited, code=exited, status=1/FAILURE
Mar 30 14:16:16 maas systemd[1]: snap.maas.supervisor.service: Failed with result ‘exit-code’.
Mar 30 14:16:16 maas systemd[1]: snap.maas.supervisor.service: Scheduled restart job, restart counter is at 5.
Mar 30 14:16:16 maas systemd[1]: Stopped Service for snap application maas.supervisor.
Mar 30 14:16:16 maas systemd[1]: snap.maas.supervisor.service: Start request repeated too quickly.
Mar 30 14:16:16 maas systemd[1]: snap.maas.supervisor.service: Failed with result ‘exit-code’.
Mar 30 14:16:16 maas systemd[1]: Failed to start Service for snap application maas.supervisor.
Here is the output from the second (/var/snap/maas/current/supervisord/supervisord.log
< file not present >
First lines of (/var/snap/maas/current/supervisord/supervisord.conf
root@maas:~# cat /var/snap/maas/current/supervisord/supervisord.conf
[unix_http_server]
file=%(ENV_SNAP_DATA)s/supervisord/sock
chown=root
chmod=600
I wonder if this is just a permission error (not sure how that would happen).
Does ownership/mode for the supervisord dir match the following on your install?
$ ls -lad /var/snap/maas/current/supervisord
drwxr-xr-x 1 root root 100 Mar 30 09:55 /var/snap/maas/current/supervisord
What exactly is the 11th file descriptor opened by mass.supervisor? Is this the unix domain socket that cannot be found? unix:///var/snap/maas/11851/supervisord/sock?