Sonarr - can't move/rename files Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
beachbum0727
Posts: 6
Joined: Thu Oct 24, 2019 8:35 pm

Re: Sonarr - can't move/rename files

Post by beachbum0727 »

Hello everyone,

So I see this issue still persists. Well here is my scenario.

1- I have a raspberry pi 3b+ running stretch. I used minimal install and used scripts to install sonarr, radarr and deluge.. once file is downloaded it moves it to my Linux Plex server no problem.

2- Raspberry 3b+ and Raspberry pi 4 running Buster. Installed using diet pi. Installed all apps using dietpi. Once file it’s downloaded it remains as partial when being moved to my new MacOS plex server. The result is same when moving to the Linux plex server. File remains as “partial”.
I found that “drive manager” mounts network drives with 0700 permissions so I changed it to 0755 on fstab. Result is same. Owner of mounted drive is dietpi:dietpi and permissions are 0755.
Here is the kicker.. I can log in to the pi and issue command to copy or rsync the file and it copies just fine to both macOS and Linux smb shares. It’s obvious the problem comes from the dietpi radarr and sonarr versions.
My next step is to use a different a microSD and load minimal buster and load all apps manually. It’s a lot of work but I have been moving files manually since on dietpi for the last couple of months.

Any thoughts on this ?
User avatar
finch_6
Posts: 37
Joined: Tue Sep 04, 2018 7:21 pm

Re: Sonarr - can't move/rename files

Post by finch_6 »

Hi all,

I am having the same issue as the OP.

Except I have a USB 3.0 hard drive plugged into the pi (running this on a new pi setup)

Code: Select all

DietPi v6.30.0 : 16:45 - Thu 28/05/20
 ─────────────────────────────────────────────────────
 - Device model : RPi 4 Model B (armv7l)
Is this still a mono issue?
I have tried changing ownership to "dietpi" from "root", but I cannot change the ownership or permissions for some reason...

Any help would be truly appreciated, as this is really killing my vibe...
DietPi on a Raspberry Pi 3 B+ running:
- Sonarr
- Deluge
- Jackett
User avatar
Joulinar
Posts: 2546
Joined: Sat Nov 16, 2019 12:49 am

Re: Sonarr - can't move/rename files

Post by Joulinar »

Hi,

best to my knowlage the mono bug is applicable for file systems that does not support UNIX permissions. So question would be what file system format your device is using? If it's ext4, we could check for permissions and ownership on the drive.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
finch_6
Posts: 37
Joined: Tue Sep 04, 2018 7:21 pm

Re: Sonarr - can't move/rename files

Post by finch_6 »

Joulinar wrote: Thu May 28, 2020 7:25 pm Hi,

best to my knowlage the mono bug is applicable for file systems that does not support UNIX permissions. So question would be what file system format your device is using? If it's ext4, we could check for permissions and ownership on the drive.
Damn, I was meant to put that in my post...

this is from DietPi-Drive_Manager

Code: Select all

│  /mnt/8tb          : /dev/sda2 | exfat | Capacity: 7.3T

So its exfat, where do I go to from here?
DietPi on a Raspberry Pi 3 B+ running:
- Sonarr
- Deluge
- Jackett
User avatar
Joulinar
Posts: 2546
Joined: Sat Nov 16, 2019 12:49 am

Re: Sonarr - can't move/rename files

Post by Joulinar »

hmm exFAT, as an extension of FAT and not capable of storing discretionary access control metadata. If possible, you should think on re-formting your disk with ext4. But you would need to backup all your data before.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
finch_6
Posts: 37
Joined: Tue Sep 04, 2018 7:21 pm

Re: Sonarr - can't move/rename files

Post by finch_6 »

Joulinar wrote: Thu May 28, 2020 9:16 pm hmm exFAT, as an extension of FAT and not capable of storing discretionary access control metadata. If possible, you should think on re-formting your disk with ext4. But you would need to backup all your data before.
@Joulinar, perfect, thanks for the info. I have 2 setups with this same issue. Luckily one of the setups has a BRAND NEW hard drice and I can reformat that one and see how I go from there...

Will keep you posted.
DietPi on a Raspberry Pi 3 B+ running:
- Sonarr
- Deluge
- Jackett
User avatar
Joulinar
Posts: 2546
Joined: Sat Nov 16, 2019 12:49 am

Re: Sonarr - can't move/rename files

Post by Joulinar »

ok let's see how it behave with an ext4 disk
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
finch_6
Posts: 37
Joined: Tue Sep 04, 2018 7:21 pm

Re: Sonarr - can't move/rename files

Post by finch_6 »

Joulinar wrote: Fri May 29, 2020 7:50 pm ok let's see how it behave with an ext4 disk
@Joulinar, that worked... All sorted :D

Thanks so much!
DietPi on a Raspberry Pi 3 B+ running:
- Sonarr
- Deluge
- Jackett
User avatar
Joulinar
Posts: 2546
Joined: Sat Nov 16, 2019 12:49 am

Re: Sonarr - can't move/rename files

Post by Joulinar »

thx for confirmation
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
ainuke
Posts: 14
Joined: Tue Jun 09, 2020 8:44 pm

Re: Sonarr - can't move/rename files

Post by ainuke »

Same problem as OP.
Pi 4 with SSD formatted in ext4 (not the problem) exporting completed files to Windows server.
SMB shares set up through dietpi config.

Using Sonarr or Radarr to export/rename files to SMB shares, they get a "failed to import" error, and a ~partial file is located in the destination folder. Sonarr/Radarr are able to create the destination folder on the SMB share.

I had the same problem on a Sonarr install that I did the manual way (raspbian+mono+sonarr v2.x) until I installed mono v3, which uses Mono v5 instead of v6.

I LOVE how easy installing everything with DietPi is (fresh install), except that everything is installed with Mono v6, which is broken for me.
I have uninstalled Mono, but in order to get it completely gone, I have to:
sudo apt-get --purge remove mono-*
sudo rm -rf /etc/mono
sudo rm -rf /usr/lib/mono
sudo apt --purge autoremove && sudo apt clean

I can then install Mono v5.20 with a revised sources.list. If I don't do the above, the Mono install fails because it's looking for v6 in the v5 repo that I've specified.

UNFORTUNATELY, all these steps completely bork the sonarr install, and I'm stuck reinstalling it. Probably Radarr as well, I haven't checked. If I manually reinstall Sonarr rebuilding the repository and using apt-get to install, I have no idea what settings (user,group,permissions) that DietPi used originally to install.
If I reinstall through DietPi console, it overwrites the Mono v5 install with v6 and I'm back to square one.

Just to be clear, all the moving parts were functioning properly, from Radarr reading my library on SMB share, adding movie, finding and sending nzb to SABnzbd, downloading, right up to the Mono v6 refusal to export the file to SMB share.

Is there a way to alter the DietPi install scripts to not overwrite the Mono source.list? As it stands, it kills the original one with the v5 repo and creates an new one with just the current stable version repo.

So very frustrated by this...
Official Pi4 4GB
LoveRPi POE HAT, ArgonOne Fan HAT, WD SSD over USB3
SAB, Sonarr, Radarr, Lidarr, Deluge, PIA-VPN

Official Pi4 4GB - attempting Mine OS

"The mistakes you learn from don't have to be your own."
Post Reply