# GCP jupyter error

**URL:** https://discuss.hail.is/t/gcp-jupyter-error/3093
**Category:** Hail Batch & General Cloud
**Created:** [January 31, 2023, 5:28am UTC](https://discuss.hail.is/t/gcp-jupyter-error/3093 "2023-01-31T05:28:42Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![sk4919](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/sk4919/32/1244_2.png) [@sk4919](https://discuss.hail.is/u/sk4919)
#### Post date: [January 31, 2023, 5:28am UTC](https://discuss.hail.is/t/gcp-jupyter-error/3093/1 "2023-01-31T05:28:42Z")

</div>

Hello

I’ve updated to the latest version of hail, by running pip uninstall followed by pip-install hail.

hail version: 0.2.108-fc03e9d5dc08

I create a cluster using the following command:

hailctl dataproc start my-hail-cluster --optional-components=JUPYTER --enable-component-gateway --master-machine-type n1-standard-8 --worker-machine-type n1-standard-4 --bucket my\_bucket --project myproject --region us-central1 --requester-pays-allow-all --properties spark:spark.driver.maxResultSize=8g,spark:spark.executor.memory=4g

When I open jupyter link: I get the following error:  
Server error: Internal server error: module ‘google.auth.credentials’ has no attribute ‘CredentialsWithTokenUri’

I have used hail like this multiple times so I’m not sure why this has come up. The bucket and cluster are in the same region. If I initiate a non-hail cluster this issue does not occur.

Any help on this would be highly appreciated.

---

<div class="post-metadata">

### Author: ![sk4919](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/sk4919/32/1244_2.png) [@sk4919](https://discuss.hail.is/u/sk4919)
#### Post date: [February 3, 2023, 7:05pm UTC](https://discuss.hail.is/t/gcp-jupyter-error/3093/2 "2023-02-03T19:05:40Z")

</div>

Hello again  
Any help with this would be appreciated.

Thank you

---

<div class="post-metadata">

### Author: ![danking](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/danking/32/43_2.png) [@danking](https://discuss.hail.is/u/danking)
#### Post date: [February 6, 2023, 10:40pm UTC](https://discuss.hail.is/t/gcp-jupyter-error/3093/3 "2023-02-06T22:40:58Z")

</div>

Don’t use `--optional-components=JUPYTER`. You probably also do not need the `--enable-component-gateway`.

`hailctl` automatically configures a version of Jupyter which works properly with Hail. You’re adding a different version of Jupyter which is, apparently, incompatible.

---

<div class="post-metadata">

### Author: ![sk4919](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/sk4919/32/1244_2.png) [@sk4919](https://discuss.hail.is/u/sk4919)
#### Post date: [February 6, 2023, 11:44pm UTC](https://discuss.hail.is/t/gcp-jupyter-error/3093/4 "2023-02-06T23:44:20Z")

</div>

Thanks for the clarification.

How can I then connect to jupyter? I’ve tried running external\_ip:8132 and internal\_ip:8132. But it doesn’t seem to connect.

---

<div class="post-metadata">

### Author: ![danking](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/danking/32/43_2.png) [@danking](https://discuss.hail.is/u/danking)
#### Post date: [February 8, 2023, 1:51am UTC](https://discuss.hail.is/t/gcp-jupyter-error/3093/5 "2023-02-08T01:51:17Z")

</div>

Take a look [at these docs](https://hail.is/docs/0.2/cloud/google_cloud.html#hailctl-dataproc).

---

<div class="post-metadata">

### Author: ![sk4919](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/sk4919/32/1244_2.png) [@sk4919](https://discuss.hail.is/u/sk4919)
#### Post date: [February 8, 2023, 5:24am UTC](https://discuss.hail.is/t/gcp-jupyter-error/3093/6 "2023-02-08T05:24:52Z")

</div>

Thank you

I ran the following command on the master node of my cluster:  
hailctl dataproc connect my-cluster notebook --zone us-central1-c

And I get the following error:

ERROR: (gcloud.compute.ssh) Could not fetch resource:

- Request had insufficient authentication scopes.

I tried authenticating using google auth login however, the authentication doesn’t go through.

Apologies for the continuous headache, your support is greatly appreciated!

---

<div class="post-metadata">

### Author: ![danking](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/danking/32/43_2.png) [@danking](https://discuss.hail.is/u/danking)
#### Post date: [February 8, 2023, 1:12pm UTC](https://discuss.hail.is/t/gcp-jupyter-error/3093/7 "2023-02-08T13:12:26Z")

</div>

Your user account lacks sufficient privilege to SSH to VMs which is how `hailctl` connects you to your notebook. Take a look at the suggestion in [this stack overflow answer](https://stackoverflow.com/a/54677051/6823256).
