Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to import remote files via NFS #491

Open
mannp opened this issue Mar 29, 2021 · 9 comments
Open

Unable to import remote files via NFS #491

mannp opened this issue Mar 29, 2021 · 9 comments
Labels

Comments

@mannp
Copy link

mannp commented Mar 29, 2021

Using Arch linux to connect to a linux file server via NFS and Tauon is unable to import any files.

It complains at no files being present but the files are there and readable.

The same files shared via SMB work fine.

@Taiko2k
Copy link
Owner

Taiko2k commented Mar 29, 2021

Do you get any error message? If so what does it specifically say?

@mannp
Copy link
Author

mannp commented Mar 30, 2021

If I drag the nfs share link I only get ..

file to import missing
Writing database to disk.

@Taiko2k
Copy link
Owner

Taiko2k commented Mar 30, 2021

The files would need to be mounted on the filesystem. I.e. can you navigate to and list the files using the ls command in terminal?

@mannp
Copy link
Author

mannp commented Mar 30, 2021

Well yes of course, they are mounted on the filesystem

❯ ls '/run/user/1000/gvfs/nfs:host=,prefix=%2Fmnt%2Fuser%2FMy_Data/MusicTagged/FLAC'
'Album Artists' Extra infobrowser.opml Singles 'Various Artists'

It is the same destination as mounted via smb but tauon doesn't find the files ... as though it is not going into directories like it does with smb.

All the files follow the same owners and privs

-rw-r--r-- 1 local users 158252 Dec 10 14:22 cover.jpg

VLC plays the example flac file fine, but if I drag the same flac file to tauon is gives me the 'file to import missing' in the log...

I am running the latest master in the terminal to get these messages btw.

@Taiko2k
Copy link
Owner

Taiko2k commented Mar 30, 2021

It could be the path is being parsed wrongly. That mount point does look kinda scary.

Try edit tauon.py, search for the line that contains "file to import missing", and below that insert the line print(path). Then save and rerun, try to see mport that same flac file again, I assume the path it prints might not match.

@mannp
Copy link
Author

mannp commented Mar 31, 2021

Arch mounts as -> /run/user/1000/gvfs//nfs:host=,prefix=%2Fmnt%2Fuser%2FMy_Data/MusicTagged/MP3

Tauon reports;

/run/user/1000/gvfs/nfs:host=,prefix=/mnt/user/My_Data/MusicTagged/MP3

@Taiko2k
Copy link
Owner

Taiko2k commented Mar 31, 2021

Okay so it looks like there are urlencoded characters in that URI, and tauon currently attempts to decode any and all found. But its not intended that those ones are to be decoded because it's litterally part of the URI.

Hmm, probably tauon shouldn't do that for plain paths like that... Yeah, I suppose that should be fixed.

In the mean time, you could create a symlink to that folder but one with a simpler path. Or what I would do is use something else to mount the NFS, like mount it using fstab (say mount it to /mnt/something) for example rather than using gvfs.

@Taiko2k Taiko2k added the bug label Mar 31, 2021
@mannp
Copy link
Author

mannp commented Mar 31, 2021

Its decoded correctly for the same share via smb, so it seems to not be any complexity of share being the problem.

Symlinks got me going again, as don't like fstab mounts.

Thanks.

@C0rn3j
Copy link
Collaborator

C0rn3j commented Jan 26, 2025

Presuming this is still an issue today, I'm down to fix this but I need someone to provide me a problematic NFS server or dead-simple instructions to spin it up on Docker/Incus, as I am interested in fixing this bug but not figuring out NFS-specific setup issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants