danmartyn

Members
  • Posts

    21
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

danmartyn's Achievements

Noob

Noob (1/14)

1

Reputation

  1. Thanks for the help everyone! I ended up needing to change my Docker settings to point at /mnt so that Handbrake could see my name drive for files to convert and my script could see /mnt/user/Media to move things. I also had to change the permissions on the directories as was mentioned. Thanks again for the help.
  2. I'm overriding the Storage to pass in the Handbrake directory, which is on an nvme drive that isn't my cache drive, or part of the array that I use just for Handbrake. Is that going to be an issue for me?
  3. I am running the script from inside the docker. Do I need to do something special to give it access to the array to be able to move the files for me?
  4. I'm not super familiar with scripting, and sort of going off what I can find from Google, so I'm not sure how to find what user the script is running as. But here's the info from what you asked: ls -l /mnt/user/: drwxrwxrwx 1 nobody users 117 Nov 17 2019 Media/ drwxrwxrwx 1 nobody users 111 Jul 10 15:44 appdata/ drwxrwxrwx 1 nobody users 6 Jun 18 14:37 domains/ drwxrwxrwx 1 nobody users 6 Feb 22 2017 isos/ drwxrwxrwx 1 nobody users 35 Feb 22 2017 system/ ls -l /mnt/user/Media/: drwxrwxrwx 1 nobody users 27 Apr 22 23:32 Kids\ Shows/ drwxr-sr-x 1 nobody users 28672 Jul 10 23:03 Movies/ drwxrwxr-x+ 1 nobody users 167 Jul 10 2021 Plex\ Posters/ drwxr-sr-x 1 nobody users 16384 Jun 24 23:34 TV\ Shows/ The directories all existed previously, although the Kids Shows is recent and I forget if I created it from my Mac or Krusader. The other ones were created like 5+ years ago. I've been manually moving things around in Krusader and relying on Hazel running on my Mac to move things, so was just trying to automate that so it can all happen on the server side. Looking at the Movies and TV Show directories, it looks like they don't have write permissions for not the owner, which I assume is what's causing my problem? Do I just need to use chmod in the terminal on /mnt/user/Media/ to change the permissions, or do I need to do it for the Movies and TV Show directories directly? Thanks for the help!
  5. HI All, I'm trying to setup a post_conversion script that moves converted files from the output directory to my array. I have it working to figure out if it's a TV show or Movie and what the destination path should be, but when I hit my mkdir command in the script, I get the following error in the log: mkdir: cannot create directory ‘/mnt/user/Media/TV Shows/Show/Season 1/’: Permission denied This is the script (I left off the top part with the comment and variables being set from the example): if [ "$CONVERSION_STATUS" -eq 0 ]; then #https://stackoverflow.com/a/24900088 # Successful conversion. FILE="${CONVERTED_FILE##*/}" echo "✅ [$FILE]" # Check for show or movie ISTVSHOW=$(echo "$FILE" | egrep '(S[0-9]+E[0-9]+)') if [ -z "$ISTVSHOW" ]; then # MOVIE DESTINATION="/mnt/user/Media/Movies" else # Get Show Name REMOVE=$(echo "$FILE" | egrep -o ' - S[0-9]+E[0-9]+.*$') LENGTH=${#REMOVE} SHOW=$(echo "$FILE" | rev | cut -c $(($LENGTH+1))- | rev) # Get Season Number CLEANED="${REMOVE:4}" SEASON=$((10#$(echo "$CLEANED" | egrep -o '^[0-9]+'))) DESTINATION="/mnt/user/Media/TV Shows/$SHOW/Season $SEASON" fi # Move the file to the destination, making any directories as needed echo "➡️ $DESTINATION/$FILE" mkdir -p "$DESTINATION/" && mv "$FILE" "$DESTINATION" else # Failed conversion. echo "❌ $SOURCE_FILE" fi I'm hoping it's just a simple thing I don't know about to have the right permissions. Any help appreciated!
  6. Hi All, I'm trying to get Handbrake post conversion script to work. I made a script and put it into the hooks folder for Handbrake named post_conversion.sh. It's being run after an encode completes, but it gives an error and not the result I expect. When I run the script from the terminal though, I get the expected output. Any thoughts? Handbrake Info: Docker: jlesage/handbrake Version 1.25.1 Script: CONVERSION_STATUS=$1 CONVERTED_FILE="$2" SOURCE_FILE="$3" PRESET="$4" echo "post-conversion: Status = $CONVERSION_STATUS" echo "post-conversion: Output File = $CONVERTED_FILE" echo "post-conversion: Source File = $SOURCE_FILE" echo "post-conversion: Preset = $PRESET" if [ "$CONVERSION_STATUS" -eq 0 ]; then # Successful conversion. FILE="${CONVERTED_FILE##*/}" echo "✅ [$FILE]" # Check for show or movie REGEX='(.*)( - (S([0-9]+)E[0-9]+))' echo "REGEX = [$REGEX]" if [[ $FILE =~ $REGEX ]]; then SHOW=${BASH_REMATCH[1]} echo "SHOW = [$SHOW]" SEASON=$((10#${BASH_REMATCH[4]})) echo "SEASON = [$SEASON]" DESTINATION="/mnt/user/Media/TV Shows/$SHOW/Season $SEASON" else DESTINATION="/mnt/user/Media/Movies" fi # Move the file to the destination, making any directories as needed echo "➡️ $DESTINATION/$FILE" else # Failed conversion. echo "❌ $SOURCE_FILE" fi Output from Handbrake Logs: [autovideoconverter] Executing post-conversion hook... post-conversion: Status = 0 post-conversion: Output File = /output/Love Island - S08E33 - 1080p.mp4 post-conversion: Source File = /watch/Love Island - S08E33 - 1080p.mp4 post-conversion: Preset = General/Very Fast 1080p30 ✅ [Love Island - S08E33 - 1080p.mp4] REGEX = [(.*)( - (S([0-9]+)E[0-9]+))] sh: Island: unknown operand ➡️ /mnt/user/Media/Movies/Love Island - S08E33 - 1080p.mp4 [autovideoconverter] Post-conversion hook exited with 0 Terminal Testing: Command: `bash /mnt/cache/appdata/HandBrake/hooks/post_conversion.sh 0 "/output/Love Island - S08E33 - 1080p.mp4" "/watch/Love Island - S08E33 - 1080p.mp4" "General/Very Fast 1080p30"` Output: post-conversion: Status = 0 post-conversion: Output File = /output/Love Island - S08E33 - 1080p.mp4 post-conversion: Source File = /watch/Love Island - S08E33 - 1080p.mp4 post-conversion: Preset = General/Very Fast 1080p30 ✅ [Love Island - S08E33 - 1080p.mp4] REGEX = [(.*)( - (S([0-9]+)E[0-9]+))] SHOW = [Love Island] SEASON = [8] ➡️ /mnt/user/Media/TV Shows/Love Island/Season 8/Love Island - S08E33 - 1080p.mp4 Any thoughts on what's wrong with my script?
  7. Hi All, I had an old Unraid server that I've replaced with a new build. I put all 6 of my old WD reds into the new server, along with 2 new reds and 2 nvme drives. I put in the old USB and was able to boot and see all my old disks and things are working fine there. I know that I don't need to preclear the new drives before adding them to the array, but will do that for the stress testing, but I have some questions for the nvme drives: 1) I want to move Plex to run on the nvme drive(s) instead of the array. I know there is stuff out there for how to do that, specifically getting the app data folder moved to cache, but I'm not sure if I want cache? 2) My ultimate goal is to have Plex and Handbrake dockers running on the nvme drives. I want to be able to connect to folders on there from my Mac and drop files in and have Handbrake automatically start converting those files and then move them to appropriate folders after. I'm not looking for help specifically on setting that up yet, unless someone has links to share now, but am looking for advice on whether I should be setting the nvme drives up as cache drives, or if I should be using Unassigned Devices plugin instead. If it is UD, how should I format the drives so I can access them from macOS? 3) Just so I can confirm the process for adding the new red drives, which are larger than all the old drives, I believe this is the process: - preclear the drives (doing it as a stress test, I know it's not specifically needed these days) - stop the array - add both new drives, with one as the new parity and one as a new data drive - move the old parity out of the array - start the array and let it rebuild parity - once done, stop the array and add the old parity drive back into the array as a data drive I think I could skip moving the old parity drive out and just do it in one step, but this would give me a bit of protection in case one of the drives died while building the new parity?
  8. Ok, so it seems like just picking a disk should be ok when transferring new stuff, but for all the stuff I've already transferred, I'll need to go through manually and look for things that didn't transfer properly and fix those my self?
  9. Is it ok for me to just dump files in like that? I've got 3 drives right now, and they are each filling themselves a bit at a time, but I've only got one directory with 2 sub directories in it. Each of the drives shows that, but then for tv shows for example, one drive might have season 1 and one drive might have season 2...
  10. Ok, I've managed to get into the drive. HFS+ does seem to be supported, I needed to rename the partition and it still sporadically shows up in the GUI, but I can see it/access it in mc. My new problem is that my allocation method is set to High Water and so my media is split between all my drives... How do I go about copying a bunch of folders of stuff into the right spot in UnRaid?
  11. Is HFS+ supported? I was having issues transferring files from my externals onto my server and was told to try Unassigned Devices to mount the drive directly to my server. I have done that and the drive shows up, but the only partition it shows is one called EFI. When I use the external on my Mac, it's formatted for HFS+ and only has a single partition. When I refreshed once or twice I saw the partition I expected to see, but when I tried mounting it it refreshed and was gone, and now I haven't seen it since... This is the content of the log file if it helps: Apr 02 14:42:56 Disk 'EFI' removed successfully. Apr 02 14:43:03 Disk 'EFI' is not mounted and cannot be unmounted... Apr 02 14:43:03 Device '' script file not found. 'REMOVE' script not executed. Apr 02 14:43:03 Unmounting disk ''... Apr 02 14:43:03 Unmounting ''... Apr 02 14:43:03 Unmount of '' failed. Error message: umount: undefined mountpoint Apr 02 14:43:04 Since there aren't open files, try to force unmount. Apr 02 14:43:04 Unmounting ''... Apr 02 14:43:04 Unmount of '' failed. Error message: umount: undefined mountpoint Apr 02 14:43:19 Adding disk '/dev/sdf1'... Apr 02 14:43:19 Mount drive command: /sbin/mount -t vfat -o auto,async,noatime,nodiratime,nodev,nosuid,umask=000 '/dev/sdf1' '/mnt/disks/EFI' Apr 02 14:43:19 Successfully mounted '/dev/sdf1' on '/mnt/disks/EFI'. Apr 02 14:43:19 Partition 'EFI' is not set as sharable and will not be shared... Apr 02 14:43:19 Device '/dev/sdf1' script file not found. 'ADD' script not executed. Apr 02 14:44:49 Device '/dev/sdf1' script file not found. 'REMOVE' script not executed. Apr 02 14:44:49 Unmounting disk 'EFI'... Apr 02 14:44:49 Unmounting '/dev/sdf1'... Apr 02 14:44:49 Successfully unmounted '/dev/sdf1' Apr 02 14:44:49 Disk 'EFI' removed successfully. Apr 02 14:46:28 Disk 'EFI' is not mounted and cannot be unmounted... Apr 02 14:46:28 Device '' script file not found. 'REMOVE' script not executed. Apr 02 14:46:28 Unmounting disk ''... Apr 02 14:46:28 Unmounting ''... Apr 02 14:46:28 Unmount of '' failed. Error message: umount: undefined mountpoint Apr 02 14:46:29 Since there aren't open files, try to force unmount. Apr 02 14:46:29 Unmounting ''... Apr 02 14:46:29 Unmount of '' failed. Error message: umount: undefined mountpoint Apr 02 14:50:16 Adding disk '/dev/sdf1'... Apr 02 14:50:16 Mount drive command: /sbin/mount -t vfat -o auto,async,noatime,nodiratime,nodev,nosuid,umask=000 '/dev/sdf1' '/mnt/disks/EFI' Apr 02 14:50:16 Successfully mounted '/dev/sdf1' on '/mnt/disks/EFI'. Apr 02 14:50:16 Partition 'EFI' is not set as sharable and will not be shared... Apr 02 14:50:16 Device '/dev/sdf1' script file not found. 'ADD' script not executed.
  12. Ok, so I installed the Unassigned Drives plugin from here: And I can use mc from terminal when I did the ssh command you said to use. However, when I connect my external drive, in the Main Page, under the Unassigned Drives tab, it shows my drive and that it is mounted. It only shows one /mnt/disks/EFI which is also mounted. Sometimes when I refresh it shows an unmounted partition that is the name of the partition I use when it's attached to my Mac. But when I click on mount, it refreshes and it's gone. If it matters all ym externals are formatted as HFS+...
  13. Is there documentation/tutorials/etc that you could link me to for those? I'm a newbie when it comes to UnRaid, and don't do a lot of stuff in the terminal... Also, I assume I would need to hook the server box up to a monitor and a keyboard and do it from there? Or can I connect the drive and then use the terminal on my Mac?
  14. Hello, I'm in the process of transferring my content from my external hard drives onto my UnRaid server. I'm running Mac OS X Sierra to UnRaid 6.3.2 over a gigabit network. Both machines are hard wired into the network. I'm using ForkLift 3.0.2 to do the transferring. I'm finding though that sometimes a folder of files will all seemingly transfer over fine, no errors or warnings telling me something went wrong and on first glance all the files seem to be there. However, sometimes a file will only be 99% transferred... Right now for media, I can tell if a file was not transferred correctly, because a thumbnail won't be generated for it, then I can find the original on the external and copy it over again and replace the other file and then it works properly. I'm wondering if anyone else has run into similar problems, or if I just need to go through everything manually and check?
  15. I am using a docker, and I think I'm just using the built in version? When I go to the WebUI and then Settings, Server, Remote Access and enable remote, it shows my internal, external and manually specify port all using 32400. This is also what my Mac PMS is setup like, and I originally thought it wasn't working because I had both running at the same time (I'm just getting the UnRaid box setup and things transferred over and figured out). I tried turning off the Mac PMS and modifying the forwarded port on my router to be using my server's IP address instead, but not luck...