Plugin losing permissions intermittently?

  • Here's what CP told me in the logs tonight. In this case, a new mkv file was sync'd. CP renamed and copied it into my media library, however it failed to remove the folder & file from the sync library and came back with these errors. This file did not have to be unrar'd. Again this is why I posted this as an intermittent error, in this case the file successfully renamed and copied to my media library but did not delete the source. Other times it un rar's and creates a new folder in my media library but does not move the unrar'd file to the library, and other times it does nothing...


    OMV 1.9 - Lenovo Thinkserver TS140 - Xeon E3-1200 v3 Series w/ 8GB Ram: 3 x 3TB WD RED - AUFS Pool, 1 x 16GB Samsung SSD System Drive
    Plex - Syncthing - Couchpotato - Sonarr - NUT

    Einmal editiert, zuletzt von subzero79 ()

    • Offizieller Beitrag

    Can you replace your init script with this one?




    When you replace it make sure you click on the the right upper corner of the code box here, so no weird characters go in the paste

  • I will try. I'll have to google/teach myself how to do that first, I'm still quite a newb here, I had to look up the definition of daemon and init early :)

    OMV 1.9 - Lenovo Thinkserver TS140 - Xeon E3-1200 v3 Series w/ 8GB Ram: 3 x 3TB WD RED - AUFS Pool, 1 x 16GB Samsung SSD System Drive
    Plex - Syncthing - Couchpotato - Sonarr - NUT

  • Can you replace your init script with this one?



    When you replace it make sure you click on the the right upper corner of the code box here, so no weird characters go in the paste


    Back from searching....


    Do I edit like this: nano /etc/init.d/couchpotato


    and entirely replace everything in that file with your config?

    OMV 1.9 - Lenovo Thinkserver TS140 - Xeon E3-1200 v3 Series w/ 8GB Ram: 3 x 3TB WD RED - AUFS Pool, 1 x 16GB Samsung SSD System Drive
    Plex - Syncthing - Couchpotato - Sonarr - NUT

  • Will do. To be clear, can I do all this via ssh, with web ui running, or do i need to do this from the server itself?

    OMV 1.9 - Lenovo Thinkserver TS140 - Xeon E3-1200 v3 Series w/ 8GB Ram: 3 x 3TB WD RED - AUFS Pool, 1 x 16GB Samsung SSD System Drive
    Plex - Syncthing - Couchpotato - Sonarr - NUT

  • ok I've made the changes and restarted cp, seems to be up and running. I have an MKV file syncing now. I'll report on status in the morning. If that works fine I'll proceed with a rar.


    I almost forgot, thank you very much for your support! I hope I can help contribute soon.

    OMV 1.9 - Lenovo Thinkserver TS140 - Xeon E3-1200 v3 Series w/ 8GB Ram: 3 x 3TB WD RED - AUFS Pool, 1 x 16GB Samsung SSD System Drive
    Plex - Syncthing - Couchpotato - Sonarr - NUT

    Einmal editiert, zuletzt von theory ()

  • The file finished sooner than expected, the exact same scenario happened again. CP created a folder in my media share, CP copied the file to new folder and renamed it, old file and folder in Sync share could not be deleted, permission denied.


    I think I will reset permissions on the Sync folder to 777 and reboot the server. Than I will initiate another mkv file to be downloaded. If that works I'll initiate a rar file.


    Posted at same time as you. I will do the above. BRB


    media/87d2d42c-e3f9-40c6-903e-c56d537bb929/ is my aufs pool. no raid.

    OMV 1.9 - Lenovo Thinkserver TS140 - Xeon E3-1200 v3 Series w/ 8GB Ram: 3 x 3TB WD RED - AUFS Pool, 1 x 16GB Samsung SSD System Drive
    Plex - Syncthing - Couchpotato - Sonarr - NUT

  • Can you post your whole tree structure and permissions? you have to install tree apt-get install tree


    tree /media/87d2d42c-e3f9-40c6-903e-c56d537bb929/ -L 2 -pug


    Also is /media/87d2d42c-e3f9-40c6-903e-c56d537bb929/ a pool? like AUFS, MHDFS or Snapraid?


    I ran the tree command as noted above, the result is a MASSIVE tree structure(25286 directories, 41564 files) with all sorts of plex files. I can't even scroll to the top of the tree... I'm not sure how to show you the whole structure.


    Here's the tree structure for my Sync folder that I was fortunate to see at the bottom of the structure, This is the folder which syncs using Syncthing where CP has the most trouble deleting or unrar-ing files.


    [drwxrwsr-x root users ] Sync
    └── [drwxr-sr-x theory users ] ABC.1080p.BluRay.x264-SECTOR7
    └── [-rw-r--r-- theory users ] ABC.1080.mkv

    OMV 1.9 - Lenovo Thinkserver TS140 - Xeon E3-1200 v3 Series w/ 8GB Ram: 3 x 3TB WD RED - AUFS Pool, 1 x 16GB Samsung SSD System Drive
    Plex - Syncthing - Couchpotato - Sonarr - NUT

  • ~/Sync $ ls -la
    total 4
    drwx------ 3 the0ry the0ry 105 Jul 10 01:41 .
    drwxr-x--- 10 the0ry the0ry 4096 Jul 10 01:41 ..
    drwxrwx--- 2 the0ry the0ry 47 Jul 10 01:41 ABC.1080p.BluRay.x264-SECTOR7
    -rw-r--r-- 1 the0ry the0ry 0 Jul 2 17:17 .stfolder


    ruTorrent is the client on the seedbox.


    I'll look to see how I can join the IRC, I've never been in IRC before.

    OMV 1.9 - Lenovo Thinkserver TS140 - Xeon E3-1200 v3 Series w/ 8GB Ram: 3 x 3TB WD RED - AUFS Pool, 1 x 16GB Samsung SSD System Drive
    Plex - Syncthing - Couchpotato - Sonarr - NUT

  • drwxrwx--- 2 the0ry the0ry 47 Jul 10 01:41 ABC.1080p.BluRay.x264-SECTOR7


    That's the problem, CP can only delete/create where it has permissions. I hate to say it but if you added the users group to user "the0ry" then it should work.


    I am not sure what permissions your "the0ry" users has but you could run CP as that user, this will work for the above error but my create others.


    Zitat

    # user
    RUN_AS=the0ry

    [align=center]banner@1x.jpg
    What I am watching/watched on my Popcorn Hour media player
    omv 2.1.1 stoneburner | 64 bit | omvextrasorg 1.29
    MySQL (Percona[size=8]) | Newznab | Sonarr | CP | HP | NZBget | YAMJ | CUPS

    • Offizieller Beitrag

    We found the problem. He had an option in the remote syncthing seedbox that was ignore permission turned on.
    This prevented rw for group. Syncthing doesn't transfer ownership, but does transfer file mode. So the file should at least be 770 or 660 in the omv server mirroring the permission from the remote server.


    the ownership you mention there is in the remote server seedbox so it doesnt
    matter for couch potato.

  • Good to hear he's fixed the problem and well done to you for helping him find the issue.

    [align=center]banner@1x.jpg
    What I am watching/watched on my Popcorn Hour media player
    omv 2.1.1 stoneburner | 64 bit | omvextrasorg 1.29
    MySQL (Percona[size=8]) | Newznab | Sonarr | CP | HP | NZBget | YAMJ | CUPS

  • With the permission box unchecked, and the init script changed as per subzero79, 1 mkv file was sync'd, renamed, transferred without issue this morning.


    I'm going to proceed with a rar file now and see how that goes.


    Subzero did mention I might run into issues deleting files in samba that cp has created but I'll work on this first before testing that.

    OMV 1.9 - Lenovo Thinkserver TS140 - Xeon E3-1200 v3 Series w/ 8GB Ram: 3 x 3TB WD RED - AUFS Pool, 1 x 16GB Samsung SSD System Drive
    Plex - Syncthing - Couchpotato - Sonarr - NUT

  • I just got my notification email from cp and I saw the file was moved out of my Sync folder. That's all I can tell while I'm away from OMV. It appears to have unrar'd and done everything it should have though. Sending another rar through. So far it looks like tgat script did the trick.


    When I get home ill check the permissions on the files cp created and report back.


    Update: the following rar file seems to have worked as well. I'll confirm when I get home however I think this is up and running now.

    OMV 1.9 - Lenovo Thinkserver TS140 - Xeon E3-1200 v3 Series w/ 8GB Ram: 3 x 3TB WD RED - AUFS Pool, 1 x 16GB Samsung SSD System Drive
    Plex - Syncthing - Couchpotato - Sonarr - NUT

    Einmal editiert, zuletzt von theory ()

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!