Vaultwarden: Browser give "ERR_TOO_MANY_REDIRECTS" on initial access to website

(Apologize for not learning markdown. I tried here but failed.)

I am following this procedure (takes you to the failure point):
https://www.linode.com/docs/guides/how-to-self-host-the-vaultwarden-password-manager/#initial-setup

I did have to (for now!) disable the server firewall because I haven't yet figured out everything it needs. My client firewall is not blocking anything.

Here is /etc/Caddyfile:

bw.danandgeno.com {
encode gzip

# The negotiation endpoint is also proxied to Rocket
reverse_proxy /notifications/hub/negotiate 0.0.0.0:80

# Notifications redirected to the websockets server
reverse_proxy /notifications/hub 0.0.0.0:3012

# Send all other traffic to the regular Vaultwarden endpoint
reverse_proxy 0.0.0.0:80
}

Here is the end of the caddy log:

{"level":"info","ts":1679098503.2627814,"logger":"http","msg":"waiting on internal rate limiter","identifiers":["bw.danandgeno.com"],"ca":"https://acme-v02.api.letsencrypt.org/directory","account":""}
{"level":"info","ts":1679098503.2629685,"logger":"http","msg":"done waiting on internal rate limiter","identifiers":["bw.danandgeno.com"],"ca":"https://acme-v02.api.letsencrypt.org/directory","account":""}
{"level":"info","ts":1679098503.5212197,"logger":"http.acme_client","msg":"trying to solve challenge","identifier":"bw.danandgeno.com","challenge_type":"http-01","ca":"https://acme-v02.api.letsencrypt.org/directory"}
{"level":"info","ts":1679098503.716019,"logger":"http","msg":"served key authentication","identifier":"bw.danandgeno.com","challenge":"http-01","remote":"172.17.0.1:38646","distributed":false}
{"level":"info","ts":1679098503.7773952,"logger":"http","msg":"served key authentication","identifier":"bw.danandgeno.com","challenge":"http-01","remote":"172.17.0.1:38660","distributed":false}
{"level":"info","ts":1679098503.82911,"logger":"http","msg":"served key authentication","identifier":"bw.danandgeno.com","challenge":"http-01","remote":"172.17.0.1:38662","distributed":false}
{"level":"info","ts":1679098504.1677046,"logger":"http.acme_client","msg":"authorization finalized","identifier":"bw.danandgeno.com","authz_status":"valid"}
{"level":"info","ts":1679098504.1678681,"logger":"http.acme_client","msg":"validations succeeded; finalizing order","order":"https://acme-v02.api.letsencrypt.org/acme/order/1014709987/170709088347"}
{"level":"info","ts":1679098504.994031,"logger":"http.acme_client","msg":"successfully downloaded available certificate chains","count":2,"first_url":"https://acme-v02.api.letsencrypt.org/acme/cert/042fc11878fadbffd6f073c4f757a3e566a5"}
{"level":"info","ts":1679098504.9946651,"logger":"tls.obtain","msg":"certificate obtained successfully","identifier":"bw.danandgeno.com"}
{"level":"info","ts":1679098504.9947495,"logger":"tls.obtain","msg":"releasing lock","identifier":"bw.danandgeno.com"}

Here is the entirety of the Vaultwarden log:

/--------------------------------------------------------------------\
| Starting Vaultwarden |
| Version 1.27.0 |
|--------------------------------------------------------------------|
| This is an unofficial Bitwarden implementation, DO NOT use the |
| official channels to report bugs/features, regardless of client. |
| Send usage/configuration questions or feature requests to: |
| https://vaultwarden.discourse.group/ |
| Report suspected bugs/issues in the software itself at: |
| https://github.com/dani-garcia/vaultwarden/issues/new |
--------------------------------------------------------------------/

[INFO] No .env file found.

[2023-03-18 00:08:57.733][vaultwarden][INFO] Private key created correctly.
[2023-03-18 00:08:57.735][vaultwarden][INFO] Public key created correctly.
[2023-03-18 00:08:58.054][vaultwarden::api::notifications][INFO] Starting WebSockets server on 0.0.0.0:3012
[2023-03-18 00:08:58.056][start][INFO] Rocket has launched from http://0.0.0.0:80

Nothing that indicates there is anything wrong.

I tried stopping file2ban, but that didn't help.

I tried using the RDNS address but got the same error.

Pings all around work fine. I thought there was a DNS problem since I recently changed the IPv4 address and added the IPv6 address in No-IP.com.

I tried allowing redirects in the browser. No luck.

Does anyone have any ideas why I might be getting this error?

Thanks. :)

2 Replies

Does anyone have any ideas why I might be getting this error?

You're assuming that everybody in the Linode-world knows what this "vaultwarden" thing is.

Au contraire…

Given that this is the first time I've ever heard the two words "vault" and "warden" concatenated into a name (and I'm probably way older than you), you're going to have to ask your question about stuff we understand -- web servers, Kubernetes clusters, etc.

I'd suggest doing simple stuff first:

https://www.drivereasy.com/knowledge/how-to-fix-err-too-many-redirects-error/

If that doesn't work, try asking your question regarding items that the group here understands.

-- sw

Ok then. I'll just go away.

The linked info didn't help.

And, how am I supposed to know what anyone understands?

I did start out by linking to the Linode Procedure to assist in your understanding.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct