snapd falha ao iniciar com o sshfs mount no fstab

1

ID do Distribuidor: Ubuntu Descrição: Ubuntu 16.04.4 LTS Versão: 16.04 Codename: xenial

A versão mais recente do snapd falha ao iniciar se o / etc / fstab contiver uma montagem sshfs.

sshfs#[email protected]:/home/jail/user/files/ /media/mediadrive fuse defaults,_netdev,uid=1000,gid=1000,allow_other,port=22,reconnect,IdentityFile=/home/user/.ssh/id_rsa_ftpUser 0 0

O snapd lança os seguintes erros em / var / log / syslog

Apr  3 22:36:57 user-desktop snapd[9759]: 2018/04/03 22:36:57.832306 backend.go:104: cannot determine if NFS is in use: cannot parse /etc/fstab: expected between 3 and 6 fields, found 1
Apr  3 22:36:57 user-desktop snapd[9759]: 2018/04/03 22:36:57.835483 system_key.go:117: cannot determine nfs usage in generateSystemKey: cannot parse /etc/fstab: expected between 3 and 6 fields, found 1
Apr  3 22:36:57 user-desktop snapd[9759]: 2018/04/03 22:36:57.835499 helpers.go:115: error trying to compare the snap system key: cannot parse /etc/fstab: expected between 3 and 6 fields, found 1
Apr  3 22:36:58 user-desktop snapd[9759]: 2018/04/03 22:36:58.631222 system_key.go:117: cannot determine nfs usage in generateSystemKey: cannot parse /etc/fstab: expected between 3 and 6 fields, found 1
Apr  3 22:36:58 user-desktop snapd[9759]: error: cannot parse /etc/fstab: expected between 3 and 6 fields, found 1
Apr  3 22:36:58 user-desktop systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE
Apr  3 22:36:58 user-desktop systemd[1]: Failed to start Snappy daemon.
Apr  3 22:36:58 user-desktop systemd[1]: snapd.service: Unit entered failed state.
Apr  3 22:36:58 user-desktop systemd[1]: snapd.service: Failed with result 'exit-code'.
Apr  3 22:36:58 user-desktop systemd[1]: snapd.service: Service hold-off time over, scheduling restart.
Apr  3 22:36:58 user-desktop systemd[1]: Stopped Snappy daemon.

Comentar a linha sshfs permite que o snapd comece. Como isso pode ser resolvido?

    
por lrussell123 04.04.2018 / 05:48

1 resposta

0

Alterar a entrada fstab para sshfs corrigiu o problema.

[email protected]:/home/jail/user/files/ /media/mediadrive fuse.sshfs defaults,_netdev,uid=1000,gid=1000,allow_other,port=22,reconnect,IdentityFile=/home/user/.ssh/id_rsa_ftpUser 0 0

Por alguma razão, o snap não gosta do formato que começa com sshfs #

    
por lrussell123 04.04.2018 / 15:06