# \[SOLVED\] First account creation does not work with self-hosted version on Raspberry Pi

**URL:** <https://vaultwarden.discourse.group/t/solved-first-account-creation-does-not-work-with-self-hosted-version-on-raspberry-pi/292>\
**Category:** Help\
**Created:** [September 12, 2020, 8:58pm UTC](https://vaultwarden.discourse.group/t/solved-first-account-creation-does-not-work-with-self-hosted-version-on-raspberry-pi/292 "2020-09-12T20:58:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![briceparmentier](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/briceparmentier/32/142_2.png) [@briceparmentier](https://vaultwarden.discourse.group/u/briceparmentier)\
**Post date:** [September 12, 2020, 8:58pm UTC](https://vaultwarden.discourse.group/t/solved-first-account-creation-does-not-work-with-self-hosted-version-on-raspberry-pi/292/1 "2020-09-12T20:58:10Z")

</div>

Hi,  
I’ve successfully installed docker and bitwarden\_rs to my Raspberry Pi yesterday (it was previously failing because of something wrong when installing docker, but eventually it worked…).  
But when trying to create the first account on the web interface as described here : [https://codeopolis.com/posts/running-bitwarden-on-a-raspberry-pi-with-docker/](https://codeopolis.com/posts/running-bitwarden-on-a-raspberry-pi-with-docker/), the Submit button has totally no effect.  
Is there anywhere I can check logs for this? I tried checking with "docker logs " but gave nothing after the last message telling that the machine is started.  
I’m feeling like I need a self-hosted mail server to be able to send the email, but there’s nothing described around this so…  
Thanks in advance for your help.  
Brice

---

<div class="post-metadata">

**Author:** ![briceparmentier](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/briceparmentier/32/142_2.png) [@briceparmentier](https://vaultwarden.discourse.group/u/briceparmentier)\
**Post date:** [September 14, 2020, 11:52am UTC](https://vaultwarden.discourse.group/t/solved-first-account-creation-does-not-work-with-self-hosted-version-on-raspberry-pi/292/2 "2020-09-14T11:52:13Z")

</div>

I tried and check the console on the client side (Firefox error console), and here is the log I’m getting when clicking on the “Submit” button :

> vendor.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:566 ERROR Error: Uncaught (in promise): TypeError: Cannot read property ‘importKey’ of null  
> TypeError: Cannot read property ‘importKey’ of null  
> at n. (main.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:1)  
> at main.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:1  
> at Object.next (main.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:1)  
> at main.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:1  
> at new t (zone.js:910)  
> at t (main.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:1)  
> at n.pbkdf2 (main.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:1)  
> at n. (main.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:1)  
> at main.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:1  
> at Object.next (main.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:1)  
> at k (zone.js:831)  
> at zone.js:741  
> at o (main.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:1)  
> at t.invoke (zone.js:391)  
> at Object.onInvoke (vendor.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:624)  
> at t.invoke (zone.js:390)  
> at e.run (zone.js:150)  
> at zone.js:889  
> at t.invokeTask (zone.js:423)  
> at Object.onInvokeTask (vendor.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:624)  
> mh @ vendor.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:566  
> e.handleError @ vendor.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:573  
> next @ vendor.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:638  
> i @ vendor.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:431  
> t.\_\_tryOrUnsub @ vendor.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:1389  
> t.next @ vendor.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:1389  
> t.\_next @ vendor.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:1389  
> t.next @ vendor.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:1389  
> t.next @ vendor.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:1474  
> t.emit @ vendor.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:431  
> (anonymous) @ vendor.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:624  
> t.invoke @ zone.js:391  
> e.run @ zone.js:150  
> e.runOutsideAngular @ vendor.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:624  
> onHandleError @ vendor.ec1191668ddd60d16e05.js?_sm\_au_=iVVD33rqZSQ2HMnVfQG0vKtC38MMJ:sourcemap:624  
> t.handleError @ zone.js:395  
> e.runGuarded @ zone.js:164  
> t @ zone.js:694  
> Zone.\_\_load\_patch.r.microtaskDrainDone @ zone.js:703  
> y @ zone.js:608  
> e.invokeTask @ zone.js:502  
> h @ zone.js:1744  
> v @ zone.js:1770

Thanks.

---

<div class="post-metadata">

**Author:** ![dani](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/dani/32/2_2.png) [@dani](https://vaultwarden.discourse.group/u/dani)\
**Post date:** [September 19, 2020, 8:08pm UTC](https://vaultwarden.discourse.group/t/solved-first-account-creation-does-not-work-with-self-hosted-version-on-raspberry-pi/292/3 "2020-09-19T20:08:18Z")

</div>

The error “Cannot read property ‘importKey’ of null”, means you need to enable HTTPS for it to work, the browser is blocking the required crypto apis when not on a secure domain (so either HTTPS or localhost)

---

<div class="post-metadata">

**Author:** ![briceparmentier](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/briceparmentier/32/142_2.png) [@briceparmentier](https://vaultwarden.discourse.group/u/briceparmentier)\
**Post date:** [September 21, 2020, 6:30am UTC](https://vaultwarden.discourse.group/t/solved-first-account-creation-does-not-work-with-self-hosted-version-on-raspberry-pi/292/4 "2020-09-21T06:30:03Z")

</div>

Hello dani, thanks for your answer, somebody else also told me this, so I’ve tried to run this : [https://github.com/dani-garcia/bitwarden\_rs/wiki/Enabling-HTTPS](https://github.com/dani-garcia/bitwarden_rs/wiki/Enabling-HTTPS).  
This page is pointing to the other one [https://github.com/dani-garcia/bitwarden\_rs/wiki/Private-CA-and-self-signed-certs-that-work-with-Chrome](https://github.com/dani-garcia/bitwarden_rs/wiki/Private-CA-and-self-signed-certs-that-work-with-Chrome) that should help me creating the certificates, but I’m missing the part on where to move the generated files (certificates and keys and so on) to a place that they can be accessible by the docker machine, as the main page say “If following that guide your ROCKET\_TLS line could look like this: -e ROCKET\_TLS=’{certs=”/ssl/bitwarden.crt",key="/ssl/bitwarden.key"}’ "  
Any advise on this please?

---

<div class="post-metadata">

**Author:** ![BlackDex](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/blackdex/32/8_2.png) [@BlackDex](https://vaultwarden.discourse.group/u/BlackDex)\
**Post date:** [September 23, 2020, 5:48am UTC](https://vaultwarden.discourse.group/t/solved-first-account-creation-does-not-work-with-self-hosted-version-on-raspberry-pi/292/5 "2020-09-23T05:48:03Z")

</div>

@briceparmentier this is also mentioned in the first article you link to. You need to add an extra volume like this `-v /ssl/keys/:/ssl/` where `/ssl/keys/` should be the path on the host where the keys are stored.

---

<div class="post-metadata">

**Author:** ![briceparmentier](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/briceparmentier/32/142_2.png) [@briceparmentier](https://vaultwarden.discourse.group/u/briceparmentier)\
**Post date:** [September 23, 2020, 7:18pm UTC](https://vaultwarden.discourse.group/t/solved-first-account-creation-does-not-work-with-self-hosted-version-on-raspberry-pi/292/6 "2020-09-23T19:18:45Z")

</div>

Damn it! This is that simple!  
Thanks a lot @BlackDex, I completely misunderstood this part… I have to admit I’m a total newbie with docker so it doesn’t help a lot 😛  
Thanks again!
