[Bug]: Your data is out of Sync #128

Closed
opened 2026-02-28 18:49:33 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @rich-howell on GitHub (Aug 25, 2022).

Verified issue does not already exist?

I have searched and found no existing issue

What happened?

Syncronisation of my budget failed with an out of Sync message appearing again.

image
image
image

This is the budget on my desktop
image

This is the more up to date budget, on my laptop
image

Both say they are Synchronised.

What error did you receive?

Your data is out of Sync.
There was a problem syncing your data. We can try to repair your sync state to fix it.

Where are you hosting Actual?

Fly.io

What browsers are you seeing the problem on?

Firefox, Microsoft Edge

Operating System

Windows 11

Originally created by @rich-howell on GitHub (Aug 25, 2022). ### Verified issue does not already exist? I have searched and found no existing issue ### What happened? Syncronisation of my budget failed with an out of Sync message appearing again. ![image](https://user-images.githubusercontent.com/22135084/186707474-8af33364-f2e5-48ca-ad33-4eb88d26a40e.png) ![image](https://user-images.githubusercontent.com/22135084/186707499-7d34456b-a844-471f-9d05-1c16d8b0de1f.png) ![image](https://user-images.githubusercontent.com/22135084/186707519-b33e86a8-8b3f-4c40-ba67-7f73e55d7b73.png) This is the budget on my desktop ![image](https://user-images.githubusercontent.com/22135084/186707562-f32c2944-adee-4d55-bd8b-5c02fd83df20.png) This is the more up to date budget, on my laptop ![image](https://user-images.githubusercontent.com/22135084/186707604-ece3288b-0507-46c8-a4b7-b045bafa8a91.png) Both say they are Synchronised. ### What error did you receive? Your data is out of Sync. There was a problem syncing your data. We can try to repair your sync state to fix it. ### Where are you hosting Actual? Fly.io ### What browsers are you seeing the problem on? Firefox, Microsoft Edge ### Operating System Windows 11
GiteaMirror added the bug label 2026-02-28 18:49:33 -06:00
Author
Owner

@rich-howell commented on GitHub (Aug 25, 2022):

Taken from Firefox
image

