Internal 500 server error, after installing tljh on google cloud

“Internal 500 server error” after VM on google cloud runs for a day or two.

This is the second time it has happened, I start the instance, install littlest Jupyterhub (see details below). I can login to the external ip, for a day, but then it stops with internal 500 error. I cannot ssh or get into the instance, only alternate is to create a new instance and re-do. What could the problem be?

I have installed littlest jupyterhub using on this instance, using #!/bin/bash curl | sudo python3 - --admin master