rgoogle-cloud-platformgoogle-cloud-mlgcp-ai-platform-notebookgoogle-ai-platform

Google cloud AI platform jupyter notebook instance will not open even after a reset and is running


I am using the Google AI platform which provides jupyterlab notebooks. I have 2 notebook instances set up to run R of which only one notebook now opens. The first notebook will not open regardless of the number of stops and resets I performed. The notebook overview can be seen in this image and circled is a difference (it is 'started'): difference in dashboard

The only reason I can imagine for this difficulty is that I changed the machine type for the notebook where I decreased the number of CPUs from 4 to 2 and the RAM from 15 to 7.5. Now I cannot open it and it has a blank for where the environment should say R3.6. I would not mind deleting it and starting over if there was not nonbacked-up work on it.

What can be done to bring the notebook back to operation and if it cannot be done, how can I download it or extract some key files?


Solution

  • As it was commented before, there are two ways to inspect the Notebook Instance using Cloud Console:

    1. GCP Console > AI Platform > Notebooks
    2. GCP Console > Compute Engine > VM Instances. The name of the GCE VM Instance will be the same as the Notebook Instance name.

    It looks like you were able to connect to your Notebook instance via SSH button. Additionally you can use gcloud command to connect to instances via SSH that you have permission to access by following:

    gcloud compute ssh --project <PROJECT> --zone <ZONE> <INSTANCE>
    

    After you connect, use the terminal to run commands to verify the status of your jupyter service and the service logs by running:

    sudo service jupyter status
    sudo journalctl -u jupyter.service --no-pager
    

    You can restart the jupyter service to try to recover it:

    sudo service jupyter restart
    

    If you want to use other methods or third parties to create a SSH connection to your Notebook instance, you can follow this.

    If you were not able to recover your jupyter service, you can copy your files from your VM by click the gear icon in the upper right of the SSH from the Browser window and select Download file.

    enter image description here

    As it was mentioned before, the gsutil cp command allows you to copy data between your local file system and the cloud, within the cloud, and between cloud storage providers. For example, to upload all files from the local directory to a bucket, you can run:

    gsutil cp -r dir gs://my-bucket
    

    Use the -r option to copy an entire directory tree