Jump to content

Jorgen

Members
  • Content Count

    122
  • Joined

  • Last visited

Community Reputation

14 Good

About Jorgen

  • Rank
    Advanced Member
  • Birthday 02/04/1976

Converted

  • Gender
    Male
  • Location
    Manly, Australia

Recent Profile Visitors

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

  1. Thanks, I’ll start the warranty process. Sent from my iPhone using Tapatalk
  2. Oh just realized that the disk is still under warranty! Would these problems qualify it to be returned under warranty? It's a Seagate 8TB Archive drive (SMR)
  3. One of my disks (disk4) suddenly reported going form 0 to 168 errors for SMART 197 Current_Pending_Sector AND 198 Offline_Uncorrectable, both at the same time. Here's the unraid notification: 2019-09-06 08:38 Unraid Disk 4 SMART health [198] Warning [TOWER] - offline uncorrectable is 168 ST8000AS0002-1NA17Z_Z84102P2 (sdd) warning 2019-09-06 08:38 Unraid Disk 4 SMART health [197] Warning [TOWER] - current pending sector is 168 ST8000AS0002-1NA17Z_Z84102P2 (sdd) warning There wasn't much activity on the array at the time, and nothing is logged in the syslog for that time period. I've run a short and extended SMART self-test. The extended test reported errors: Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Extended offline Completed: read failure 90% 18661 2896134552 # 2 Short offline Completed without error 00% 18631 - Can someone with more experience in this confirm that the disk is indeed on its' last legs and should be replaced immediately? Extended smart report and diagnostics attached, let me know if you need anything else. Thanks in advance ST8000AS0002-1NA17Z_Z84102P2-20190908-0923.txt tower-diagnostics-20190907-2350.zip
  4. Yes there is, on page 175 😉
  5. This is probably not the cause of your problem, but umask is not the same as normal chmod permission. For umask, you want 0000 for most open permissions, 0777 is actually the most restrictive. Also, the “downloads” directory (output) doesn’t exist under /storage/Handbrake according to you screenshots. Not sure if Handbrake can create it for you on the fly, or if you need to create yourself first Sent from my iPhone using Tapatalk
  6. Script is case sensitive, you have the second letter “t” capitalized the wrong way round between the script and your utorrent VM names. Sent from my iPhone using Tapatalk
  7. Enter this command in the unraid terminal and it will give you the last file Handbrake opened for processing: grep Opening /mnt/cache/appdata/HandBrake/log/hb/conversion.log | tail -1 Adjust the path to wherever you have your Handbrake appdata
  8. What’s your run command Sauso? If you run in bridge mode with privileged=off, you also need --cap-add=NET_ADMIN This was missing for me, probably because I’ve just been updating without problems for a long time and am using a very old template. It was causing all sorts of problems until I fixed it. Just a thought, might not be your problem. Sent from my iPhone using Tapatalk
  9. Here you go, just edit with your own watch folder path and set it up on a schedule with User Scripts. The script will first check that the folder exists, then start Handbrake if the folder is not empty. #!/bin/bash # Set the path to the Handbrake watch folder as seen from the Unraid command line WATCH="/mnt/user/Media/Handbrake_hotfolder/watch" if [ -d "$WATCH" ] && [ -n "$(ls -A "/$WATCH")" ]; then docker start HandBrake logger "HandBrake started by User Scripts" fi And here's what I do to stop it once the watch folder is emptied again. I only use the watch folder to process files. Not sure if this is safe to run if you are also processing files via the GUI at the same time. I think it will shut down the container mid-processing in that case.
  10. Yep, I do. I have a script on a cron schedule in User Scripts that checks if the watch folder contains any files once every night. If it does, the script starts the container. Then I use a hook script to shut down the container when the watch folder is empty. See a few posts up for that script. End result is that Handbrake only runs at night, and only when there is work to be done. I can post the start script when I get home tonight if you’re interested? Sent from my iPhone using Tapatalk
  11. Hi @Djoss, saw the notification from github that you added the post_watch_folder_processing hook, thank you so much for that! To test, I pulled down the latest image and added the following post-watch script: #!/bin/sh # # This is an example of a post watch folder processing hook. This script is # always invoked with /bin/sh (shebang ignored). # # The argument of the script is the path to the watch folder. # WATCH_FOLDER=$1 echo "post-watch folder processing: Watch folder = $WATCH_FOLDER" if [ -d "/$WATCH_FOLDER" ] && [ -z "$(ls -A "$WATCH_FOLDER")" ]; then echo "watch folder empty, shutting down" killall -sigterm ghb fi And it worked beautifully: [autovideoconverter] Conversion ended successfully. [autovideoconverter] Removed /watch/movie.mp4'. [autovideoconverter] Watch folder '/watch' processing terminated. [autovideoconverter] Executing post watch folder processing hook... post-watch folder processing: Watch folder = /watch watch folder empty, shutting down [autovideoconverter] Post watch folder processing hook exited with 0 [autovideoconverter] Conversion ended successfully. [autovideoconverter] Removed /watch/movie.mp4'. [autovideoconverter] Watch folder '/watch' processing terminated. [autovideoconverter] Executing post watch folder processing hook... post-watch folder processing: Watch folder = /watch watch folder empty, shutting down [autovideoconverter] Post watch folder processing hook exited with 0 [services.d] stopping services [services.d] stopping app... [services.d] stopping x11vnc... caught signal: 15 26/03/2019 23:50:01 deleted 40 tile_row polling images. [services.d] stopping statusmonitor... [services.d] stopping openbox... [services.d] stopping logmonitor... [services.d] stopping xvfb... [services.d] stopping autovideoconverter... [services.d] stopping nginx... [services.d] stopping certsmonitor... [services.d] stopping s6-fdholderd... [cont-finish.d] executing container finish scripts... [cont-finish.d] done. [s6-finish] syncing disks. [s6-finish] sending all processes the TERM signal. [s6-finish] sending all processes the KILL signal and exiting. So again, thank you!
  12. From the handbrake UI you need to set the destination folder to: /output/finished Sent from my iPhone using Tapatalk
  13. Done. Let me know if/when you need help with testing. Thanks for all your work on this container, it's very very useful.
  14. Ok, "killall -sigterm ghb" works well, at least when running manually in the container shell. But I've run into another problem. The post-conversion hook runs before the watch folder is cleaned up, so I can't look for an empty folder. [autovideoconverter] Executing post-conversion hook... post-conversion: Status = 0 post-conversion: Output File = /output/movie.mkv post-conversion: Source File = /watch/movie.mp4 post-conversion: Preset = Mathias_MKV_720p30_v2 [autovideoconverter] Post-conversion hook exited with 0 [autovideoconverter] Conversion ended successfully. [autovideoconverter] Removed /watch/movie.mp4 I could use the source file parameter to test if the watch folder only contains that file, but that has two problems: 1. Source files in sub folders will trip it up 2. Not sure if the watch folder purge have time to run before the container is shut down by the script Hmm, might have to resort to a scheduled external script polling the watch folder.
  15. Great, thanks to both of you! Sent from my iPhone using Tapatalk