New release of Nightscout on Google Cloud #2401
Replies: 33 comments 89 replies
-
Hi i just setup a nightscout instance following your instructions succesfully. now my thoughts: VM hardening. which ports are necessary for nightscout to run. i would recommend opening just these ports in the google cloud firewall would be best practice. creating a budget in google cloud to limit potencial cost if something is running outside the free tier because of wrong configuration. auto updates on the VMs Linux with a cron job. i know this is possible but i am not into linux. just my thought . f you want me to test something on my VM, just let me know :-) |
Beta Was this translation helpful? Give feedback.
-
Only needed ports are opened in the current installation. |
Beta Was this translation helpful? Give feedback.
-
Having trouble with No-IP setup. I have an existing noip.com account. One user on Facebook (CGM in the Cloud) mentioned "you have to create a new hostname, and add the free SSL cert to the host, then wait for No-IP to verify the cert (can take an hour), and ONLY then do the No-IP configuration in the NS installer on Google Cloud". I can't figure out how to add the free SSL cert to a hostname. I also don't understand how the NS installer knows what my hostname is called (or what I should call the hostname). |
Beta Was this translation helpful? Give feedback.
-
Hello! There are some users report this issue: |
Beta Was this translation helpful? Give feedback.
-
Hello!
After that you have to enter using http:// instead of https:// |
Beta Was this translation helpful? Give feedback.
-
Hello!
Regards |
Beta Was this translation helpful? Give feedback.
-
I wanted to thank you very much for your documentation and scripts and menu. I have successfully built and connected to a Loop system. I wondered if is it possible to set up a template that could be used by the community to initiate the compute engine instead of starting from scratch?
|
Beta Was this translation helpful? Give feedback.
-
hi all, how can you update your upper and lower blood sugar limits in the new release of Nightscout on Google Cloud? i cannot locate where i can change the upper and lower limit on my graphs? |
Beta Was this translation helpful? Give feedback.
-
Hi, I would just like to thank the team on the excellent documentation (https://navid200.github.io/xDrip/docs/Nightscout/GoogleCloud.html) and of course development work that has gone into this. I was a heroku person and wanted to move to something else that was free. I had no issues setting up. Runs like a dream. Thank you. Martin |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
All you have to do is to run the command from the Cloud Shell in GCP.
ZONE=$(basename Cheers, |
Beta Was this translation helpful? Give feedback.
-
Hello, I have followed the instructions and had no issues until I get to the end of “install nightscout”. After running step 1 and 2 and the screen reboots I am taken back to the menu. Following the instructions I should open a browser and type in my no-ip username… but how do I do this in the VM? I have typed it in the vm bar but it is locked and have checked but no firewall rules in place. Can someone tell me where exactly do I launch the browser from or how to unlock the vm browser? Thanks for your help, Rachael |
Beta Was this translation helpful? Give feedback.
-
I have completed the installation. I followed every step and did not get any errors.
What might cause this problem? My API IS 12 characters long. I tried reinstalling and rebooting everything, but this keeps happening. Is there an easy way to copy my Heroku settings over to this? |
Beta Was this translation helpful? Give feedback.
-
Another thing I just noticed. On my NS site it says the version is "14.2.5". I checked and the latest master is "14.2.6".
Edit: Edit 2: |
Beta Was this translation helpful? Give feedback.
-
Thank you again for this work. It still says to use the noip address. I believe it should be the freedns address. |
Beta Was this translation helpful? Give feedback.
-
Dear Navid, THANK YOU so much. Had troubles with noip, deleted the VM and with the freedns it solution worked like a charm. Had few random disconnects of SSH session - not sure what was the reason. |
Beta Was this translation helpful? Give feedback.
-
I read the fine print at Google Cloud. In order to keep the site running, you must upgrade to a full account before the end of the 90 day period. You still maintain all credits and can run for "free", but if you don't do this, your machine goes away at the end of the 90 days. I reviewed the docs again and I did not see the directions to do this included in the instructions. (You are welcome to use my figures posted below.) Here's the link: Go to Cloud dot google and navigate to Console, Dashboard, Billing and scroll down. If you see Free Trial with the Upgrade button (as shown in graphic), you need to hit upgrade and follow the directions. When you're done, this same screen will look like this: |
Beta Was this translation helpful? Give feedback.
-
Thank you. This time it updated to 14.2.6. I am not sure if it was the repo though. This time I left the update console window and just waited. No reboot also. After about 30 minutes it was up again. |
Beta Was this translation helpful? Give feedback.
-
Hello. I followed this great guide https://navid200.github.io/xDrip/docs/Nightscout/GoogleCloud.html. Everything (freedns, google cloud, VM, Nightscout install, Nightscout setting up) works great and my nightscout is now running in the google cloud. many many thanks for that!! My first question: I backed up the MongoDB via point 6-2 and then downloaded it to my PC via the terminal. That worked fine. But I would be interested to know where I actually download this data or where is this data stored. In the google cloud? In the nightscout variable "database_size" i still have to specify the size of the database and i don't know where i can find it? My second question: I have just created a MongoDB but I have not yet entered it in the variables at nightscout and now I see that my nightscout has been running for 2 days without MongoDB and the data seems to be saving all. Do I actually need the MongoDB? |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Hi, exactly the same happened to me - located in UK?
BTW thank you for the great step by step manual!
…On Thu, 2 Mar 2023, 08:33 phjund, ***@***.***> wrote:
Hello,
Thanks to your help I installed an instance of Nightscout on Google Cloud.
Yesterday I received a bill of 0.01€ for the month of February 2023. After
checking the details of the bill I see that this amount is connected to
"Network Internet Egress from Americas to China" (I'm living in France).
I would like to know if this is normal (I thought that Google Cloud is
free) ? Do you have the same type of bills ? Should I correct something in
my project to have a really free hosting on Google ?
I know that this is not a big deal but free is free...
Thanks for your help.
—
Reply to this email directly, view it on GitHub
<#2401 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHDBNGRXS2ZG675ZKPYLYW3W2BLO5ANCNFSM6AAAAAARQSB4BU>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
I received the first >0 bill today, it was always 0
…On Thu, 2 Mar 2023, 12:12 Daniel, ***@***.***> wrote:
I made it exactly according to the instructions and have never had to pay
anything.
Only when I created a second nightscout account as a test did Railway
charge me 93 cents there.
But never Google.
—
Reply to this email directly, view it on GitHub
<#2401 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHDBNGR52VYSAUKN2A3YX3TW2CFDZANCNFSM6AAAAAARQSB4BU>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Thank you, I can live with that! Hope my data is not in China though...
…On Thu, 2 Mar 2023, 14:14 Navid, ***@***.***> wrote:
We talked about this and found these two references:
https://serverfault.com/questions/695063/stop-china-from-connecting-to-my-google-compute-engine-server
https://www.reddit.com/r/googlecloud/comments/zl7c3e/tutorial_block_egress_to_australia_china_on/
I looked at those and got the impression that it needs some work. it is
not just setting a switch. I also got the impression that the existing
tables may become obsolete and hence, there is a need for continuous
maintenance of the table.
With other things always requiring attention, we have put this on hold.
I would like to add a switch so that a user can block traffic to China, or
Australia, if they don't live there.
—
Reply to this email directly, view it on GitHub
<#2401 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHDBNGRN237JMOIBFOPB4C3W2CTLZANCNFSM6AAAAAARQSB4BU>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Thanks, did not realise it!
…On Thu, 2 Mar 2023, 15:31 Navid, ***@***.***> wrote:
There are crawlers online everywhere not just in China.
When a crawler reaches one of our Google Cloud machines, it attempts to
connect. The server, in response, asks for a user ID and password.
Requesting a user ID and password is an outgoing traffic.
Google Cloud charges us for outgoing traffic to China (and Australia) even
if less than 1GB per month.
Please don't think that there are no crawlers anywhere else. But, Google
Cloud does not charge you for crawlers in Europe or anywhere else. The only
reason China stands out in this context is that only traffic to China and
Australia is charged even if less than 1GB per month and it seems there are
more crawlers in China than in Australia. If the total charge of crawlers
in Australia or China is less than 0.01 currency unit, it is dropped. So, I
suspect that's why you see no charge for Australia.
There is nothing sent from your machine to China other than a request for
user ID and password.
—
Reply to this email directly, view it on GitHub
<#2401 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHDBNGR4KMSGFX6HW25NBYDW2C4O5ANCNFSM6AAAAAARQSB4BU>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer.
I followed your customization option this morning but didn't succeed. I
looked for solutions and found the thread I posted on since I have exactly
the same error. That is the reason why I didn't open a new thread.
I think I will need to rebuild from scratch because now my nightscout on
Google Cloud is corrupted.
Le sam. 28 oct. 2023, 14:41, Navid ***@***.***> a écrit :
… @phjund <https://github.com/phjund> A lot has changed in out setup since
this thread was created.
To update to 15.0.2, you have two options. One is to use the Nightscout
customization option:
https://navid200.github.io/xDrip/docs/Nightscout/Customize.html
The other is to switch to our dev branch, which is currently on 15.0.2.
This explains our branches and how to use them.
If you run into any trouble, please open a new discussion.
—
Reply to this email directly, view it on GitHub
<#2401 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AW5NAOAN23VQFAXT6B7LU63YBT4RJAVCNFSM6AAAAAARQSB4BWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TIMJRGEZTA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Thanks.
This morning I tried at least ten times and each time the ssh connection
broke down when the process was stuck. I will try again over the weekend.
I don't know how to create a backup and more importantly how to reinstall
it but I will try to find out. I didn't even know I could delete the
virtual machine.
Le sam. 28 oct. 2023, 15:44, Navid ***@***.***> a écrit :
… When you run customization, you should let it complete. When you see the
line that seems to be frozen, you need to give it time.
If the SSH session disconnects exactly then, that's just bad luck. You
will need to rerun.
After you install an installation, the executables are removed and are
recreated by the installation routine. If it cannot complete, Nightscout
will not run because the programs have not been recreated.
Give it another try.
If you want to recreate, make sure to created a backup using the backup
utility and download it to your computer before deleting the virtual
machine.
Alternatively, you can create a second machine and install in it to make
sure everything is working before deleting the old one. Except, that this
month, you will be charged a little bit for the time you have had two
machines.
—
Reply to this email directly, view it on GitHub
<#2401 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AW5NAOAFMIG2PIBSM2EBQ43YBUD3BAVCNFSM6AAAAAARQSB4BWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TIMJRGQYTG>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Thank you for your help. I will give it a try.
Le sam. 28 oct. 2023, 16:37, Navid ***@***.***> a écrit :
… Backup:
https://navid200.github.io/xDrip/docs/Nightscout/DatabaseBackup.html
Reinstall on the same machine: Go to this page:
https://navid200.github.io/xDrip/docs/Nightscout/NS_Install.html
Then, follow the following headings in sequence:
Bootstrap
Phase 1
Phas2 if needed
You should not delete the virtual machine. It is a last resort.
—
Reply to this email directly, view it on GitHub
<#2401 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AW5NAOEUW4XTX7PHCZMH43DYBUKEHAVCNFSM6AAAAAARQSB4BWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TIMJRGY2TI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Dear Navid,
I tried at least 20 times to customize my NS but every time the ssh
connection broke down and I couldn't find the logs to check if the
compilation was complete.
Thus I reinstalled NS on the same machine following your instructions given
below: it worked and I wish to thank you for your help.
Nevertheless when I check the version it tells me 14.2.6 and not 15.0.2: I
read one of your previous messages and I guess I didn't go to the dev
branch but I don't see where I did something wrong.
I also backed up my DB and I now have a file on my laptop but I don't
really know what to do with it and how to use it.
Regards,
Philippe.
…On Sat, Oct 28, 2023 at 4:37 PM Navid ***@***.***> wrote:
Backup:
https://navid200.github.io/xDrip/docs/Nightscout/DatabaseBackup.html
Reinstall on the same machine: Go to this page:
https://navid200.github.io/xDrip/docs/Nightscout/NS_Install.html
Then, follow the following headings in sequence:
Bootstrap
Phase 1
Phas2 if needed
You should not delete the virtual machine. It is a last resort.
—
Reply to this email directly, view it on GitHub
<#2401 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AW5NAOEUW4XTX7PHCZMH43DYBUKEHAVCNFSM6AAAAAARQSB4BWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TIMJRGY2TI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Ok thanks. I hope the update will go better than what I tried before
reinstalling.
Thank you again for your dedication !
P.
Le dim. 29 oct. 2023, 22:41, Navid ***@***.***> a écrit :
… This tells you how to switch branches.
https://navid200.github.io/xDrip/docs/Nightscout/Branches.html
If you switch to the dev branch and update, you will be on 15.02.
This tells you how to restore a backup:
https://navid200.github.io/xDrip/docs/Nightscout/DatabaseRestore.html
—
Reply to this email directly, view it on GitHub
<#2401 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AW5NAOGCQNOKUQKC3IFTX2DYB3EPPAVCNFSM6AAAAAARQSB4BWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TIMJXHA2DK>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Hello,
I switched branches and did the two installation phases and now I have
NS15.0.2 running: thanks a lot !
I have 3 additional questions:
- can I stay on the dev branch even though I'm not an "advanced" user ?
When should I go back to the stable branch ?
- I saw how to restore the backup but do you agree that I don't need to do
that since I reinstalled NS on an existing VM ?
- I had noip.com as a DNS server for my initial installation of NS14 on
Google Cloud. Yesterday I switched to FreeDNS and that's where NS15 is
installed. Nevertheless I see that my old site referenced on noip.com is
still receiving my BG readings: how is this possible ?
Best regards,
Philippe.
…On Sun, Oct 29, 2023 at 10:41 PM Navid ***@***.***> wrote:
This tells you how to switch branches.
https://navid200.github.io/xDrip/docs/Nightscout/Branches.html
If you switch to the dev branch and update, you will be on 15.02.
This tells you how to restore a backup:
https://navid200.github.io/xDrip/docs/Nightscout/DatabaseRestore.html
—
Reply to this email directly, view it on GitHub
<#2401 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AW5NAOGCQNOKUQKC3IFTX2DYB3EPPAVCNFSM6AAAAAARQSB4BWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TIMJXHA2DK>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Thank you for your response.
I did the report for 3 months and it looked OK so I guess I don't need to
restore the DB.
I will monitor the page you mentioned and the noip site and see what
happens.
Thanks again for your help (I think my Google Cloud VM was too old to do
the upgrade smoothly and I'm happy my NS installation is now up to date).
Regards,
Philippe.
…On Mon, Oct 30, 2023 at 1:05 PM Navid ***@***.***> wrote:
You can switch to the stable branch after we update the stable branch to
include 15.0.2. You can monitor this page to know when:
https://navid200.github.io/xDrip/docs/Nightscout/GC_ReleaseNotes.html
If you create a report for 3 months ago and it shows data for days before
when you did the reinstall, it means that your database is intact and you
should not need to restore.
After a while your noip stops mapping the ip address. At that point, only
your FreeDNS hostname will work.
—
Reply to this email directly, view it on GitHub
<#2401 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AW5NAOFUZIYA44CW6A3PSMDYB6JZXAVCNFSM6AAAAAARQSB4BWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TIMRTGIZDG>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
It's been updated. You can get a lot done using a menu instead of having to use the shell.
https://navid200.github.io/xDrip/docs/Nightscout/GoogleCloud.html
If you already have it set up, you don't need to re-install.
Just follow this to update: https://navid200.github.io/xDrip/docs/Nightscout/NS_SyncExecutables
Beta Was this translation helpful? Give feedback.
All reactions