-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Sync progresses only when doing some action in UI #312
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
Comments
Any error in the log? https://github.com/laurent22/joplin/blob/master/CONTRIBUTING.md |
My apologies -- I didn't enable debugging. Will do so and report back. Just as a followup -- I left Joplin up and running overnight. It never progressed past the first entries, but I did note (which I didn't see before) that it was on item 5/247. I'll look for logs later this afternoon, when I get back to that machine. |
There's some info on how to enable debugging and view logs there - https://github.com/laurent22/joplin/blob/master/readme/debugging.md Please have a look at it but from the sound of it you simply have many notes and/or a slow connection or large notes or resources, so it takes time. Also keep in mind that there's a throttle mechanism in Nextcloud if you fail to login multiple times, which really slow things down. |
Hello again. I've now followed the instructions for debugging -- created the flags.txt file in ~/.config/Joplin with the line: --open-dev-tools --log-level debug and restarted the application. I don't see any "Developer tools" or a "Console" tab. As for your other thoughts --
Again, I appreciate your time and effort! I'd really like to get this working across my several systems so I can finally eliminate Evernote. Bill |
The |
OK -- just so you know, here's what it says in the document you linked to:
I've moved it to joplin-desktop, restarted, and am seeing the debugging window... which looks straight out of chrome, and there are log files in the .config/joplin-desktop folder. |
More strange behavior... when I click to a different "page" (for example, the Tools->General Options item, and then go back, the sync count increases -- and I'm seeing more items in the "joplin-desktop/resources" directory. It's as if forcing a page reload calls the sync function and pulls the next item. [edit] Clicking the "layout" link reloads the page and increments the sync counter. Cycling through the layouts looks like it is downloading everything - one item at a time. [edit 2] I just kept clicking the "layout" link. Eventually everything was synced to the local computer - including notebooks, notes, and tags. After syncing everything, I went to my Windows computer, added a couple of notes with images, let it sync (which works perfectly on Windows). Back to the Linux box, and had to do the "layout" clicking routine again, downloading one item at a time. |
The layout routine, is it on Linux only or does it do it on Windows too? |
It was never necessary on Windows, as things sync as expected. Only on the Linux systems did I use that "work around." |
Hello, I also have the same issue on linux (archlinux with gnome desktop) The fetched items count increments only when I do some actions in the joplin interface, it can be switching layout or clicking on tags or notebooks : one click results in one fetched item incrementation. No problem on windows or android. |
Same issue on OpenSuse Tumbleweed (kernel 4.16) with xfce desktop Sending F10 every second speeds syncing up. |
Same issue here on Ubuntu 18.04, doing some actions (hiding/showing sidebar for example) make joplin finishes the sync while I waited several minutes for it to sync only 1 item. |
Same on Mint 19. Works fine on Windows and Android. |
Same on OpenSuSE 15.0. With both, Dropbox and Nextcloud sync |
Broken for me in Mint 19 and Fedora 28 also. Mounting with davfs2 and using the local directory option seems to work though. The Nextcloud setting is also broken. |
Same issue on OpenSuse Leap 42.3 |
This triggering effect has to be done only for the notes. After the notes are synced the other items (tags, ...) sync by joplin itself. |
Could this be related to some power saving feature of the OS? What if you disable most of them (just for testing)? |
No, I don't think so, because I was constantly working on my laptop during the sync. |
Attached tshark log, pulled on the server side, for about 3 minutes, in the middle of a sync 192.168.0.96 - server |
Just add, fully disabled power saving (Ubuntu LTS 16.04), locked the desktop, left it overnight, and the next morning, it seemed the sync count resumed (no progress). This confirms @dev4223's assumption
There's also ani impact on E2EE and setting up other clients. One of the first things is should priority sync is the master key. So far everything else was synced before the master key, so got stalled setting up E2EE on other devices waiting for this to happen. The mobile client event reports "decrypting" while synching without having the master key installed (will need to log a separate bug for that). I see as per Encryption Sync Issues, that doing just a single note setup with E2EE before evernote import a good workaround. |
Workaround for slow initial bulk sync after evernote import? is a hack I tried and it worked out well in my case. TL;DR: Rather use local file system sync pointed at the Dropbox/App/Joplin folder. And for Android, the "Offline files" option in the Dropbox app get stored in an sdcard scratch folder that helps do something similar, but after getting the bulk sync done, switch back to Dropbox API sync method because Dropbox on mobile isn't watching that scratch folder for updates to files. Instead of 2 days of fighting with sync, I was all done after a few minutes. I also noticed that local file system sync doesn't seem to stall without the UI being in focus, or at least it's so fast, it doesn't matter that much, so maybe the bug here is quite specific to the Joplin Dropbox sync "driver". Syncing via the Dropbox native file sync app on the OS goes much faster. |
Idea for a fix: on Linux run forceUpdate() at regular interval while syncing. Also remove energy-saving feature which doesn't help fixing this bug and cause other issues. |
I installed Manjaro (xfce) on two machines last week and haven't faced any UI freezes or sync problems. Mint (xfce) had caused those problems before as stated above. Used appimage in both distros as the AUR package failed to build. |
I'm running Joplin 1.0.114, which I believe includes e4166e9 but I'm still experiencing this issue on Ubuntu 18.04 and syncing to NextCloud 13. I have a couple hundred notes to sync from my laptop to NextCloud but I have to click around in the user interface for progress to be made. Each time I click on something a file will upload. But if I don't click for 5 minutes, it stalls out the entire time until I click on something again. And it's not just the UI not updating as I check in NextCloud and sure enough a file only gets uploaded when I click on something in Joplin. I've been messing with this all day, but just found this GitHub issue. I'm about to call it a night, but when I get a chance I'm going to do some more digging. |
I'm running Joplin 1.0.114 too on Linux Mint 19. Nextcloud 14.0.3.0, PHP 7.0.32. Syncing takes about a view minutes for one or two notes. The android app on LineageOS 15.1 works well so far. Takes also its time (20 to 30 seconds i guess) but it works. |
Note: for now code in ElectronClient/app/gui/SideBar.jsx has been removed as, in fact, I don't think it was ever enabled due to some logic issue. Since there was no recent report for this bug it's possible that a recent Electron upgrade just fixed it. |
Uh oh!
There was an error while loading. Please reload this page.
Operating system
Application
I first installed Joplin on Windows, set up the sync target to be my Nextcloud instance, and imported my Evernote enex file. That worked OK. It lost the notebooks I had set up, but I re-created them and moved the notes appropriately (I only have a few hundred at this point).
Then I installed Joplin on one of my Linux machines. When setting the sync target to my Nextcloud instance, it only syncs 1 notebook, and that takes a very long time. That notebook only has 5 entries all of which are text only, no graphics or associated files, and the sync takes at least 5 minutes. Nothing I do gets it to sync the other 3 notebooks.
I tried syncing the Nextcloud directory to my local machine, and pointing to that using the file system target. It syncs quickly and gets all the notebooks, but does not correctly display images.
The text was updated successfully, but these errors were encountered: