# Error in Authenticator.pre\_spawn\_start

**URL:** <https://renku.discourse.group/t/error-in-authenticator-pre-spawn-start/293>\
**Category:** Renku Admin\
**Created:** [26 March 2021 16:24 UTC](https://renku.discourse.group/t/error-in-authenticator-pre-spawn-start/293 "2021-03-26T16:24:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![abella91](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@abella91](https://renku.discourse.group/u/abella91)\
**Post date:** [26 March 2021 16:24 UTC](https://renku.discourse.group/t/error-in-authenticator-pre-spawn-start/293/1 "2021-03-26T16:24:15Z")

</div>

Hello,  
I deployed renku helm chart using config file generated with the script [renku/make-values.sh at master · SwissDataScienceCenter/renku · GitHub](https://github.com/SwissDataScienceCenter/renku/blob/master/helm-chart/example-configurations/make-values.sh) (make-values.sh -domain [mydomain.com](http://mydomain.com/) --output-file renku-values.yaml). i deployed all components in the same stack (gitlab, keycloak, renku, and jupyterhub). when I try to launch jupyterjub i browse url https://\<renku\_domain\>/jupyterhub then i get this error message displayed in the browser: # 500 : Internal Server Error  
Error in Authenticator.pre\_spawn\_start: TraitError The ‘image’ trait of a RenkuKubeSpawner instance expected a unicode string, not the NoneType None.

Is my issue related to config file generated by make-values.sh script ?

Thanks

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [26 March 2021 16:27 UTC](https://renku.discourse.group/t/error-in-authenticator-pre-spawn-start/293/2 "2021-03-26T16:27:20Z")

</div>

Hi @abella91 that’s not really an error, because we don’t ever use that path to jupyterhub in renku - are you able to create a project and launch an interactive environment?

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [26 March 2021 16:32 UTC](https://renku.discourse.group/t/error-in-authenticator-pre-spawn-start/293/3 "2021-03-26T16:32:44Z")

</div>

> [@abella91](#):
>
> Is my issue related to config file generated by make-values.sh script ?

No, I don’t think so - the issue is that when you go to the `/jupyterhub` endpoint it tries to launch a user notebook server for you - we don’t really support those since we only launch named servers inside projects. The error comes from the fact that we don’t supply a default image value for a named server.  
Could you try launching an environment from a project?

---

<div class="post-metadata">

**Author:** ![abella91](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@abella91](https://renku.discourse.group/u/abella91)\
**Post date:** [28 March 2021 16:07 UTC](https://renku.discourse.group/t/error-in-authenticator-pre-spawn-start/293/4 "2021-03-28T16:07:28Z")

</div>

Thank you for your help. i’m not able to launch project. I get error in gitlab pipeline "ERROR: Job failed (system failure): prepare environment: secrets is forbidden: User “system:serviceaccount:renku:default” cannot create resource “secrets” in API group “in the namespace “renku”. Check [Shells supported by GitLab Runner | GitLab](https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading) for more information”, when I try to launch new environment but I think this is not related to this topic. I consider this topic as solved.

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [28 March 2021 19:49 UTC](https://renku.discourse.group/t/error-in-authenticator-pre-spawn-start/293/5 "2021-03-28T19:49:39Z")

</div>

Indeed, that sounds like a problem with your GitLab CI runners, which is somewhat independent of the initial issue. Still, this error will prevent you from building up-to-date images for your projects.

What kind of runner are you using? from the error it sounds like you are using a runner inside kubernetes?

---

<div class="post-metadata">

**Author:** ![abella91](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@abella91](https://renku.discourse.group/u/abella91)\
**Post date:** [28 March 2021 23:31 UTC](https://renku.discourse.group/t/error-in-authenticator-pre-spawn-start/293/6 "2021-03-28T23:31:32Z")

</div>

@rrrrrok It is a Kubernetes Gitlab runner that I installed using helm chart

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [29 March 2021 07:16 UTC](https://renku.discourse.group/t/error-in-authenticator-pre-spawn-start/293/7 "2021-03-29T07:16:23Z")

</div>

@abella91 make sure you do the `helm install` with the RBAC creation enabled for the _runner_ - if the runner is installed together with the rest of the GitLab helm chart, you have to set this in the values file you have for the GitLab installation - see [here](https://gitlab.com/gitlab-org/charts/gitlab/-/blob/master/values.yaml#L913-916) for example. If you don’t want to let GitLab handle the RBAC automatically, you’ll need to create the service account for the runner yourself.

---

<div class="post-metadata">

**Author:** ![abella91](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@abella91](https://renku.discourse.group/u/abella91)\
**Post date:** [1 April 2021 09:43 UTC](https://renku.discourse.group/t/error-in-authenticator-pre-spawn-start/293/8 "2021-04-01T09:43:08Z")

</div>

@rrrrrok, in my environment I installed renku, gitlab, keycloak in one stack from renku helm chart and installed gitlab-runner in my k8s cluster using gitlab-runner helm chart. to configure gitlab-runner to work correctly with renku,

1. I followed steps in this link [GitLab Runner Helm Chart | GitLab](https://docs.gitlab.com/runner/install/kubernetes.html#required-configuration) to do the required configuration
2. custom configuration to work with renku:  
a) enable RBAC as you advised me by setting following value in the config file of the gitlab-runner chart:  
rbac:  
create: true  
b) in the same file, add config to existing kubernetes runner to mount volume for socket binding  
runners:  
config: |  
[[runners]]  
image = “ubuntu:16.04”  
[runners.kubernetes]  
[[runners.kubernetes.volumes.host\_path]]  
name = “socketbinding”  
mount\_path = “/var/run/docker.sock”  
read\_only = true  
host\_path = “/var/run/docker.sock”

After that, i was able to create and launch a project in renku. Thanks a lot for your help 🙂

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [5 April 2021 21:37 UTC](https://renku.discourse.group/t/error-in-authenticator-pre-spawn-start/293/9 "2021-04-05T21:37:11Z")

</div>

That’s great @abella91! And thanks for sharing the configuration that made it work!

Just a side comment - I’m sure you are probably aware of this, but just in case others will be reading this thread: mounting the docker socket into the runners directly and executing user-defined CI jobs there is a potential security risk - you might want to consider a root-less image-building solution like [kaniko](https://github.com/GoogleContainerTools/kaniko) (I’ve tried this and it works - see the [gitlab documenation](https://docs.gitlab.com/ee/ci/docker/using_kaniko.html) on how to set it up and [this post](https://renku.discourse.group/t/feedback-on-offline-deployment-with-custom-root-ca/299) about another renku deployment using it) or docker running in [rootless mode](https://docs.docker.com/engine/security/rootless/) (have not tried this).
