Sickbeard: Unable to copy file: Operation not permitted

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
lpittman
Newbie
Newbie
Posts: 2
Joined: March 28th, 2017, 2:14 pm

Sickbeard: Unable to copy file: Operation not permitted

Post by lpittman »

Hey everyone,

I have recently installed Plex, SickBeard and Sabnzbd on an Ubuntu VM in a FreeNAS 10 box.

I have mapped my dataset to /mnt/media, which is owned by the media user and media group (816 for both).

Plex is working correctly. However my issue is with SB and/or Sab.

The two are installed correctly and both run from the media user. The file structure is:

Code: Select all

ubuntu@ubuntu-freenas:/home/media$ ls -ahl
total 24K
drwxr-xr-x  6 media media 4.0K Mar 27 06:24 .
drwxr-xr-x  5 root  root  4.0K Mar 27 05:48 ..
drwxr-xr-x  2 media media 4.0K Mar 27 06:26 autoProcessTV
drwxrwxrwx  4 media media 4.0K Mar 27 06:06 Downloads
drwxr-xr-x  4 media media 4.0K Mar 27 19:15 .sabnzbd
drwxrwxr-x 11 media media 4.0K Mar 28 19:23 .sickbeard
My /etc/default/sabnzbdplus :

Code: Select all

USER=media
CONFIG=
HOST=192.168.1.51
PORT=8080
EXTRAOPTS=
/etc/default/sickbeard :

Code: Select all

SB_HOME=/home/media/.sickbeard/
SB_DATA=/home/media/.sickbeard/
SB_USER=media
The media directory is mounted as follows:

Code: Select all

ubuntu@ubuntu-freenas:/mnt$ ls -ahl
total 57K
drwxr-xr-x  3 root  root  4.0K Mar 27 05:25 .
drwxr-xr-x 23 root  root  4.0K Mar 27 19:09 ..
drwxrwxr-x  9 media media   14 Mar 27 06:16 media
ubuntu@ubuntu-freenas:/mnt$
SB and SAB communicate fine and SAB is able to start the download. The file is downloaded as follows:

Code: Select all

ubuntu@ubuntu-freenas:/home/media/Downloads/complete$ ls -ahl
total 12K
drwxrwxrwx 3 media media 4.0K Mar 28 19:52 .
drwxrwxrwx 4 media media 4.0K Mar 27 06:06 ..
drwxr-xr-x 2 media media 4.0K Mar 28 05:07 Alone.S03E08.Of.Feast.and.Famine.720p.HIST.WEBRip.AAC2.0.x264-BTW
But then I get the following error in SickBeard:

Code: Select all

2017-03-28 05:08:18 CP Server Thread-7 :: Unable to copy file /home/media/Downloads/complete/Alone.S03E08.Of.Feast.and.Famine.720p.HIST.WEBRip.AAC2.0.x264-BTW/8a6213f039c24fd8a4872a91e911abf7.mkv to /mnt/media/TV Series/Alone/Season 03/Alone - S03E08 - Of Feast & Famine.mkv: error 1 : Operation not permitted
The file gets created, but not copied as it ends up with a file size of 0:

Code: Select all

ubuntu@ubuntu-freenas:/mnt/media/TV Series/Alone/Season 03$ ls -ahl
total 9.2G
drwxrwxr-x 2 media media   11 Mar 28 05:08 .
drwxrwxr-x 5 media media    5 Dec  9 10:16 ..
-rwxrwxr-x 1 media media 1.5G Dec  9 10:16 Alone - S03E01 - A New Land.mkv
-rwxrwxr-x 1 media media 1.6G Dec 16 22:18 Alone - S03E02 - First Blood.mkv
-rwxrwxr-x 1 media media 1.3G Dec 31 14:24 Alone - S03E03 - Eternal Darkness.mp4
-rwxrwxr-x 1 media media 1.3G Dec 31 14:22 Alone - S03E04 - Outfoxed.mp4
-rwxrwxr-x 1 media media 811M Jan  9 14:20 Alone - S03E05 - The Lone Wolf.mkv
-rwxrwxr-x 1 media media 812M Jan 13 16:09 Alone - S03E06 - Along Came a Spider.mkv
-rwxrwxr-x 1 media media 810M Jan 20 14:58 Alone - S03E07 - Hungry Beasts.mkv
-rwxrwxr-x 1 root  media    0 Mar 28 05:08 Alone - S03E08 - Of Feast & Famine.mkv
-rwxrwxr-x 1 media media 1.4G Feb  5 00:23 Alone - S03E09 - The Point of No Return.mkv
What I do notice here is that the file is created by user "root" and not "media" as I would expect. Could this be part of the problem?

This is where my ability becomes limited and I would appreciate some help on where to look or go from here!

Cheers
lpittman
Newbie
Newbie
Posts: 2
Joined: March 28th, 2017, 2:14 pm

Re: error 1 : Operation not permitted

Post by lpittman »

Further info I have discovered.

If I go into SB and search for the same episode again, which then causes SAB to download it again, but then it works correctly this time, copying the file contents.
Post Reply