Joplin Cloud Sync Error on new linux install

Operating system

Linux

Joplin version

2.12.19

Desktop version info

Joplin 2.12.19 (prod, linux)

Client ID: b1dd79bad0b34f1dabb7cff6a93a2c29
Sync Version: 3
Profile Version: 43
Keychain Supported: No

Revision: 7081046

Sync target

Joplin Cloud

What issue do you have?

Created remote items: 5.
Completed: 2023-11-15 9:52 AM (266s)
Last error: Error: Error 504 Gateway Timeout: 504 Gateway Time-out

504 Gateway Time-out


nginx/1.18.0 (Ubuntu)

I'm not seeing any faults on Joplin Cloud at the moment so it might have been a one off. Could you give it another try to see if it works?

I've been having the issue since last night.
Cloud sync works on existing installations.
I've tried on 2 new Debian installations, one on hardware, and another in a vm, and I get the same error.
I also tried the Appimage of the prerelease, version 2.13.5 and got the same error.

It might be some issue specific to your data then. Would you mind posting your full log?

Also do you have a particularly slow connection in terms of upload?

Below is a copy of my log.txt file.
You will see that I deleted my Joplin config folders when installing the pre-release to test if that would resolve the issue.

log.txt (15.8 KB)

Could you upload the log file again? This one appears to be a binary file, maybe a zip file, but I couldn't unzip it either

Hopefully, this one works better

log.txt (20.1 KB)

I discovered I can upload new files to Joplin Cloud. I just cannot download files from Joplin Cloud

I am also seeing this with a new install, old ones work fine. Using Joplin Cloud. This is on a macOS install of Joplin 2.12.19 (prod, darwin).

Also hitting the Gateway Timeout nginx/1.18.0 (Ubuntu)

LOG:
log.txt (15.8 KB)

Does not appear to post as plain text so here:

2023-11-15 12:34:56: "Starting scheduled sync"
2023-11-15 12:34:56: Synchronizer: "Sync: starting: Starting synchronisation to target 10... supportsAccurateTimestamp = true; supportsMultiPut = true [1700073296643]"
2023-11-15 12:34:56: Synchronizer: "Indexing resources..."
2023-11-15 12:34:56: "ResourceService::indexNoteResources: Start"
2023-11-15 12:34:56: "ResourceService::indexNoteResources: Completed"
2023-11-15 12:34:57: Synchronizer: "Sync target remote info:", "{"version_":3,"masterKeys_":[],"e2ee_":{"value":false,"updatedTime":0},"activeMasterKeyId_":{"value":"","updatedTime":0},"ppk_":{"value":null,"updatedTime":0}}"
2023-11-15 12:34:57: Synchronizer: "Sync target is already setup - checking it..."
2023-11-15 12:34:57: Synchronizer: "Sync target local info:", "{"version_":3,"masterKeys_":[],"e2ee_":{"value":false,"updatedTime":0},"activeMasterKeyId_":{"value":"","updatedTime":0},"ppk_":{"value":null,"updatedTime":0}}"
2023-11-15 12:34:57: Synchronizer: "TaskQueue.stop: syncDownload: waiting for tasks to complete: 0"
2023-11-15 12:34:57: Synchronizer: "TaskQueue.stop: syncDownload: Done, waited for 0"
2023-11-15 12:35:58: JoplinServerApi: "curl -v -X GET -H "X-API-AUTH: ******" -H "X-API-MIN-VERSION: 2.6.0" 'https://api.joplincloud.com/api/items/root:/:/delta?'"
2023-11-15 12:35:58: JoplinServerApi: "Code:", "504"
2023-11-15 12:35:58: JoplinServerApi: "Error: Error 504 Gateway Timeout: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.18.0 (Ubuntu)</center>
</body>
</html>

Code: 504
Error: Error 504 Gateway Timeout: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.18.0 (Ubuntu)</center>
</body>
</html>

    at newError (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/JoplinServerApi.js:193:28)
    at JoplinServerApi.<anonymous> (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/JoplinServerApi.js:233:27)
    at Generator.throw (<anonymous>)
    at rejected (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/JoplinServerApi.js:6:65)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
2023-11-15 12:37:02: JoplinServerApi: "curl -v -X GET -H "X-API-AUTH: ******" -H "X-API-MIN-VERSION: 2.6.0" 'https://api.joplincloud.com/api/items/root:/:/delta?'"
2023-11-15 12:37:02: JoplinServerApi: "Code:", "504"
2023-11-15 12:37:02: JoplinServerApi: "Error: Error 504 Gateway Timeout: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.18.0 (Ubuntu)</center>
</body>
</html>

Code: 504
Error: Error 504 Gateway Timeout: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.18.0 (Ubuntu)</center>
</body>
</html>

    at newError (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/JoplinServerApi.js:193:28)
    at JoplinServerApi.<anonymous> (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/JoplinServerApi.js:233:27)
    at Generator.throw (<anonymous>)
    at rejected (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/JoplinServerApi.js:6:65)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
2023-11-15 12:38:06: RevisionService: "maintenance: Starting..."

Thanks for the reports, I indeed found out that certain queries take too long and time out. I'm going to apply a fix as soon as possible, probably tomorrow

That should now be fixed - please could you give it another try?

1 Like

It's syncing on both my laptop and vm, thanks so much for the support!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.