Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


[IDEA] allow sshfs mount remote storage (rights access issue solved for sshfs)
#20
(01-21-2023, 03:59 PM)Phil35 Wrote: Hi Kent,
Ok
Tested.

1/ remote directory mounted via sshfs on /mnt/SDCARD/SSHFS.
   Musics are there, files and directories are there ...

If you don't show details, I can only make guesses. What was the exact command you entered to mount the directory and how did you determine things "are there"? My first guess is that you have incorrect permissions on directories and/or files.

Quote:update library sees nothing more
    I have click on "clear library tag cache" "regenerate thumbnail"
    I may read on the webpage "View Status" the scan is running ok in /mnt/SDCARD/SSHFS/........
    I may read a correct result with moodeutl -t 


Code:
20230121 164828 mpdindex: Done: indexed 1 artists, 1 albums, 1 songs
20230121 164828 worker: Job update_library done
20230121 164839 thumb-gen: Done: 1333 folders scanned, 0 thumbs created, 1333 already in cache 

However nothing better  the webpage still shows only "Stereo Test"

This snippet of output from moodeutl reinforces my guess since there appears that only one album and track are found in this scan---e.g., the Stereo Test---and that your thumbnail cache already contained 1333 thumbs with no new ones added.

Quote:2/ umount /mnt/SDCARD/SSHFS
   copying some music files localy in /mnt/SDCARD/SSHFS,   update library  and music is there

   Good the webpage  shows now two entries  "SSHFS" and "Stereo Test" , entering SSHFS, music is there and can be played.

...

fyi: I found a problem but nothing to deal with moode, got these errors messages, problem with around 20 files themselfves
Code:
20230121 164413 thumb-gen: Scanning: NAS, SDCARD
20230121 164424 thumb-gen: Error: File does not contain ID3v2 tag:

This last tells you that MPD can't find metadata to index in these files (I suppose they are MP3 files). That's a problem for Album and Tag views but these files should still show up in the Folder view, just not nicely tagged.

ETA - oops - Obviously this error message relates not to MPD but to the thumbnail generator script which, among other things, checks for coverart which may be embedded in ID3v2 metadata. Still not a problem for the Folder view.

You can use mpc from the command line to explore the MPD database and status.
  • Try mpc help to see what the commands are.
  • mpc stats is a start
Candidly, I'm running out of time to spend on this. It's clear in tests I've run that sshfs is viable for remotely mounting music directories in moOde when configured properly. Now we're down into more mundane problems. For a start, see the MPD documentation, especially the subsection "I can’t see my music in the MPD database."

Good luck.

Regards,
Kent
Reply


Messages In This Thread
RE: [IDEA] allow sshfs mount remote storage - by TheOldPresbyope - 01-21-2023, 05:24 PM

Forum Jump: