Opening SMB Share Spins on 'Permission denied' Error
Trying to connect to my share has suddenly started hanging, spinning up my system's fans, until I kill the gvfsd process.
Running gvfsd
with GVFS_SMB_DEBUG=10 GVFS_DEBUG=1
it spews out these messages:
smb: do_mount - try #15471
smbc_stat(smb://homonoia.poop.casa/data)
SMBC_getatr: sending qpathinfo
map_errno_from_nt_status: 32 bit codes: code=c0000022
cli_status_to_errno: 0xc0000022 -> 13
smb: do_mount - [smb://nas.home.arpa/data; 15471] res = -1, cancelled = 0, errno = [13] 'Permission denied'
As far as I can tell it's doing it in a tight loop (that "try #15471" was after only a couple of seconds) and never gives up.
I don't know enough to know for sure that this is a bug in gvfs itself, but it happens when I try to open the share via gnome files, Déjà Dup, or gio mount
. Though, I assume it most likely is because those debug messages continue after quitting/killing/timing-out the application that is trying to connect.