WebSocket connection lost when moving a card #67

Closed
opened 2026-02-04 16:59:11 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @C0d3GGz on GitHub (Feb 10, 2021).

Hi,

I've been using Planka for a few days and had no problems - until now.

As soon as I move an existing card, the socket connection is lost and the changes aren't committed. Creating and moving a new card, however, is working.

Planka is hosted on a Raspberry Pi 3B with docker-compose. My config uses postgres:12.4-alpine since the newest postgres version won't run. Other that that, the config is almost the stock one.
I have one user, one project, five boards and in sum about 100 cards. I use comments, labels, due dates, timers, and tasks.

Here are the logs as soon as the error occurs:

Browser:

websocket.js:124 WebSocket connection to 'ws://192.168.0.52:3001/socket.io/?__sails_io_sdk_version=1.2.1&__sails_io_sdk_platform=node&__sails_io_sdk_language=javascript&EIO=3&transport=websocket' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
p.doOpen @ websocket.js:124
a.open @ transport.js:84
l.open @ socket.js:250
l @ socket.js:122
l @ socket.js:28
d.open.d.connect @ manager.js:226
(anonymous) @ manager.js:544

onloadwff.js:formatted:19602 Uncaught TypeError: Cannot read property 'toUpperCase' of undefined
    at should_fill_on_click (onloadwff.js:formatted:19602)
    at onloadwff.js:formatted:5794

Planka-Container:

/app/api/helpers/update-card.js:119
          listId,
          ^

ReferenceError: listId is not defined
    at /app/api/helpers/update-card.js:119:11
    at Array.forEach (<anonymous>)
    at fn (/app/api/helpers/update-card.js:116:19)
    at processTicksAndRejections (node:internal/process/task_queues:93:5)
Tried 5 times. Waiting 5 seconds...
debug: Detected Sails environment is "production", but NODE_ENV is `undefined`.
debug: Automatically setting the NODE_ENV environment variable to "production".
debug: 
(node:151) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
debug: -------------------------------------------------------
debug: :: Wed Feb 10 2021 09:17:53 GMT+0000 (Coordinated Universal Time)
debug: Environment : production
debug: Port        : 1337
debug: -------------------------------------------------------

The Docker Postgres-Container writes a new line to the log as soon as this happens:
2021-02-10 09:17:37.257 UTC [71] LOG: could not receive data from client: Connection reset by peer

Thanks for this awesome project and your support!

Originally created by @C0d3GGz on GitHub (Feb 10, 2021). Hi, I've been using Planka for a few days and had no problems - until now. As soon as I move an existing card, the socket connection is lost and the changes aren't committed. Creating and moving a new card, however, is working. Planka is hosted on a Raspberry Pi 3B with docker-compose. My config uses postgres:12.4-alpine since the newest postgres version won't run. Other that that, the config is almost the stock one. I have one user, one project, five boards and in sum about 100 cards. I use comments, labels, due dates, timers, and tasks. Here are the logs as soon as the error occurs: Browser: ``` websocket.js:124 WebSocket connection to 'ws://192.168.0.52:3001/socket.io/?__sails_io_sdk_version=1.2.1&__sails_io_sdk_platform=node&__sails_io_sdk_language=javascript&EIO=3&transport=websocket' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED p.doOpen @ websocket.js:124 a.open @ transport.js:84 l.open @ socket.js:250 l @ socket.js:122 l @ socket.js:28 d.open.d.connect @ manager.js:226 (anonymous) @ manager.js:544 onloadwff.js:formatted:19602 Uncaught TypeError: Cannot read property 'toUpperCase' of undefined at should_fill_on_click (onloadwff.js:formatted:19602) at onloadwff.js:formatted:5794 ``` Planka-Container: ``` /app/api/helpers/update-card.js:119 listId, ^ ReferenceError: listId is not defined at /app/api/helpers/update-card.js:119:11 at Array.forEach (<anonymous>) at fn (/app/api/helpers/update-card.js:116:19) at processTicksAndRejections (node:internal/process/task_queues:93:5) Tried 5 times. Waiting 5 seconds... debug: Detected Sails environment is "production", but NODE_ENV is `undefined`. debug: Automatically setting the NODE_ENV environment variable to "production". debug: (node:151) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use `node --trace-warnings ...` to show where the warning was created) debug: ------------------------------------------------------- debug: :: Wed Feb 10 2021 09:17:53 GMT+0000 (Coordinated Universal Time) debug: Environment : production debug: Port : 1337 debug: ------------------------------------------------------- ``` The Docker Postgres-Container writes a new line to the log as soon as this happens: `2021-02-10 09:17:37.257 UTC [71] LOG: could not receive data from client: Connection reset by peer ` Thanks for this awesome project and your support!
OVERLORD added the bug label 2026-02-04 16:59:11 +03:00
Author
Owner

@C0d3GGz commented on GitHub (Feb 10, 2021):

I found that moving a card from one list to another isn't the main problem. The actual problem seems to be my "Done" list. It currently contains 19 cards. Moving a card to that list is raising the error. Moving a card to any other list is working fine.

@C0d3GGz commented on GitHub (Feb 10, 2021): I found that moving a card from one list to another isn't the main problem. The actual problem seems to be my "Done" list. It currently contains 19 cards. Moving a card to that list is raising the error. Moving a card to any other list is working fine.
Author
Owner

@meltyshev commented on GitHub (Feb 10, 2021):

Hi! Thanks for reporting this. It's a bug. I forgot to change the variable name :(

@meltyshev commented on GitHub (Feb 10, 2021): Hi! Thanks for reporting this. It's a bug. I forgot to change the variable name :(
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#67