Files not being added to library 17.1

Hey everyone, I’m new to OSMC, love it for the most part except that I can’t seem to get any of my files stored on the SD card on my pi to load into the Library. I feel like I’m generally pretty capable of figuring these things out but this one has me stumped. I’ve just spent +5 hours trying to get it working with no luck.

Tried multiple file locations, setup a new OSMC profile, different file formats (.mp3, .mp4, .m4a) and nothing seems to work. I can play the files if I select them manually but they are unavailable in the library/party mode, etc.

I’ve searched all the forums I could find and don’t have a solution, I’m hoping you guys can help me figure it out.

Below are the logs from the moment I click “Ok” when adding a new source to music and saying yes to updating library.

osmc@pi:~/.kodi/userdata$ kodi --version
17.1 Media Center Kodi
Copyright (C) 2005-2013 Team Kodi - http://kodi.tv



18:56:55.182 T:1958257584   DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0
18:56:55.282 T:1958257584   DEBUG: OnKey: return (0xf00d) pressed, action is Select
18:56:55.284 T:1958257584   DEBUG: ------ Window Init (DialogConfirm.xml) ------
18:56:55.561 T:1958257584   DEBUG: ------ Window Deinit (DialogMediaSource.xml) ------
18:56:55.697 T:1616901104   DEBUG: [service.watchdog] [event] <modified> <u'/home/osmc/.kodi/temp/kodi.log'>
18:57:00.982 T:1958257584   DEBUG: Previous line repeats 3 times.
18:57:00.982 T:1958257584   DEBUG: Keyboard: scancode: 0x69, sym: 0x0114, unicode: 0x0000, modifier: 0x0
18:57:00.983 T:1958257584   DEBUG: OnKey: left (0xf082) pressed, action is Left
18:57:01.099 T:1958257584   DEBUG: Keyboard: scancode: 0x69, sym: 0x0114, unicode: 0x0000, modifier: 0x0
18:57:01.513 T:1616901104   DEBUG: [service.watchdog] [event] <modified> <u'/home/osmc/.kodi/temp/kodi.log'>
18:57:01.549 T:1958257584   DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0
18:57:01.629 T:1616901104   DEBUG: [service.watchdog] [event] <modified> <u'/home/osmc/.kodi/temp/kodi.log'>
18:57:01.632 T:1958257584   DEBUG: OnKey: return (0xf00d) pressed, action is Select
18:57:01.633 T:1958257584   DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0
18:57:01.878 T:1958257584   DEBUG: ------ Window Deinit (DialogConfirm.xml) ------
18:57:01.882 T:1633678320   DEBUG: Thread MusicInfoScanner start, auto delete: false
18:57:01.882 T:1958257584   DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0
18:57:01.883 T:1958249456   DEBUG: CAnnouncementManager - Announcement: OnScanStarted from xbmc
18:57:01.884 T:1958249456   DEBUG: GOT ANNOUNCEMENT, type: 32, from xbmc, message OnScanStarted
18:57:01.918 T:1958257584   DEBUG: CGUIMediaWindow::GetDirectory (sources://music/)
18:57:01.919 T:1958257584   DEBUG:   ParentPath = [sources://music/]
18:57:01.928 T:1958257584 WARNING: CreateLoader - unsupported protocol(sources) in sources://music.tbn
18:57:01.930 T:1958257584   DEBUG: RetrieveMusicInfo() took 0 msec
18:57:01.946 T:1667232752   DEBUG: Thread BackgroundLoader start, auto delete: false
18:57:01.948 T:1958257584   DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0
18:57:01.963 T:1667232752   DEBUG: Thread BackgroundLoader 1667232752 terminating
18:57:01.965 T:1958257584   DEBUG: ------ Window Init (DialogExtendedProgressBar.xml) ------
18:57:01.966 T:1633678320   DEBUG: Process - Starting scan
18:57:01.966 T:1667232752   DEBUG: Thread MusicFileCounter start, auto delete: false
18:57:01.971 T:1667232752   DEBUG: Thread MusicFileCounter 1667232752 terminating
18:57:01.973 T:1633678320   DEBUG: DoScan Scanning dir '/home/osmc/Movies/' as not in the database
18:57:02.049 T:1616901104   DEBUG: [service.watchdog] [event] <modified> <u'/home/osmc/.kodi/temp/kodi.log'>
18:57:02.418 T:1616901104   DEBUG: Previous line repeats 5 times.
18:57:03.710 T:1616901104   DEBUG: [service.watchdog] [event] <modified> <u'/home/osmc/.kodi/userdata/sources.xml'>
18:57:03.717 T:1616901104   DEBUG: [service.watchdog] [event] <modified> <u'/home/osmc/.kodi/temp/kodi.log'>
18:57:03.721 T:1616901104   DEBUG: [service.watchdog] [event] <created> <u'/home/osmc/.kodi/userdata/Database/MyMusic60.db-journal'>
18:57:03.721 T:1616901104   DEBUG: [service.watchdog] [event] skipping <created> <u'/home/osmc/.kodi/userdata/Database/MyMusic60.db-journal'>
18:57:03.722 T:1616901104   DEBUG: [service.watchdog] [event] <modified> <u'/home/osmc/.kodi/userdata/Database'>
18:57:03.722 T:1616901104   DEBUG: [service.watchdog] [event] <modified> <u'/home/osmc/.kodi/userdata/Database/MyMusic60.db-journal'>
18:57:03.723 T:1616901104   DEBUG: [service.watchdog] [event] <modified> <u'/home/osmc/.kodi/temp/kodi.log'>
18:57:04.241 T:1616901104   DEBUG: Previous line repeats 1 times.
18:57:04.241 T:1616901104   DEBUG: [service.watchdog] [event] <modified> <u'/home/osmc/.kodi/userdata/Database/MyMusic60.db'>
18:57:04.241 T:1616901104   DEBUG: [service.watchdog] [event] <modified> <u'/home/osmc/.kodi/temp/kodi.log'>
18:57:06.079 T:1616901104   DEBUG: Previous line repeats 1 times.
18:57:06.079 T:1616901104   DEBUG: [service.watchdog] [event] <deleted> <u'/home/osmc/.kodi/userdata/Database/MyMusic60.db-journal'>
18:57:06.080 T:1616901104   DEBUG: [service.watchdog] [event] skipping <deleted> <u'/home/osmc/.kodi/userdata/Database/MyMusic60.db-journal'>
18:57:06.081 T:1616901104   DEBUG: [service.watchdog] [event] <modified> <u'/home/osmc/.kodi/userdata/Database'>
18:57:06.082 T:1616901104   DEBUG: [service.watchdog] [event] <created> <u'/home/osmc/.kodi/userdata/Database/MyMusic60.db-journal'>
18:57:06.084 T:1616901104   DEBUG: [service.watchdog] [event] skipping <created> <u'/home/osmc/.kodi/userdata/Database/MyMusic60.db-journal'>
18:57:06.086 T:1616901104   DEBUG: [service.watchdog] [event] <modified> <u'/home/osmc/.kodi/userdata/Database'>
18:57:06.087 T:1616901104   DEBUG: [service.watchdog] [event] <modified> <u'/home/osmc/.kodi/userdata/Database/MyMusic60.db-journal'>
18:57:06.456 T:1616901104   DEBUG: [service.watchdog] [event] <modified> <u'/home/osmc/.kodi/userdata/Database/MyMusic60.db'>
18:57:06.623 T:1616901104   DEBUG: [service.watchdog] [event] <modified> <u'/home/osmc/.kodi/temp/kodi.log'>
18:57:07.746 T:1633678320   DEBUG: Previous line repeats 2 times.
18:57:07.746 T:1633678320  NOTICE: My Music: Scanning for music info using worker thread, operation took 00:05
18:57:07.747 T:1633678320   DEBUG: Process - Finished scan
18:57:07.748 T:1958249456   DEBUG: CAnnouncementManager - Announcement: OnScanFinished from xbmc
18:57:07.748 T:1958249456   DEBUG: GOT ANNOUNCEMENT, type: 32, from xbmc, message OnScanFinished
18:57:07.753 T:1633678320   DEBUG: Thread MusicInfoScanner 1633678320 terminating
18:57:07.766 T:1958257584   DEBUG: CGUIMediaWindow::GetDirectory (sources://music/)
18:57:07.766 T:1958257584   DEBUG:   ParentPath = [sources://music/]
18:57:07.776 T:1958257584 WARNING: CreateLoader - unsupported protocol(sources) in sources://music.tbn
18:57:07.777 T:1958257584   DEBUG: RetrieveMusicInfo() took 0 msec
18:57:07.793 T:1633678320   DEBUG: Thread BackgroundLoader start, auto delete: false
18:57:07.812 T:1633678320   DEBUG: Thread BackgroundLoader 1633678320 terminating
18:57:07.970 T:1958257584   DEBUG: ------ Window Deinit (DialogExtendedProgressBar.xml) ------
18:57:08.273 T:1616901104   DEBUG: [service.watchdog] [event] <deleted> <u'/home/osmc/.kodi/userdata/Database/MyMusic60.db-journal'>
18:57:08.274 T:1616901104   DEBUG: [service.watchdog] [event] skipping <deleted> <u'/home/osmc/.kodi/userdata/Database/MyMusic60.db-journal'>
18:57:08.274 T:1616901104   DEBUG: [service.watchdog] [event] <modified> <u'/home/osmc/.kodi/userdata/Database'>
18:57:08.274 T:1616901104   DEBUG: [service.watchdog] [event] <modified> <u'/home/osmc/.kodi/temp/kodi.log'>

Please provide grab-logs -A

Thanks for the quick reply!

http://paste.osmc.io/ikuzerowuz

Try disabling or removing the watchdog addon, reboot and try again.

I uninstalled all addons including watchdog (by deleting all the files in “~/.kodi/addons” folder.

I forgot to mention I have tried to get this working both using NOOBS and a base install and I’m having the exact same problems. Any chance it could be related to the SD card?

I added 4 more songs (mp3) and tried to add them, still nothing.

Here is an updated version of the logs:

http://paste.osmc.io/nakecikeva

Well SD card always a possibility. But I guess it is more a scanner issue.

  1. How is your folder structure?
  2. How are your file names?
  3. Are the MP3 tagged?
  4. How do you add the source and which scanner have you choosen?
  5. Is your internet connection working error free?

After spending +6 hours trying to get this working I’ve reverted to a cron job and omxplayer (my previous setup).

I was hoping to make use of the kodi remote to manage everything and also Airplay (which coincidentally didn’t work for me either).

Thanks for your attentive support, good luck. I’ll revisit the project next time my SD card dies and I have to set up the pi again!

Why not try to fix this? It’s most likely your filestructure/file naming convention is not proper. Why not answer @fzinken questions so someone can help you?