NextCloud does not start after a reboot

The Ubuntu 22.04.5 LTS system.
The NextCloud is installed on snap. Ver 31.0.6.2 ???

during boot, it returns the error:
system_key.go:147: cannot determine nfs usage in generateSystemKey: cannot parse /etc/fstab: expected at least 3 fields, found 2

Everything used to work. NextCloud does not start after a reboot. The web interface is unavailable.

ivansh@nextcloud:~$ sudo snap start nextcloud
Started.
ivansh@nextcloud:~$ service snap.nextcloud.apache status
â—Ź snap.nextcloud.apache.service - Service for snap application nextcloud.apache
     Loaded: loaded (/etc/systemd/system/snap.nextcloud.apache.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2025-08-04 13:40:40 UTC; 11s ago
   Main PID: 13535 (snap)
      Tasks: 5 (limit: 9389)
     Memory: 7.8M
        CPU: 50ms
     CGroup: /system.slice/snap.nextcloud.apache.service
             └─13535 /usr/bin/snap run nextcloud.apache

Aug 04 13:40:40 nextcloud systemd[1]: Started Service for snap application nextcloud.apache.
Aug 04 13:40:40 nextcloud nextcloud.apache[13535]: system_key.go:147: cannot determine nfs usage in generateSystemKey: cannot parse /etc/fstab: expec>

[2]+  Stopped                 service snap.nextcloud.apache status

fstab:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/ubuntu-vg/ubuntu-lv during curtin installation
/dev/disk/by-id/dm-uuid-LVM-kBFkBzaNAeTscBlZFZeAaE3EYvIzsrW3BCqIQDwVeiPmBT7BdYzH9hLg03HoDzVW / ext4 defaults 0 1
# /boot was on /dev/sda2 during curtin installation
/dev/disk/by-uuid/57e7736a-639f-4928-a47e-81ad4f7761f4 /boot ext4 defaults 0 1
/swap.img       none    swap    sw      0       0
/dev/sdb1 /mnt/nc

Hey @Ivan_SHatrykin welcome to the community and thanks for supporting the snap

looks like you’ve been bitten by a known bug mounting NFS in /etc/fstab. this seems to be an OS issue. see the solution below. your Nextcloud snap should be fine.

in my /etc/fstab was the “#” in the first line missing. So it wasn’t a comment. I added it an then it worked.
Had also no problem with boot process … so other process ignored this or handled it differently??? Don’t know … just a thought i had.

see also:

I found a mistake. The disk is mounted incorrectly.