mirror of
https://github.com/Radarr/Radarr.git
synced 2026-03-02 22:57:34 -05:00
Batch root folder change with file move updates the movie location before the files are moved #5527
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
On Hold: MetadataAPI Blocking
On Hold: MetadataAPI Blocking
Priority: High
Priority: Low
Priority: Medium
Status: Accepted
Status: Cannot Reproduce
Status: Confirmed
Status: Help Wanted
Status: In Progress
Status: Indexer - need invite
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: External Bug
Type: Feature Request
Type: Regression
Type: Support
Type: Support.
conflict
lidarr-pull
no-conflict
not-pulled
readarr-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/Radarr#5527
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 @mathieugfortin on GitHub (Feb 2, 2021).
When doing a batch movie root folder change, the movie root folder is changed immediately but the file move is only queued, not done.
If the queue is long, there is a time where the UI thinks the movie is in path /new while the file is in path /old. During that time, refreshes cause problems. More importantly, if radarr crashes (caused by a server problem in my case) you end up with a bunch of movies that exist in the old path but that radarr can't find anymore.
The DB update should happen after the file move is done.
To Reproduce
Expected behavior
Movie path should point to the old path until the files are finished copying.
Platform Information (please complete the following information):
AB#680
@stale[bot] commented on GitHub (Jun 25, 2021):
This issue has been automatically marked as stale because it has not had recent activity. Please verify that this is still an issue with the latest version of Radarr and report back. Otherwise this issue will be closed.
@ghost commented on GitHub (Aug 12, 2021):
This should be done one file at a time. eg
It should NOT be done as 1) Move all the files 2) Update the DB, since it will break again if interrupted!
Right now, if anything gets interrupted with bulk moves (20+), folders disappear from the hard drive and cannot be found either in the old and new locations, yet the DB has them listed as "Downloaded" in the 'new' location but no h/d folders - Radarr is deleting the Movie from the h/d from the old location and not moving them anyhow.
@bakerboy448 commented on GitHub (Aug 12, 2021):
Agree; this is an issue inherited from Sonarr and the concept of what you suggest is reasonable.
Trace logs? I could see this if one is shutting down the system literally mid copy, but don't think it's something radarr would be doing given every file move is a copy then delete or atomic move
@stale[bot] commented on GitHub (Jan 8, 2022):
This issue has been automatically marked as stale because it has not had recent activity. Please verify that this is still an issue with the latest version of Radarr and report back. Otherwise this issue will be closed.
@OmniTitan commented on GitHub (Nov 28, 2023):
This remaing an issue and is occurring on my instance.
@bakerboy448 commented on GitHub (Nov 28, 2023):
Version numbers are required/useful when saying issues still occur
@Sternpaul commented on GitHub (Jan 25, 2025):
Still an issue in 5.17.2.9580, this is very annoying when having a long queue, especially when one drive is full. Please fix asap
@bakerboy448 commented on GitHub (Jan 25, 2025):
The primary development team is engaged in over five applications, including Lidarr, Prowlarr, Radarr, Readarr, Whisparr, and Sonarr. Currently, there is approximately one active developer contributing to these projects, with none of the contributors working on them full-time. Additionally, all members involved, whether in development or support roles, are volunteers and do not receive compensation for their contributions. Each team member balances their commitments alongside full-time jobs, family responsibilities, and other personal obligations.
As a result, the list of tasks to be completed across these projects, along with the various backends and modules, is extensive, while the available time for addressing these tasks is limited.
@Sternpaul commented on GitHub (Jan 25, 2025):
This problem probably exists over the whole range of arrs and is not Radarr specific. I guess 4 years after the issue has been raised the first time, one could write "asap"...