Opened 29 hours ago

Last modified 5 hours ago

#19463 new bug

NFSv4 share is shown empty in Tracker but listed correctly in Terminal

Reported by: grexe Owned by: pdziepak
Priority: normal Milestone: Unscheduled
Component: File Systems/NFS4 Version: R1/beta5
Keywords: Cc: Jim906
Blocked By: Blocking:
Platform: All

Description

There's some weird discrepancy between Tracker's NFS share handling and the actual file/folder handling as in Terminal.

This hasn't happened before, but today with latest nightly hrev58715 and a perfectly working NFSv4 share from my local TrueNAS server, I experience this:

  1. mount share with 192.168.0.117:/mnt/datalake/media" /boot/home/nessie/media
  2. try to open the folder in Tracker -> empty
  3. try to `ls /boot/home/nessie/media" in Terminal -> works

The 2 other shares I mounted before on the same server with same mount options work fine! I often have all 3 shares mounted.

Attachments (1)

nfs-shares-mount_tracker-vs-terminalpng (75.0 KB ) - added by grexe 29 hours ago.

Download all attachments as: .zip

Change History (6)

comment:1 by waddlesplash, 29 hours ago

Cc: Jim906 added

I guess it's probably a regression from Jim906's fix in hrev58712 somehow.

Tracker sometimes displays folders as empty if it can't open a directory FD, I think? But there might be some other cause.

comment:2 by grexe, 29 hours ago

I think it is related to access rights - there are still some issues with them here, and also in Terminal I cannot write to some paths, but I can read the top-level path which is still inaccessible to Tracker.

comment:3 by Jim906, 8 hours ago

Sorry for the inconvenience, grexe.

I can reproduce the inability to write to files, although there is another discrepancy here. I can create a plain text file that shows as read-only in StyledEdit and Pe, but can be written to in nano.

I would be interested to know, if you ran ls -l in each of these 3 shares, if you see differences in the permissions, owner, and group columns, in the share that Tracker displays as empty compared to the other two.

Since I can reproduce an inability to write to a file I am trying to figure out that problem first. If one share displays as empty because the Tracker couldn't open the directory, then maybe the two symptoms have the same cause related to access rights.

comment:4 by Jim906, 6 hours ago

Any differences in server configuration between the 3 shares might also be relevant. In TrueNAS I think you can check this in the GUI by viewing Advanced Settings for each share.

comment:5 by grexe, 5 hours ago

The only difference was access rights, and I've fixed that now by fixing the ZFS dataset configuration in TrueNAS, resulting in Tracker being able to display the contents again.

However, I get the weird issue that filetypes are not detected correctly although the files are user read/writeable, but that's at least consistently wrong across all shares.

When forcing Tracker to open a file with "Proceed", I got a meeting with KDL. Update: this is a related issue but I need to reproduce yet.

Last edited 5 hours ago by grexe (previous) (diff)
Note: See TracTickets for help on using tickets.