Test listening does not work or turn off

Describe the problem/error/question

I have just installed n8n on my VPS (CentOS, Docker, Open Litespeed).
I can access n8n and create nodes, but when I test o node and n8n listen, I can’t turn off the listening. When I click on “Stop Listening”, nothing happens. Also, the test listening itself does not work, and nothing shows up in Executions.

Any idea of what might be wrong or how to fix this?

What is the error message (if any)?

When running Docker compose logs I see the following error (but unsure if it is related):

root-n8n-1 | 2024-08-09T20:28:04.945Z | error | RangeError: Invalid WebSocket frame: RSV1 must be clear “{ file: ‘LoggerProxy.js’, function: ‘exports.error’ }”

Information on your n8n setup

  • n8n version: 1.53.2
  • Database (default: SQLite): Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main): main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: CentOS on the VPS.

Debug info

core

  • n8nVersion: 1.53.2
  • platform: docker (self-hosted)
  • nodeJsVersion: 20.15.0
  • database: postgres
  • executionMode: regular
  • concurrency: -1
  • license: community
  • consumerId: unknown

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: memory

pruning

  • enabled: true
  • maxAge: 336 hours
  • maxCount: 10000 executions

Generated at: 2024-08-09T20:49:04.887Z

My current docker-compose.yml

n8n:
image: docker.n8n.io/n8nio/n8n
restart: always
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_DATABASE=nocodb
- DB_POSTGRESDB_USER=user
- DB_POSTGRESDB_PASSWORD=password
- WEBHOOK_URL=https://example.com
- N8N_HOST=example.com
- N8N_PROTOCOL=https
- N8N_EDITOR_BASE_URL=https://example.com/
- N8N_LOG_LEVEL=debug
ports:
- 5678:5678
volumes:
- n8n_data:/home/node/.n8n
networks:
- app-network
depends_on:
postgres:
condition: service_healthy
.
.
.
.

Hi @mamamomo

Thanks for posting here and welcome to the community! :raised_hands:

Do you see this with all nodes or only specific ones? Which node are you testing?

Also, are you using a reverse proxy? And if so, what’s your config for websockets there?

1 Like

I am currently using the webhook node, set node, telegram node. But even if I inactivate all workflows, it continues to spit out this error every few seconds.

Any ideas?

Also, the
root-n8n-1 | 2024-08-09T20:28:04.945Z | error | RangeError: Invalid WebSocket frame: RSV1 must be clear “{ file: ‘LoggerProxy.js’, function: ‘exports.error’ }”
error only happens when I have n8n active in a browser. As soon as I close down the page in the browser - the error does not show. I have tried in all major browsers and it is the same with them all.

I guess this suggests that it is something with the interaction between the browser, the reverse proxy and the n8n instance?

If I inspect in the browser, I see “failed: WebSocket is closed before the connection is established”

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