iOS 2.3.1 sync broken #955

Closed
opened 2025-11-26 22:34:49 -06:00 by GiteaMirror · 25 comments
Owner

Originally created by @M4st3rITA on GitHub (Mar 18, 2020).

Originally assigned to: @mpbw2 on GitHub.

Describe the Bug

After upgrading to the latest official version of the iOS app, sync is broken; I've alreay tried to clear the authorised sessions.
The macOS standalone app / browsers app / web seem to be ok and sync without any problem.

Environment

iOS 13.3.1 iPhone Xs Max and iPad Pro 10.5
Server: bitwardenrs docker version 2.12.1

Originally created by @M4st3rITA on GitHub (Mar 18, 2020). Originally assigned to: @mpbw2 on GitHub. ## Describe the Bug After upgrading to the latest official version of the iOS app, sync is broken; I've alreay tried to clear the authorised sessions. The macOS standalone app / browsers app / web seem to be ok and sync without any problem. ## Environment iOS 13.3.1 iPhone Xs Max and iPad Pro 10.5 Server: bitwardenrs docker version 2.12.1
Author
Owner

@kspearrin commented on GitHub (Mar 18, 2020):

Can you explain what about it is broken? Do you get an error message or what?

@kspearrin commented on GitHub (Mar 18, 2020): Can you explain what about it is broken? Do you get an error message or what?
Author
Owner

@M4st3rITA commented on GitHub (Mar 18, 2020):

I've a message displayed on my mobile devices (in italian):
NON CI SONO ELEMENTI NELLA TUA CASSAFORTE /THERE ARE NO ELEMENTS IN YOUR SAFE
It appears I don't have any item in my server, but using web or standalone app under macOS I see everything...

Trying to manually sync it doesn't do anything, and either trying to reset any previous device connected doesn't help.

@M4st3rITA commented on GitHub (Mar 18, 2020): I've a message displayed on my mobile devices (in italian): NON CI SONO ELEMENTI NELLA TUA CASSAFORTE /THERE ARE NO ELEMENTS IN YOUR SAFE It appears I don't have any item in my server, but using web or standalone app under macOS I see everything... Trying to manually sync it doesn't do anything, and either trying to reset any previous device connected doesn't help.
Author
Owner

@Panja0 commented on GitHub (Mar 18, 2020):

Sync has been broken for a long time, for a lot of user on iOS.
Have a look at #457 & #723

@Panja0 commented on GitHub (Mar 18, 2020): Sync has been broken for a long time, for a lot of user on iOS. Have a look at #457 & #723
Author
Owner

@sgtsaint commented on GitHub (Mar 19, 2020):

I also have this issue. Some background:

Initially I installed the app under a different AppleID. When the new update came, I had to reinstall the app, because I was no longer using the old ID and had to login under my current ID.

Download went fine, setup my self-hosted address, etc. > Logged in without issues > Accepted the Push for the auto sync. But no sync was happening. So I tried to manually sync and I got the 'Sync failed' error. I logged out and tried it again, now it stated a time for the last sync: 1-1-0001 01:00. No sync was done of course and the error still persists.

So I tried some different stuff. Deleted the app, deleted the iCloud storage for the app, hide the app from Apple Purchase history (so you are forced to authorize yourself again) > Force restarted my phone and reinstalled the app again. Guess what? Same story again "Sync failed".

Before the latest update the sync worked fine, but after installing the 2.3.1 version I seem to have this issue too.

EDIT: to add, all the other environments (browser, desktop client, etc work without any issues). Also logging in on the mobile browser works. So it's specifically the app that's having issues.

@sgtsaint commented on GitHub (Mar 19, 2020): I also have this issue. Some background: Initially I installed the app under a different AppleID. When the new update came, I had to reinstall the app, because I was no longer using the old ID and had to login under my current ID. Download went fine, setup my self-hosted address, etc. > Logged in without issues > Accepted the Push for the auto sync. But no sync was happening. So I tried to manually sync and I got the 'Sync failed' error. I logged out and tried it again, now it stated a time for the last sync: 1-1-0001 01:00. No sync was done of course and the error still persists. So I tried some different stuff. Deleted the app, deleted the iCloud storage for the app, hide the app from Apple Purchase history (so you are forced to authorize yourself again) > Force restarted my phone and reinstalled the app again. Guess what? Same story again "Sync failed". Before the latest update the sync worked fine, but after installing the 2.3.1 version I seem to have this issue too. EDIT: to add, all the other environments (browser, desktop client, etc work without any issues). Also logging in on the mobile browser works. So it's specifically the app that's having issues.
Author
Owner

@michaelwexler commented on GitHub (Mar 20, 2020):

