[GH-ISSUE #817] iOS App Sync Failed #568

Closed
opened 2026-03-03 01:30:38 +03:00 by kerem · 9 comments
Owner

Originally created by @rotda on GitHub (Jan 17, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/817

Hello ,

I have problem with the ios APP . Web Vault works fine.

"Sync Failed"

in the log is :

[2020-01-17 14:21:21][bitwarden_rs::api::identity][WARN] Detected unexpected parameter during login: devicepushtoken
[2020-01-17 14:22:01][auth][ERROR] Unauthorized Error: Invalid device id

Can I somehow clean the device

Originally created by @rotda on GitHub (Jan 17, 2020). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/817 Hello , I have problem with the ios APP . Web Vault works fine. "Sync Failed" in the log is : [2020-01-17 14:21:21][bitwarden_rs::api::identity][WARN] Detected unexpected parameter during login: devicepushtoken [2020-01-17 14:22:01][auth][ERROR] Unauthorized Error: Invalid device id Can I somehow clean the device
kerem closed this issue 2026-03-03 01:30:38 +03:00
Author
Owner

@rotda commented on GitHub (Jan 17, 2020):

also in docker logs looks ok
GET /api/sync application/json:
GET /api/sync
=> Matched: GET /api/sync?<data..> (sync)
=> Outcome: Success
GET /api/sync?<data..> (sync) => 200 OK
=> Response succeeded.

<!-- gh-comment-id:575763301 --> @rotda commented on GitHub (Jan 17, 2020): also in docker logs looks ok GET /api/sync application/json: GET /api/sync => Matched: GET /api/sync?<data..> (sync) => Outcome: Success GET /api/sync?<data..> (sync) => 200 OK => Response succeeded.
Author
Owner

@Ogglord commented on GitHub (Jan 21, 2020):

Same issue here - using latest docker image together with iOS app Bitwarden Password Manager v 2.2.5. I cannot login to an exising account. (2FA disabled for this attempt.)

This is from the docker logs

[..][request][INFO] POST /api/accounts/prelogin
[..][response][INFO] POST /api/accounts/prelogin (prelogin) => 200 OK
[..][request][INFO] POST /identity/connect/token
[..][bitwarden_rs::api::identity][WARN] Detected unexpected parameter during login: devicepushtoken
[..][error][ERROR] Username or password is incorrect. Try again. IP: xx.xx.xx.xx. Username: {removed}
[..][response][INFO] POST /identity/connect/token (login) => 400 Bad Request 

<!-- gh-comment-id:576764798 --> @Ogglord commented on GitHub (Jan 21, 2020): Same issue here - using latest docker image together with iOS app Bitwarden Password Manager v 2.2.5. I cannot login to an exising account. (2FA disabled for this attempt.) **This is from the docker logs** ``` [..][request][INFO] POST /api/accounts/prelogin [..][response][INFO] POST /api/accounts/prelogin (prelogin) => 200 OK [..][request][INFO] POST /identity/connect/token [..][bitwarden_rs::api::identity][WARN] Detected unexpected parameter during login: devicepushtoken [..][error][ERROR] Username or password is incorrect. Try again. IP: xx.xx.xx.xx. Username: {removed} [..][response][INFO] POST /identity/connect/token (login) => 400 Bad Request ```
Author
Owner

@interbiznw commented on GitHub (Jan 27, 2020):

getting this same error on android

Detected unexpected parameter during login: devicepushtoken

account had 2fa Yubikey, also can no longer log into web vault....

<!-- gh-comment-id:578755923 --> @interbiznw commented on GitHub (Jan 27, 2020): getting this same error on android Detected unexpected parameter during login: devicepushtoken account had 2fa Yubikey, also can no longer log into web vault....
Author
Owner

@interbiznw commented on GitHub (Jan 27, 2020):

on attempt to login in browser to webvault, get this error

[bitwarden_rs::error][ERROR] JsonError. {"TwoFactorProviders":[3],"TwoFactorProviders2":{"3":{"Nfc":true}},"error":"invalid_grant","error_description":"Two factor required."}

<!-- gh-comment-id:578756392 --> @interbiznw commented on GitHub (Jan 27, 2020): on attempt to login in browser to webvault, get this error `[bitwarden_rs::error][ERROR] JsonError. {"TwoFactorProviders":[3],"TwoFactorProviders2":{"3":{"Nfc":true}},"error":"invalid_grant","error_description":"Two factor required."}`
Author
Owner

@sic79 commented on GitHub (Mar 12, 2020):

Same issue here - using latest docker image together with iOS app Bitwarden Password Manager v 2.2.5. I cannot login to an exising account. (2FA disabled for this attempt.)

This is from the docker logs

[..][request][INFO] POST /api/accounts/prelogin
[..][response][INFO] POST /api/accounts/prelogin (prelogin) => 200 OK
[..][request][INFO] POST /identity/connect/token
[..][bitwarden_rs::api::identity][WARN] Detected unexpected parameter during login: devicepushtoken
[..][error][ERROR] Username or password is incorrect. Try again. IP: xx.xx.xx.xx. Username: {removed}
[..][response][INFO] POST /identity/connect/token (login) => 400 Bad Request 

I have exactly the same issue when trying to connect with iOS, my log is identical

<!-- gh-comment-id:598047177 --> @sic79 commented on GitHub (Mar 12, 2020): > > > Same issue here - using latest docker image together with iOS app Bitwarden Password Manager v 2.2.5. I cannot login to an exising account. (2FA disabled for this attempt.) > > **This is from the docker logs** > > ``` > [..][request][INFO] POST /api/accounts/prelogin > [..][response][INFO] POST /api/accounts/prelogin (prelogin) => 200 OK > [..][request][INFO] POST /identity/connect/token > [..][bitwarden_rs::api::identity][WARN] Detected unexpected parameter during login: devicepushtoken > [..][error][ERROR] Username or password is incorrect. Try again. IP: xx.xx.xx.xx. Username: {removed} > [..][response][INFO] POST /identity/connect/token (login) => 400 Bad Request > ``` I have exactly the same issue when trying to connect with iOS, my log is identical
Author
Owner

@Ubikfr commented on GitHub (Mar 22, 2020):

Same here on Android app only

[2020-03-22 10:21:35][bitwarden_rs::api::identity][WARN] Detected unexpected parameter during login: devicepushtoken
[2020-03-22 10:26:01][error][ERROR] Invalid refresh token

Apps on Linux / MacOs / Windows and web vault are fine, Browser extensions are also fine.

<!-- gh-comment-id:602171494 --> @Ubikfr commented on GitHub (Mar 22, 2020): Same here on Android app only ``` [2020-03-22 10:21:35][bitwarden_rs::api::identity][WARN] Detected unexpected parameter during login: devicepushtoken [2020-03-22 10:26:01][error][ERROR] Invalid refresh token ``` Apps on Linux / MacOs / Windows and web vault are fine, Browser extensions are also fine.
Author
Owner

@rmatiash commented on GitHub (Mar 22, 2020):

I had the same issue, both android and ios (ipad) apps. However after a docker pull everything is working again. Not sure if pulling again...

BR

<!-- gh-comment-id:602181510 --> @rmatiash commented on GitHub (Mar 22, 2020): I had the same issue, both android and ios (ipad) apps. However after a docker pull everything is working again. Not sure if pulling again... BR
Author
Owner

@jjlin commented on GitHub (Mar 22, 2020):

I don't think the devicepushtoken warning is relevant here, and that should be fixed soon.

For the actual issues, it's hard to debug without actual access to your database, which most people will understandably not want to share. But it generally sounds like something is mismatched in the database, or in the client state. Some general advice:

  • Try uninstalling/reinstalling the Bitwarden app on the mobile device.
  • It's generally safer to store your bitwarden_rs database on a local filesystem rather than something like NFS or SMB, which makes data corruption issues much more likely.
<!-- gh-comment-id:602289516 --> @jjlin commented on GitHub (Mar 22, 2020): I don't think the `devicepushtoken` warning is relevant here, and that should be fixed soon. For the actual issues, it's hard to debug without actual access to your database, which most people will understandably not want to share. But it generally sounds like something is mismatched in the database, or in the client state. Some general advice: * Try uninstalling/reinstalling the Bitwarden app on the mobile device. * It's generally safer to store your bitwarden_rs database on a local filesystem rather than something like NFS or SMB, which makes data corruption issues much more likely.
Author
Owner

@dani-garcia commented on GitHub (May 13, 2020):

Some sync issues with the mobile apps have been solved recently so this is probably not applicable anymore.

Other than that, try to delete the clients data and log in again, and make sure the credentials work on another device.

<!-- gh-comment-id:628285091 --> @dani-garcia commented on GitHub (May 13, 2020): Some sync issues with the mobile apps have been solved recently so this is probably not applicable anymore. Other than that, try to delete the clients data and log in again, and make sure the credentials work on another device.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#568
No description provided.