Closed galacticat closed 6 years ago
The process is hanging on the following logic:
chown -R abc:abc \
/app \
/config \
/downloads
This ensures the files in the mounted volume are owned by the 1001:111 user in your case.
It would only hang if you have millions of files in there or a very low IO disk.
Technically this could be a run once scenario with a lock file, I just am not sure if this is a widespread thing or only applies to your use case.
To get around it for now you can run this on the container (keeping in mind updates would null the change out)
sudo docker exec -it <your-container-name> sh -c 'echo "exit 0" > /etc/cont-init.d/30-config'
It will not run the chown on boot.
Originally I was mapping my full downloads directory to /downloads in the container (which contained pretty much everything I've ever downloaded). I changed that to only map my empty black hole directory to /downloads. It is restarting in a reasonable time now, thanks!
I recently restarted my host and noticed the only thing that didn't come back up was the Jackett instance in docker. I removed it and recreated it and it took 30 minutes to an hour to start on a fresh install of the docker instance.
Ubuntu 16.04
sudo docker run -d --restart always -h jackett --name jackett -v /config:/config -v /media/Downloads:/downloads -e PGID=1001 -e PUID=111 -e TZ=America/Chicago -p 9117:9117 linuxserver/jackett:latest
Thanks, team linuxserver.io