Jellyfin Forum
Music not found - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: Music not found (/t-music-not-found)

Pages: 1 2


Music not found - kc1 - 2024-04-25

TLDR:

I have 2 directories with identical permissions. One scans fine and finds music - one doesn't find anything

I am at a loss here.

I am running jellyfin/jellyfin:unstable in a container.

I have the config and media as external mounts.

My music directory is divided into directories A-L and L-Z (forced on me by another device with limited memory).

The mount in the container is to /mediaData

in the container I can see:

Code:
I have no name!@7b808a7fec5f:/mediaData/Family/Music$ ls -al
total 79664
drwxrwxr-x  13 1000 1000    12288 Apr 24 08:28  .
drwxrwxr-x  26 1000 1000    4096 Mar 31 12:38  ..
drwxrwxr-x 443 1000 1000    28672 Apr 25 01:00  A-K
drwxrwxr-x 508 1000 1000    36864 Apr 25 01:00  L-Z
I have no name!@7b808a7fec5f:/mediaData/Family/Music$ cd L-Z
I have no name!@7b808a7fec5f:/mediaData/Family/Music/L-Z$ ls -al
total 2136
drwxrwxr-x 508 1000 1000 36864 Apr 25 01:00  .
drwxrwxr-x  13 1000 1000 12288 Apr 24 08:28  ..
drwxrwxr-x  3 1000 1000  4096 Apr 25 01:00  Labelle
drwxrwxr-x  3 1000 1000  4096 Apr 25 01:00 'Lacuna Coil'
drwxrwxr-x  3 1000 1000  4096 Apr 25 01:00 'Lady Antebellum'
drwxrwxr-x  4 1000 1000  4096 Apr 25 01:00 'Lady Gaga'
drwxrwxr-x  4 1000 1000  4096 Apr 25 01:00 'Lana Del Rey'

and for the A-K directory

Code:
I have no name!@7b808a7fec5f:/mediaData/Family/Music$ ls -al A-K/
total 1852
drwxrwxr-x 443 1000 1000 28672 Apr 25 01:00  .
drwxrwxr-x  13 1000 1000 12288 Apr 24 08:28  ..
drwxrwxr-x  3 1000 1000  4096 Apr  8 09:04  10CC
drwxrwxr-x  5 1000 1000  4096 Apr 25 01:00  1927
drwxrwxr-x  2 1000 1000  4096 Apr 20 13:35 '30 Seconds to Mars'
drwxrwxr-x  3 1000 1000  4096 Apr 25 01:00 '3 Doors Down'

gid of jellyfin in the container is 1000

I have stopped the container, cleared out the config, deleted the container rebuilt the container and then added in a single library which only points to the L-K directory and it has produced the attached debug log.


.txt   jellyfinScanL-Z.txt (Size: 8.01 KB / Downloads: 36)

At no point will it find any files

If I do the same with the A-K directory it scans properly

Any suggestions? If I could see an error I could try to address it but I am not seeing/recognising any

In the container as the jellyfin user I can access the files:

Code:
I have no name!@7b808a7fec5f:/mediaData/Family/Music/L-Z/Van Morrison$ cat Van\ Morrison\ -\ moondance\ .mp3 | head -1
VAN MORRISONTALB
I have no name!@7b808a7fec5f:/mediaData/Family/Music/L-Z/Van Morrison$



RE: Music not found - TheDreadPirate - 2024-04-25

The paths in your music library point to the "A-K" and "L-Z" folders? Then you have folders for each artist and in each artist folder are your songs? Are the songs in album folders?

https://jellyfin.org/docs/general/server/media/music/


RE: Music not found - kc1 - 2024-04-26

Thanks for your response

Yes under L-Z I have a folder for each artist and (notmally within that I have a folder for each album) - was basing it on https://jellyfin.org/docs/general/server/media/music/ though in some cases where it is just individual songs I just put them in a folder called the artist name (which i presume it will treat the artist name as the album). Doing a further test last night I created a new directory called LZ , pointed to that and then copied the first 2 directories across.

A tree on my test mount point shows

Code:
tree
.
├── In a Reverie
│   ├── AlbumArtSmall.jpg
│   ├── AlbumArt_{461ACD51-0CB0-45C2-8FAE-AD13D8DDA332}_Large.jpg
│   ├── AlbumArt_{461ACD51-0CB0-45C2-8FAE-AD13D8DDA332}_Small.jpg
│   ├── Folder.jpg
│   ├── Lacuna Coil - Circle.mp3
│   ├── Lacuna Coil - My Wings.mp3
│   └── desktop.ini
├── La Rocca
│   ├── 01-la_rocca-sketches_(20_something_life).mp3
│   ├── 02-la_rocca-if_you_need_the_morning.mp3
│   ├── 03-la_rocca-this_life.mp3
│   ├── 04-la_rocca-the_truth.mp3
│   ├── 05-la_rocca-goodnight.mp3
│   ├── 06-la_rocca-some_you_give_away.mp3
│   ├── 07-la_rocca-sing_song_sung.mp3
│   ├── 08-la_rocca-eyes_while_open.mp3
│   ├── 09-la_rocca-cats.mp3
│   ├── 10-la_rocca-non_believer.mp3
│   └── 11-la_rocca-capital_pill.mp3
└── Labelle
    ├── Nightbirds
    │   ├── 01 - Labelle  - Lady Marmalade.mp3
    │   ├── 02 - Labelle  - Somebody Somewhere.mp3
    │   ├── 03 - Labelle  - Are You Lonely.mp3
    │   ├── 04 - Labelle  - It Took A Long Time.mp3
    │   ├── 05 - Labelle  - Don't Bring Me Down.mp3
    │   ├── 06 - Labelle  - What Can I Do For You.mp3
    │   ├── 07 - Labelle  - Nightbird.mp3
    │   ├── 08 - Labelle  - Space Children.mp3
    │   ├── 09 - Labelle  - All Girl Band.mp3
    │   ├── 10 - Labelle  - You Turn Me On.mp3
    │   ├── RL500.jpg
    │   ├── Thumbs.db
    │   └── list.txt
    ├── playList.m3u
    └── playList.xml


