Discussion Renaming Movie Files with Sonarr = Re-Upload Bug

chrisboote

PG Specialist
Dec 21, 2018
21
6
8
Reactions
6 0 0
#1
PG Version
7.7.7
Server Type
Remote - Dedicated Server
Hi All,

I've noticed that when I used Radarr to rename movie files in bulk using Movie Editor -> Organize; pgblitz re-uploads the entire renamed file.

Instead of Radarr just going and changing the file name, it seems to get picked up by pgblitz and re-uploaded. Or is this because I am pointing my Radarr library to the wrong place? My radarr library points at /unionfs/movies. Is that correct? Everything else seems to work ok, it knows when a movie is downloaded etc by searching that location.

You end up with two files in the movie directory, both the same, just one has been renamed.
 

chrisboote

PG Specialist
Dec 21, 2018
21
6
8
Reactions
6 0 0
#2
Unless this is because Radarr doesn't have sufficient permissions to rename the folders so it's copying it and reuploading with new name? I don't know.. seems a bit crazy.
 

pYTTH

PG 2nd Lieutenant
Tech Lead
Nov 1, 2018
187
62
28
97
127.0.0.1
Reactions
62 0 0
#3
Have a similiar issue. My radarr is doing some strange things. Could not figure out yet whats causing problems but will watch your thread. I have started another thread on that 3 days ago
 

Miguel

PG 2nd Lieutenant
Coder
PG Donor
Feb 6, 2018
194
105
28
Jersey, United Kingdom
Reactions
105 0 0
#4
It's not a bug, if i remember correctly unionfs is set up so that your gdrive/tdrive mount is read only. You can't rename something thats read only so it has to pull it down first and then reupload it. You might be able to get away with editing the unionfs service to set the mount to read write but that may end up causing too many api hits if the mount isn't set up correctly.
 

subse7en

Administrator
Project Manager
Oct 2, 2018
67
26
8
Reactions
26 0 0
#5
Correct, renames w/ sonarr/radarr will cause it to download and reupload b/c of unionfs permissions.

A different way to mass rename is to use Windows, install Google File Stream. Download Advanced Renamer and rename files. GFS will sync up the renames almost instantly.
 

pYTTH

PG 2nd Lieutenant
Tech Lead
Nov 1, 2018
187
62
28
97
127.0.0.1
Reactions
62 0 0
#6
It's not a bug, if i remember correctly unionfs is set up so that your gdrive/tdrive mount is read only. You can't rename something thats read only so it has to pull it down first and then reupload it. You might be able to get away with editing the unionfs service to set the mount to read write but that may end up causing too many api hits if the mount isn't set up correctly.
well, destination dir is /mnt/nzbget/downloads/completed
so basicly the download sits there. radarr goes over it (i've set nzbdrone, don't know if needed or not) to the same path. as for my understanding radarr will take the DL from /mnt/nzbget/downloads/completed - rename it, move it to the destination that is set in the radarr profile -> for example /mnt/unionfs/movies/german/
or am i missing something????
 

Miguel

PG 2nd Lieutenant
Coder
PG Donor
Feb 6, 2018
194
105
28
Jersey, United Kingdom
Reactions
105 0 0
#9
well, destination dir is /mnt/nzbget/downloads/completed
so basicly the download sits there. radarr goes over it (i've set nzbdrone, don't know if needed or not) to the same path. as for my understanding radarr will take the DL from /mnt/nzbget/downloads/completed - rename it, move it to the destination that is set in the radarr profile -> for example /mnt/unionfs/movies/german/
or am i missing something????
Your problem sounds like something completely different.
I don't actually understand what your problem is? Are you saying radarr isn't importing the files to /mnt/unionfs/.......?
If so, what are your root paths set to for those files?
 

pYTTH

PG 2nd Lieutenant
Tech Lead
Nov 1, 2018
187
62
28
97
127.0.0.1
Reactions
62 0 0
#10
Your problem sounds like something completely different.
I don't actually understand what your problem is? Are you saying radarr isn't importing the files to /mnt/unionfs/.......?
If so, what are your root paths set to for those files?
sorry for the late reply

yes, the download was sitting there and not been queried, however, i found now a solution that works for me (partially without sonarr) because i don't know if i will use it in future....

https://plexguide.com/threads/post-your-radarr-settings.3165/post-18914
 
Dec 21, 2018
21
6
8
Reactions
6 0 0
#11
I'm still having this issue, I think.

It's taking around 10 mins to rename files. I wonder if I was to point Radarr path to the Tdrive mount, would i be able to write that way without a re-upload?
 
Dec 21, 2018
21
6
8
Reactions
6 0 0
#12
Also - I have radarr set-up to grab 720p as a minimum for movies and then to keep searching for better copies until it gets a full 1080p copy. Radarr at that point is supposed to go and delete the 720p version.

This works fine in a local environment so I am wondering if the readonly permissions of unionfs are causing an issue. Maybe using the path to TDrive in Radarr would alleviate these issues?
 
Dec 21, 2018
21
6
8
Reactions
6 0 0
#13
Update: Changed the paths in Radarr to use /mnt/tdrive/movies rather than the unionfs directories and all 500+ movies renamed within 5 mins. Working nicely, this seems like the way to go definitely for Radarr, hoping now it will also handle the duplicates and delete the lesser quality versions too! (y):cool:
 

Stryk3r

PG Sergeant
Mod | Tech Lead
Oct 26, 2018
25
6
8
Reactions
6 0 0
#14
Update: Changed the paths in Radarr to use /mnt/tdrive/movies rather than the unionfs directories and all 500+ movies renamed within 5 mins. Working nicely, this seems like the way to go definitely for Radarr, hoping now it will also handle the duplicates and delete the lesser quality versions too! (y):cool:
be aware that by doing this you are bypassing the whole upload script and your files won't copy to /mnt/move and may not upload correctly and/or not use the GDSA keys and risk upload ban.

Admin is literally just fixing the unionfs system as we speak. I would change your paths back and just patiently wait or you risk your files not getting uploaded.
 

plex_noob

PG 2nd Lieutenant
Tech Lead
PG Donor
Oct 1, 2018
155
103
28
Brussels
Reactions
103 0 0
#15
I confirm this is a risky path I wouldn't go either. There is no point having a PlexGuide installation if you skip the whole core engine behind it.