Skip to content
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

tb-web-report - websocket timed out error #10632

Closed
DavidHartnell opened this issue Apr 25, 2024 · 1 comment
Closed

tb-web-report - websocket timed out error #10632

DavidHartnell opened this issue Apr 25, 2024 · 1 comment
Assignees
Labels
bug unconfirmed Unconfirmed bug

Comments

@DavidHartnell
Copy link

Web report fails with the "generate report" rule chain node. Doesn't always happen but does occur intermittently. I can't reproduce it reliably. Is there anyway to change the websocket data timeout limit?

Log Entries:
2024-04-24 18:35:34,028 [ReportController] INFO: Generating dashboard report: baseUrl https://REDACTED/, dashboardId: 255d8f60-e535-11ee-8f35-b390de7cef0f. Active requests count: 1
2024-04-24 18:35:34,047 [TbWebReportPage-4] INFO: Generating dashboard report
2024-04-24 18:35:47,009 [ReportController] ERROR: Wait for websocket data timed out!:
Error: Wait for websocket data timed out!
at TbWebReportPage. (/snapshot/web-report/target/src/api/controllers/tbWebReportPage.js)
at Generator.next ()
at fulfilled (/snapshot/web-report/target/src/api/controllers/tbWebReportPage.js)
2024-04-25 06:30:00,017 [ReportController] INFO: Generating dashboard report: baseUrl https://REDACTED/, dashboardId: 44f36fe0-9ccf-11eb-bee4-311fdd921040. Active requests count: 1
2024-04-25 06:30:00,029 [TbWebReportPage-4] INFO: Generating dashboard report
2024-04-25 06:30:14,662 [ReportController] ERROR: Wait for websocket data timed out!:
Error: Wait for websocket data timed out!
at TbWebReportPage. (/snapshot/web-report/target/src/api/controllers/tbWebReportPage.js)
at Generator.next ()
at fulfilled (/snapshot/web-report/target/src/api/controllers/tbWebReportPage.js)

Server Environment
Deployment: monolith
Deployment type: deb
ThingsBoard Version, 3.4.4 PE
Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-100-generic x86_64)

Your Client Environment - (although this only seems to occur intermittently when the rule chain triggers the report)
OS: Windows
Browser: Edge
Version 124.0.2478.51 (Official build) (64-bit)

@trikimiki
Copy link
Member

Hi!
Most likely, there is not enough time for Web Report to load the dashboard.
You could try increasing the timeout parameter:
/usr/share/tb-web-report/conf/tb-web-report.conf

export LOAD_DASHBOARD_RESOURCES_TIMEOUT=15000 #in ms, default is 10000
export DASHBOARD_IDLE_WAIT_TIME=5000 #in ms, default is 0

Do not forget to restart web report service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unconfirmed Unconfirmed bug
Projects
None yet
Development

No branches or pull requests

3 participants