# iOS Apps keeps crashing

**URL:** <https://vaultwarden.discourse.group/t/ios-apps-keeps-crashing/536>\
**Category:** Help\
**Created:** [January 17, 2021, 8:52pm UTC](https://vaultwarden.discourse.group/t/ios-apps-keeps-crashing/536 "2021-01-17T20:52:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbe123](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@mbe123](https://vaultwarden.discourse.group/u/mbe123)\
**Post date:** [January 17, 2021, 8:52pm UTC](https://vaultwarden.discourse.group/t/ios-apps-keeps-crashing/536/1 "2021-01-17T20:52:56Z")

</div>

Currently running the latest version of bitwardenRS on docker (via a VM), using Traefik as a reverse proxy. Unfortunately whilst the service works for the browser addons the app crashes every time I attempt to log in.

I have tried initially with my daily driver (iPhone 11, 13.5.5, uncover jailbreak) which didn’t work and I initially thought the jailbreak was causing the issues, so I rebooted to test this and the same thing happened. Tried again on my iPad (13.5), same issue. Then on my wife’s iPhone (iOS 14, iPhone 12 Pro), never jailbroken and the exact same issue occurs.

I have tried with Duo being activated and deactivated, same result.

I can get into the app, put in the selfhosting details but as soon as I log in with the details it crashes.

Any tips to get around this or should I give it up as a bad job until a new version for the server rolls out, or one for the app too?

---

<div class="post-metadata">

**Author:** ![WpJ](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@WpJ](https://vaultwarden.discourse.group/u/WpJ)\
**Post date:** [January 19, 2021, 12:17pm UTC](https://vaultwarden.discourse.group/t/ios-apps-keeps-crashing/536/2 "2021-01-19T12:17:14Z")

</div>

Does the app work with the official BW server?

If no - then you should really report the issue at [Issues · bitwarden/mobile · GitHub](https://github.com/bitwarden/mobile/issues)

Otherwise - do you see any logs on the BW side?

---

<div class="post-metadata">

**Author:** ![mbe123](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@mbe123](https://vaultwarden.discourse.group/u/mbe123)\
**Post date:** [January 19, 2021, 2:24pm UTC](https://vaultwarden.discourse.group/t/ios-apps-keeps-crashing/536/3 "2021-01-19T14:24:44Z")

</div>

Thanks for replying. Yes it works with the standard server ok.

There are no logs on the server even mentioning a connection. When I use the direct address (through port 3012) it comes up with a websocket error.

Otherwise I can access the vault through my reverse proxy and through the web extensions.

---

<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:** [January 20, 2021, 6:20pm UTC](https://vaultwarden.discourse.group/t/ios-apps-keeps-crashing/536/4 "2021-01-20T18:20:56Z")

</div>

Port 3012 isn’t a direct connection, it’s only used for websockets, which have no effect on mobile clients.

Also, https is needed for mobile clients in most situations. And the certificate needs to be valid.

Also, could you let us know which version of bitwarden\_rs you are running?

---

<div class="post-metadata">

**Author:** ![mbe123](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@mbe123](https://vaultwarden.discourse.group/u/mbe123)\
**Post date:** [January 21, 2021, 9:34pm UTC](https://vaultwarden.discourse.group/t/ios-apps-keeps-crashing/536/5 "2021-01-21T21:34:23Z")

</div>

Thanks for getting back to me. Finally got a basic grip on what everything is doing but I can’t get the iOS app to work.

I am using Traefik with Lets Encrypt to provide me with my certificates, which are all valid and up to date (have no other issues with accessing the sites forwarded to on any thing else on my server). I downloaded them and accepted them on my devices as well to no avail.

The main issue in troubleshooting this is that the connection doesn’t seem to be reaching as far as the server to be logged, so I’m completely in the dark and it definitely seems like an issue with the app for self-hosted servers.

I’ll throw an issue up on the git for the mobile to see if there is anything else that can be done. Otherwise that will end my short journey into using Bitwarden unfortunately.

---

<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:** [January 21, 2021, 9:48pm UTC](https://vaultwarden.discourse.group/t/ios-apps-keeps-crashing/536/6 "2021-01-21T21:48:26Z")

</div>

Well, of the issue is your setup, that will not help your report on the [bitwarden.com](http://bitwarden.com) issues. They will also send you back to us.

Could you try an other proxy maybe? Like nginx or haproxy?  
Also, please share more details, like config, versions, etc…

---

<div class="post-metadata">

**Author:** ![mbe123](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@mbe123](https://vaultwarden.discourse.group/u/mbe123)\
**Post date:** [January 21, 2021, 11:26pm UTC](https://vaultwarden.discourse.group/t/ios-apps-keeps-crashing/536/7 "2021-01-21T23:26:40Z")

</div>

Just worked it out. It was actually thanks to the logs of the Nextcloud iOS app that pointed me in the write direction.

```
  #- --entrypoints.https.http.middlewares=chain-oauth@file
  - --entrypoints.https.http.tls.options=tls-opts@file`

```

Had the the oauth chain un-commented which mean that it was set globally meaning this:

```
  - "traefik.http.routers.bitwarden-rtr-bypass.middlewares=chain-no-auth@file"

```

Was being ignored!

Thanks for your help and time! Apologies for wasting it 🤦‍♂️
