I know this topic is old but I had the same problem with my gateways and took me some hours to find out the solution, so I leave here what it worked for me at least.
I managed to solve it just making a little change, go to the following file: start.sh, and use an known Internet address (i.e 8.8.8.8) instead of google.com to test the Internet connection.