Skip to content

Desktop time-out when synchronising large attachments from Joplin Server #10740

Closed
@kckleong

Description

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:

My Mate Manners - 20190408 - Final.zip (ab2702a244100fed72865510d4a9347c): Request timed out. Timeout value: undefinedms.

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:

Android client: 3.0.8
Windows and Linux clients: 3.0.13
Joplin Server: 2.14.2-Beta (behind NGINX reverse-proxy)

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:

Line 518: 		if (!options.timeout) options.timeout = undefined;

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

Activity

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

Metadata

Assignees

No one assigned

    Labels

    bugIt's a bughighHigh priority issuesserverIssues related to Joplin Server

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions