Everything posted by Espressomatic
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
Feature complete now on the current 1.9 version, but still need a lot of UI tweaks - as I find time. The move to 2.0 will bring a completely new UI which will drop all the custom controls and windowing I first implemented. This is going to dramatically increase real-estate to display things like data tables and also reduce the time it takes to implement changes that touch the UI. There will be 3 ways/levels to use Limbo's containers too: 1. Limbo Stick only: Themes and small UI tweaks added to Lidarr. 2. Limbo: All the Limbo features without the bulk of the Musicbrainz local database - this means DB work will be slower and throttled by Lidarr, but all the features and overrides are still there. 3. Limbo Plus: This adds the full MusicBrainz database and is the equivalent of how Limbo runs now. I'm doing this to make it easier to maintain/release and to allow prototyping a new UI framework I intend to use for other projects.
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
Limbo 2.0 is going to support Unraid 7 templates and be up on Community Apps. I'm splitting Limbo 2 so that all the Limbo webUI and features live in a single container, then all the database (HEAVY) parts will be entirely optional and live under "Limbo Plus" (hopefully a single container itself) which can be installed alongside the base container. This will happen at some point after the current Compose-based stack is feature complete. And that's getting there. All tabs are now fully populated: Tools, Custom Releases and Downloader. Tweaking UI and validating all functionality now.
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
I'm implementing the UI for the Custom Releases feature and built-in downloader now. They're in the test build and should be rolled out to the stable build at the end of the new week. After that I have some other frozen features to enable in the tools tab and fill out its empty cards. Once the above is done, Limbo provides a full top-to-bottom Lidarr solution for maintenance and downloading. About the only thing missing will be the ability to add a custom release that doesn't yet exist in MusicBrainz. Not sure if I'll add that, as I have plans to release my own app that completely replaces Lidarr and Limbo.
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
Any info? I have an idea for a change that will fix this on your system, but as it'll apply to everyone I'd rather be 100% sure before I do it. :)
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
So far it looks like this may be another timeout situation - at least in part. Then the way the stats are treated, some errors will cause the entire display to zero out. Try this to test and help me validate what I think the problem is. Add this to your .env file: LIMBO_LIDARR_LIBRARY_TOOL_HTTP_TIMEOUT_SECONDS=900 LIMBO_GUNICORN_TIMEOUT_SECONDS=900 LIMBO_GUNICORN_WORKERS=1 Then recreate the stack. Then try these commands and send back the results of each: time curl --max-time 1800 -sS \ -X POST \ http://127.0.0.1:4808/api/v1/config/lidarr-library-tool/refresh | jq . curl -sS \ http://127.0.0.1:4808/api/v1/config/lidarr-library-tool/state | jq '{last_result, component}'
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
No need for refresh. Limbo should query Lidarr regularly to keep that updated. EDIT: I previously wrote "Stick" here by accident. Check status in settings and post a screenshot of that for me.
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
So I gave you the wrong instructions. :) That VAR was incorrectly duplicated in the main stack's .env where it should have only been a note to go and make the edit in Stick's OWN .env. So above you can see the real edit you need to make - in stick's own .env file.
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
Those two tabs are supposed to be blank for now - the backends are done but there's no web UI for them yet. Timeout setting in .env:
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
It uses its own cache, but it's built from Cover Art Archive, Musicbrainz's own archive, hosted at Internet Archive I believe. I don't know whether Lidarr will consider the direct source the same as its cached source - nor if their cache contains modified/resized versions.
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
Yes. If future scans don't see any data changes, there won't be any downloads, including heavy image assets to process. Lidarr's processing generates different asset sizes from the downloads, and I suspect that's what's eating all the memory and core time. The other significant optimization you can make is to go to the Settings -> Metadata -> Setup and Options -> Apple and change the image size - it starts off at a hefty 2500 pixels wide.
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
Lidarr checks resources with a simple DOES NOT EQUAL and if true, it starts an update by downloading the new resources. That means any image that is different than an existing image is downloaded. Even if it's a thumbnail and the original was full sized. That's absolutely stupid. SMH. More importantly, Limbo has a large list of data providers and a priority system. By default, Apple is at the top of the cover images list, so every image will be different than anything that was already in a Lidarr library - previous images from a naked Lidarr are cached Cover Art Archive images. And MORE important is that you may get 2-3MB images replacing old images that were 200KB. So what happens when you have 500k tracks downloading and processing 1-3MB images EACH? This, combined with potentially more concurrent download operations, is what's killing the system. Solutions: Disable Lidarr's refresh Change the Priority order for image data in Limbo Disable Apple image source Give Lidarr less CPU resources and let it finish new image download/processing
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
Let me know how it finishes up.
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
Fixed. Grab the latest stable version, 1.9.922.8993
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
I'm not done testing yet and have a few other hypothesis to check out, including benchmarking against Lidarr's cloud API and image cache. EDIT: I just learned some details about how Lidarr handles refreshes, so I'm likely to come back with a pretty hot "smoking gun" pin-pointing exactly why your 500k+ library is killing your resources.
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
Here's a hypothesis after a lot of digging and some AI consultation to profile the Lidarr behavior... With Limbo as the metadata source, the import work is local and effectively uncapped (not rate limited), so Lidarr will use every core you gave it and keep images/metadata in RAM. 18 cores / 120GB is Lidarr doing that job. So that hypothesis rests on this: Cloud api.lidarr.audio is slow/rate-limited, so Lidarr never gets URL lists fast enough to flood CAA with lookups. Local Musicbrainz removes that bottleneck and Lidarr will then run as many cover downloads as its workers, 18 cores, and WAN allow. That also matches the timeline when I went back to look at your other posts: Weeks in: UI got faster and “Identifying Album” stopped hanging for hours, because Lidarr was filling from a local MB mirror instead of the public metadata API Limbo still timing out on Lidarr’s API is the other direction (575k-track Lidarr UI/API is slow) - and we've addressed this with longer time-out behavior Limbo off → Lidarr at 1–2% even while scanning: scanning is disk/DB. The expensive path is metadata/art refresh against the configured provider. Cloud Lidarr metadata is rate-limited and Limbo isn't Limbo on for a day → cores maxed, then 20‑minute UI and 120GB: an import-list refresh of a huge catalog When you “stop Limbo,” do you also clear Lidarr’s metadata source (turning off the checkboxes does this) or only stop the stack? And which import lists fired? If the source still points at a dead Limbo, Lidarr will spin on timeouts; if it points at live Limbo, you get this unbounded refresh. Here are a few things to do which may pin this down. Try to PAUSE your schedule using the Limbo Stick port for Lidarr: After doing this, you can read potential results: Overlay shows paused, Lidarr restarts, CPU/RAM fall and stay down → the spike was scheduled list/artist/cover work Leave it paused until you can try detuning import lists (interval, don’t refresh existing artists) Resuming with 5‑minute list sync will bring it back Overlay shows paused, Lidarr restarts, CPU stays pinned → not the scheduler Next isolation is metadata provider off in Limbo with the stack still up UI was stuck 20 minutes and you never got the overlay → pause never applied Stick lives in the same Lidarr UI, so you need a restart of the Lidarr container from Unraid Then Pause immediately, or use Stick's CANCEL QUEUED to stop running tasks if the UI comes back Additional testing and debugging: Keep the Limbo stack running, and only change what Lidarr is allowed to fetch. If CPU/RAM collapse, it is Lidarr’s metadata/art client, not Solr/Postgres/indexer sitting on the Xeon. 1. Metadata source A/B (most important test) Leave Unraid Lidarr and the Limbo compose up. In Limbo Settings -> Connections, turn the Lidarr metadata provider off - that clears Lidarr’s metadata URL Don't stop the Limbo stack Watch Lidarr CPU/RAM for a few hours, including an import-list window If it drops to ~1–2% → Lidarr was hammering Limbo as an unbounded local metadata/art source If it stays maxed → look at Stick/proxy or something else inside the Lidarr container, not “Limbo in general” When you previously “stopped Limbo,” we need that same distinction: stack down vs metadata source cleared. If the source still points at a dead Limbo, Lidarr can spin on timeouts and look even worse 2. Import lists (the trigger you already saw, more fine-grained test) With metadata on again: disable import-list sync (or pause Import List Sync under System → Tasks) - Leave Refresh Artist alone at first Spike gone → list refresh is queuing artist/album/cover fetches for a huge catalog Alleviate: turn off auto-sync, stretch the interval, and disable any “update/refresh existing artists from list” (add-only) Don't let lists re-identify the whole 575k library every run 3. Covers vs metadata If lists must stay on: in Lidarr, stop or pause Refresh Artist / media-cover work and watch RAM 40GB → 120GB plus “pulling album art” is image ingest, not Solr You can keep metadata and skip unattended cover refresh 4. One snapshot while it is bad From the Unraid host: docker stats for the Lidarr container vs limbo, search, db, indexer-cron Lidarr System → Tasks (what's Running) Lidarr Settings → Metadata (URL should be Limbo when on, empty/default when off) Mitigation: Keep Limbo for search, but don't let import lists refresh existing artists against Limbo on a short timer Use Limbo metadata for add/identify, not for recrawling a 575k library every day Cap Lidarr CPUs only as a backstop; that hides the queue pressure, it doesn't remove it.
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
I found the issue you just posted about. Nothing to do with excessive memory or CPU pressure, but I'm addressing it now. Musicbrainz doesn't ship with an editor core, and SIR is looking for it, cron goes down, then a crash and restart. It's an upstream Musicbrainz issue, but not seen on a plain mirror install because they don't have automated indexing enabled. Easy fix and will be in the next build sometime later today.
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
You and me both! I have plans for 100% energy generation in the next 2 years, but we're not there yet.
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
Check what I suggested earlier. Look at the work being done in Lidarr and turn off the switches in Limbo. If you can get htop results of the processes consuming the resources that might help.
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
That CPU picture is Lidarr, not Limbo driving Lidarr’s cores. Limbo doesn't scan the library, pin Lidarr workers, or sit in a refresh loop Connecting Limbo sets Lidarr’s metadata source (a config PUT) and then answers metadata HTTP when Lidarr asks Stick only injects UI Library-tool polling reads Lidarr’s API on an interval; it doesn't tell Lidarr to rescan (unless you kick a manual rescan from the Limbo UI) What you're seeing is Lidarr on a huge library: image cache, SQLite/DB, artist/album refresh, disk scans. Pegging 18 cores / ~40GB for a day after Lidarr has been “up again” is Lidarr catching up, not Limbo. The ~38GB Limbo stack is separate, Postgres, Solr, MusicBrainz, API. That's Limbo’s footprint, not Lidarr’s. Defaults can get large (shared buffers, Solr heap). It doesn't explain or affect Lidarr’s CPU usage. Check this: Lidarr System → Tasks / History (Refresh Artist, Rescan folders, RSS). If a full refresh is running, that's the smoking gun. Turning Limbo off won't stop Lidarr if that job is already queued.
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
Also, revert any changes made in compose manager - you can't edit the postgres settings for limbo like that. Also put back any changes you made to your arrs setup. You'll need to leave the Limbo compose settings bone stock. Only the env can be changed and inside it you can see what's allowed to change. Send a copy of the Limbo env in the next reply too.
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
Please don't do anything else, otherwise you're creating a moving target that will be harder for me to pin down and fix. What you mounted as Limbo db is empty (from your previous post): only a data/ folder from Sep 18, and no PG_VERSION. That's why Limbo reports unknown. If you were to let postgres start here, it would init a new empty cluster. Did you set LIMBO_DATA_ROOT before starting at some point? Because it looks like that and the new bind ($LIMBO_DATA_ROOT/pgdata) was created empty, while the old Docker named volume (pgdata) was never copied over. So do the below and give me the output: grep -E 'LIMBO_DATA_ROOT|LIMBO_PGDATA' .env docker compose config | awk '/pgdata|postgresql/' docker volume ls ls -la /mnt/user/appdata/limbo/pgdata 2>/dev/null find /mnt/user/appdata/limbo -name PG_VERSION 2>/dev/null # named volumes that still hold a cluster docker volume ls -q | while read v; do out=$(docker run --rm -v "$v":/v alpine sh -c 'find /v -name PG_VERSION -exec echo {} \; -exec cat {} \;' 2>/dev/null) [ -n "$out" ] && echo "VOLUME $v" && echo "$out" done I'm looking for one of: A PG_VERSION of 16 in a named volume (example, pgdata / limbo_pgdata) → then we can copy that volume into $LIMBO_DATA_ROOT/pgdata, and you can then use UPDATE REQUIRED. PG_VERSION of 18 under data/ or 18/main → *arrs/host Postgres; leave it alone.
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
Limbo shouldn't be affecting Lidarr in that way, but I'll certainly look into it by profiling Lidarr resource usage with Limbo enabled/disabled. At the same time, go to Limbo's Settings, Connections and try toggle OFF both toggles. Limbo is totally disabled at that point as far as connecting with Lidarr.
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
Sorry, I didnt get a chance to give you the steps to remedy. Installing alone won't solve it for you as you'll need a bit of recovery. I'll try to get you that info in the next day or two. I got tied up on a sidequest today...
-
[SUPPORT] Limbo - Tools, Downloader, Metadata Server for Lidarr
Limbo’s database is its own Postgres, not the one your arrs use. They cannot share a data directory. Keep your arrs Postgres 18 as-is. Before doing anything else, from the Limbo folder run: docker compose run --rm --no-deps --entrypoint sh db -c 'ls -la /var/lib/postgresql; echo ---; find /var/lib/postgresql -name PG_VERSION -exec echo {} \; -exec cat {} \;'Send me that output. Do not run ./admin/upgrade-to-postgres18 until we see it.