A scan here only picks up 13 files (the ones under La Rocca and In a Reverie). It ignores the Nightbirds folder completely. If I move Nightbirds up a level even with the artist name then it gets picked up fine ..... but to be honest I think this is a different problem to by whole directory being shunned


RE: Music not found - TheDreadPirate - 2024-04-26

What are the permissions on /mediaData and /mediaData/Family?


RE: Music not found - kc1 - 2024-04-26

From the container

root@7b808a7fec5fConfused-facemediaData/Family# ls -al
total 267756
drwxrwxr-x 27 1000 1000 4096 Apr 26 10:34 .
drwxr-xr-x 21 1000 users 12288 Apr 25 08:50 ..

from what I can see RX to everyone

Remeber the scan works for the A-K directory


RE: Music not found - TheDreadPirate - 2024-04-26

For testing, create another Music folder in /mediaData/Family. Then create some symlinks in /mediaData/Family/newMusic (or whatever you call it) that points to some of the undetected folders in L-Z.


RE: Music not found - kc1 - 2024-04-26

It's nice to know we think alike - I have done that but actually created a smaller directory with just 3 files. But doing it exactly as you suggested I get:

Code:
>tree -l newMusic/
newMusic/
├── La Rocca -> /mediaData/Family/Music/L-Z/La Rocca/
│   ├── 01-la_rocca-sketches_(20_something_life).mp3
│   ├── 02-la_rocca-if_you_need_the_morning.mp3
│   ├── 03-la_rocca-this_life.mp3
│   ├── 04-la_rocca-the_truth.mp3
│   ├── 05-la_rocca-goodnight.mp3
│   ├── 06-la_rocca-some_you_give_away.mp3
│   ├── 07-la_rocca-sing_song_sung.mp3
│   ├── 08-la_rocca-eyes_while_open.mp3
│   ├── 09-la_rocca-cats.mp3
│   ├── 10-la_rocca-non_believer.mp3
│   └── 11-la_rocca-capital_pill.mp3
├── Labelle -> /mediaData/Family/Music/L-Z/Labelle/
│   ├── Labelle - Nightbirds
│   │   ├── 01 - Labelle  - Lady Marmalade.mp3
│   │   ├── 02 - Labelle  - Somebody Somewhere.mp3
│   │   ├── 03 - Labelle  - Are You Lonely.mp3
│   │   ├── 04 - Labelle  - It Took A Long Time.mp3
│   │   ├── 05 - Labelle  - Don't Bring Me Down.mp3
│   │   ├── 06 - Labelle  - What Can I Do For You.mp3
│   │   ├── 07 - Labelle  - Nightbird.mp3
│   │   ├── 08 - Labelle  - Space Children.mp3
│   │   ├── 09 - Labelle  - All Girl Band.mp3
│   │   ├── 10 - Labelle  - You Turn Me On.mp3
│   │   ├── RL500.jpg
│   │   ├── Thumbs.db
│   │   └── list.txt
│   ├── playList.m3u
│   └── playList.xml
└── Lacuna Coil -> /mediaData/Family/Music/L-Z/Lacuna Coil/
    ├── In a Reverie
    │   ├── AlbumArtSmall.jpg
    │   ├── AlbumArt_{461ACD51-0CB0-45C2-8FAE-AD13D8DDA332}_Large.jpg
    │   ├── AlbumArt_{461ACD51-0CB0-45C2-8FAE-AD13D8DDA332}_Small.jpg
    │   ├── Folder.jpg
    │   ├── Lacuna Coil - Circle.mp3
    │   ├── Lacuna Coil - My Wings.mp3
    │   └── desktop.ini
    ├── desktop.ini
    ├── playList.m3u
    └── playList.xml

5 directories, 36 files


And with this structure it only finds the 11 songs in the 'La Rocca' directory


RE: Music not found - TheDreadPirate - 2024-04-26

La Rocca is also the only one without any playlist files in it. Could that be the cause? Do any of the folders in A-K have playlist files in them?


RE: Music not found - TheDreadPirate - 2024-04-26

Also, omg. I was wondering how you were getting your formatting. Where has "tree" been my whole life?! Loving it.


RE: Music not found - kc1 - 2024-04-27

You may be on to something - I removed the playList.xml/m3u files and all mp3 files were picked up in that test directory

Also tried removing just the playList.xml files on another folder and that also seemed to do the trick

Removed a playlist.xml file from the L-Z directory and now it at least scans ( only finds 7K of the 13K there but that's a good start )

Now moving folders into the test mount point 1 by one to see which mp2 files are being skipped .... should be an enjoyable Weekend

Thanks for your help

re tree - yeah, like all things linux you stumble across lots of utilities when you are trying tyo sort things out - the art is in remembering them all when you need them!