Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

guru69

Members
  • Joined

  • Last visited

  1. I am also looking for a way to enable/disable docker service from user script/shell. Shell command to toggle the Settings, Docker, Enable Docker GUI item. My current backup script dumps list of running dockers, stopping each one, running my backup and then restarting the dockers from the same list. I have a docker startup timing/order issue and want the (autostart enabled) dockers to start in the dragged order of the Unraid Docker page along with the delay timings I have configured there. Is there a command to accomplish this from shell?
  2. This tip saved me as well. Deleting my docker.img solved it. I love this forum!
  3. Script to recover corrupt Radarr or Sonarr databases Recently my radarr and sonarr logs have been showing: ...Corrupt (11), message = System.Data.SQLite.SQLiteException (0x800007EF): database disk image is malformed Hopefully the cause of the corruption is discovered soon. #!/bin/bash # Script to recover / recreate radarr/sonarr database when log shows: # ...Corrupt (11), message = System.Data.SQLite.SQLiteException (0x800007EF): database disk image is malformed # # Don't forget that both radarr/sonarr create zipped db backups in /Backups/scheduled folder # Which can be restored if this recovery fails # Set your paths/names for radarr/sonarr dockername=radarr dockerpath=/mnt/user/appdata/radarr dockerdbname=radarr.db # Stop radarr/sonarr docker docker stop $dockername > /dev/null echo "$dockername is stopped" # Perform sqlite3 .recover into new database file sqlite3 $dockerpath/$dockerdbname .recover | sqlite3 $dockerpath/$dockername-recover.db # Rename any db-shm or wal files mv $dockerpath/$dockerdbname-shm $dockerpath/$dockerdbname-shm-BAD mv $dockerpath/$dockerdbname-wal $dockerpath/$dockerdbname-wal-BAD # Rename the corrupt database mv $dockerpath/$dockerdbname $dockerpath/$dockerdbname-BAD # Move recovered database into place mv $dockerpath/$dockername-recover.db $dockerpath/$dockerdbname # Fix ownership on newly recovered database chown nobody:users $dockerpath/$dockerdbname # Start radarr/sonarr docker docker start $dockername > /dev/null echo "$dockername is started" # Check docker log and web GUI # Optionally run this to clean up # rm $dockerpath/*-BAD
  4. That did the trick! Thanks
  5. How do you update Lidarr version in this docker? Log shows: [Info] Bootstrap: Starting Lidarr - /app/lidarr/bin/Lidarr.exe - Version 0.7.2.1878 I'd like to try the newer update: 0.8.0.2041 Jan 25 2021
  6. Does UD or UD+ plugin support MTP? I would like to mount a GoPro 8 over USB so I can dump my 4k videos onto my Unraid array. I did notice this in the SlackBuilds Repo: https://slackbuilds.org/repository/14.2/multimedia/mtpfs/
  7. Yes it does. I am doing the same thing right now and I'm guessing it writes the drives preclear signature after the zero process, I aborted a preclear in the Post Read phase and it still appeared as precleared on the other Unraid
  8. I have a question about preclearing external USB drives. I apologize if this has already been discussed. I have been shucking WD MyBook drives from the external enclosure, applying the tape to the 3rd pin so they work, inserting them into the array and running preclear 2x on the disk before use. So far I have had no issues. I'm wondering if I should be preclearing them as-is in the USB enclosure so that if I get a bad one, its much easier to repack and return, without any signs of cracking the enclosure open. I assume this will be slower over USB3 than connecting directly to SATA. During my last storage upgrade I ran 10 instances of preclear simultaneously on the array without issue. Will I hit any bottleneck trying to do the same using with the drives still in the USB enclosures? Are there any other reasons I should avoid running preclear on untouched WD USB drives using USB?
  9. guru69 replied to t33j4y's topic in Docker Engine
    +1 I was about to start an install in a VM, but would much rather use a single Unraid docker
  10. There might be some way, but you are talking about vpn traffic inside your docker, not sure how you would measure that. Maybe someone else here has some ideas.
  11. If you are running the Preclear plugin, it will continue running on your Unraid server. Click the Preclear plugin icon to see the progress again (and the result when done)
  12. Add a new user script, replace qbittorrent with your vpn docker name in Unraid something like this: #!/bin/bash arrayStarted=true noParity=true docker restart qbittorrent Once its saved, click "Run Script" in User scripts to make sure its restarting your docker. If it works, click the dropdown on the right and change from "Schedule disabled" to "scheduled hourly". Click Apply at the bottom.
  13. You might be able to script that, but if your speeds keep dropping, its probably better to solve the underlying problem than keep restarting the docker. I'm having no issues with the linuxserver/qbittorrent docker Are you using a VPN? If not your provider might be the cause of any speed loss, stalling, etc. Another thing that can help is to use a private tracker
  14. Not sure I understand why the traffic threshold, is the docker getting really hung? (no qbittorent web page loading) or you mean a stalled download? To simply restart hourly, how about making short user script with: docker restart {dockername} and cron schedule it on the right side --> Custom, and use: 0 * * * * this will trigger a restart every hour on the hour
  15. My Borg backup script for dockers and VMs... I have been using CA Backup for my Unraid backups for quite a while, but I discovered Borg Backup in Nerd Tools so I decided to try it. My goal was to make my backups smaller and faster with less downtime. I prefer to have individual schedules and backups for each VM and docker on Unraid so I thought I'd share my unified (VM/Docker) Borg backup script. I have reduced my Plex downtime to 25 mins on first backup, and around 7 minutes on additional backups due to deduplication. Script assumes you are using the default locations for dockers and VMs and the email log only works when the script is scheduled (User Script Log is written) and not while run manually in User Scripts. Maybe you guys know a better way to capture the output? I am not using an encrypted Borg repo for these backups, but I might make an additional version for backing up to an encrypted Borg repo. I have it set to retain 4 backups currently. Any additions or changes to improve this are greatly welcomed 🙂 #!/bin/bash arrayStarted=true # Unraid display name of docker/vm displayname=NS1 # Unraid backup source data folder # (VM = /mnt/user/domains... Docker = /mnt/cache/appdata...) backupsource=/mnt/user/domains/NS1 # The name of this Unraid User Script scriptname=backup-ns1-vm # Path to your Borg backup repo export BORG_REPO=/mnt/user/Backup/Borg-backups/unencrypted # Email address to receive backup log [email protected] ###### Don't Edit Below Here ###### # Build variables, clear log today=$(date +%m-%d-%Y.%H:%M:%S) export backupname="${displayname}_${today}" export BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes >/tmp/user.scripts/tmpScripts/$scriptname/log.txt # Determine if Docker or VM, set backupsourcetype var backupsourcetype= [[ $backupsource = */mnt/cache/appdata* ]] && backupsourcetype=Docker [[ $backupsource = */mnt/user/domains* ]] && backupsourcetype=VM echo "Backup source type: $backupsourcetype" # Shutdown the Docker/VM [[ $backupsourcetype = Docker ]] && docker stop $displayname [[ $backupsourcetype = VM ]] && virsh shutdown $displayname --mode acpi # Create backup echo "Backing up $displayname $backupsourcetype folder..." borg create --stats $BORG_REPO::$backupname $backupsource sleep 5 # Start the Docker/VM [[ $backupsourcetype = Docker ]] && docker start $displayname [[ $backupsourcetype = VM ]] && virsh start $displayname # Pruning, keep last 4 backups and prune older backups, give stats borg prune -v --list --keep-last 4 --prefix $displayname $BORG_REPO # Email the backup log echo "Subject: Borg: $displayname $backupsourcetype Backup Log" > /tmp/email.txt echo "From: Unraid Borg Backup" >> /tmp/email.txt cat /tmp/email.txt /tmp/user.scripts/tmpScripts/$scriptname/log.txt > /tmp/notify.txt sendmail $emailnotify < /tmp/notify.txt Always test your backups before you rely on them! Here are the commands I use for testing/restoring the backups. Stop your docker/VM first and rename or move the folder if you are testing and are not replacing the data Borg will restore to the current folder, so change to / directory to have it restored to original directory, or run it elsewhere if not Edit the first 2 commands with your docker/vm and repo location displayname=NS1 export BORG_REPO=/mnt/user/Backup/Borg-backups/unencrypted export BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes borg list $BORG_REPO Copy the backup name you want to test/restore from the Borg repo list output to your clipboard, mine is: NS1_02-07-2020.19:00:01 so I will set the restorebackupname variable to this export restorebackupname=NS1_02-07-2020.19:00:01 cd / borg extract --list $BORG_REPO::$restorebackupname restorebackupname= Start up your docker/VM and make sure it works.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.