Hello fellow Bitwarden users,
We are using Bitwarden as a self-hosted solution, running the bitwarden docker images and script. We recently had to update the SSL certificates and I took the liberty of updating Bitwarden to the latest version, using
./bitwarden.sh updateself
./bitwarden.sh update
Everything went smoothly, Bitwarden came back online without a hitch. Now, one of our users - and so far, only one - cannot log into her vault, whatever the connection method or app used. The website interface, the desktop app and the browser extension all return the same error message: “An unexpected error has occurred”.
I looked in the nginx error.log, but could not find anything directly related to the problem at hand. Note that the access.log does contain a 500 error line with a timestamp from when the user attempts to login. But that error is not detailed in the error.log itself:
192.168.0.1 - - [27/Sep/2023:19:03:30 +0000] "POST /identity/connect/token HTTP/1.1" 500 0 "https://our-password-server.here/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36" "The user's IP here"
The only errors contained in the error.log are the following:
2023/09/27 17:17:13 [error] 50#50: OCSP_basic_verify() failed (SSL: error:27069076:OCSP routines:OCSP_basic_verify:signer certificate not found) while requesting certificate status, responder: ocsp.sectigo.com, peer: 104.18.15.101:80, certificate: "/etc/ssl/our_website_directory/certfile.crt"
2023/09/27 17:52:12 [error] 52#52: OCSP_basic_verify() failed (SSL: error:27069076:OCSP routines:OCSP_basic_verify:signer certificate not found) while requesting certificate status, responder: ocsp.sectigo.com, peer: 104.18.14.101:80, certificate: "/etc/ssl/our_website_directory/certfile.crt"
2023/09/27 18:22:12 [error] 52#52: OCSP_basic_verify() failed (SSL: error:27069076:OCSP routines:OCSP_basic_verify:signer certificate not found) while requesting certificate status, responder: ocsp.sectigo.com, peer: 104.18.15.101:80, certificate: "/etc/ssl/our_website_directory/certfile.crt"
2023/09/27 18:52:13 [error] 45#45: OCSP_basic_verify() failed (SSL: error:27069076:OCSP routines:OCSP_basic_verify:signer certificate not found) while requesting certificate status, responder: ocsp.sectigo.com, peer: 104.18.15.101:80, certificate: "/etc/ssl/our_website_directory/certfile.crt"
Since these errors are linked to the ssl_stapling
and ssl_stapling_verify
directives of the nginx default.conf file, I tried to force both of these to off in the file, then restarted the nginx container. I have confirmed that stapling is now off, by running nginx -T
. And no more errors show up in the error.log file. However the user is still experiencing the same issue.
I was (kind of) able to reproduce the issue by logging in from a private browser window. The first time I log in, I get the “An unexpected error has occurred” message. Then if I press Enter or click the Login button again, I get to access my vault. Unfortunately, nothing shows up in the error.log.
Is there any way I can force nginx to write more detailed errors to its error.log file? Or should I look elsewhere for the source of this error? Could the problem stem from one of the other containers? If so, how should I go about pinpointing the source of the problem?