Home | Runbook
WIP Still need to recapture screenshots
Did something go wrong? Maybe something below can help.
Power Outage
If the power has gone out and you need to restart everything follow these steps.
- First, let's shut everything down and come up clean
- We will first turn on the Drobo.
- There is a small switch on the back of the Drobo to turn it on/off.
- Wait a couple minutes to make sure that it fully comes up and has had time to load everything it needs.
- Not turn on both the two Dells.
- One contains Plex and the other contains all the other Docker containers
- Next, let's SSH into the Plex machine first since this one is easier to take care of.
- Once signed in, let's make sure the fstab has mounted the Drobo volume
- ''mount | grep drobo''
- That should return something that looks like this:
- ''192.168.1.111:/mnt/DroboFS/Shares/plex on /home/plex/dockerconfigs/drobomount type nfs (rw,relatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.1.111,mountvers=3,mountport=32779,mountproto=udp,local_lock=none,addr=192.168.1.111)''
- If it doesn't let's try to mount it manually.
- ''sudo mount -a''
- So let's see and make sure we can view the files on the mount.
- ''cd /home/plex/dockerconfigs/drobomount; ls''
- If this command lists all the folders you're expecting then we're good. You should see something like
- ''Books certs Completed iPhoneUploads Movies OnlyOffice OwnCloud PlexConfigs Podcasts Shows Sports tmp YouToobz''
- If everything is good there, then we just need to restart the Plex container to pick up the new folders again.
- ''docker restart plex''
- Alright, let's exit the plex server and checkup on the Docker server to get all our services up and running again.
- First we SSH into the Docker server
- Let's do the same thing again, check to see if our mount made it through properly.
- ''mount | grep drobo''
- Now that should come back with something that looks like this:
- ''192.168.1.111:/mnt/DroboFS/Shares/plex on /home/raph/dockerRaph/drobomount type nfs (rw,relatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.1.111,mountvers=3,mountport=32779,mountproto=udp,local_lock=none,addr=192.168.1.111)''
- If it doesn't come back with a mounted volume, let's mount it manually like on the Plex server
- ''sudo mount -a''
- Okay now let's get on with checking it's contents.
- ''cd /home/raph/dockerRaph/drobomount; ls''
- That should feed us back the same list as the Plex mount did:
- ''Books certs Completed iPhoneUploads Movies OnlyOffice OwnCloud PlexConfigs Podcasts Shows Sports tmp YouToobz''
- If everything is looking good there, move onto restarting some services to make sure they get all their mounted folders back.
Restarting Services
Most of the containers can simply be restarted with a ''docker restart $container_name''. But
there are a few that are running via docker-compose which would require you to ''cd'' into the directory
that contains the proper compose yaml and run the ''docker-compose restart'' from there.
Below I will break down each service that can be ran with a ''docker restart'' and which need a ''docker-compose''
Docker Restart
- First let's get a list of all the docker containers running
- ''docker ps -a''
- This would feed back to you all the containers running, exited, and stopped. As of the date writing this, all the containers should be running and none of them should be in a stopped or exited state.
- Here is a quick for-loop to run through restarting the containers currently needing a restart as of today.
- ''for i in speedtest nginx-proxy letsencrypt yeadbot discordbot timeedits pi-hole; do docker restart $i; done''
- That will restart each of those services.
Docker Compose Restart
- So as of now, there are only three sets of services using docker-compose.
- In order to restart those, you need to ''cd'' into their respected folders and run ''docker-compose restart''
- Here are the folders you need to ''cd'' into:
- ''/home/raph/dockerRaph/githubstuff/dockershfiles/owncloud''
- ''/home/raph/dockerRaph/githubstuff/dockershfiles/plexBackend''
- ''/home/raph/dockerRaph/githubstuff/dockershfiles/docuwiki''
- Simply ''cd'' into those folder and run
- ''docker-compose restart''
- That's it!
Upgrading A Container Image
Did you get some sort of notification that there's an update available, or did you hear about a new
version of one of the applications? In the folder ''/home/raph/dockerRaph/githubstuff/dockershfiles/''
you can find all the bash scripts or yaml files used to start up services. Simply find the folder/file
that was used to start up the application and either
- Execute the bash script
- ''sh $containername.sh''
- Execute the docker-compose file
- ''cd $foldername''
- ''docker-compose down''
- ''docker-compose pull''
- ''docker-compose up -d''
Download Requests
Did someone ask you to download a movie or TV Show? Check the [[odrallag:plex_infrastructure#orchestration|Orchestration]]
page for instructions on how to use Sonarr/Radarr to download NZBs or Deluge to download torrents.