Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MMEX + Syncthing #1705

Open
iandlg opened this issue Jun 2, 2024 · 19 comments
Open

MMEX + Syncthing #1705

iandlg opened this issue Jun 2, 2024 · 19 comments

Comments

@iandlg
Copy link

iandlg commented Jun 2, 2024

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.

  • Device: Redmi note 10 pro
  • OS: miui 13
  • Storage: Phone storage + Syncthing
  • Synchronization: Enabled with 5min interval and Sync on Start
  • Encrypted: no
  • App Version: 2024.05.02
@iandlg iandlg added the bug label Jun 2, 2024
@guanlisheng
Copy link
Contributor

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
Copy link
Author

iandlg commented Jun 3, 2024

I tried updating but there is still the same problem.

@guanlisheng
Copy link
Contributor

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

@iandlg
Copy link
Author

iandlg commented Jun 3, 2024

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
Copy link
Contributor

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
Copy link
Author

iandlg commented Jun 3, 2024

A transaction you mean?

@iandlg
Copy link
Author

iandlg commented Jun 3, 2024

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
Copy link
Contributor

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
Copy link
Author

iandlg commented Jun 3, 2024

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
Copy link
Contributor

guanlisheng commented Jun 3, 2024

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
Copy link
Author

iandlg commented Jun 3, 2024

Screenshot_2024-06-02-20-01-47-689_com money manager ex
2. Ok so when I export the database from android and read it on desktop it works

@guanlisheng
Copy link
Contributor

Thanks.

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

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

@guanlisheng
Copy link
Contributor

hi @iandlg
what's your android syncthing version?

@rljt24
Copy link

rljt24 commented Jul 4, 2024

Hi, I am having the same issue. I can push changes in my database from my desktop to my phone but not the other way around. I think the issue is that the database path on my phone is not going to my snyc'd folder but the path that you see in the picture above. I tried making a folder that used that path in Syncthing, but Android would not let me use that folder. Is there a way to change the database path?

@guanlisheng
Copy link
Contributor

guanlisheng commented Jul 7, 2024

hi @rljt24, please describe your detailed configuration and steps to re-produce the issue.

you can refer to https://moneymanagerex.org/blog/mmex-cloud-storage-with-nextcloud/

Copy link

github-actions bot commented Oct 6, 2024

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Oct 6, 2024
Copy link

This issue was closed because it has been stalled for 5 days with no activity.

@raphaelsuzuki
Copy link

I faced the same issue when trying to sync MMEX on Android with Syncthing. It turns out that there's no support for SAF on Syncthing and probably won't be on the foreseeable future: syncthing/syncthing-android#2047

So as long as MMEX is dependent on SAF to work on Android, users should look for other alternatives.

@guanlisheng
Copy link
Contributor

thanks, @raphaelsuzuki for sharing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants