[Resolved] Android can't login to self-hosted instance

I’m self-hosting Vaultwarden on an Oracle cloud instance, and ran into issues logging in with the Android app, with errors like “The operation was canceled” and “an error has occurred”. The certificate was set handled by Nginx, being provided by LetsEncrypt with ACME, with the full chain showing up. The web interface was working fine.

The problem turned out that my IPv6 settings weren’t set up properly. I had an AAAA record in DNS, but the VCN settings in Oracle were not set up for IPv6 traffic by default it seems. I needed ingress records like so:

And an extra route rule for IPv6 as well.

Hope this helps if anyone else encounters this problem.

Here’s the route rule:

image