thingsboard-ce-k8s icon indicating copy to clipboard operation
thingsboard-ce-k8s copied to clipboard

WebSocket channel closes after 10 responses

Open SavvyEngineer opened this issue 3 years ago • 1 comments

the things board Ce version 3.4.3 monolith K8s setup closes the WebSocket channel after 10 responses (no reason, error code 1006)and as the Documents show there isn't any limitations also I tried the linux VM setup and it didn't close is there any limitation in the docker image setup? I also tried adding 0 value for ws env's and it didn't help my changes to the ConfigMap apiVersion: v1 kind: ConfigMap metadata: name: tb-node-config namespace: thingsboard labels: name: tb-node-config data: conf: | export TB_SERVER_WS_TENANT_RATE_LIMITS_MAX_SESSIONS_PER_TENANT=0 export TB_SERVER_WS_TENANT_RATE_LIMITS_MAX_SESSIONS_PER_CUSTOMER=0 export TB_SERVER_WS_TENANT_RATE_LIMITS_MAX_SESSIONS_PER_REGULAR_USER=0 export TB_SERVER_WS_TENANT_RATE_LIMITS_MAX_SESSIONS_PER_PUBLIC_USER=0 export TB_SERVER_WS_TENANT_RATE_LIMITS_MAX_QUEUE_PER_WS_SESSION=5000 export TB_SERVER_WS_TENANT_RATE_LIMITS_MAX_SUBSCRIPTIONS_PER_TENANT=0 export TB_SERVER_WS_TENANT_RATE_LIMITS_MAX_SUBSCRIPTIONS_PER_CUSTOMER=0 export TB_SERVER_WS_TENANT_RATE_LIMITS_MAX_SUBSCRIPTIONS_PER_REGULAR_USER=0 export TB_SERVER_WS_TENANT_RATE_LIMITS_MAX_SUBSCRIPTIONS_PER_PUBLIC_USER=0 export TB_SERVER_WS_TENANT_RATE_LIMITS_MAX_UPDATES_PER_SESSION=0

the logs 751.7a70ed70206456d6d163.js:1 WebSocket error event CloseEvent {isTrusted: true, wasClean: false, code: 1006, reason: '', type: 'close', …} onError @ 7751.7a70ed70206456d6d163.js:1 (anonymous) @ 7751.7a70ed70206456d6d163.js:1 __tryOrUnsub @ vendor.3f3611f892c51888617d.js:1 error @ vendor.3f3611f892c51888617d.js:1 _error @ vendor.3f3611f892c51888617d.js:1 error @ vendor.3f3611f892c51888617d.js:1 error @ vendor.3f3611f892c51888617d.js:1 j.onclose @ 7751.7a70ed70206456d6d163.js:1 V @ polyfills.775a399a0b5f9321b84c.js:1 invokeTask @ polyfills.775a399a0b5f9321b84c.js:1 onInvokeTask @ vendor.3f3611f892c51888617d.js:1 invokeTask @ polyfills.775a399a0b5f9321b84c.js:1 runTask @ polyfills.775a399a0b5f9321b84c.js:1 invokeTask @ polyfills.775a399a0b5f9321b84c.js:1 at @ polyfills.775a399a0b5f9321b84c.js:1 it @ polyfills.775a399a0b5f9321b84c.js:1 mt @ polyfills.775a399a0b5f9321b84c.js:1 7751.7a70ed70206456d6d163.js:1 WebSocket error event CloseEvent {isTrusted: true, wasClean: false, code: 1006, reason: '', type: 'close', …} onError @ 7751.7a70ed70206456d6d163.js:1 (anonymous) @ 7751.7a70ed70206456d6d163.js:1 __tryOrUnsub @ vendor.3f3611f892c51888617d.js:1 error @ vendor.3f3611f892c51888617d.js:1 _error @ vendor.3f3611f892c51888617d.js:1 error @ vendor.3f3611f892c51888617d.js:1 error @ vendor.3f3611f892c51888617d.js:1 j.onclose @ 7751.7a70ed70206456d6d163.js:1 V @ polyfills.775a399a0b5f9321b84c.js:1 invokeTask @ polyfills.775a399a0b5f9321b84c.js:1 onInvokeTask @ vendor.3f3611f892c51888617d.js:1 invokeTask @ polyfills.775a399a0b5f9321b84c.js:1 runTask @ polyfills.775a399a0b5f9321b84c.js:1 invokeTask @ polyfills.775a399a0b5f9321b84c.js:1 at @ polyfills.775a399a0b5f9321b84c.js:1 it @ polyfills.775a399a0b5f9321b84c.js:1 mt @ polyfills.775a399a0b5f9321b84c.js:1

SavvyEngineer avatar Jan 15 '23 21:01 SavvyEngineer

The issue was from the default timeout value of the GCP network load balancer.

SavvyEngineer avatar May 14 '24 20:05 SavvyEngineer