mirror of
https://github.com/Lidarr/Lidarr.git
synced 2026-03-02 22:56:57 -05:00
Lidarr Deleting Files Before Import #3399
Labels
No labels
Area: API
Area: Database
Area: Db-migration
Area: Download Clients
Area: Extras
Area: Import Lists
Area: Indexer
Area: Metadata API
Area: Notifications
Area: Organizer
Area: Parser
Area: Scanning
Area: Tooling
Area: UI
Area: Unit Tests
Area: Update API
On Hold: MetadataAPI Blocking
Priority: High
Priority: Low
Priority: Medium
Status: Accepted
Status: Cannot Reproduce
Status: Confirmed
Status: Don't Merge
Status: Help Wanted
Status: In Progress
Status: Info Needed
Status: Investigating
Status: Logs Needed
Status: Maybe One Day
Status: Needs Triage
Status: On Hold
Status: Ready for Review
Status: Unlikely
Status: Waiting for OP
Status: Won't Fix
Type: Bug
Type: Documentation
Type: Duplicate
Type: Enhancement
Type: Enhancement
Type: External Bug
Type: Feature Request
Type: Regression
Type: Support
Type: Support.
conflict
conflict
no-conflict
not-pulled
radarr-pull
readarr-pull
sonarr upstream
sonarr-pull
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Lidarr#3399
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sirEgghead on GitHub (Dec 21, 2023).
Is there an existing issue for this?
Current Behavior
Multi-site setup. Download completes in torrent client. Lidarr immediately removes download from the client before rsync pulls the files.
Expected Behavior
Wait until successful import before deleting torrent from client. Radarr works properly with the same setup.
Steps To Reproduce
Environment
What branch are you running?
Master
Trace Logs?
lidarr_trace.txt
Trace Logs have been provided as applicable. Reports may be closed if the required logs are not provided.
trace- that are relevant and show this issue.@sirEgghead commented on GitHub (Dec 21, 2023):
Just some extra info on my settings in case it is needed. In the trace it is mentioned that the import directory doesn't exist, and it is because it doesn't. My rsync schedule doesn't always run before the torrents and data vanish.
@mynameisbogdan commented on GitHub (Dec 21, 2023):
what should I look for in the logs?
you're saying you're using the same setup with other arrs and only with Lidarr you're having issues?
So far I would say this is a support thing, but I would've like to inspect further if there's something missing from Lidarr.
@sirEgghead commented on GitHub (Dec 21, 2023):
Sorry, I meant to note an item that I used for test that got caught in the logs.
2023-12-21 15:15:21.6|Debug|DownloadEventHub|[Bullet for My Valentine - Gravity (Deluxe Edition) (2018)[FLAC]eNJoY-iT] Removing download from Deluge history2023-12-21 15:15:22.2|Debug|DownloadEventHub|[Highly Suspect] Removing download from Deluge historyThese are 2 items near the end of the logs that were removed before I transferred them.
I don't have all *arrs operational just yet, but I do have Radarr running without issue using the same configuration that I posted above. Granted, Radarr will post import error events stating that XYZ doesn't exist and cannot import until rsync pulls the files from my remote site, but it will wait indefinitely until the import is successful before removing the torrent. Lidarr seems to be "removing once completed" regardless of the import state. I'm no expert, so I could certainly be doing something wrong, but I have yet to find out what.
Thank you for your patience in looking into this for me.
@sirEgghead commented on GitHub (Dec 21, 2023):
Just a bit more comparison on one of the items from the trace logs that I noted in the previous post. Though I have to admit that I laughed at the contradiction. 😁
@bakerboy448 commented on GitHub (Dec 21, 2023):
This is mostly environmental config / support issue, not a lidarr bug. rsync syncing after download is not a supported setup for the *Arrs.
https://wiki.servarr.com/lidarr/troubleshooting#remote-path-mapping
Please use Discord for support/questions.
Failed Imports being erroneously treated as successful (i.e. the removal) are covered under https://github.com/Lidarr/Lidarr/issues/2746
@mynameisbogdan commented on GitHub (Dec 21, 2023):
@bakerboy448 Sonarr behaves the same way? 🤔
@bakerboy448 commented on GitHub (Dec 21, 2023):
#2746 covers it. lidarr erroneously treats downloads as successful even if they fail vs. being stuck in queue like radarr/sonarr which is the root of the issue
@mynameisbogdan commented on GitHub (Dec 21, 2023):
Good to know. I'll have to look into it some day.
@sirEgghead commented on GitHub (Dec 21, 2023):
Glad to see there's an open bug for this. A little less glad to see that 2746 is 20 months old, but nevertheless, thank you.
As far as rsync after the download finishes, I'm just working with bad internet over here. Doing what I can. It's not something that I'll address the support community on due to circumstances. I'll use a workaround and build a custom import script until the bug gets some work.
Thanks again and happy holidays.