I am on 2.3.1 iOS. I can add and edit on the browser (via vault.bitwarden.com), but the changes (to the notes) no longer show up on my iOS app. Changes I make to an entry in the notes area on iOS are not saved, and do not show up on the web site. Pulldown to refresh on app has no effect. I see no error messages.

What can we do to diagnose?

@michaelwexler commented on GitHub (Mar 20, 2020): I am on 2.3.1 iOS. I can add and edit on the browser (via vault.bitwarden.com), but the changes (to the notes) no longer show up on my iOS app. Changes I make to an entry in the notes area on iOS are not saved, and do not show up on the web site. Pulldown to refresh on app has no effect. I see no error messages. What can we do to diagnose?
Author
Owner

@michaelwexler commented on GitHub (Mar 20, 2020):

Wow. Discovered that pull to refresh only refreshes the local database see comment here and does not execute a sync with the server as expected.

When I go to settings, I see a "Sync" with a date line under Manage. Turns out, this is tappable! It takes you to a new screen which you to execute a Sync Vault Now, the thing that Pull to Refresh doesn't do. When this manual sync is run, my notes from the web now appear on mobile. My lost mobile entries are still missing.

So, still unclear if the notes added to an entry are even being saved on iOS; they do appear to work properly on the vault.bitwarden.com site.

