New Artists not being discovered

Need help? Post your questions here.

Moderator: moderators

New Artists not being discovered

Postby cromnet » Fri Dec 08, 2017 9:07 pm

reposting in correct board, realized I originally posted in FAQ instead of Help

Problem Description: Artists that I have recently added to my library are not being discovered by subsonic. New albums for artists that are already in subsonic are being discovered normally, so it does seem to be working. However the Index does not show artists that I have added at the root level of my subsonic media folder. This problem seemed to start after I upgraded to 6.1.3, I don't add artists every day though so I can't be 100% sure
Steps:
- checked permissions
- changed owner
- restarted service and server
- checked log - no messages during media scan
- ran "clean-up database" - rescanned
- enabled "fast access mode" - rescanned
- disabled "fast access mode" - rescanned

Playback Application and version: Web UI
Subsonic Version: 6.1.3 (build e408c9) – October 31, 2017
Server Version: jetty-6.1.x, java 1.8.0_151, HSQLDB, Linux (129.2 MB / 177.0 MB)
Hardware Platform: Linux, Debian 9 "stretch"
Java Memory Limit: 350MB
Problem Filename: N/A
Output from ffmpeg -i: Not Relevant
Last ten log file lines:

Code: Select all
[2017-12-05 12:10:01,000] INFO MediaScannerService - Scanned media library with 17000 entries.
[2017-12-05 12:10:01,809] INFO MediaScannerService - Scanned media library with 17250 entries.
[2017-12-05 12:10:02,720] INFO MediaScannerService - Scanned media library with 17500 entries.
[2017-12-05 12:10:03,644] INFO MediaScannerService - Scanned media library with 17717 entries.
[2017-12-05 12:10:03,644] INFO MediaScannerService - Marking non-present files.
[2017-12-05 12:10:03,673] INFO MediaScannerService - Marking non-present artists.
[2017-12-05 12:10:03,674] INFO MediaScannerService - Marking non-present albums.
[2017-12-05 12:10:03,695] INFO MediaScannerService - Completed media library scan.
[2017-12-05 12:10:04,125] INFO PlaylistService - Starting playlist import.
[2017-12-05 12:10:04,125] INFO PlaylistService - Completed playlist import.


The log looks normal to me, I looked for a way to increase the verbosity but did not see one. If there is a way please let me know and I will provide the additional detail

thanks all
cromnet
 
Posts: 12
Joined: Thu Dec 13, 2012 7:09 pm

Re: New Artists not being discovered

Postby toolman » Fri Dec 08, 2017 11:04 pm

Are you sure you set permissions right on the newly added folders?
Subsonic will not show any errors in the log files if access is denied.
Did you check if the numbers of songs, albums and artists as found on the About Subsonic page, alter when you add a new folder?
I.ve been running Version 6.1.3 for some time now and I haven't had this problem in a mediacollection of 1 TB.
toolman
 
Posts: 538
Joined: Fri Dec 11, 2009 4:18 pm
Location: Netherlands

Re: New Artists not being discovered

Postby cromnet » Sat Dec 09, 2017 8:31 pm

yes, I verified the permissions and that the user can read the files.

no change on the number of songs, etc
cromnet
 
Posts: 12
Joined: Thu Dec 13, 2012 7:09 pm

Re: New Artists not being discovered

Postby toolman » Sat Dec 09, 2017 9:06 pm

The account that runs the Subsonic service should have unlimited acces to your media folders or Subsonic won't be able to pick up any changes .
If that is all ok, you might have a corrupted database.
toolman
 
Posts: 538
Joined: Fri Dec 11, 2009 4:18 pm
Location: Netherlands

Re: New Artists not being discovered

Postby cromnet » Sun Dec 10, 2017 3:44 am

is there a way to purge the media tables without erasing the user and setting tables? or is it going to be all or nothing thing?
cromnet
 
Posts: 12
Joined: Thu Dec 13, 2012 7:09 pm

Re: New Artists not being discovered

Postby toolman » Sun Dec 10, 2017 11:04 am

