I am running the latest version of Plex Media Server for Mac (version 1.24.1.4931) and loading Plex via the hosted web app (app.plex.tv). My media files are stored on a Synology NAS connected to the Mac via a network bridge.
I am trying to get Sonic Analysis performed on my music library but despite many days, no progress has been made. I have 4745 albums in my library. The status under “Activity” simply shows “Processing 4745 albums”.
Looking through the debug logs and the console there is no indication that Sonic Analysis is running at all. I believe you are supposed to be able to filter by “[MusicAnalysis]” to monitor the progress of this operation, but no instances of this exist in my logs.
Has anyone else experienced the same? I’m bummed out because I was really looking forward to this feature returning…
Just a stab at this as my library did something similar.
set sonic analysis to run as a scheduled task (likely already done)
optimize your library (this will flush cache, remove old bundles, etc. usually once a week)
restart plex application to flush ram.
it should start after a while. it says relatively nothing about what particular album it’s working on (unless you enable debug logs) but there’s no way to manually trigger it aside from changing the scheduled task maintenance window.
There is no indication of any sonic analysis occurring. When you grabbed the logs, you were in the middle of a TV scan, so it appears that there are no music scans in the logs.
The Music scan starts, then is cancelled. Then after a while later Sonic Analysis begins. But it never makes any progress (have waited over 24 hours at one point). And on a few occasions I have seen two identical Sonic Analysis processes under the Activity tab in Plex (both stuck with no progress made).
Aug 26, 2021 14:26:52.007 [0x305ebf000] ERROR - [MusicAnalysis] SQLITE3:(nil), 1, no such column: blob_type in "select id from blobs where linked_type=? and linked_id=? and blob_type=?"
Aug 26, 2021 14:26:52.007 [0x305ebf000] ERROR - [MusicAnalysis] Exception inside transaction (inside=1) (/data/jenkins/server/1784943550/Library/BlobDatabase.cpp:65): sqlite3_statement_backend::prepare: no such column: blob_type for SQL: select id from blobs where linked_type=? and linked_id=? and blob_type=?
Fascinating, did you ever run a beta/weird version of the server? Your database schema appears to be out of whack.
Your blobs table (in com.plexapp.plugins.library.blobs.db) can be fixed by the following SQL if you’re so inclined:
ALTER TABLE 'blobs' add 'linked_guid' varchar(255);
CREATE UNIQUE INDEX 'index_blobs_on_linked_type_linked_guid' ON 'blobs' ('linked_type', 'linked_guid');
Any chance I can get your help on my similar issue? My SA has been stuck in for 2 days now and I’m out of ideas to try. I can’t figure out how to scrap it and just start it over, either.
Looks like this has resulted in many more errors about the database being corrupted. I’ll have to attempt a repair of the database. Hopefully I can start over but somehow migrate over the watched status of everything. Thanks for your help!
Aug 29, 2021 21:35:20.196 [14592] DEBUG - MusicAnaysis: Analyzing 2388 albums in section 9.
Aug 29, 2021 21:35:20.196 [14592] DEBUG - Activity: updated activity ac0d93cc-745e-4464-a0e9-35c37eec51b3 - completed 0.0% - Sonic Analysis
Aug 29, 2021 21:35:20.204 [14592] ERROR - Thread: Uncaught exception running async task which was spawned by thread 4684: Cannot convert data to std::tm.
I’m not 100% sure what that error is related to, I’m asking around.
Please advise how we can verify the SOnic Analysis IS or IS NOT working in the background even before its completed as I know it can day days depending on server CPU and server uptime etc… but I want to know its actuallyt doing somethingf. is there a file that is created on a file path that I can check to know its working or what? I turned it on but now what?..
please advise as if it takes days to complete we dont want to wait and then be dissapointed when it did nothing and we didnt have a chance to know with a warning or email or notice somehow to fix something