Bench start - connect ECONNREFUSED 127.0.0.1:12002

I’m having problems when running bench start I get the following error:

bench init --frappe-branch version-14 frappe-bench-v14
bench start                                                                                                                                    
12:03:48 system     | socketio.1 started (pid=68290)
12:03:48 system     | watch.1 started (pid=68292)
12:03:48 system     | schedule.1 started (pid=68295)
12:03:48 system     | web.1 started (pid=68287)
12:03:48 system     | worker.1 started (pid=68298)
12:03:48 socketio.1 | node:events:491
12:03:48 socketio.1 |       throw er; // Unhandled 'error' event
12:03:48 socketio.1 |       ^
12:03:48 socketio.1 | 
12:03:48 socketio.1 | Error: connect ECONNREFUSED 127.0.0.1:12002
12:03:48 socketio.1 |     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
12:03:48 socketio.1 | Emitted 'error' event on RedisClient instance at:
12:03:48 socketio.1 |     at RedisClient.on_error (/home/barcelo/frappe-bench-v14/apps/frappe/node_modules/redis/index.js:342:14)
12:03:48 socketio.1 |     at Socket.<anonymous> (/home/barcelo/frappe-bench-v14/apps/frappe/node_modules/redis/index.js:223:14)
12:03:48 socketio.1 |     at Socket.emit (node:events:513:28)
12:03:48 socketio.1 |     at emitErrorNT (node:internal/streams/destroy:157:8)
12:03:48 socketio.1 |     at emitErrorCloseNT (node:internal/streams/destroy:122:3)
12:03:48 socketio.1 |     at processTicksAndRejections (node:internal/process/task_queues:83:21) {
12:03:48 socketio.1 |   errno: -111,
12:03:48 socketio.1 |   code: 'ECONNREFUSED',
12:03:48 socketio.1 |   syscall: 'connect',
12:03:48 socketio.1 |   address: '127.0.0.1',
12:03:48 socketio.1 |   port: 12002
12:03:48 socketio.1 | }
12:03:48 system     | socketio.1 stopped (rc=1)
12:03:48 system     | sending SIGTERM to web.1 (pid 68287)
12:03:48 system     | sending SIGTERM to watch.1 (pid 68292)
12:03:48 system     | sending SIGTERM to schedule.1 (pid 68295)
12:03:48 system     | sending SIGTERM to worker.1 (pid 68298)
12:03:48 system     | worker.1 stopped (rc=-15)
12:03:48 system     | schedule.1 stopped (rc=-15)
12:03:48 system     | web.1 stopped (rc=-15)
12:03:48 system     | watch.1 stopped (rc=-15)

System information

Linux barcelo-pc 6.1.38-1-MANJARO
Python 3.11.3
node v16.20.0
redis 6.2.7-2
bench 5.17.0

I changed localhost to 127.0.0.1 on sites/common_site_config.json

...                                                                                                                   
 "redis_cache": "redis://127.0.0.1:13002",
 "redis_queue": "redis://127.0.0.1:11002",
 "redis_socketio": "redis://127.0.0.1:12002",
"socketio_port": 9003,
...

others output

...
Found existing apps updating states...
WARN: restart failed: Couldn't find supervisorctl in PATH
$ bench build
Assets for Release v14.46.0 don't exist
✔ Application Assets Linked                       
...

supervisor loaded

systemctl status supervisord.service                                                                                                                                            ✔ 
● supervisord.service - Process Monitoring and Control Daemon
     Loaded: loaded (/usr/lib/systemd/system/supervisord.service; disabled; preset: disabled)
     Active: active (running) since Wed 2023-08-23 11:04:25 CDT; 2s ago
bench restart                                                                                                                                           ✔  16.20.0  
$ sudo supervisorctl restart frappe:
frappe: ERROR (no such group)
frappe: ERROR (no such group)
ERROR: sudo supervisorctl restart frappe:

some help?

for above error

Have you changed port as per your sites/common_site_config.json ?
Please check port in below config file.

    sudo nano frappe-bench/config/redis_queue.conf
    sudo nano frappe-bench/config/redis_socketio.conf
    sudo nano frappe-bench/config/redis_cache.conf

for above error

sudo nano /etc/supervisor/supervisord.conf

Add 2 line under unix_http_server
[unix_http_server]
chmod = 0760
chown = frappe:frappe

sudo -A systemctl restart supervisor
chmod -R o+rx /home/barcelo

Thank you.

I have installed bench 5.16.4 and it works correctly!!, with version 5.17.0 the file config/redis_socketio.conf does not appear
there are only:

/config/redis_queue.conf
/config/redis_cache.conf

About supervisor…

now:

frappe: ERROR (no such process)
frappe: ERROR (no such process)

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