Posts: 11
Threads: 2
Joined: Jun 2020
Reputation:
0
09-03-2022, 07:38 AM
(This post was last modified: 09-04-2022, 07:48 AM by divlamir.)
Hi you all music lovers !
Did a fresh install of v8.1.2 and I am unable to see album thumbnails in library or play queue. Although they seem to be generated, the end of moode.log:
Code: 20220903 090400 thumb-gen: Start
20220903 090400 thumb-gen: Priority: Cover image file
20220903 090400 thumb-gen: Res,Qual: Auto
20220903 090400 thumb-gen: Px ratio: 1
20220903 090400 thumb-gen: Th width: 100
20220903 090400 thumb-gen: Thm qual: 75
20220903 090400 thumb-gen: Scanning: NAS, SDCARD
20220903 090650 thumb-gen: Done: 3763 folders scanned, 3761 thumbs created, 2 already in cache.
Any ideas how do I go about solving this?
Posts: 1,281
Threads: 24
Joined: Jun 2022
Reputation:
42
09-03-2022, 12:19 PM
(This post was last modified: 09-03-2022, 12:24 PM by Nutul.)
(09-03-2022, 07:38 AM)divlamir Wrote: Hi you all music lovers !
Did a fresh install of v8.1.2 and I am unable to see album thumbnails in library or play queue. Although they seem to be generated, the end of moode.log:
Code: 20220903 090400 thumb-gen: Start
20220903 090400 thumb-gen: Priority: Cover image file
20220903 090400 thumb-gen: Res,Qual: Auto
20220903 090400 thumb-gen: Px ratio: 1
20220903 090400 thumb-gen: Th width: 100
20220903 090400 thumb-gen: Thm qual: 75
20220903 090400 thumb-gen: Scanning: NAS, SDCARD
20220903 090650 thumb-gen: Done: 3763 folders scanned, 3761 thumbs created, 2 already in cache.
Any ideas how do I go about solving this?
I cannot think of anything else but the read permissions of all the folders in the chain. In particular they should be at least 0744 (or rwxr-xr-x and you are interested possibly in the last --x (that for the folders allows traversal), if "x" is not there, then we'll need to change such permissions...)
Also, the permissions of all the thumbnails in such folder should have, at least the last, "r" flag set (x here has no meaning, as we do not run the thumbnails).
to see such flags, ssh into moode, then, one by one, check the paths with (note the -ld => dash, L, D):
ls /var -ld
ls /var/local -ld
ls /var/local/www -ld
ls /var/local/www/imagesw -ld
ls /var/local/www/imagesw/thmcache -ld
and for the images themselves, just the last command, without the "d" in the "-ld"
Just my 2c on it.
Cheers, Al.
Posts: 13,431
Threads: 305
Joined: Mar 2018
Reputation:
545
Very odd.
You could try clearing the Browser cache, opening the Browser console and examining any errors, try a different Browser, etc.
The thumbnail images are stored in /var/local/www/imagesw/thmcache/
Posts: 6,026
Threads: 177
Joined: Apr 2018
Reputation:
235
@ divlamir
What's already been said, especially about clearing browser caches after running with an older version of moOde. Directory permissions are important too, although I'm having difficulty imagining how they went cattywonkus if you haven't been modifying internal code.
Just because I'm curious, does your cover imagery happen to be encoded in TIF or GIF format? These formats are problematic in different ways. As long as we're at it, are the images embedded in the individual track files or are they album files?
Regards,
Kent
Posts: 11
Threads: 2
Joined: Jun 2020
Reputation:
0
09-03-2022, 06:19 PM
(This post was last modified: 09-03-2022, 06:30 PM by divlamir.)
Thank you all for the suggestions, even if I've already tried them and no luck so far...
@ Nutul, directory permissions are ok and I haven't touched any of those.
@Tim Curtis, I tried clearing browser cache but it's all the same on my PC, my phone and on a RPi with a touchscreen that I use as a visual kiosk. Though coverart is fine and visible in the playback and cover view, just missing in the play queue and library.
@ TheOldPresbyope, all my cover art is saved as cover.{jpg,png} in the album folder and embeded in the files as well.
For what is worth I do change a bit the default directory structure under /var/lib/mpd/music:
Code: pi@moode:~ $ tree -l /var/lib/mpd/music
/var/lib/mpd/music
├── Beets -> /mnt/NAS/Mediatheque/Music/Beets
│ ├── 16 Horsepower
│ └── 1997 - Low Estate [1998]
│ ├── 01 Brimstone Rock.flac
│ ├── 02 My Narrow Mind.flac
│ ├── 03 Low Estate.flac
│ ├── 04 For Heaven’s Sake.flac
│ ├── 05 Sac of Religion.flac
│ ├── 06 The Denver Grab.flac
│ ├── 07 Coal Black Horses.flac
│ ├── 08 Pure Clob Road.flac
│ ├── 09 Phyllis Ruth.flac
│ ├── 10 Black Lung.flac
│ ├── 11 Fire Spirit.flac
│ ├── 12 Golden Rope.flac
│ ├── 13 Hang My Teeth on Your Door.flac
│ ├── 14 Ditch Digger.flac
│ ├── 15 The Partisan.flac
│ └── cover.jpg
├── Classical -> /mnt/NAS/Mediatheque/Music/Classical
└── RADIO
├── 1.FM - Blues Radio.pls
├── 2BOB Radio 104.7 FM.pls
├── 4ZZZ FM 102.1 - Alternative.pls
├── 6forty Radio.pls
Music directories have permissions 0755, and files 0644, owned by pi:pi. NFS share is mounted manually in /etc/fstab:
Code: proc /proc proc defaults 0 0
PARTUUID=4e1e44a9-01 /boot vfat defaults,flush 0 2
PARTUUID=4e1e44a9-02 / ext4 defaults,noatime 0 1
pi.lan:/srv/mediatheque/Media /mnt/NAS/Mediatheque nfs auto,ro,noatime,x-systemd.automount,timeo=14,x-systemd.idle-timeout=1min 0 0
All my music is stored by a RPi4 serving as a NAS, the same one that is used as a visual aid, and served to the RPi3 with the DigiOne hat used as a renderer with Moode. Been a happy user since many years but I've never bothered with the web until now. So it's the occasion to send a big THANK YOU for the great work done!!! You're all awesome!
Some more info if it could be of any use:
Code: pi@moode:~ $ mpc stats
Artists: 2433
Albums: 2528
Songs: 48878
Play Time: 0 days, 3:41:58
Uptime: 1 days, 5:33:48
DB Updated: Sat Sep 3 13:24:00 2022
DB Play Time: 161 days, 1:05:53
pi@moode:~ $ tail /var/log/moode.log
20220903 115626 worker: Job regen_library
20220903 115626 thumb-gen: Start
20220903 115626 thumb-gen: Priority: Embedded cover
20220903 115626 thumb-gen: Res,Qual: Auto
20220903 115626 thumb-gen: Px ratio: 1
20220903 115626 thumb-gen: Th width: 100
20220903 115626 thumb-gen: Thm qual: 75
20220903 115626 thumb-gen: Scanning: NAS, SDCARD
20220903 115704 thumb-gen: Done: 3763 folders scanned, 0 thumbs created, 3763 already in cache.
20220903 121432 worker: Job regen_library done
Posts: 6,026
Threads: 177
Joined: Apr 2018
Reputation:
235
(09-03-2022, 06:19 PM)divlamir Wrote: Thank you all for the suggestions, even if I've already tried them and no luck so far...
...
For what is worth I do change a bit the default directory structure under /var/lib/mpd/music:
Code: pi@moode:~ $ tree -l /var/lib/mpd/music
/var/lib/mpd/music
├── Beets -> /mnt/NAS/Mediatheque/Music/Beets
.
.
.
├── Classical -> /mnt/NAS/Mediatheque/Music/Classical
└── RADIO
├── 1.FM - Blues Radio.pls
├ ...
.
.
.
... Aha, so not a vanilla installation.
I don't have time right now to code-walk or try to repro but my spidey-sense is tingling over this bit of fancy footwork with the symlinks. Could be wrong, of course.
Regards,
Kent
Posts: 1,281
Threads: 24
Joined: Jun 2022
Reputation:
42
09-03-2022, 07:58 PM
(This post was last modified: 09-03-2022, 08:02 PM by Nutul.)
(09-03-2022, 07:19 PM)TheOldPresbyope Wrote: (09-03-2022, 06:19 PM)divlamir Wrote: Thank you all for the suggestions, even if I've already tried them and no luck so far...
...
For what is worth I do change a bit the default directory structure under /var/lib/mpd/music:
Code: pi@moode:~ $ tree -l /var/lib/mpd/music
/var/lib/mpd/music
├── Beets -> /mnt/NAS/Mediatheque/Music/Beets
.
.
.
├── Classical -> /mnt/NAS/Mediatheque/Music/Classical
└── RADIO
├── 1.FM - Blues Radio.pls
├ ...
.
.
.
... Aha, so not a vanilla installation.
I don't have time right now to code-walk or try to repro but my spidey-sense is tingling over this bit of fancy footwork with the symlinks. Could be wrong, of course.
Regards,
Kent
Also... I see the album-art priority is set to "embedded"... I cannot remember the code right now (I believe if one search fails, it will proceed with the other, but am not so sure...) try to set it to "Cover file" in "m" => preferences...
Although it looks to me as if the hash-ed file name for the thumbnails is being calculated wrongly... (the big album-art is retrieved via a .php endpoint, and the codepath for it is different, AFAICR)
Posts: 13,431
Threads: 305
Joined: Mar 2018
Reputation:
545
The thumbnail generator is hashing file paths relative to "NAS" but the MPD database prolly contains file paths relative to "Beets" and "Classical" thus hash.jpg created in the front-end does not match hash.jpg created by the thumbnail generator.
For thumbs to work there needs to be NAS -> /mnt/NAS symlink under /var/lib/mpd/music
Posts: 1,281
Threads: 24
Joined: Jun 2022
Reputation:
42
(09-03-2022, 07:59 PM)Tim Curtis Wrote: The thumbnail generator is hashing file paths relative to "NAS" but the MPD database prolly contains file paths relative to "Beets" and "Classical" thus hash.jpg created in the front-end does not match hash.jpg created by the thumbnail generator.
For thumbs to work there needs to be NAS -> /mnt/NAS symlink under /var/lib/mpd/music
mmm, you're most probably right... the symlinks may actually be messing things up in this use-case...
Posts: 11
Threads: 2
Joined: Jun 2020
Reputation:
0
|