Re: sshfs mount option, 'nonempty', causing mount/connection fails: "No such file or directory". still a valid option?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi

On 9/11/20 5:20 PM, Ian Kent wrote:
> How about you get a debug log so we can check.
> 
> Set "logging = debug" in /etc/autofs.conf and use journalctl to
> collect the log output, like "journalctl -f | tee autofs.log".
> 
> Obviously you can grep for automount and perhaps edit the log a
> little to get rid of anything that might not be appropriate for
> a public mailing list or send it to me privately.

adding back the 'nonempty' opt, debug logs report

	">> fuse: unknown option(s): `-o nonempty'"



systemctl stop autofs

/etc/autofs.conf
	-	# logging = none
	+	logging = debug

/etc/auto.sshfs
	-	example       -fstype=fuse,rw,nodev,allow_other,...
	+	example       -fstype=fuse,rw,nodev,nonempty,allow_other,...

systemctl start autofs

journalctl -f -u autofs
	...
	Sep 11 18:14:09 desk0013 automount[16234]: Starting automounter version 5.1.6-7.fc32, master map auto.master
	Sep 11 18:14:09 desk0013 automount[16234]: using kernel protocol version 5.05
	Sep 11 18:14:09 desk0013 automount[16234]: lookup_nss_read_master: reading master files auto.master
	Sep 11 18:14:09 desk0013 automount[16234]: do_init: parse(sun): init gathered global options: (null)
	Sep 11 18:14:09 desk0013 automount[16234]: lookup_read_master: lookup(file): read entry /mnt/sshfs
	Sep 11 18:14:09 desk0013 automount[16234]: do_init: parse(sun): init gathered global options: (null)
	Sep 11 18:14:09 desk0013 automount[16234]: ghosting enabled
	Sep 11 18:14:09 desk0013 automount[16234]: master_do_mount: mounting /mnt/sshfs
	Sep 11 18:14:09 desk0013 automount[16234]: automount_path_to_fifo: fifo name /run/autofs.fifo-mnt-sshfs
	Sep 11 18:14:09 desk0013 automount[16234]: lookup_nss_read_map: reading map file /etc/auto.sshfs
	Sep 11 18:14:09 desk0013 automount[16234]: do_init: parse(sun): init gathered global options: (null)
	Sep 11 18:14:09 desk0013 automount[16234]: remount_active_mount: trying to re-connect to mount /mnt/sshfs
	Sep 11 18:14:09 desk0013 automount[16234]: mounted indirect on /mnt/sshfs with timeout 30, freq 8 seconds
	Sep 11 18:14:09 desk0013 automount[16234]: remount_active_mount: re-connected to mount /mnt/sshfs
	Sep 11 18:14:09 desk0013 automount[16234]: st_ready: st_ready(): state = 0 path /mnt/sshfs
	Sep 11 18:14:09 desk0013 automount[16234]: ghosting enabled
	Sep 11 18:14:13 desk0013 automount[16234]: expire_cleanup: sigchld: exp 139805915625216 finished, switching from 2 to 1
	Sep 11 18:14:16 desk0013 automount[16234]: expire_cleanup: sigchld: exp 139805915625216 finished, switching from 2 to 1
	Sep 11 18:14:19 desk0013 automount[16234]: expire_cleanup: sigchld: exp 139805915625216 finished, switching from 2 to 1
	Sep 11 18:14:21 desk0013 automount[16234]: st_expire: state 1 path /mnt/sshfs
	Sep 11 18:14:21 desk0013 automount[16234]: expire_proc: exp_proc = 139805915625216 path /mnt/sshfs
	Sep 11 18:14:21 desk0013 automount[16234]: expire_cleanup: got thid 139805915625216 path /mnt/sshfs stat 1
	Sep 11 18:14:21 desk0013 automount[16234]: expire_cleanup: sigchld: exp 139805915625216 finished, switching from 2 to 1
	Sep 11 18:14:21 desk0013 automount[16234]: st_ready: st_ready(): state = 2 path /mnt/sshfs
	Sep 11 18:14:22 desk0013 automount[16234]: expire_cleanup: sigchld: exp 139805915625216 finished, switching from 2 to 1
	Sep 11 18:14:25 desk0013 automount[16234]: expire_cleanup: sigchld: exp 139805915625216 finished, switching from 2 to 1
	...

cd /mnt/sshfs/example/
	bash: cd: /mnt/sshfs/example/: No such file or directory

journalctl -f -u autofs

	Sep 11 18:15:20 desk0013 automount[16234]: handle_packet: type = 3
	Sep 11 18:15:20 desk0013 automount[16234]: handle_packet_missing_indirect: token 102, name example, request pid 6657
	Sep 11 18:15:20 desk0013 automount[16234]: attempting to mount entry /mnt/sshfs/example
	Sep 11 18:15:20 desk0013 automount[16234]: lookup_mount: lookup(file): looking up example
	Sep 11 18:15:20 desk0013 automount[16234]: lookup_mount: lookup(file): example -> -fstype=fuse,rw,nodev,nonempty,allow_other,reconnect,uid=0,gid=0,max_read=65536,compression=yes,auto_cache,no_check_root,kernel_cache,workaround=rename,ssh_command="/usr/bin/ssh -F /usr/local/etc/ssh/ssh_config"  :sshfs\#root@xxxxxxxxxxxxxxxxxx\:/
	Sep 11 18:15:20 desk0013 automount[16234]: parse_mount: parse(sun): expanded entry: -fstype=fuse,rw,nodev,nonempty,allow_other,reconnect,uid=0,gid=0,max_read=65536,compression=yes,auto_cache,no_check_root,kernel_cache,workaround=rename,ssh_command="/usr/bin/ssh -F /usr/local/etc/ssh/ssh_config"  :sshfs\#root@xxxxxxxxxxxxxxxxxx\:/
	Sep 11 18:15:20 desk0013 automount[16234]: parse_mount: parse(sun): gathered options: fstype=fuse,rw,nodev,nonempty,allow_other,reconnect,uid=0,gid=0,max_read=65536,compression=yes,auto_cache,no_check_root,kernel_cache,workaround=rename,ssh_command=/usr/bin/ssh -F /usr/local/etc/ssh/ssh_config
	Sep 11 18:15:20 desk0013 automount[16234]: parse_mount: parse(sun): dequote(":sshfs\#root@xxxxxxxxxxxxxxxxxx\:/") -> :sshfs#root@xxxxxxxxxxxxxxxxxx:/
	Sep 11 18:15:20 desk0013 automount[16234]: parse_mount: parse(sun): core of entry: options=fstype=fuse,rw,nodev,nonempty,allow_other,reconnect,uid=0,gid=0,max_read=65536,compression=yes,auto_cache,no_check_root,kernel_cache,workaround=rename,ssh_command=/usr/bin/ssh -F /usr/local/etc/ssh/ssh_config, loc=:sshfs#root@xxxxxxxxxxxxxxxxxx:/
	Sep 11 18:15:20 desk0013 automount[16234]: sun_mount: parse(sun): mounting root /mnt/sshfs, mountpoint example, what sshfs#root@xxxxxxxxxxxxxxxxxx:/, fstype fuse, options rw,nodev,nonempty,allow_other,reconnect,uid=0,gid=0,max_read=65536,compression=yes,auto_cache,no_check_root,kernel_cache,workaround=rename,ssh_command=/usr/bin/ssh -F /usr/local/etc/ssh/ssh_config
	Sep 11 18:15:20 desk0013 automount[16234]: do_mount: sshfs#root@xxxxxxxxxxxxxxxxxx:/ /mnt/sshfs/example type fuse options rw,nodev,nonempty,allow_other,reconnect,uid=0,gid=0,max_read=65536,compression=yes,auto_cache,no_check_root,kernel_cache,workaround=rename,ssh_command=/usr/bin/ssh -F /usr/local/etc/ssh/ssh_config using module generic
	Sep 11 18:15:20 desk0013 automount[16234]: mount_mount: mount(generic): calling mkdir_path /mnt/sshfs/example
	Sep 11 18:15:20 desk0013 automount[16234]: mount(generic): calling mount -t fuse -o rw,nodev,nonempty,allow_other,reconnect,uid=0,gid=0,max_read=65536,compression=yes,auto_cache,no_check_root,kernel_cache,workaround=rename,ssh_command=/usr/bin/ssh -F /usr/local/etc/ssh/ssh_config sshfs#root@xxxxxxxxxxxxxxxxxx:/ /mnt/sshfs/example
!!	Sep 11 18:15:20 desk0013 automount[16234]: >> fuse: unknown option(s): `-o nonempty'
	Sep 11 18:15:20 desk0013 automount[16234]: mount(generic): failed to mount sshfs#root@xxxxxxxxxxxxxxxxxx:/ (type fuse) on /mnt/sshfs/example
	Sep 11 18:15:20 desk0013 automount[16234]: dev_ioctl_send_fail: token = 102
	Sep 11 18:15:20 desk0013 automount[16234]: failed to mount /mnt/sshfs/example
	Sep 11 18:15:20 desk0013 automount[16234]: handle_packet: type = 3
	Sep 11 18:15:20 desk0013 automount[16234]: handle_packet_missing_indirect: token 103, name example, request pid 6657
	Sep 11 18:15:20 desk0013 automount[16234]: dev_ioctl_send_fail: token = 103
	Sep 11 18:15:22 desk0013 automount[16234]: expire_cleanup: sigchld: exp 139805915625216 finished, switching from 2 to 1


let me know if there's more/other info that'd be helpful



[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux