auanasgheps/snapraid-aio-script

Issue with docker pause on 3.3dev

Hilo4321 opened this issue · 2 comments

Hi,

Pause is not working within the script, I only noticed when I had to run a manual sync (lazy and just changed the delete threshold). I confirmed that containers are still functioning.

Also noted that the error handling for pause doesn't seem to be working.

Cheers and thanks!

Relevant log info:

Discord notification is enabled.
SnapRAID is not running, proceeding.
SnapRAID output retention is enabled. Detailed logs will be kept in /root for 10 days.
Checking if all parity and content files are present.
All parity files found.
All content files found.
Docker containers management is enabled.

### Pausing Containers [Wed 06 Mar 2024 08:25:06 AM CST]
Pausing Local Container(s)
"docker pause" requires at least 1 argument.
See 'docker pause --help'.

Usage:  docker pause CONTAINER [CONTAINER...]

Pause all processes within one or more containers

----------------------------------------

Docker Config:

### DOCKER CONTAINERS MANAGEMENT ###

# Set to 1 to manage docker containers. They will be paused/stopped or
# resumed/restarted accordingly. If set to 0, all other options related to Docker
# will be ignored.
MANAGE_SERVICES=1

# Choose how to manage your containers: 1 to pause/unpause, 2 to stop/restart
# This option does not have any effect if MANAGE_SERVICES is set to 0
DOCKER_MODE=1

# Manage Docker containers running on the same host.
# Set to 1 to enable, 0 to disable it.
# Enter containers to be managed separated with spaces. Please ensure these containers
# are always running before executing the script, otherwise an error will be logged.
# Example:
# SERVICES=('syncthing kopia nextcloud immich')

DOCKER_LOCAL=1
SERVCES=('qbittorrent radarr sonarr readarr readarr-audio calibre calibre-web photoprism mariadb')

# Manage Docker containers running on a remote machine. To use this feature,
# you must setup passwordless ssh access between snapRAID host and Docker host.
# Set to 1 to enabl management of Docker containers running eslewhere, then enter
# Docker host SSH user and machine IP or hostname.
# You can manage multiple remote Docker hosts.
# Reference:
# ('HOSTIP1:container1 container2 container3' 'HOSTIP2:container1 container2 container3 container4')
# Example:
# ('192.168.0.125:code-server portainer plex' '192.168.0.126:nextcloud handbrake transmission')
# Delay is the number of seconds to wait before sending the next docker
# command to avoid errors. Change it if you're experiencing errors.
DOCKER_REMOTE=0
DOCKER_USER="sshusernamegoeshere"
DOCKER_HOST_SERVICES=('HOSTIP1:container1 container2 container3' 'HOSTIP2:container1 container2 container3 container4')
DOCKER_DELAY=0

Ok, just found the error in this line (SERVCES), but this must have been my own error, as it doesn't look like the typo exists in your script.

DOCKER_LOCAL=1
SERVCES=('qbittorrent radarr sonarr readarr readarr-audio calibre calibre-web photoprism mariadb')

Cheers!

Hi, good to know you found the solution!