Balkan
Balkan

Reputation: 711

Can't reconnect to Datalab vm through cloud shell

I created and successfully used a datalab instance. Afterwards, I stopped the instance.

Now, I'm trying to reconnect to the same datalab instance (using 'datalab connect {instance_name}') but this is resulting in the cloud shell hanging on the "Waiting for Datalab to be reachable at http://localhost:8081/" line forever.

I have successfully ssh'ed into the instance with both the "Connect - SSH" button in the console as well as the cloud shell command "gcloud compute ssh --zone=australia-southeast1-a datalab@{instance_name}". So the vm appears to be working as normal.

What is the issue here preventing the datalab command from executing properly?

Thanks,

Upvotes: 3

Views: 1021

Answers (1)

Chris Meyers
Chris Meyers

Reputation: 1426

It is possible that firewall rules in your Cloud Project are preventing the connection, or that the Datalab firewall rules and network have been deleted.

Try recreating the datalab instance, which will recreate the firewall rules to see if this helps: (From https://cloud.google.com/datalab/docs/how-to/lifecycle#updating_the_cloud_datalab_vm_without_deleting_the_notebooks_disk) datalab delete --keep-disk instance-name datalab create instance-name

Upvotes: 1

Related Questions