Closed Dulanic closed 7 years ago
How does your docker command look like?
docker create --name cloud --restart=always -v /local-media:/local-media:shared v /local-decrypt:/local-decrypt:shared -v /docker/containers/cloud/config:/config -v /downloads/plexdrive:/chunks -v /var/log:/log -e CLEAR_CHUNK_MAX_SIZE="1000G" -e REMOVE_LOCAL_FILES_WHEN_SPACE_EXCEEDS_GB="1000" -e FREEUP_ATLEAST_GB="500" -e PUID=1000 -e PGID=1000 --privileged --cap-add=MKNOD --cap-add=SYS_ADMIN --device=/dev/fuse madslundt/cloud-media-scripts
Thinking this over, my radarr/sonarr are on docker, so maybe they only see the main dir and not the mount if it had to reconnect ever? Ug if so, I think that kills the idea behind the docker and my idea of plex on host and this on docker wont work either.
Originally I thought it was the load order of the containers so I made a systemd script to wait till the mount was done. I saw the service the container setup for the mount was localx2dmedia.mount. Or was that when I tried to install on the host?
[Unit]
Description=Start containers after the cloud mount is completed.
After=localx2dmedia.mount
[Service]
Type=oneshot
ExecStart=-/usr/bin/docker start hydra
ExecStart=-/usr/bin/docker start sonarr
ExecStart=-/usr/bin/docker start letsencrypt
ExecStart=-/usr/bin/docker start sabnzbd
ExecStart=-/usr/bin/docker start jackett
ExecStart=-/usr/bin/docker start muximux
ExecStart=-/usr/bin/docker start quassel-core
ExecStart=-/usr/bin/docker start plexpy
ExecStart=-/usr/bin/docker start deluge
ExecStart=-/usr/bin/docker start lazylibrarian
ExecStart=-/usr/bin/docker start radarr
ExecStart=-/usr/bin/docker start watchtower
#ExecStop=-/usr/bin/docker stop hydra
#ExecStop=-/usr/bin/docker stop sonarr
#ExecStop=-/usr/bin/docker stop letsencrypt
#ExecStop=-/usr/bin/docker stop sabnzbd
#ExecStop=-/usr/bin/docker stop jackett
#ExecStop=-/usr/bin/docker stop muximux
#ExecStop=-/usr/bin/docker stop quassel-core
#ExecStop=-/usr/bin/docker stop plexpy
#ExecStop=-/usr/bin/docker stop deluge
#ExecStop=-/usr/bin/docker stop lazylibrarian
#ExecStop=-/usr/bin/docker stop radarr
#ExecStop=-/usr/bin/docker stop watchtower
[Install]
WantedBy=multi-user.target
Has this problem reoccured?
So I've been running this for 5 days and suddenly I noticed my sda drive is full. I couldn't figure it out until I stopped the docker and noticed there was still 135GB in local-media? I ran a rclone move and it removed them all because they all existed on the cloud? Seems odd why this happened?
Now that I looked at some of this, most of these look like items I thought I deleted? Is it maybe downloading it back down to the local dir if I delete it from local-media?