moneymanagerex / android-money-manager-ex

Manage your finances on-the-go, encrypted for security, sync via your own cloud
http://android.moneymanagerex.org/
GNU General Public License v3.0
453 stars 183 forks source link

MMEX + Syncthing #1705

Open iandlg opened 3 weeks ago

iandlg commented 3 weeks ago

With syncthing I have a linked folder between my computer (windows) and my android phone. When I update the .mmb database file using the desktop app I get the change almost instantly on my phone. But when I try to change the database with the Android app the file isn't modified.

To Reproduce Steps to reproduce the behavior:

  1. Create .mmb on desktop
  2. Open the same .mmb on android
  3. Enable synchronization on android
  4. Make a change to .mmb on android
  5. Click on synchronize, upload and download
  6. Close android app
  7. Wait for the change to appear on desktop

The change never happens, from the modified time I can also tell that the android app is not make any modifications.

guanlisheng commented 3 weeks ago

hi @iandlg, thanks for trying mmex if Enabled with 5min interval and Sync on Start is your synchronization setting, i would like you to try upgrading it to the latest version: 2024.05.09

iandlg commented 3 weeks ago

I tried updating but there is still the same problem.

guanlisheng commented 3 weeks ago

that's wired as desktop -> android is ok Can you share your detailed synchronization setting for both MMEX and Syncthing?

iandlg commented 3 weeks ago

Yeah so on here are the settings for the syncthing file image And here are the ones for mmex Screenshot_2024-06-02-19-12-25-154_com money manager ex And the update frequency is at 5min

guanlisheng commented 3 weeks ago

Thanks. everything seems ok. Syncthing should take the changes from Android mmex every 5m. can you add a trx in your android mmex, and sync it. then check the database file in android folder?

iandlg commented 3 weeks ago

A transaction you mean?

iandlg commented 3 weeks ago

So i just added a transaction from android and it says "Your database has been stored successfully" and "the database is up to date". Then I closed the app. And when I go to the files on android the last modification was at 19:14 not 19:40.

guanlisheng commented 3 weeks ago

yup, a transaction. you still see the transaction in your android mmex, correct?

to double confirm you were checking the same file Finance/MonyeManager.mmb?

iandlg commented 3 weeks ago

Yeah same file in both. Yup the transactions stays even when I close the app and open it up again. It just doesn't appear on the desktop. Also when I manually reopen the .mmb from android, it deletes the transaction.

guanlisheng commented 3 weeks ago

ok.

seems MMEX did not sync the database file from app-specific folder to Document folder while it should.

can you

  1. share the per database setting which includes both local and remote path.
  2. perform export the database file to Document folder.
iandlg commented 3 weeks ago

Screenshot_2024-06-02-20-01-47-689_com money manager ex

  1. Ok so when I export the database from android and read it on desktop it works
guanlisheng commented 3 weeks ago

Thanks.

export works, and it is a sort of manual push.

now, i have no idea why the synchronization was not working.

guanlisheng commented 3 weeks ago

hi @iandlg what's your android syncthing version?