-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Desktop time-out when synchronising large attachments from Joplin Server #10740
Comments
I don't understand how the When we set That makes me think that we can't really choose a good value for timeout, but when I try to understand why the related issue exist I can't find the reason why it happens. From my testing with the clipper (which uses Vocabulary
|
Other services timeout policy:I don't think this is relevant anymore, but since I already wrote it down I tried researching the value used in other services, for Dropbox and OneDrive/Microsoft Graph API there isn't any public information. I only found that the Dropbox SDK for Python has a default value of 100 seconds [1] I don't think there is any default value for S3 bucket either, terraform uses a default 20 minutes for reads [2] but I haven't found anything on AWS documentation about how to set this value directly on the bucket. Nextcloud has a 30s value [3] for a value that I'm not sure if is used for client-server connection (I think it is, I found the PR and it seems that this config affects cURL requests also) since the comment talks about federation between servers. Chrome has 5m, Firefox 90s [1] https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox |
|
|
Operating system
Windows
Joplin version
3.0.13
Desktop version info
Joplin 3.0.13 (prod, linux)
Client ID: b542ac283077423b9e9e96dda6ddaa4b
Sync Version: 3
Profile Version: 47
Keychain Supported: No
Revision: 599cf5b
Backup: 1.4.1
Favorites: 1.3.2
Note list (Preview): 1.0.0
Current behaviour
I am seeing sync errors on the Windows and Linux beta clients that are Joplin Server-synced for attachments larger than about 20Mb.
After the
Synchronise
button is clicked, the orange "Some items cannon be synchronised." banner appears.Clicking on the bar displays the sync status page with messages of the following form:
There are no problems on the Android beta or on the release desktop clients (e.g. Linux 2.14.20). Encryption is disabled.
The version are:
It appears that the HTTP time-out option is being set to
undefined
and this is resulting in a very short value being used.In packages/lib/shim-init-node.ts:
I have patched the build to use the default value of 120000 ms, which resolves the problem i.e. the attachment are correctly synchronised from server resources.
I have previously reported this on Discourse but this seems to be a more appropriate forum.
Thank you all for your amazing work on Joplin!
Expected behaviour
Synchronise the server attachment to local storage.
Logs
No response
The text was updated successfully, but these errors were encountered: