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

Synchronisation error since Joplin update on iPhone this morning #532

Closed
Steuma opened this issue May 18, 2018 · 18 comments
Closed

Synchronisation error since Joplin update on iPhone this morning #532

Steuma opened this issue May 18, 2018 · 18 comments
Labels
bug It's a bug stale An issue that hasn't been active for a while...

Comments

@Steuma
Copy link

Steuma commented May 18, 2018

Operating system

  • iOS

Application

  • Mobile

Since the Joplin update this morning (probably to 10.0.22?) my iPhone behaves strange
when synchronising. It does not complete the sync but hangs every time I try to sync
and goes into background after some time (~60 seconds), after having
completed 6 from 36 loaded objects. It also hangs every now and then when I am in
config now. Here are my snapshots with error messages from my iphone.

=> Not useful screenshots of log deleted

Synchronisation with my iphone worked ok before the update and from Windows it still
seems to work ok now.

Cheers, Steuma

@Steuma Steuma changed the title Synchronisation error since IOS update this morning Synchronisation error since Joplin update on iPhone this morning May 18, 2018
@laurent22 laurent22 added the bug It's a bug label May 18, 2018
@laurent22
Copy link
Owner

What sync target are you using? Is that Dropbox?

@Steuma
Copy link
Author

Steuma commented May 19, 2018

Yes that is sync with Dropbox.

@Steuma Steuma closed this as completed May 19, 2018
@Steuma
Copy link
Author

Steuma commented May 19, 2018

Close was a mistake :-(.

@Steuma Steuma reopened this May 19, 2018
@laurent22 laurent22 reopened this May 21, 2018
@laurent22
Copy link
Owner

Unfortunately the error message is not clear enough to fix the bug. As a first step, the next release will have clearer error messages so that we know what the issue is.

@laurent22
Copy link
Owner

Could you try with the latest version (10.0.24)? I think the error will still happen but it should be possible to see what it is, which will help fixing it.

@Steuma
Copy link
Author

Steuma commented May 24, 2018

Hi Laurent,
just today I got the update to the new version. This is the new log from the unsuccessful sync ...

1
2
3
4
5
6
7

@laurent22
Copy link
Owner

Hi, the date on the log above is 18 May but the app was released after that. Have there been any new error since 23-24 May?

@Steuma
Copy link
Author

Steuma commented May 27, 2018

Oops sorry, I did not realize this - it seems that only the old data is visible when I click on 'errors only'
on the protocols page. There is newer data visible, when I look at all data.
1
2
3
4
5
6

I hope that helps better in diagnosing ;-). It still does not complete any Sync with Dropbox and
I have to cancel the sync early in order for Joplin to not lock up so I am able to look at the protocol
page. If stay on sync Joplin goes into background after a while.

Thanks, Steuma

@laurent22
Copy link
Owner

I thought the change I made would provide more information about the error but it doesn't look like it unfortunately. I've made yet another change, which this time should show the full error - it will be available in the next version.

Is this bug still happening by the way?

@Steuma
Copy link
Author

Steuma commented Jun 13, 2018

Yes, I still do have the same issue with Syncing my iPad, as well as my iPhone.
Now that I am back from vacation :-) I had a little spare time to test something.
I even see the 'not syncing' issue with a complete empty database now.
Here is what I did:
Desktop (Windows):
close Joplin
remove ~/.config
start Joplin, which creates an empty database
configured language German
configured Webdav as network sync option (I tested before that Webdav or Dropbox makes no difference)
configured 'Encryption options' with password
-> synced to network
iPhone:
removed Joplin program from iPhone
installed Joplin newly (this gives me a clean new database)
configured language German
configured Webdav as network sync option
configured 'Encryption options' with password
-> synced with Network
Result:
Created local items: 1
Fetched items: 4/8
State in Progress.
... after this the phone waits for ~60 seconds and then Joplin vanishes into background
this is the same messages I do see every other time I try to sync now.
After the first sync I did have a couple of more password requests on the Encryption
page though in Desktop as well as on the iPhone. I filled in the password into each of
them, but nothing did change because of doing this.

