May 27, 20251 yr Hello everyone,I've been running into a problem lately with my remote backup setup.I have unraid running a duplicati container. On a remote site there's a raspberry pi that runs tailscale and exposes a WD NAS which is mounted on unraid using unassigned devices using NFS.Some times the raspberry pi goes down and i can't access it for some days. The problem is that during this period my unraid instance becomes very sluggish. The mover stops working and has to be stopped from terminal, the app center is really slow to load, the docker page is really slow as well and some times the webgui may take minutes to load.The duplicati container appears stopped but instantly starts when the mount is found again. Also when it's down in the docker page it just displays a ? as icon and no name. The only other info that's displayed is under autostart where it says 3rd party. No volume mappings or anything else.I've tried using docker kill to be sure it's stopped but it does nothing. So my idea of using a user script is probably not valid.I've also tried to unmount the device but nothing changes.Once the raspberry pi is back online everything works again perfectly.Is there maybe a way to stop the container when the unassigned device mount is unavailable? I've been running out of ideas on what to do or how to troubleshoot further.Any help would be appreciated! tower-diagnostics-20250527-1045.zip Edited May 27, 20251 yr by lambolighting Attached diagnostics
May 27, 20251 yr folder.view.plg - 2025.01.11.1 (Unknown to Community Applications)May 25 04:32:16 Tower root: Fix Common Problems: Warning: The plugin folder.view.plg is not known to Community Applications and is possibly incompatible with your serverThere's a reason why Fix Common Problems was telling you about this. Uninstall folder view and install folder view2 from AppsReason for your slowdown is that there's a container which is constantly restarting itself every second (presumably when this happens)Via Unassigned Devices and the settings for the device / network mount, you can run a script for when it connects and disconnects.this is the sample script that UD has as a starting point#!/bin/bash## Available variables:## ACTION - if mounting, ADD; if unmounting, UNMOUNT; if unmounted, REMOVE; if error, ERROR_MOUNT, ERROR_UNMOUNT# DEVICE - partition device, e.g. /dev/sda1# UD_DEVICE - unassigned devX designation# SERIAL - disk serial number# LABEL - partition label# LUKS - if the device is encrypted, this is the partition device, e.g. /dev/sda1# FSTYPE - partition filesystem# MOUNTPOINT - where the partition is mounted# OWNER - "udev" if executed by UDEV, otherwise "user"# PROG_NAME - program name of this script# LOGFILE - log file for this scriptcase $ACTION in 'ADD' ) /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Unassigned Devices" -d "Device mounted" -i "normal" if [ "$OWNER" = "udev" ]; then # do your hotplug stuff here sleep 1 else # do your user initiated stuff here sleep 1 fi ;; 'UNMOUNT' ) # do your stuff here /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Unassigned Devices" -d "Device unmounting" -i "normal" ;; 'REMOVE' ) # do your stuff here # Spin down disk - uncomment this if you want the disk to be spun down after the disk is unmounted# /usr/local/sbin/rc.unassigned spindown $UD_DEVICE # Detach the disk - uncomment this if you want the USB disk to be detached after it is unmounted# /usr/local/sbin/rc.unassigned detach $UD_DEVICE /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Unassigned Devices" -d "Device unmounted" -i "normal" ;; 'ERROR_MOUNT' ) # do your stuff here /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Unassigned Devices" -d "Error mounting device" -i "alert" ;; 'ERROR_UNMOUNT' ) # do your stuff here /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Unassigned Devices" -d "Error unmounting device" -i "alert" ;;esac
May 28, 20251 yr Author Problem is that when the mount is down the duplicati instance almost instantly freezes. I'm checking on terminal with docker container ls and it's not showing up as a container either and docker stop or docker kill just freeze and do nothing. It's like i can't do anything as soon as the unassigned device gets disconnected and it's slow to report this state.I also changed to folderview2, didn't see there was a fork released. Not that i use it but maybe in the future.Edit: Actually running docker ps -all shows the container, i still can't stop or kill it. Edited May 28, 20251 yr by lambolighting Last paragraph
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.