zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.2k stars 1.9k forks source link

Trilium stops displaying site via browser #2553

Closed rjkantor closed 2 years ago

rjkantor commented 2 years ago

Trilium Version

0.49.4

What operating system are you using?

Ubuntu

What is your setup?

Local + server sync

Operating System Version

Ubuntu 20.04

Description

I am using the web interface and the website just stops displaying anything, screen goes all white. Seems I have to restart docker to have the site work properly. Here is the excerpt from the log file. Is the timeout caused by some error or something that can be adjusted?

Please advise.

16:35:01.401 Sending message to all clients: {"type":"taskSucceeded","taskId":"tdTaeWv7Uc","taskType":"delete-notes"} 16:35:01.404 Slow 200 DELETE /api/branches/xybe5NTqX8aG?taskId=tdTaeWv7Uc&eraseNotes=false&last=true with 20 bytes took 10ms 16:35:01.467 200 POST /api/tree/load with 42 bytes took 1ms 16:35:01.555 200 POST /api/tree/load with 42 bytes took 1ms 16:35:01.561 204 PUT /api/options with 0 bytes took 4ms 16:35:01.566 304 GET /api/search/%23workspace with 2 bytes took 2ms 16:35:01.664 Cannot find note in cache for noteId 5sDwbD9ghR6U 16:35:01.666 200 GET /api/autocomplete?query=&activeNoteId=null with 3732 bytes took 3ms 16:35:01.734 Cannot find note in cache for noteId 5sDwbD9ghR6U 16:35:01.736 304 GET /api/autocomplete?query=&activeNoteId=null with 3732 bytes took 3ms 16:35:05.436 304 GET /api/special-notes/date/2022-01-14 with 298 bytes took 1ms 16:35:07.391 304 GET /api/special-notes/date/2022-01-14 with 298 bytes took 1ms 16:35:09.899 304 GET /api/special-notes/date/2022-01-14 with 298 bytes took 1ms 16:35:11.935 204 PUT /api/options with 0 bytes took 2ms 16:35:13.311 204 PUT /api/options with 0 bytes took 2ms 16:35:31.461 JS Error: Encountered error Process exceeded time limit 30000: Error: Process exceeded time limit 30000 at Object.timeLimit (https://trilium.XXXX.com/app/services/utils.js:313:19) at consumeFrontendUpdateData (https://trilium.XXXX.com/app/services/ws.js:165:25) at executeFrontendUpdate (https://trilium.XXXX.com/app/services/ws.js:89:35) at WebSocket.handleMessage (https://trilium.XXXX.com/app/services/ws.js:113:15), reloading frontend. Stack: Error at logError (https://trilium.XXXX.com/app/services/ws.js:23:20) at consumeFrontendUpdateData (https://trilium.XXXX.com/app/services/ws.js:168:13) 16:35:31.464 JS Error: Encountered error Process exceeded time limit 30000: Error: Process exceeded time limit 30000 at Object.timeLimit (https://trilium.XXXX.com/app/services/utils.js:313:19) at consumeFrontendUpdateData (https://trilium.XXXX.com/app/services/ws.js:165:25) at executeFrontendUpdate (https://trilium.XXXX.com/app/services/ws.js:89:35) at WebSocket.handleMessage (https://trilium.XXXX.com/app/services/ws.js:113:15), reloading frontend. Stack: Error at logError (https://trilium.XXXX.com/app/services/ws.js:23:20) at consumeFrontendUpdateData (https://trilium.XXXX.com/app/services/ws.js:168:13) 16:35:31.488 Generated CSRF token ox0IBaoS-qhuvJpiNGgKiRjofUZp2FSCXy9M with secret undefined 16:35:31.545 Generated CSRF token 5Piaa0uH-AiyE1-w8GmRyQ9jBd0eOPprfQhQ with secret undefined 16:35:33.559 200 GET /api/options with 5745 bytes took 0ms 16:35:33.571 304 GET /api/script/widgets with 2930 bytes took 1ms 16:35:33.573 304 GET /api/keyboard-actions with 11756 bytes took 1ms 16:35:33.574 304 GET /api/keyboard-shortcuts-for-notes with 2 bytes took 0ms 16:35:33.577 200 GET /api/tree with 51003 bytes took 2ms 16:35:33.650 200 GET /api/options with 5745 bytes took 0ms 16:35:33.668 200 GET /api/tree with 51003 bytes took 3ms 16:35:33.670 304 GET /api/keyboard-shortcuts-for-notes with 2 bytes took 0ms 16:35:33.672 304 GET /api/script/widgets with 2930 bytes took 1ms 16:35:33.674 304 GET /api/keyboard-actions with 11756 bytes took 1ms 16:35:33.746 200 POST /api/tree/load with 2308 bytes took 1ms

zadam commented 2 years ago

Hello,

unfortunately, this error is only a symptom of another issue. When this happens, could you open the browser console (CTRL-SHIFT-I) and see if there's some other error appearing and post it here?

Alternatively, is there some pattern that this happens after you do something?

BTW, to recover from this, frontend reload (CTRL-R) should suffice.

rjkantor commented 2 years ago

See the attached. I was able to recreate this issue while navigating the tree.

Robb

From: zadam @.> Date: Friday, January 14, 2022 at 3:17 PM To: zadam/trilium @.> Cc: Robert Kantor @.>, Author @.> Subject: Re: [zadam/trilium] Trilium stops displaying site via browser (Issue #2553)

Hello,

unfortunately, this error is only a symptom of another issue. When this happens, could you open the browser console (CTRL-SHIFT-I) and see if there's some other error appearing and post it here?

Alternatively, is there some pattern that this happens after you do something?

BTW, to recover from this, frontend reload (CTRL-R) should suffice.

— Reply to this email directly, view it on GitHubhttps://github.com/zadam/trilium/issues/2553#issuecomment-1013445916, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAM4V4U3ZQHEFGAJSTX2YHLUWCAG7ANCNFSM5L7IP6IQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

rjkantor commented 2 years ago

Here is a screenshot…

[Graphical user interface, text Description automatically generated]

From: zadam @.> Date: Friday, January 14, 2022 at 3:17 PM To: zadam/trilium @.> Cc: Robert Kantor @.>, Author @.> Subject: Re: [zadam/trilium] Trilium stops displaying site via browser (Issue #2553)

Hello,

unfortunately, this error is only a symptom of another issue. When this happens, could you open the browser console (CTRL-SHIFT-I) and see if there's some other error appearing and post it here?

Alternatively, is there some pattern that this happens after you do something?

BTW, to recover from this, frontend reload (CTRL-R) should suffice.

— Reply to this email directly, view it on GitHubhttps://github.com/zadam/trilium/issues/2553#issuecomment-1013445916, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAM4V4U3ZQHEFGAJSTX2YHLUWCAG7ANCNFSM5L7IP6IQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

zadam commented 2 years ago

@rjkantor Hello, unfortunately attachment and screenshot did not come through (probably because you used email to reply)

rjkantor commented 2 years ago

Screenshot of error.

https://www.dropbox.com/s/34eisbe1kkhufft/2022-01-14_Trilium-Server.png?dl=0

zadam commented 2 years ago

That's a screenshot of a different timeout error which I don't think is causing these problems.

Is it possible to reproduce the "Encountered error Process exceeded time limit 30000:" and check console for preceding errors?

rjkantor commented 2 years ago

image

rjkantor commented 2 years ago

CTRL-R does not recover the issue.

zadam commented 2 years ago

Thanks, this is very useful! I have a last ask which should allow me to locate the exact problem - could you create an anonymized database and send it to me to zadam.apps@gmail.com?

This would be highly appreciated!

rjkantor commented 2 years ago

I found I was able to reproduce this when changing the owners attributes. I encountered this twice today via the web server.

Robb

rjkantor commented 2 years ago

https://www.dropbox.com/s/ucuxt8swt3201hg/anonymized-2022-01-19T211835.db?dl=0

DB as requested