If my explanation does not help to fix the issue aready, I will install the new version as
soon as I receive it and send you the error messages here again.

Cheers, Steuma

@Steuma
Copy link
Author

Steuma commented Jun 24, 2018

Hi Laurent,
is there any news to this issue? I did not see any new IOS version of Joplin until now.
This issue is very frustrating for me as the most important feature or me was security
and the sync between Windows and IOS to have access to information from
both sides. Just as a reminder, this was working perfectly before I upgraded Joplin on
IOS on May 18. Would it be possible for me to get back to the version before the
recent one?
Apart from this it should be real easy to follow the steps to reproduce the issue the
way I explained in my post above with an empty database. Am I really the only user
that has this problem and if so what could be the difference between me and others
that do not see the sync issue?

Thanks in advance, Steuma

@laurent22
Copy link
Owner

I've tried what you described above but it works for me. Regarding this:

... after this the phone waits for ~60 seconds and then Joplin vanishes into background
this is the same messages I do see every other time I try to sync now.

Do you have any particularly large resource on the sync target? I know it will crash with resources bigger than 10 MB but possibly also smaller.

@Steuma
Copy link
Author

Steuma commented Jul 8, 2018

I don't think it's the size of the resources, since I am still in the tesing phase and so not too much is
in Joplin yet because of my sync problems. For anonther test I did set up owncloud at my home
yesterday and just now I switched off encryption, since everything is now local here on my systems
and guess what - my iPhone is syncing all of a sudden. The complete sync went through - no problem.
Since I used webdav wit encryption on a external host already with no success, my best guess is that
the issue comes from the encryption part. Apart from the fact that there seems to be a bug in Joplin
somewhere I am fine now ;-). I will stop my testing now as well, since I lost 2 small notebooks this time
because I forgot to export everything before :-(, trying my owncloud. Maybe a local backup function
would be good in addition to the export feature - but I am afraid that would still not help in forgetting
to use it.

Cheers, Steuma

@christophberger
Copy link

Yesterday I tried Joplin for macOS and for iOS, and I ran into the very same problem. My notes are encrypted, and I have imported 1000+ notes from Evernote, all of which seem to have synchronized fine to my webDAV server.

On the iPhone (a 6 Plus with latest iOS), synchronization gets stuck reproducibly at the same point at each attempt. When I delete and reinstall Joplin on the iPhone, synchronization gets stuck at a different point, but then also reproducibly at that point again on every retry.

Status right before the iOS app pops into the background and stops synching:

img_20180722_222344_5979

The sync does not always fail at the first local item; previous attempts (before reinstalling) were able to create a large number of local items.

Log output:

img_20180723_001240_5980

The largest file on the webDAV server has 467.9 KB. All files on the server are markdown files, possibly because I only imported notes from Evernote, and this seems to only include links to the original locations of images and attachments, rather than the files themselves.

Console output:

JoplinSyncFail.txt

@laurent22
Copy link
Owner

It seems the issue is that on iOS the app can somehow runs out of memory, so indeed when it happens it will always happen at the same point afterwards.

Relevant log lines:

default 07:18:01.675561 +0200 kernel EXC_RESOURCE -> Joplin[2702] exceeded mem limit: ActiveHard 650 MB (fatal)
default 07:18:01.675697 +0200 kernel 27284.063 memorystatus: killing_specific_process pid 2702 [Joplin] (per-process-limit 10) - memorystatus_available_pages: 18019

To fix this, we'll need to analyse the sync process and find a memory leak (tried to find it on desktop, which uses the same sync algorithm, but no memory leak there).

@caffeine-1
Copy link

Same issue on IOS with Dropbox sync, large import from Evernote, hope a fix can be found.

Works great on Linux.

@stale
Copy link

stale bot commented Sep 23, 2019

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the stale An issue that hasn't been active for a while... label Sep 23, 2019
@stale
Copy link

stale bot commented Sep 30, 2019

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Sep 30, 2019
@lock lock bot locked and limited conversation to collaborators Oct 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug It's a bug stale An issue that hasn't been active for a while...
Projects
None yet
Development

No branches or pull requests

4 participants