Frappe. socketio. connect ECONNREFUSED 127.0.0.1:8000 when running bench start

Hi, when I am trying to run ‘bench start’ locally I am getting socketio error:

{ Error: connect ECONNREFUSED 127.0.0.1:8000
08:59:22 socketio.1       |     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1117:14)
08:59:22 socketio.1       |   errno: 'ECONNREFUSED',
08:59:22 socketio.1       |   code: 'ECONNREFUSED',
08:59:22 socketio.1       |   syscall: 'connect',
08:59:22 socketio.1       |   address: '127.0.0.1',
08:59:22 socketio.1       |   port: 8000,
08:59:22 socketio.1       |   response: undefined }

Interesting that error does not appear when I am running app first time. But if I am restarting local server I am getting this error. Sometimes even two same errors on the same time. After searching in this forum I found some sort of solution - I need to kill all frappe processes on my local machine, but this approach does no help in all cases. Sometimes does sometimes not.

Any ideas?

Frappe version - v12.x.x-develop () (develop)

Found solution. I was need to kill uuidd process --socket-activation

ps aux | grep socket

and after that

sudo kill <some_process>

1 Like