My Google Virtual machine instance is crashing

I just started using ngrok to make my google Virtual Machine publically accessible and able to handle incoming URL Requests. It works fine but when I ssh back into the VM I get this error:

Joel_Bird_1-1690296162334.png

I'm not an experienced programmer or anything. Can anyone help me understand why the VM seems to crash?


Running the Troubleshoot gets stuck on testing User Permissions, been like 20 mins:

Joel_Bird_0-1690297700724.png

 

1 1 279
1 REPLY 1

Hello @Joel_Bird,

Welcome to Google Cloud Community!

Based on the error you posted, your account doesn't have iap.tunnelInstances.accessViaIAP permission. To resolve this, you must grant an IAP-sceured Tunnel User role to your account in the IAM as shown below.

Screenshot 2023-07-28 4.35.29 AM.png

To understand more about IAM roles, see this document.

Thanks