-
Notifications
You must be signed in to change notification settings - Fork 18
Google Cloud:502 Bad Gateway error #35
Comments
This seems like the exact same issue also @muthijammy was having here. Back then, I couldn't really make sense of it, but from your logs, I can see that the google cloud machine appears to be using NodeJS 10.19.0 which is super ancient and reached end of life in April, 2021. This project has only been tested on NodeJS versions 12, 14 and 16, which are the versions that nightscout officially supports. I would assume that the NodeJS version is the issue here. One way forward would be to either upgrade the nodejs version on the machine (or trying to use a newer ubuntu version for the virtual machine like 22.04 which might come with a newer nodejs version out of the box) or use a different hosting provider for nightscout like e.g. railway. |
Indeed I was able to reproduce this issue using nodejs 10 and I was also able to confirm that running the xdrip installer for nightscout will actually only install nodejs version 10 on a ubuntu 20.04 VM. So right now, the only way is to upgrade to a newer nodejs version (12, 14 or 16) on the machine. |
Thanks Benedikt. I created a new VM (22.04) to no avail, the process was halted by pre-requisite screening. I also tried updating Node to v16.x.x LTS on the 20.04 VM, again to no avail. Nighscout continued however I do not think the plug-in had started despite the Node upgrade. In the end, I relented and moved to Railway. Everything is now operational as you would expect. Thanks again for the troubleshooting, guidance and offering potential remediation steps. |
My objective was to deploy Nightscout on Google Cloud with the Diasend Nightscout Bridge as a plug-in.
I followed the largely automated process described by the Xdrip development team here to prepare, install and configure Nightscout for Google Cloud.
After completing steps 1 through 5, I had functioning Nightscout instance.
I then leveraged option 11 "Customize Nightscout" to install the cgm-remote-monitor fork located here from
burnedikt
repository which includes the diasend-nightscout-bridge merged. For reference, the script that drives the process can be viewed here.Once complete, I observed only the usual warnings but NO errors. Unfortunately, I now get the "502 Bad Gateway".
From the nginx error log:
It looks like Nightscout does not start. I then ran the Nightscout-start shell script which yielded:
Any suggestions warmly welcome!
The text was updated successfully, but these errors were encountered: