something isn't right.....
as i've activated this plugin without doing other changes, since weeks, i would say my problem seems to be this plugin.
i have this in the logs:
[21-11-15 06:53:16.6351] Slim::Plugin::Extensions::Plugin::_noResponse (476) error fetching https://www.nexus0.net/pub/sw/lmsannounce/repo.xml - Connect timed out: Transport endpoint is not connected
[21-11-15 06:53:38.1918] Slim::Networking::IO::Select::__ANON__ (130) Error: Select task failed calling Slim::Web::HTTP:rocessHTTP: DBIx::Class::Storage:
BI::__ANON__(): DBI Exception: DBD::SQLite::db prepare_cached failed: attempt to fetch on inactive database handle at /lms/Slim/Music/Import.pm line 746
; fh=Slim::Web::HTTP::ClientConn=GLOB(0x55bd25d473d0 )
[21-11-15 06:53:45.3226] Slim::Control::Request::execute (1888) Error: While trying to run function coderef [Slim::Control::Queries::serverstatusQuery]: [DBIx::Class::Storage:BI::__ANON__(): DBI Exception: DBD::SQLite::db prepare_cached failed: attempt to fetch on inactive database handle at /lms/Slim/Music/Import.pm line 746
and LMS isn't responive at all.
i've get this every morning, so i guess it has something to do with the nightly update scan.
I must say, that i have a quite large library.... 85.000 files.....
After restarting LMS, a db scan is triggered and after the scan LMS is working again.
Results 11 to 20 of 20
Thread: [Announce] Use Comment Tag Info
-
2021-11-14, 23:04 #11
- Join Date
- Mar 2011
- Posts
- 257
Last edited by mamema; 2021-11-14 at 23:11.
-
2021-11-15, 04:34 #12
- Join Date
- Jul 2010
- Location
- Oz
- Posts
- 400
The most important question: if you uninstall this plugin (UCTI) does LMS behave normal and stop being unresponsive in the morning?
The first message seems to be a networking problem ("Connect timed out"...) which may be related to the unreponsiveness but probably not to UCTI.
The importer related messages are simply saying: some plugin like UCTI is asking the server if there's an active scanning process but the server can't get this information at the moment because the "database handle" is "inactive". That happens if you restart and immediately trigger a rescan (with the help of some plugin or script), and maybe did a database wipe before. UCTI only asks for this information (stillscanning) when it registers title formats or displays track information (song details page).
So please check the (timestamps of the) log messages before you restart LMS (with the auto-rescan).
And then do your restart/rescan and check the log messages and their timestamp again. Do the importer related messages only show up after the restart/rescan? Do you have a plugin/script enabled that triggers a rescan after every restart? (Plugin updates requires restarts as well.)
Considering that other UCTI users have enabled auto-updating too and haven't reported such a behavior (unresponsive) I'm not convinced that UCTI on its own should have such a terrible effect on your LMS. And I haven't been able to reproduce this so far either.Last edited by AF1; 2021-11-15 at 06:56.
-
2021-11-16, 00:23 #13
- Join Date
- Mar 2011
- Posts
- 257
i've try to deliver better logs. I've disabled your plugin, and everything went back to normal. No problems as described above.
Perhaps it isn't your plugin alone, but a combination of my other running plugins. A wild guess: i've also plugins like custom scan, trackstat, db optimizer running.....
so, now i've reactivated your plugin, trying to get better logs
-
2021-11-16, 08:07 #14
- Join Date
- Jul 2010
- Location
- Oz
- Posts
- 400
Do you have some plugin or script that automatically triggers a database rescan (clear/wipe or only looking for new media?) after every LMS restart? If so, why?
I only rescan my library (clear/wipe) after I've added new tracks or if the filename of the existing ones has changed. So in short: not very often at all.
When LMS restarts there are always some plugins that need to interact with the database when they're initializing and if the database is not available (rescan) there might be problems.
So I usually trigger the rescan manually and certainly never together with a LMS restart. Just take a look at everything automated/scheduled.
The usual way to get to the bottom of this would be to disable all plugins (or at least all those that interact with the database and might (b)lock it) and then reenable one by one. It seems that you certainy have a lot more plugins installed/enabled than I have.
BTW how many browse menus/virtual libraries, title formats and such do you have defined/enabled in UCTI?
-
2021-11-16, 08:49 #15LMS server/study player - LMS 8.3.0 Pi4B 4GB/NanoSound ONE case/pCP 8.1.0 - 75K library, playlists & LMS cache on Sata SSD (ntfs)
Lounge - Pi2/pCP 8.1.0 > HiFiBerry DIGI+ > Topping E30 > AVI DM5
Dining Room - Echo Show 8
Garage - Squeezebox Touch > Edifier
Spares - 1xSB Touch, 1xSB3, 4xRPi, 1xDAC32, 1xCORE32
-
2021-11-16, 10:02 #16
- Join Date
- Mar 2011
- Posts
- 257
not using this plugin.
I have an automatically triggered nightly scan (no erase/full scan - changes only). Why? Because of ongoing changes. :-) running without problems until now.
I can also trigger this via web interface manually, without problems, when UCTI is enabled...... something in the night is happening, which "crashes" LMS. then and only then a database rescan is running after restarting LMS.
during the day, even with manual rescan, i can boot LMS without database rescan happening (UCTI enabled).
As i said: trying to get logs about this nightly problem.....
i have two browse menu searches enabled, which have either two submenus "all albums" and "album artists"Last edited by mamema; 2021-11-16 at 10:07.
-
2021-11-17, 04:37 #17
- Join Date
- Mar 2011
- Posts
- 257
so.......
i have enabled the plugin again, dunno remember if i have made a delete db/full rescan, since first enabling of this plugin. Anyway, after disable/reenable the plugin, the environment is running since two days/nights without issues. So ..... self healing.....
-
2021-11-29, 04:37 #18
- Join Date
- Mar 2011
- Posts
- 257
so, i have made more tests, the plugin is immune against library updates, without delete and complete rescan. But if i do a delete/full scan manually and an "nightly change update" automatically afterwards, LMS hangs up and need to be restarted, which then leads to a rescan at boot time.
solution is, and i dunno why, to let the rescan finish. Disable the plugin. Restart, enable the plugin.
Huh, weird...
-
2021-11-29, 08:55 #19
- Join Date
- Jul 2010
- Location
- Oz
- Posts
- 400
Don't know what's going on there. Just in case it should be related in any way to UCTI's (re)building virtual libraries after a restart I've included a check for missing library or active scanning process that should delay this until the rescan is done. Please try version 1.3.6 (not released, GitHub manual install only). Can't think of anything else right now that I can do on the plugin side.
-
2021-12-03, 10:47 #20
- Join Date
- Mar 2011
- Posts
- 257
several days without issues with ver. 1.36