You could try to revert to the backup database which resides in subsonic\db.backup which means:
Stop subsonic service.
Rename subsonic.data to subsonic.data.org.
copy subsonic\db.backup\subsonic.data to subsonic\db.
Start the service again.
If the backup turns out to be even in a worse state you can always go back to your org. database.
And than you could try disabling all media folders. Perform a scan, clean up database and populate the mediafolders again. I know it's a lot to do, but if this works you do not lose all your settings and users. You will lose the comments and recently played, recently added and that kind of info.
If that method doesn't work, you will indeed have to delete the database and start from scratch.
toolman
 
Posts: 538
Joined: Fri Dec 11, 2009 4:18 pm
Location: Netherlands

Re: New Artists not being discovered

Postby insleys » Tue Jul 24, 2018 12:41 am

I have this problem too. Did you ever find a solution? I've already tried restoring an old backup of my db from months ago (before I updated to 6.1.3) and that didn't help. I also restored to the db backup from just AFTER the 6.1.3 update and still no joy.

This is driving me insane. Subsonic is getting a bit broken and development seems to have slowed right down, which is frustrating. A music player that doesn't ever find new music is kinda useless.

One thing I have worked out is if you:
- create a new media folder pointing at the ARTIST folder of your new music then rescan, the album is found.
- delete the new folder and it disappears
- rescan without the new folder, the album now appears again!

From using the db.view and running some SQL, I can see that the new artist initially gets a different folder_id (non-zero) but after the final step, it reverts to zero and all is well.

I don't have any permissions issues. Nothing has changed since this worked (and yes, I've double checked).

I even installed a fresh copy of subsonic and db to test with and after the initial scan, new artists were once again never discovered.

I'm running Windows Server 2012R2 and Java 1.8.181 (although I only just updated from .45 - oops!)

Steve.
insleys
 
Posts: 8
Joined: Thu Mar 08, 2012 3:52 pm

Re: New Artists not being discovered

Postby insleys » Thu Jul 26, 2018 2:02 am

FURTHER UPDATE:

I've opened a ticket here: https://sourceforge.net/p/subsonic/bugs/222/ but Sindre doesn't seem active on Sourceforge any more.

Details from the ticket:

Weird behaviour on 6.1.3 of late. When I add new music to an existing album (e.g. one that I'm creating and adding new tracks for mix testing) they show up immediately. However, if I add a new artist/album, they do not, even after using "scan media folders now".

The only way I can get new music to add now is by disabling then deleting the music folder entry in "settings" -> "media folders", scanning, then re-adding the folder and scanning again. Nothing else seems to work.

I have restored an old version of my DB from a time when I know everything worked, but the problem persists.

Extra info:
- Running 6.1.3
- Premium licence
- Windows Server 2012R2 - up to date with all updates

To elaborate after some additional testing, another use case is:

I have a new album for a new artist for which I have no other albums
- I add a new folder at the root of my music folder for the artist and a sub-folder for the album that contains the tracks. Scanning does not update the library with the new album
- I add a new folder for the new artist's album into an EXISTING folder for a different artist. Scanning correctly picks up the new album and correct artist name, despite it being in the wrong folder. Yay tagging.
- I move the folder after it has been detected into a new artist folder, rescan, the album disappears.

I think with multiple tests in different scenarios I have proved conclusively that Subsonic no longer detects new folders sitting at the root of the music library folder. No amount of "touching" to update create/update/accesssed dates forces SS to detect it.

FURTHER UPDATE:

If I manually add an entry into the MEDIA_FILE table in the database through the db.view page using (my specific case example):

insert into media_file values (46015, 'R:\Media\Music\Perturbator', 'R:\Media\Music', 'DIRECTORY', null, null, null, 'Perturbator', null, null, null, null, null, null, false, null, null, null, null, null, 'R:\Media\Music', 0, null, null, 0,0,0,0, true, 5)

...and then re-scan the library, the album that exists in that folder now shows up!!

I think the (potential) bug here is simply that new folders in root music folder are not detected in the scan.
insleys
 
Posts: 8
Joined: Thu Mar 08, 2012 3:52 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 14 guests