mestep

Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by mestep

  1. I had this working great for a few months, but hten the power went out and my unraid server turned off unexpectedly.. since then I haven't been able to get this thing to work well.

     

    I can see and view the files, but then when I use plex to watch a movie, after about 3 minutes it just freezes up. I can see the directories of the files, but can't actually view and of the files. Any idea what is going on? I tried to find some logs but I am having a really hard time finding anything with rclone logs.

     

    On the main unraid page, the CPU's look to be maxed out.. but opening up a terminal and running htop, they are at about 10%. Not sure if this has anything to do with it.

     

     

     

    My scripts are taken directly from the github. 

  2. 12 hours ago, endiz said:

     

     

    try this in the container:

     

    
    chmod +x /config/Library/Application\ Support/Plex\ Media\ Server/Plex\ Transcoder

    This is why I am not a programmer. I think I have it right in my head but I was running that script from the library folder, so I was chmodding a file that was in the wrong location. I feel pretty dumb, lol.

     

    Anyway, is there a way to be able to run the nvidia_dec.sh from the user scripts plugin that will interface with the Plex docker?

  3. This is what I have in my "Plex Transcoder" file in /appdata/PlexMediaServer/Library/Application Support/Plex Media Server

     

    #!/bin/sh
    /usr/lib/plexmediaserver/Plex\ Transcoder2 -hwaccel nvdec "$@"

     and in my nvidia_dec.sh

     

    #!/bin/sh
    mv /usr/lib/plexmediaserver/Plex\ Transcoder /usr/lib/plexmediaserver/Plex\ Transcoder2
    cp /config/Library/Application\ Support/Plex\ Media\ Server/Plex\ Transcoder /usr/lib/plexmediaserver/
    chmod +x Plex\ Transcoder
    chmod +x Plex\ Transcoder2

     

    I don't know how to run the script through unraid front end, but I ran it when I got in the container... still isn't working.

     

    Am I missing something? I am running Version 1.15.0.659

  4. 58 minutes ago, hus2020 said:

    I faced the same issue. The problem was the bash script was not marked executable. Try to chmod +x for both Plex Transcoder and Plex Transcoder 2

    I honestly am not too good at linux. I did everything typing in from the command line through the docker. I am not sure how to get the bash script setup.

     

    I do have the userscripts plugin, but I just don't know how to get it to interface within a docker container.

     

     

  5. NVENC would make this great. it is using ffmpeg, so if I pass through the gpu credentials to the docker, would unmanic be able to take advantage?

     

    Currently I just have a 2core g3258 cpu, so converting to h265 using cpu only would not be efficient at all.

     

    I am getting a GTX1050 in today, so I should be able to use it for Plex transcoding, it would just be nice to be able to take advantage of it through unmanic as well.

     

  6. 4 hours ago, DZMM said:

    Not sure what's going wrong.  Does your cleanup script look like this?  (i use a teamdrive)

     

    Mine is basically the same. I am not using teamdrive:

     

     

    #!/bin/bash
    touch /mnt/user/appdata/other/rclone/rclone_mount_cleanup
    ################### Clean-up UnionFS Folder  #########################
    echo "$(date "+%d.%m.%Y %T") INFO: starting unionfs cleanup."
    find /mnt/user/mount_unionfs/google_vfs/.unionfs -name '*_HIDDEN~' | while read line; do
    oldPath=${line#/mnt/user/mount_unionfs/google_vfs/.unionfs}
    newPath=/mnt/user/mount_rclone/google_vfs${oldPath%_HIDDEN~}
    rm "$newPath"
    rm "$line"
    done
    find "/mnt/user/mount_unionfs/google_vfs/.unionfs" -mindepth 1 -type d -empty -delete
    rm /mnt/user/appdata/other/rclone/rclone_mount_cleanup
    exit

    I delete the "test" folder in the root of mount_unionfs/google_vfs/ and run the script, this is the log:

    15.02.2019 15:37:19 INFO: starting unionfs cleanup.
    rm: cannot remove '/mnt/user/mount_rclone/google_vfs/test': Is a directory
    rm: cannot remove '/mnt/user/mount_unionfs/google_vfs/.unionfs/test_HIDDEN~': Is a directory
    Script Finished Fri, 15 Feb 2019 15:37:19 -0500
    
    Full logs for this script are available at /tmp/user.scripts/tmpScripts/rclone_cleanup/log.txt

     

    I think it is a permissions issue, but I don't know enough about linux to figure it out.

  7. Alright, I think I finally understand everything now. Thank you for all your help!

     

    It just took me too long to understand the simple concept of:

     

    mount_rclone = cloud files

    rclone_upload = local files

    mount_unionfs = combines mount_rclone and rclone_upload

     

    One final thing. I saw someone post this earlier, but never got a definitive answer. The cleanup script isn't working:

     

    rm: cannot remove '/mnt/user/mount_rclone/google_vfs/4k Movies/FOLDER': Is a directory
    rm: cannot remove '/mnt/user/mount_unionfs/google_vfs/.unionfs/4k_ Movies/FOLDER_HIDDEN~': Is a directory

     

    Not sure what is going wrong with it.  It deletes the files but leaves the directories.

     

  8. 7 hours ago, Kaizac said:

    The union folder shows both your cloud files as your local files (which are in your upload folder) so it's not moving anything to the union since the union does not contain any files itself. Upload of your local files is done through the upload script. So if that one runs you know it's uploading. And if you want to see how much files are still stored locally you can just check the rclone_upload folder.

     

    I don't mean to sound stupid or anything. If I put stuff in the union folder instead of the upload folder, it will still get uploaded to the cloud, right? Right now I have sabnzbd set to download to the upload folder, can/should I have it set to download to union?

  9. i think i got it working, will have to take a little to check to make sure.

     

    So the rclone_unionfs folder is where I will point Plex/Sonarr to.

     

    Sonarr download folder and whatever else I want to upload to gdrive will be the rclone_upload folder.

     

    When it finishing syncing, the files will appear in the unionfs folder, but they are dummy files taking no space on my actual unraid server.

     

    After uploading, the files in rclone_upload folder will be deleted.

     

    Do I have this correct?