Upgrading Unifi in Synology Docker

… FOR WHEN YOU JUST CAN’T SEEM TO REMEMBER THAT DAMN COMMAND

The blog where I copied the command has the above title. Interesting. It is interesting for me because I always have this issue. I need to start writing down everything I did so then I don’t have to reinvent the wheel when I need it again in the future. Just like this one — to upgrade Unifi version in Synology docker.

Luckily, I found this pretty quick.

Create a backup using the Web UI of UniFi by going to Settings > System > Backup and hit Download (Settings only). Once done, it’s time to power off your container:

Docker > Container > [your-unifi-container] > switch it off

Once powered down, proceed to fetch the :latest version of the image:

Docker > Registry > jacobalberty/unifi (:latest)

Hit Download at the top (or Right-click on the image name and select Download this image“
Wait for the download to complete – you should see a notification once that’s done.

Finally, we’re going to reset the container itself:

Docker > Container > [your-unifi-controller] > Action > Reset > Yes

Dependency CCS failed to install

This error has been bugging me last time when I was installing Watson Studio on IBM Cloud Pak for Data, running on OCP 4.8.

Dependency CCS failed to install
Unable to install CSS prerequisite

Apparently the reason is that one of the required service, IBM Common Core Service has not been installed correctly. One of the pods failed to pull the image due to pull secret issue with IBM Entitlement Key.

Please make sure that the secret has been propagated correctly to all worker nodes.

Somehow once it fails, it will be problematic.

How to request Let’s Encrypt wildcard certificate?

Background

I am tired getting the certificate error every time I access my servers at home. Those servers have no access to the public network. I need to create the certificate manually.

Certbot

Certbot is a free, open source software tool for automatically using Let’s Encrypt certificates on manually-administrated websites to enable HTTPS. This will be used to create the TLS certificates which then will be installed on the internal servers.

Configuration

Let’s install Certbot using Brew

brew install certbot

I don’t have any servers with port 80 open but I have access to my DNS. So I use DNS installation method in which you need to add a TXT record.

sudo certbot certonly --manual --preferred-challenges dns

Follow the setup process. When it prompts on which domain would need the TLS certs to be requested, please use asterisk (*) in front of the chosen domain name.

*.ardho.nl

Continue the process of adding the txt records in the DNS and eventually the keys will then be created and can be installed on all the servers.

Configure application to launch during start up on Windows 10

Not happen often, but in case you end up in a situation where you need to have an app to launch during start up but cannot set it anywhere in the app itself, you can do the following:

  1. Open the ‘startup’ directory by pressing Windows + R and type shell:startup
  2. Find the application you want to launch during start up in the Applications folder by pressing Windows + R and type shell:appsfolder.
  3. Copy / drag the application you find in Applications folder to the start up directory.

Updating Unifi Controller Docker container in Synology DSM 6.2

Here are the steps I did to upgrade the docker container of Unifi Controller (https://github.com/jacobalberty/unifi-docker/) on my Synology.

  • Make a backup of the Unifi controller
  • Open the Docker application
  • Go to the Registry, and search for the image.
  • Click download, and choose the ‘latest’ tag
  • This will download the latest image and overwrite the existing older image
  • Stop the container that was built on the old image.
  • Highlight it and select the Clear action.
  • Restart the container and it will be built from the new image.