504 Gateway Timeout

Hi,

I am having problems syncing (process never stops). I checked the logs. I'm getting a 504 Gateway timeout error on Joplin cloud. Here and there something goes through, but most of the times the response is 504. It doesn't seem as a bug, maybe performance/security issue?

OS: windows 10
IPs: different IPs with different providers in Slovenia
Version: 2.8.8, prod win32
Joplin Cloud: 2 Teams licenses


2022-06-30 12:48:36: JoplinServerApi: "Error: Error 504 Gateway Timeout:

504 Gateway Time-out

504 Gateway Time-out


nginx/1.18.0 (Ubuntu)

Code: 504
Error: Error 504 Gateway Timeout:

504 Gateway Time-out

504 Gateway Time-out


nginx/1.18.0 (Ubuntu)
at newError (XXXXXX\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\lib\JoplinServerApi.js:192:28)
at JoplinServerApi.<anonymous> (XXXXXX\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\lib\JoplinServerApi.js:232:27)
at Generator.throw (<anonymous>)
at rejected (XXXXXX\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\lib\JoplinServerApi.js:6:65)
at processTicksAndRejections (internal/process/task_queues.js:95:5)"

Thanks

There was a temporary problem but it is solved now. Please give it another try and let me know if the issue happens again.

It's still happening. Regarding data that was uploaded: it's not critical, we can also purge it if this will solve the issue.

2022-06-30 14:25:45: Synchronizer: "TaskQueue.stop: syncDownload: waiting for tasks to complete: 0"
2022-06-30 14:25:45: Synchronizer: "TaskQueue.stop: syncDownload: Done, waited for 0"
2022-06-30 14:26:45: JoplinServerApi: "curl -v -X GET -H "X-API-AUTH: ******" -H "X-API-MIN-VERSION: 2.6.0" 'ht tps:// api. joplincloud. com/ api/ items/root:/:/delta?'"
2022-06-30 14:26:45: JoplinServerApi: "Code:", "504"
2022-06-30 14:26:45: JoplinServerApi: "Error: Error 504 Gateway Timeout:

Having similar issues here. Thought I had a sync conflict as I'm in the middle of setting up a new machine. But have disconnected the old one, and the new one off a fresh install of 2.8.8 AppImage is just getting stuck.

log.txt (last few minutes)

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 (/tmp/.mount_JoplinPeOfAo/resources/app.asar/node_modules/@joplin/lib/JoplinServerApi.js:192:28)
    at JoplinServerApi.<anonymous> (/tmp/.mount_JoplinPeOfAo/resources/app.asar/node_modules/@joplin/lib/JoplinServerApi.js:232:27)
    at Generator.throw (<anonymous>)
    at rejected (/tmp/.mount_JoplinPeOfAo/resources/app.asar/node_modules/@joplin/lib/JoplinServerApi.js:6:65)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)"
2022-06-30 13:50:31: 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?'"
2022-06-30 13:50:31: JoplinServerApi: "Code:", "504"
2022-06-30 13:50:31: 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 (/tmp/.mount_JoplinPeOfAo/resources/app.asar/node_modules/@joplin/lib/JoplinServerApi.js:192:28)
    at JoplinServerApi.<anonymous> (/tmp/.mount_JoplinPeOfAo/resources/app.asar/node_modules/@joplin/lib/JoplinServerApi.js:232:27)
    at Generator.throw (<anonymous>)
    at rejected (/tmp/.mount_JoplinPeOfAo/resources/app.asar/node_modules/@joplin/lib/JoplinServerApi.js:6:65)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)"

By the way laurent amazing product, will be a lifetime Cloud user. First time I've had problems, thanks for looking into it.

ompleted: 30/06/2022 14:20 (459s)
Last error: Error: select "id", "item_id", "item_name", "type", "updated_time" from "changes" where (((type = $1 OR type = $2) AND user_id = $3) or type = $4 AND item_id IN (SELECT item_id FROM user_items WHERE user_id = $5)) order by "counter" asc limit $6 - canceling statement due to statement timeout

+1. I'm a new user, have been testing intensively offline and with NextCloud/WebDAV sync and didn't have problems. Now I need collaboration features and I opted for Joplin Cloud.

It's a very nice, fast product and I'm abandoning OneNote and EverNote for Joplin.

Apologies for the issues lately. The database is under heavy load so I'm going to upgrade it to a larger instance tonight.

2 Likes

I am having the same issue today. 6/30/22 11:35AM CST
Greg

The database is being upgraded now and should be back online soon.

1 Like

Ok it's back online. So far load is stable but I'll keep checking.

3 Likes

Hi,
I tested it yesterday and everything works fine. Thank you.

Upgrading the instance definitely solved the issue for now - it went from being 100% CPU most of the time to pretty much constant 5%

2 Likes

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