Discussion Renaming Movie Files with Sonarr = Re-Upload Bug

chrisboote

Blitz 2nd Class
Original poster
31
4
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

Blitz 2nd Class
Original poster
31
4
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.
 

Miguel

Blitz Sergeant
Staff
Donor
194
70
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.
 
S

subse7en

Guest
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

Blitz Legioner
Staff
242
82
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

Blitz Sergeant
Staff
Donor
194
70
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?
 
  • Like
Reactions: Admin9705

pYTTH

Blitz Legioner
Staff
242
82
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
 
Assists Greatly with Development Costs

chrisboote

Blitz 2nd Class
Original poster
31
4
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?
 

chrisboote

Blitz 2nd Class
Original poster
31
4
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?
 

chrisboote

Blitz 2nd Class
Original poster
31
4
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

Blitz 1st Class
Staff
51
15
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

Blitz Sergeant
Staff
Donor
195
88
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.
 

chrisboote

Blitz 2nd Class
Original poster
31
4
Why would my files not upload? Radarr doesn’t stipulate where files are downloaded to, NZBget does.
 

Stryk3r

Blitz 1st Class
Staff
51
15
because in order for files to upload they need to go into /mnt/move which are then processed by an upload script, |The /mnt/move directory is part of the unionsfs system you are bypassing by saving directly to /mnt/tdrive. This union filesystem is how Plexguide is designed. But if you want to bypass what people are telling, that's your call. You'll see when you're files don't upload properly.
 

plex_noob

Blitz Sergeant
Staff
Donor
195
88
This is not completely correct. Your files will upload and maybe faster than with Pg but it won't be throttled meaning that if you exceed you daily quota you will be banned for 24h hours. In fact, nzbget does not know how to handle the files he downloads. It simply put it in a directory defined thanks to a tag provided by radarr and sonarr. Then radarr and sonarr processe the files and pgmove or pgblitz take care of the uploading.
 

chrisboote

Blitz 2nd Class
Original poster
31
4
because in order for files to upload they need to go into /mnt/move which are then processed by an upload script, |The /mnt/move directory is part of the unionsfs system you are bypassing by saving directly to /mnt/tdrive. This union filesystem is how Plexguide is designed. But if you want to bypass what people are telling, that's your call. You'll see when you're files don't upload properly.
Stryker, I'm not trying to be smart here. I am genuinely trying to find out exactly why it wouldnt work. Radarr points to /mnt/unionfs/movies but in no shape or form does it decide where content is downloaded to. Does it? I thought that was done by Nzbget.
 

plex_noob

Blitz Sergeant
Staff
Donor
195
88
Radarr points to unionfs which is a combination of remote gdrive (ro) and local /mnt/move ()RW)
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads