Sync fails on iOS app, macOS app, browser extensions, web vault #730

Closed
opened 2026-02-04 22:21:47 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @TommasoAmici on GitHub (Jun 20, 2020).

Subject of the issue

Data won't sync on iOS app, browser extensions, web vault.

Your environment

  • Bitwarden_rs version: 1.15.1-a87646b8
  • Install method: Docker image (automatically pulls bitwardenrs/server:alpine once a week)
  • Clients used: iOS app (latest version on iOS 13.5.1 on iPhone and iOS 13.5 on iPad), macOS app version 1.18.0, web vault version 2.14.0, browser extensions on Firefox and Safari
  • Reverse proxy and version: nginx version: nginx/1.18.0
  • Version of mysql/postgresql: using SQLite
  • Other relevant information: The database doesn't seem to be corrupted as in the admin view I can see correctly the number of items in each user and after manually expiring all the sessions it briefly worked again.

Steps to reproduce

This is how I start the container:

docker run -d --name bitwarden -p 127.0.0.1:8100:80 -v /home/bitwarden/bw-data/:/data/ \
           -e ADMIN_TOKEN=myadmintoken \
           -e LOG_FILE=/data/bitwarden.log \
           -e DOMAIN=https://vault.mydomain.com \
           -e SMTP_HOST=mail.mydomain.com \
           -e SMTP_FROM=bitwarden@mydomain.com \
           -e SMTP_PORT=587 \
           -e SMTP_SSL=true \
           -e SMTP_USERNAME=bitwarden@mydomain.com \
           -e SMTP_PASSWORD=myemailpassword \
           bitwardenrs/server:alpine

Then I proxy all the requests to my domain with nginx to the container.

Expected behavior

The clients should all sync

Actual behaviour

No client is able to sync

Relevant logs

From the logs no error is thrown

[2020-06-20 12:53:15][request][INFO] GET /api/sync?excludeDomains=true
[2020-06-20 12:53:15][response][INFO] GET /api/sync?<data..> (sync) => 200 OK
[2020-06-20 12:53:18][request][INFO] GET /api/sync
[2020-06-20 12:53:18][response][INFO] GET /api/sync?<data..> (sync) => 200 OK

Seemingly the data is there, I can query the SQLite file and it's not corrupted.
Screen Shot 2020-06-20 at 14 46 38

All the clients login correctly, but no data is pulled

Screen Shot 2020-06-20 at 14 46 04 macOS 10 15 5 - safari
Originally created by @TommasoAmici on GitHub (Jun 20, 2020). <!-- Please fill out the following template to make solving your problem easier and faster for us. This is only a guideline. If you think that parts are unneccessary for your issue, feel free to remove them. Remember to hide/obfuscate personal and confidential information, such as names, global IP/DNS adresses and especially passwords, if neccessary. --> ### Subject of the issue <!-- Describe your issue here.--> Data won't sync on iOS app, browser extensions, web vault. ### Your environment <!-- The version number, obtained from the logs or the admin page --> * Bitwarden_rs version: 1.15.1-a87646b8 <!-- How the server was installed: Docker image / package / built from source --> * Install method: Docker image (automatically pulls `bitwardenrs/server:alpine` once a week) * Clients used: iOS app (latest version on iOS 13.5.1 on iPhone and iOS 13.5 on iPad), macOS app version 1.18.0, web vault version 2.14.0, browser extensions on Firefox and Safari * Reverse proxy and version: nginx version: nginx/1.18.0 * Version of mysql/postgresql: using SQLite * Other relevant information: The database doesn't seem to be corrupted as in the admin view I can see correctly the number of items in each user and after manually expiring all the sessions it briefly worked again. ### Steps to reproduce <!-- Tell us how to reproduce this issue. What parameters did you set (differently from the defaults) and how did you start bitwarden_rs? --> This is how I start the container: ``` docker run -d --name bitwarden -p 127.0.0.1:8100:80 -v /home/bitwarden/bw-data/:/data/ \ -e ADMIN_TOKEN=myadmintoken \ -e LOG_FILE=/data/bitwarden.log \ -e DOMAIN=https://vault.mydomain.com \ -e SMTP_HOST=mail.mydomain.com \ -e SMTP_FROM=bitwarden@mydomain.com \ -e SMTP_PORT=587 \ -e SMTP_SSL=true \ -e SMTP_USERNAME=bitwarden@mydomain.com \ -e SMTP_PASSWORD=myemailpassword \ bitwardenrs/server:alpine ``` Then I proxy all the requests to my domain with nginx to the container. ### Expected behavior <!-- Tell us what should happen --> The clients should all sync ### Actual behaviour <!-- Tell us what happens instead --> No client is able to sync ### Relevant logs <!-- Share some logfiles, screenshots or output of relevant programs with us. --> From the logs no error is thrown ``` [2020-06-20 12:53:15][request][INFO] GET /api/sync?excludeDomains=true [2020-06-20 12:53:15][response][INFO] GET /api/sync?<data..> (sync) => 200 OK [2020-06-20 12:53:18][request][INFO] GET /api/sync [2020-06-20 12:53:18][response][INFO] GET /api/sync?<data..> (sync) => 200 OK ``` Seemingly the data is there, I can query the SQLite file and it's not corrupted. <img width="816" alt="Screen Shot 2020-06-20 at 14 46 38" src="https://user-images.githubusercontent.com/424525/85202463-e7e5e380-b306-11ea-8466-5b55abc9aa7c.png"> All the clients login correctly, but no data is pulled <img width="1159" alt="Screen Shot 2020-06-20 at 14 46 04" src="https://user-images.githubusercontent.com/424525/85202462-e6b4b680-b306-11ea-81c5-6f74632664b1.png"> <img width="387" src="https://user-images.githubusercontent.com/424525/85202458-e2889900-b306-11ea-87c0-5dfb9bba1ea9.jpeg"> <img width="387" alt="macOS 10 15 5 - safari" src="https://user-images.githubusercontent.com/424525/85202461-e5838980-b306-11ea-958a-1fd49b146fd5.png">
Author
Owner

@TommasoAmici commented on GitHub (Jun 20, 2020):

Extra info: I have tried to add an item through the web vault and it saves correctly, and through the admin I see the count has increased by 1. So it didn't overwrite anything.

@TommasoAmici commented on GitHub (Jun 20, 2020): Extra info: I have tried to add an item through the web vault and it saves correctly, and through the admin I see the count has increased by 1. So it didn't overwrite anything.
Author
Owner

@TommasoAmici commented on GitHub (Jun 21, 2020):

After digging through the logs, it turns out my nginx config was not set up correctly.

In my case the issue was that the user nginx was running under did not have the correct permissions to serve the javascript files from the container.

@TommasoAmici commented on GitHub (Jun 21, 2020): After digging through the logs, it turns out my nginx config was not set up correctly. In my case the issue was that the user nginx was running under did not have the correct permissions to serve the javascript files from the container.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#730