snapd does not parse /etc/fstab properly when using mhddfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Fix Released
|
Critical
|
Zygmunt Krynicki |
Bug Description
If you put in any mhddfs mount lines in /etc/fstab such as the one below, snapd.service fails to start.
mhddfs# /mnt/dir1,/mnt/dir2 /mnt/dir fuse defaults,
It was working fine before and it started with version 2.32+18.04
Apr 03 13:43:33 asd snapd[4016802]: AppArmor status: apparmor is enabled and all features are available
Apr 03 13:43:33 asd snapd[4016802]: 2018/04/03 13:43:33.377173 backend.go:104: cannot determine if NFS is in use: cannot parse /etc/fstab: expected between 3 and 6 fields, found 1
Apr 03 13:43:33 asd snapd[4016802]: 2018/04/03 13:43:33.378091 system_key.go:117: cannot determine nfs usage in generateSystemKey: cannot parse /etc/fstab: expected between 3 and 6 fields, found 1
Apr 03 13:43:33 asd snapd[4016802]: 2018/04/03 13:43:33.378103 helpers.go:115: error trying to compare the snap system key: cannot parse /etc/fstab: expected between 3 and 6 fields, found 1
Apr 03 13:43:33 asd snapd[4016802]: 2018/04/03 13:43:33.378649 system_key.go:117: cannot determine nfs usage in generateSystemKey: cannot parse /etc/fstab: expected between 3 and 6 fields, found 1
Apr 03 13:43:33 asd snapd[4016802]: error: cannot parse /etc/fstab: expected between 3 and 6 fields, found 1
Apr 03 13:43:33 asd systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE
Apr 03 13:43:33 asd systemd[1]: snapd.service: Failed with result 'exit-code'.
-- Subject: Unit snapd.service has failed
-- Unit snapd.service has failed.
Apr 03 13:43:33 asd systemd[1]: snapd.service: Service hold-off time over, scheduling restart.
Apr 03 13:43:33 asd systemd[1]: snapd.service: Scheduled restart job, restart counter is at 5.
-- Automatic restarting of the unit snapd.service has been scheduled, as the result for
-- Subject: Unit snapd.service has finished shutting down
-- Unit snapd.service has finished shutting down.
Apr 03 13:43:33 asd systemd[1]: snapd.service: Start request repeated too quickly.
Apr 03 13:43:33 asd systemd[1]: snapd.service: Failed with result 'exit-code'.
-- Subject: Unit snapd.service has failed
-- Unit snapd.service has failed.
Apr 03 13:43:33 asd systemd[1]: snapd.socket: Failed with result 'service-
I have removed snapd for the time being until this is resolved.
Changed in snappy: | |
status: | Fix Committed → Fix Released |
Thank you for reporting the bug.
Are you saying the actual line contains the string:
mhddfs# /mnt/dir1,/mnt/dir2 /mnt/dir fuse defaults, allow_other 0 0
With the "mhddfs#" in the first column, as the device type?