@michaelwexler commented on GitHub (Mar 20, 2020): Wow. Discovered that pull to refresh only refreshes the local database [see comment here](https://github.com/bitwarden/mobile/issues/457#issuecomment-520843728) and does not execute a sync with the server as expected. When I go to settings, I see a "Sync" with a date line under Manage. Turns out, this is tappable! It takes you to a new screen which you to execute a Sync Vault Now, the thing that Pull to Refresh doesn't do. When this manual sync is run, my notes from the web now appear on mobile. My lost mobile entries are still missing. So, still unclear if the notes added to an entry are even being saved on iOS; they do appear to work properly on the vault.bitwarden.com site.
Author
Owner

@mpbw2 commented on GitHub (Apr 3, 2020):

@M4st3rITA @Panja0 @sgtsaint @michaelwexler Can you guys try testing sync again? I'm hopeful some recent server-side changes will clear this up.

@mpbw2 commented on GitHub (Apr 3, 2020): @M4st3rITA @Panja0 @sgtsaint @michaelwexler Can you guys try testing sync again? I'm hopeful some recent server-side changes will clear this up.
Author
Owner

@Panja0 commented on GitHub (Apr 3, 2020):

@mportune-bw
I’m using the self hosted version.
So I don’t think this reflects on me?

@Panja0 commented on GitHub (Apr 3, 2020): @mportune-bw I’m using the self hosted version. So I don’t think this reflects on me?
Author
Owner

@mpbw2 commented on GitHub (Apr 3, 2020):

@Panja0 Ah yeah, probably not. My apologies.

@mpbw2 commented on GitHub (Apr 3, 2020): @Panja0 Ah yeah, probably not. My apologies.
Author
Owner

@muzzah commented on GitHub (Apr 11, 2020):

Having the same issue. Items created on web not synced to iOS client and vice versa. When manually syncing through settings, it then seems to get updates.

@muzzah commented on GitHub (Apr 11, 2020): Having the same issue. Items created on web not synced to iOS client and vice versa. When manually syncing through settings, it then seems to get updates.
Author
Owner

@sibuser commented on GitHub (Apr 15, 2020):

Cannot sync my vault on ios devices. Sync failed.
Tried to log out and even reinstalled the app.
Version: 2.3.1 (64)
Iphone 13.3.1

When I login first time into my vault the app says that there are no passwords.

@sibuser commented on GitHub (Apr 15, 2020): Cannot sync my vault on ios devices. Sync failed. Tried to log out and even reinstalled the app. Version: 2.3.1 (64) Iphone 13.3.1 When I login first time into my vault the app says that there are no passwords.
Author
Owner

@wormoworm commented on GitHub (Apr 16, 2020):

I was also having this problem on both iOS and Android (self-hosting bitwarden_rs). Browser add-ons in FF and Chrome continued to sync fine.
I tried various older versions of the Android app, all the way back down to v2.2, but all had the same issue.
Eventually I solved it by upgrading my bitwarden_rs docker container to the latest version (it was 2.12.0, now it's 2.13.2). Now sync on Android and iOS works again :)
Probably a breaking change in the API between 2.12 and 2.13 I imagine.

@wormoworm commented on GitHub (Apr 16, 2020): I was also having this problem on both iOS and Android (self-hosting bitwarden_rs). Browser add-ons in FF and Chrome continued to sync fine. I tried various older versions of the Android app, all the way back down to v2.2, but all had the same issue. Eventually I solved it by upgrading my bitwarden_rs docker container to the latest version (it was 2.12.0, now it's 2.13.2). Now sync on Android and iOS works again :) Probably a breaking change in the API between 2.12 and 2.13 I imagine.
Author
Owner

@muzzah commented on GitHub (Apr 16, 2020):

@wormoworm Im not seeing a fix and my containers are up to date. Using the automated script 4 days ago with docker compose.

d730c32d25de        bitwarden/nginx:1.33.1                   "/entrypoint.sh"         4 days ago          Up 4 days (healthy)   80/tcp, 8443/tcp, 0.0.0.0:8282->8080/tcp   bitwarden-nginx
a574dc17968c        bitwarden/admin:1.33.1                   "/entrypoint.sh"         4 days ago          Up 4 days (healthy)   5000/tcp                                   bitwarden-admin
2a41f0fd51f1        bitwarden/mssql:1.33.1                   "/entrypoint.sh"         4 days ago          Up 4 days (healthy)                                              bitwarden-mssql
79c24fd6b81c        bitwarden/events:1.33.1                  "/entrypoint.sh"         4 days ago          Up 4 days (healthy)   5000/tcp                                   bitwarden-events
6b71ae619985        bitwarden/notifications:1.33.1           "/entrypoint.sh"         4 days ago          Up 4 days (healthy)   5000/tcp                                   bitwarden-notifications
01fecb8589a5        bitwarden/attachments:1.33.1             "/entrypoint.sh"         4 days ago          Up 4 days (healthy)                                              bitwarden-attachments
0f95f6658763        bitwarden/api:1.33.1                     "/entrypoint.sh"         4 days ago          Up 4 days (healthy)   5000/tcp                                   bitwarden-api
6356254f98ac        bitwarden/icons:1.33.1                   "/entrypoint.sh"         4 days ago          Up 4 days (healthy)   5000/tcp                                   bitwarden-icons
40bce8b07bc2        bitwarden/web:2.13.2                     "/entrypoint.sh"         4 days ago          Up 4 days (healthy)                                              bitwarden-web
5efbf0d83afd        bitwarden/identity:1.33.1
@muzzah commented on GitHub (Apr 16, 2020): @wormoworm Im not seeing a fix and my containers are up to date. Using the automated script 4 days ago with docker compose. ``` d730c32d25de bitwarden/nginx:1.33.1 "/entrypoint.sh" 4 days ago Up 4 days (healthy) 80/tcp, 8443/tcp, 0.0.0.0:8282->8080/tcp bitwarden-nginx a574dc17968c bitwarden/admin:1.33.1 "/entrypoint.sh" 4 days ago Up 4 days (healthy) 5000/tcp bitwarden-admin 2a41f0fd51f1 bitwarden/mssql:1.33.1 "/entrypoint.sh" 4 days ago Up 4 days (healthy) bitwarden-mssql 79c24fd6b81c bitwarden/events:1.33.1 "/entrypoint.sh" 4 days ago Up 4 days (healthy) 5000/tcp bitwarden-events 6b71ae619985 bitwarden/notifications:1.33.1 "/entrypoint.sh" 4 days ago Up 4 days (healthy) 5000/tcp bitwarden-notifications 01fecb8589a5 bitwarden/attachments:1.33.1 "/entrypoint.sh" 4 days ago Up 4 days (healthy) bitwarden-attachments 0f95f6658763 bitwarden/api:1.33.1 "/entrypoint.sh" 4 days ago Up 4 days (healthy) 5000/tcp bitwarden-api 6356254f98ac bitwarden/icons:1.33.1 "/entrypoint.sh" 4 days ago Up 4 days (healthy) 5000/tcp bitwarden-icons 40bce8b07bc2 bitwarden/web:2.13.2 "/entrypoint.sh" 4 days ago Up 4 days (healthy) bitwarden-web 5efbf0d83afd bitwarden/identity:1.33.1 ```
Author
Owner

@wormoworm commented on GitHub (Apr 16, 2020):

@muzzah I think the difference between our setups is that I'm using the unofficial bitwarden rust server container. I settled on this option as I found it easier to setup and it uses very little resources when running.

@wormoworm commented on GitHub (Apr 16, 2020): @muzzah I think the difference between our setups is that I'm using the unofficial [bitwarden rust server container](https://github.com/dani-garcia/bitwarden_rs). I settled on this option as I found it easier to setup and it uses very little resources when running.
Author
Owner

@muzzah commented on GitHub (Apr 16, 2020):

Ah ok yes that makes sense

@muzzah commented on GitHub (Apr 16, 2020): Ah ok yes that makes sense
Author
Owner

@assices commented on GitHub (Apr 16, 2020):

I'm using self-hosting Bitwarden_rs and I think there is a bug related to login element with both username and password empty.
I solved the issue with this workaround:

Exported my vault to .json. Then I did a search for all login elements with:

"username": null,
"password": null

Then I deleted these elements from my vault (using desktop or web interface).

App sync started syncing again.

Maybe it solves for Bitwarden also.

@assices commented on GitHub (Apr 16, 2020): I'm using self-hosting Bitwarden_rs and I think there is a bug related to login element with both username and password empty. I solved the issue with this workaround: Exported my vault to .json. Then I did a search for all login elements with: "username": null, "password": null Then I deleted these elements from my vault (using desktop or web interface). App sync started syncing again. Maybe it solves for Bitwarden also.
Author
Owner

@sgtsaint commented on GitHub (Apr 16, 2020):

I'm using self-hosting Bitwarden_rs and I think there is a bug related to login element with both username and password empty.
I solved the issue with this workaround:

Exported my vault to .json. Then I did a search for all login elements with:

"username": null,
"password": null

Then I deleted these elements from my vault (using desktop or web interface).

App sync started syncing again.

Maybe it solves for Bitwarden also.

Holy sh*t... Thank you! This worked. My vault had three (duplicate) entries with null values. Removing those and importing the json into a cleaned out vault was the fix for me.

@sgtsaint commented on GitHub (Apr 16, 2020): > > > I'm using self-hosting Bitwarden_rs and I think there is a bug related to login element with both username and password empty. > I solved the issue with this workaround: > > Exported my vault to .json. Then I did a search for all login elements with: > > "username": null, > "password": null > > Then I deleted these elements from my vault (using desktop or web interface). > > App sync started syncing again. > > Maybe it solves for Bitwarden also. Holy sh*t... Thank you! This worked. My vault had three (duplicate) entries with null values. Removing those and importing the json into a cleaned out vault was the fix for me.
Author
Owner

@muzzah commented on GitHub (Apr 16, 2020):

Haha that did it for me too. I found a couple of entries with null usernames. Filled them and sync kicked back in

@muzzah commented on GitHub (Apr 16, 2020): Haha that did it for me too. I found a couple of entries with null usernames. Filled them and sync kicked back in
Author
Owner

@sibuser commented on GitHub (Apr 16, 2020):

I can confirm it worked for me also. Had 3 records with empty username and password in my vault. Deleted them and sync worked like a charm:)

@sibuser commented on GitHub (Apr 16, 2020): I can confirm it worked for me also. Had 3 records with empty username and password in my vault. Deleted them and sync worked like a charm:)
Author
Owner

@timvy commented on GitHub (Apr 17, 2020):

yes! I had the same problem, and i found some items with empty username and password. Thanks!

@timvy commented on GitHub (Apr 17, 2020): yes! I had the same problem, and i found some items with empty username and password. Thanks!
Author
Owner

@kspearrin commented on GitHub (Apr 17, 2020):

Are you guys using bitwarden_rs or the official bitwarden server?

@kspearrin commented on GitHub (Apr 17, 2020): Are you guys using bitwarden_rs or the official bitwarden server?
Author
Owner

@timvy commented on GitHub (Apr 17, 2020):

I use the bitwarden_rs based home assistant addon

@timvy commented on GitHub (Apr 17, 2020): I use the bitwarden_rs based home assistant addon
Author
Owner

@muzzah commented on GitHub (Apr 17, 2020):

@kspearrin official here, not bitwarden_rs. I think problem lies in the client syncing code

@muzzah commented on GitHub (Apr 17, 2020): @kspearrin official here, not bitwarden_rs. I think problem lies in the client syncing code
Author
Owner

@fruitofgeorge commented on GitHub (Dec 21, 2021):

I have a question relating to this. What is the intended sync behavior for the apps, as in, when and how often do they sync? I recently changed a password using the browser plugin and then tried to log in using the new credentials on my phone. The bitwarden app on my phone kept providing the old password until I manually opened that vault entry in the app, which it then synced. Is this normal behavior?

@fruitofgeorge commented on GitHub (Dec 21, 2021): I have a question relating to this. What is the intended sync behavior for the apps, as in, when and how often do they sync? I recently changed a password using the browser plugin and then tried to log in using the new credentials on my phone. The bitwarden app on my phone kept providing the old password until I manually opened that vault entry in the app, which it then synced. Is this normal behavior?
Author
Owner

@vvolkgang commented on GitHub (Jun 20, 2024):

Issue migrated to https://github.com/bitwarden/mobile/issues/782

@vvolkgang commented on GitHub (Jun 20, 2024): Issue migrated to https://github.com/bitwarden/mobile/issues/782
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#955