@rich-howell commented on GitHub (Aug 25, 2022): Taken from Firefox ![image](https://user-images.githubusercontent.com/22135084/186710927-36febdc2-8d07-446d-bad2-c4a0a33741f3.png)
Author
Owner

@lancepick commented on GitHub (Aug 28, 2022):

I experience the same issues as above, when I try to Import transactions via the API.

After the transactions have imported, if I refresh the browser the transactions appear to all be there, but shortly after I'll start seeing the Sync issue above.

My importer app is loaded in another docker instance that shares the Actual volume mount for the databases.

Where are you hosting Actual?
Unraid/Docker

What browsers are you seeing the problem on?
Chrome

Operating System
Windows 11 for the browser, Unraid for Actual Server

@lancepick commented on GitHub (Aug 28, 2022): I experience the same issues as above, when I try to Import transactions via the API. After the transactions have imported, if I refresh the browser the transactions appear to all be there, but shortly after I'll start seeing the Sync issue above. My importer app is loaded in another docker instance that shares the Actual volume mount for the databases. Where are you hosting Actual? Unraid/Docker What browsers are you seeing the problem on? Chrome Operating System Windows 11 for the browser, Unraid for Actual Server
Author
Owner

@chylex commented on GitHub (Sep 5, 2022):

I'm also seeing this. Repairing doesn't work. Resetting sync also doesn't work, the message re-appears after I refresh the page.

obrazek

If I wipe the database from Firefox and download it again, the error appears immediately after the database is downloaded and I get a welcome dialog. I also lose all changes I made since this issue started happening.

All the logs say on the server is "Making backup".

Browser logs:

08:50:52.410 Reading meta... [0ee7696a-f0c9-4d43-99dc-84e7e287aa5a:1:7805](blob:<url>/0ee7696a-f0c9-4d43-99dc-84e7e287aa5a)
08:50:52.411 Got meta for documents-Actual-d7dcf585-aaed-4a13-9e75-4c2f19cf812a-db.sqlite: 
Object { size: 9093120 }
[0ee7696a-f0c9-4d43-99dc-84e7e287aa5a:1:7861](blob:<url>/0ee7696a-f0c9-4d43-99dc-84e7e287aa5a)
08:50:52.412 Opened! [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:52.607 Loaded spreadsheet from cache (15036 items) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:53.018 Syncing since 2022-09-05T06:45:52.948Z-0000-0000000000000000 0 (attempt: 0) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:53.310 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:53.312 Syncing since 1970-01-01T00:00:00.000Z-0000-0000000000000000 0 (attempt: 1) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:53.391 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:53.393 Syncing since 1970-01-01T00:00:00.000Z-0000-0000000000000000 0 (attempt: 2) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:53.506 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:53.508 Syncing since 1970-01-01T00:00:00.000Z-0000-0000000000000000 0 (attempt: 3) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:53.629 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:53.631 Syncing since 1970-01-01T00:00:00.000Z-0000-0000000000000000 0 (attempt: 4) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:53.707 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:53.709 Syncing since 1970-01-01T00:00:00.000Z-0000-0000000000000000 0 (attempt: 5) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:53.787 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:53.788 Syncing since 1970-01-01T00:00:00.000Z-0000-0000000000000000 0 (attempt: 6) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:53.860 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:53.862 Syncing since 1970-01-01T00:00:00.000Z-0000-0000000000000000 0 (attempt: 7) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:53.958 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:53.960 Syncing since 1970-01-01T00:00:00.000Z-0000-0000000000000000 0 (attempt: 8) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:54.027 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:54.029 Syncing since 1970-01-01T00:00:00.000Z-0000-0000000000000000 0 (attempt: 9) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:54.101 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:54.103 Syncing since 1970-01-01T00:00:00.000Z-0000-0000000000000000 0 (attempt: 10) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:54.176 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:54.176 SENT ------- [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:54.176 [] [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:54.176 RECEIVED ------- [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:54.176 [] [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:54.178 10 messages: 0 null res.messages: 0 null clientId 8ed319a8febf5f1b groupId c335be1c-0fc1-4306-a927-9519f2966329 diffTime: 0 true local clock: 1970-01-01T00:00:00.000Z-0000-8ed319a8febf5f1b undefined rebuilt hash: 0 undefined server hash: 1500104996 localTimeChanged: false [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:54.178 Error: SyncError: out-of-sync [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js)
08:50:54.178 [Exception] Error: SyncError: out-of-sync

EDIT: Wiping everything on the server, setting it up from scratch, and re-uploading my database seems to have worked.

@chylex commented on GitHub (Sep 5, 2022): I'm also seeing this. Repairing doesn't work. Resetting sync also doesn't work, the message re-appears after I refresh the page. ![obrazek](https://user-images.githubusercontent.com/3685160/188382003-e5914f42-d657-4282-9162-0f6e29aaf7a1.png) If I wipe the database from Firefox and download it again, the error appears **immediately** after the database is downloaded and I get a welcome dialog. I also lose all changes I made since this issue started happening. All the logs say on the server is "Making backup". Browser logs: ``` 08:50:52.410 Reading meta... [0ee7696a-f0c9-4d43-99dc-84e7e287aa5a:1:7805](blob:<url>/0ee7696a-f0c9-4d43-99dc-84e7e287aa5a) 08:50:52.411 Got meta for documents-Actual-d7dcf585-aaed-4a13-9e75-4c2f19cf812a-db.sqlite: Object { size: 9093120 } [0ee7696a-f0c9-4d43-99dc-84e7e287aa5a:1:7861](blob:<url>/0ee7696a-f0c9-4d43-99dc-84e7e287aa5a) 08:50:52.412 Opened! [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:52.607 Loaded spreadsheet from cache (15036 items) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:53.018 Syncing since 2022-09-05T06:45:52.948Z-0000-0000000000000000 0 (attempt: 0) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:53.310 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:53.312 Syncing since 1970-01-01T00:00:00.000Z-0000-0000000000000000 0 (attempt: 1) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:53.391 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:53.393 Syncing since 1970-01-01T00:00:00.000Z-0000-0000000000000000 0 (attempt: 2) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:53.506 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:53.508 Syncing since 1970-01-01T00:00:00.000Z-0000-0000000000000000 0 (attempt: 3) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:53.629 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:53.631 Syncing since 1970-01-01T00:00:00.000Z-0000-0000000000000000 0 (attempt: 4) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:53.707 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:53.709 Syncing since 1970-01-01T00:00:00.000Z-0000-0000000000000000 0 (attempt: 5) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:53.787 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:53.788 Syncing since 1970-01-01T00:00:00.000Z-0000-0000000000000000 0 (attempt: 6) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:53.860 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:53.862 Syncing since 1970-01-01T00:00:00.000Z-0000-0000000000000000 0 (attempt: 7) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:53.958 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:53.960 Syncing since 1970-01-01T00:00:00.000Z-0000-0000000000000000 0 (attempt: 8) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:54.027 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:54.029 Syncing since 1970-01-01T00:00:00.000Z-0000-0000000000000000 0 (attempt: 9) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:54.101 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:54.103 Syncing since 1970-01-01T00:00:00.000Z-0000-0000000000000000 0 (attempt: 10) [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:54.176 Got messages from server 0 [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:54.176 SENT ------- [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:54.176 [] [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:54.176 RECEIVED ------- [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:54.176 [] [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:54.178 10 messages: 0 null res.messages: 0 null clientId 8ed319a8febf5f1b groupId c335be1c-0fc1-4306-a927-9519f2966329 diffTime: 0 true local clock: 1970-01-01T00:00:00.000Z-0000-8ed319a8febf5f1b undefined rebuilt hash: 0 undefined server hash: 1500104996 localTimeChanged: false [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:54.178 Error: SyncError: out-of-sync [browser-server.06b54be5.worker.js:1:44288](<url>/static/js/browser-server.06b54be5.worker.js) 08:50:54.178 [Exception] Error: SyncError: out-of-sync ``` EDIT: Wiping everything on the server, setting it up from scratch, and re-uploading my database seems to have worked.
Author
Owner

@jlongster commented on GitHub (Sep 5, 2022):

A lot of these bugs will be fixed by https://github.com/actualbudget/actual-server/pull/75

At the very least, resetting sync should absolutely be fixed in that PR (I discovered that it's currently broken while fixing that). The sync bugs are very likely fixed as well. Can't say for 100% sure because I don't know what caused the above, but overall syncing will be a lot more reliable

@jlongster commented on GitHub (Sep 5, 2022): A lot of these bugs will be fixed by https://github.com/actualbudget/actual-server/pull/75 At the very least, resetting sync should absolutely be fixed in that PR (I discovered that it's currently broken while fixing that). The sync bugs are very likely fixed as well. Can't say for 100% sure because I don't know what caused the above, but overall syncing will be a lot more reliable
Author
Owner

@rich-howell commented on GitHub (Sep 15, 2022):

I pulled origin master from actual-budget and deployed to fly. Here is how it went

I took a backup of my data first.
Pulled Origin Master
Deployed to fly
Loaded my budget on a machine I was using it on successfully on before deploying
The Sync in the top right spins until it finally presents an error message
I tried the reset sync from the settings which did nothing

I opened the budget on a new device, in edge in a private window and was presented with the message in the attached screenshot which I have no idea what it means.

image

I tried to open a new file to import my budget into and got this

image

Error message comes up - sorry we couldn't sync you data, this is a bug and has been reported.

I pressed the revert button as per the docs https://actualbudget.com/docs/overview/syncing-across-devices/#debugging-sync-issues this makes teh syncing has been reset message go away but Syncing itself is not fixed.

image

@rich-howell commented on GitHub (Sep 15, 2022): I pulled origin master from actual-budget and deployed to fly. Here is how it went I took a backup of my data first. Pulled Origin Master Deployed to fly Loaded my budget on a machine I was using it on successfully on before deploying The Sync in the top right spins until it finally presents an error message I tried the reset sync from the settings which did nothing I opened the budget on a new device, in edge in a private window and was presented with the message in the attached screenshot which I have no idea what it means. ![image](https://user-images.githubusercontent.com/22135084/190333460-0929c147-c512-4a9e-ad32-514710c87444.png) I tried to open a new file to import my budget into and got this ![image](https://user-images.githubusercontent.com/22135084/190333513-7ffd57c7-d4cd-406d-a4e0-094dd6b8fc9b.png) Error message comes up - sorry we couldn't sync you data, this is a bug and has been reported. I pressed the revert button as per the docs https://actualbudget.com/docs/overview/syncing-across-devices/#debugging-sync-issues this makes teh syncing has been reset message go away but Syncing itself is not fixed. ![image](https://user-images.githubusercontent.com/22135084/190333553-935edb75-dfc6-46da-a272-5055f89587c4.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#128