Update Google Cloud Platform

Google Cloud Nightscout » Update to latest release

We update the Google Cloud Nightscout platform in order to add functionality and fix issues. This is how you can update your platform to access those improvements.
If you have not completed the installation, please complete it first.

Open a terminal. A menu should come up automatically. Select Update platform from the Google Cloud setup submenu. You can then check the status page to confirm that your setup has been updated by comparing it to this.

If you created your setup prior to January 2023 and never updated it, you will not have the same menu options. In that case, please follow the instructions explained in a corresponding section below first.




502 Bad Gateway

If after you update your platform, Nightscout is not running and you get a “502 bad gateway” error when you attempt to access your Nightscout in a browser, even after a restart, proceed with the following.
From the Google Cloud setup submenu, select “Install Nightscout phase 1” and enter. Wait for it to complete.
Then, restart Nightscout.


If you created your setup before January 2023 and never updated

Our platform has evolved significantly since it was first released. You don’t need to start from scratch. But, you may need to go through a few more steps in order to update. After you update, there will be no difference between your setup and one that has just been created.

If you are still using noip.com, you will be asked, below, to create a FreeDNS account and a new hostname in order to switch from noip.com to FreeDNS.

If a menu does not open when you open a terminal, please skip to the section titled “Bootstrap” below.

If a menu opens when you open a terminal, from the menu, or Google Cloud setup submenu, select “Update scripts” or “Update platform”. After completion and closing the terminal and opening a new one, if a menu does not automatically open up, please skip to the section titled “Bootstrap” below.

View the Status page by selecting Status. If it looks like this, the platform has updated to the latest. If not, please update platform from the Google Cloud setup submenu again.

If the status page still looks different, for example, if the username, repository name and branch name are blank, as shown below, please proceed to the section titled “Bootstrap” below.



Bootstrap

Open a terminal. If a menu opens, select Bootstrap from the Google Cloud submenu.

If no menu opens after opening a terminal, copy the highlighted text below and paste into the terminal. Press enter.



You will see the following note:

Press enter to proceed. After bootstrap is complete, you will go to the status page.
You must now run Install Nightscout phase 1 from the Google Cloud setup submenu.
Please proceed to the following sections.


No Hostname

If you are still using noip.com, after you run bootstrap and run Install Nightscout phase 1, you will see “No hostname” on the status page as shown below.

To switch to FreeDNS, please follow the instructions here to create a FreeDNS account and create a new hostname.
Then, please run “Install Nightscout phase 2” from the Google Cloud setup submenu.