Docker Development Environment: error

Hi all,

I have a docker development environment set-up. Almost Everything is working fine.
I installed the docker according frappe_docker/docs/ at main · frappe/frappe_docker · GitHub with a bench using frappe-14.

I have the following docker containers running:

385849c3a0d4   mariadb:10.6                                                                             "docker-entrypoint.s…"   2 weeks ago   Up 3 hours   3306/tcp                                                                                                                                 frappe_docker_devcontainer-mariadb-1
bd2d640d2164   vsc-frappe_docker-16e54941bf79d756de025f6b235de3231b7cf388842b3f6b5315b5085e61fd12-uid   "/bin/sh -c 'echo Co…"   2 weeks ago   Up 3 hours>8000-8005/tcp, :::8000-8005->8000-8005/tcp, 6787/tcp,>9000-9005/tcp, :::9000-9005->9000-9005/tcp   frappe_docker_devcontainer-frappe-1
a5bdbf1426e5   redis:alpine                                                                             "docker-entrypoint.s…"   2 weeks ago   Up 3 hours   6379/tcp                                                                                                                                 frappe_docker_devcontainer-redis-cache-1
eef1d8c768dd   redis:alpine                                                                             "docker-entrypoint.s…"   2 weeks ago   Up 3 hours   6379/tcp                                                                                                                                 frappe_docker_devcontainer-redis-queue-1

I only have one problem, in the console I always get en error on loading any page in the system:

socketio_client.js:24 WebSocket connection to ‘ws://development.localhost:9000/’ failed: WebSocket is closed before the connection is established.

If I open up the URL directly, I get the following response:

{“code”:1,“message”:“Session ID unknown”}

In my project I need the realtime communication.
Does anyone have an idea why the communication is not working?


Sorry to bring this back up…

Am I the only one with this problem? Any idea how to solve this?

Hello, Execute the below commands and restart an instance. if the ERPNext is not getting loaded then it will work.

bench destroy-all-sessions
bench clear-cache
bench clear-website-cache

Let me know if something is not working.

Note** You will still get the same warning in the console but everything will work smoothly.

Hi Hardik_Zinzu,

Thank you for the tips.
I now do not get the error anymore in the console.
But the list view still does not update…


Great to know!! Can you please share some additional details? If possible please attach screenshot.

If the main issue is fixed. Then please mark that reply as solution. So, others can use it for reference purposes.