Unable to start bench connection issue

Unable to start bench. Created a new site facing this issue since. Trying to find a solution since 2 days any help will be appreciated.

(also bench --site command not working)

Thank you

frappe@EXP-D-0087:~/frappe-bench$ bench start
09:41:33 system | redis_cache.1 started (pid=39204)
09:41:33 system | worker.1 started (pid=39220)
09:41:33 redis_cache.1 | 39205:C 14 Mar 2023 09:41:33.726 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
09:41:33 redis_cache.1 | 39205:C 14 Mar 2023 09:41:33.726 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=39205, just started
09:41:33 redis_cache.1 | 39205:C 14 Mar 2023 09:41:33.726 # Configuration loaded
09:41:33 redis_cache.1 | 39205:M 14 Mar 2023 09:41:33.726 * Increased maximum number of open files to 10032 (it was originally set to 1024).
09:41:33 redis_cache.1 | 39205:M 14 Mar 2023 09:41:33.727 * Running mode=standalone, port=13000.
09:41:33 redis_cache.1 | 39205:M 14 Mar 2023 09:41:33.727 # Server initialized
09:41:33 redis_cache.1 | 39205:M 14 Mar 2023 09:41:33.727 * Ready to accept connections
09:41:33 system | redis_queue.1 started (pid=39210)
09:41:33 redis_queue.1 | 39217:C 14 Mar 2023 09:41:33.726 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
09:41:33 redis_queue.1 | 39217:C 14 Mar 2023 09:41:33.726 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=39217, just started
09:41:33 redis_queue.1 | 39217:C 14 Mar 2023 09:41:33.726 # Configuration loaded
09:41:33 redis_queue.1 | 39217:M 14 Mar 2023 09:41:33.727 * Increased maximum number of open files to 10032 (it was originally set to 1024).
09:41:33 redis_queue.1 | 39217:M 14 Mar 2023 09:41:33.728 * Running mode=standalone, port=11000.
09:41:33 redis_queue.1 | 39217:M 14 Mar 2023 09:41:33.728 # Server initialized
09:41:33 redis_queue.1 | 39217:M 14 Mar 2023 09:41:33.728 * Ready to accept connections
09:41:33 system | web.1 started (pid=39214)
09:41:33 system | redis_socketio.1 started (pid=39207)
09:41:33 redis_socketio.1 | 39208:C 14 Mar 2023 09:41:33.728 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
09:41:33 redis_socketio.1 | 39208:C 14 Mar 2023 09:41:33.728 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=39208, just started
09:41:33 redis_socketio.1 | 39208:C 14 Mar 2023 09:41:33.728 # Configuration loaded
09:41:33 redis_socketio.1 | 39208:M 14 Mar 2023 09:41:33.729 * Increased maximum number of open files to 10032 (it was originally set to 1024).
09:41:33 redis_socketio.1 | 39208:M 14 Mar 2023 09:41:33.729 * Running mode=standalone, port=12000.
09:41:33 redis_socketio.1 | 39208:M 14 Mar 2023 09:41:33.729 # Server initialized
09:41:33 redis_socketio.1 | 39208:M 14 Mar 2023 09:41:33.730 * Ready to accept connections
09:41:33 system | socketio.1 started (pid=39237)
09:41:33 system | watch.1 started (pid=39239)
09:41:33 system | schedule.1 started (pid=39221)
09:41:34 socketio.1 | node:events:505
09:41:34 socketio.1 | throw er; // Unhandled ‘error’ event
09:41:34 socketio.1 | ^
09:41:34 socketio.1 |
09:41:34 socketio.1 | Error: connect ECONNREFUSED 127.0.0.1:12311
09:41:34 socketio.1 | at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
09:41:34 socketio.1 | Emitted ‘error’ event on RedisClient instance at:
09:41:34 socketio.1 | at RedisClient.on_error (/home/frappe/frappe-bench/apps/frappe/node_modules/redis/index.js:342:14)
09:41:34 socketio.1 | at Socket. (/home/frappe/frappe-bench/apps/frappe/node_modules/redis/index.js:223:14)
09:41:34 socketio.1 | at Socket.emit (node:events:527:28)
09:41:34 socketio.1 | at emitErrorNT (node:internal/streams/destroy:157:8)
09:41:34 socketio.1 | at emitErrorCloseNT (node:internal/streams/destroy:122:3)
09:41:34 socketio.1 | at processTicksAndRejections (node:internal/process/task_queues:83:21) {
09:41:34 socketio.1 | errno: -111,
09:41:34 socketio.1 | code: ‘ECONNREFUSED’,
09:41:34 socketio.1 | syscall: ‘connect’,
09:41:34 socketio.1 | address: ‘127.0.0.1’,
09:41:34 socketio.1 | port: 12311
09:41:34 socketio.1 | }
09:41:34 system | socketio.1 stopped (rc=1)
09:41:34 system | sending SIGTERM to redis_cache.1 (pid 39204)
09:41:34 system | sending SIGTERM to redis_socketio.1 (pid 39207)
09:41:34 system | sending SIGTERM to redis_queue.1 (pid 39210)
09:41:34 system | sending SIGTERM to web.1 (pid 39214)
09:41:34 system | sending SIGTERM to watch.1 (pid 39239)
09:41:34 system | sending SIGTERM to schedule.1 (pid 39221)
09:41:34 system | sending SIGTERM to worker.1 (pid 39220)
09:41:34 redis_queue.1 | 39217:signal-handler (1678767094) Received SIGTERM scheduling shutdown…
09:41:34 redis_socketio.1 | 39208:signal-handler (1678767094) Received SIGTERM scheduling shutdown…
09:41:34 redis_cache.1 | 39205:signal-handler (1678767094) Received SIGTERM scheduling shutdown…
09:41:34 system | worker.1 stopped (rc=-15)
09:41:34 system | web.1 stopped (rc=-15)
09:41:34 system | watch.1 stopped (rc=-15)
09:41:34 system | schedule.1 stopped (rc=-15)
09:41:34 redis_queue.1 | 39217:M 14 Mar 2023 09:41:34.130 # User requested shutdown…
09:41:34 redis_cache.1 | 39205:M 14 Mar 2023 09:41:34.130 # User requested shutdown…
09:41:34 redis_queue.1 | 39217:M 14 Mar 2023 09:41:34.130 * Removing the pid file.
09:41:34 redis_cache.1 | 39205:M 14 Mar 2023 09:41:34.130 * Removing the pid file.
09:41:34 redis_queue.1 | 39217:M 14 Mar 2023 09:41:34.130 # Redis is now ready to exit, bye bye…
09:41:34 redis_cache.1 | 39205:M 14 Mar 2023 09:41:34.130 # Redis is now ready to exit, bye bye…
09:41:34 redis_socketio.1 | 39208:M 14 Mar 2023 09:41:34.130 # User requested shutdown…
09:41:34 redis_socketio.1 | 39208:M 14 Mar 2023 09:41:34.130 * Removing the pid file.
09:41:34 redis_socketio.1 | 39208:M 14 Mar 2023 09:41:34.130 # Redis is now ready to exit, bye bye…
09:41:34 system | redis_queue.1 stopped (rc=-15)
09:41:34 system | redis_socketio.1 stopped (rc=-15)
09:41:34 system | redis_cache.1 stopped (rc=-15)

frappe@EXP-D-0087:~/frappe-bench$ sudo cat /var/log/redis/redis-server.log
805:signal-handler (1678715145) Received SIGTERM scheduling shutdown...
805:M 13 Mar 2023 19:15:45.331 # User requested shutdown...
805:M 13 Mar 2023 19:15:45.354 * Saving the final RDB snapshot before exiting.
805:M 13 Mar 2023 19:15:48.702 * DB saved on disk
805:M 13 Mar 2023 19:15:48.702 * Removing the pid file.
805:M 13 Mar 2023 19:15:48.702 # Redis is now ready to exit, bye bye...
807:C 13 Mar 2023 19:16:54.263 # WARNING supervised by systemd - you MUST set appropriate values for TimeoutStartSec and TimeoutStopSec in your service unit.
807:C 13 Mar 2023 19:16:54.362 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
807:C 13 Mar 2023 19:16:54.362 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=807, just started
807:C 13 Mar 2023 19:16:54.362 # Configuration loaded
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 6.0.16 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                   
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 807
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           http://redis.io        
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               

807:M 13 Mar 2023 19:16:54.635 # Server initialized
807:M 13 Mar 2023 19:16:54.839 * Loading RDB produced by version 6.0.16
807:M 13 Mar 2023 19:16:54.839 * RDB age 68 seconds
807:M 13 Mar 2023 19:16:54.839 * RDB memory usage when created 0.77 Mb
807:M 13 Mar 2023 19:16:54.839 * DB loaded from disk: 0.204 seconds
807:M 13 Mar 2023 19:16:54.839 * Ready to accept connections
807:signal-handler (1678715850) Received SIGTERM scheduling shutdown...
807:M 13 Mar 2023 19:27:30.957 # User requested shutdown...
807:M 13 Mar 2023 19:27:30.957 * Saving the final RDB snapshot before exiting.
807:M 13 Mar 2023 19:27:30.999 * DB saved on disk
807:M 13 Mar 2023 19:27:30.999 * Removing the pid file.
807:M 13 Mar 2023 19:27:30.999 # Redis is now ready to exit, bye bye...
5126:C 13 Mar 2023 19:27:44.940 # WARNING supervised by systemd - you MUST set appropriate values for TimeoutStartSec and TimeoutStopSec in your service unit.
5126:C 13 Mar 2023 19:27:44.940 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
5126:C 13 Mar 2023 19:27:44.940 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=5126, just started
5126:C 13 Mar 2023 19:27:44.940 # Configuration loaded
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 6.0.16 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                   
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 5126
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           http://redis.io        
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               

5126:M 13 Mar 2023 19:27:44.941 # Server initialized
5126:M 13 Mar 2023 19:27:44.941 * Loading RDB produced by version 6.0.16
5126:M 13 Mar 2023 19:27:44.941 * RDB age 14 seconds
5126:M 13 Mar 2023 19:27:44.941 * RDB memory usage when created 0.77 Mb
5126:M 13 Mar 2023 19:27:44.941 * DB loaded from disk: 0.000 seconds
5126:M 13 Mar 2023 19:27:44.941 * Ready to accept connections
5126:signal-handler (1678765368) Received SIGTERM scheduling shutdown...
5126:M 14 Mar 2023 09:12:48.351 # User requested shutdown...
5126:M 14 Mar 2023 09:12:48.351 * Saving the final RDB snapshot before exiting.
5126:M 14 Mar 2023 09:12:48.387 * DB saved on disk
5126:M 14 Mar 2023 09:12:48.387 * Removing the pid file.
5126:M 14 Mar 2023 09:12:48.387 # Redis is now ready to exit, bye bye...
36661:C 14 Mar 2023 09:12:48.737 # WARNING supervised by systemd - you MUST set appropriate values for TimeoutStartSec and TimeoutStopSec in your service unit.
36661:C 14 Mar 2023 09:12:48.737 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
36661:C 14 Mar 2023 09:12:48.737 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=36661, just started
36661:C 14 Mar 2023 09:12:48.737 # Configuration loaded
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 6.0.16 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                   
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 36661
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           http://redis.io        
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               

36661:M 14 Mar 2023 09:12:48.738 # Server initialized
36661:M 14 Mar 2023 09:12:48.738 * Loading RDB produced by version 6.0.16
36661:M 14 Mar 2023 09:12:48.738 * RDB age 0 seconds
36661:M 14 Mar 2023 09:12:48.738 * RDB memory usage when created 0.77 Mb
36661:M 14 Mar 2023 09:12:48.738 * DB loaded from disk: 0.000 seconds
36661:M 14 Mar 2023 09:12:48.738 * Ready to accept connections
36661:signal-handler (1678765406) Received SIGTERM scheduling shutdown...
36661:M 14 Mar 2023 09:13:26.653 # User requested shutdown...
36661:M 14 Mar 2023 09:13:26.653 * Saving the final RDB snapshot before exiting.
36661:M 14 Mar 2023 09:13:26.680 * DB saved on disk
36661:M 14 Mar 2023 09:13:26.680 * Removing the pid file.
36661:M 14 Mar 2023 09:13:26.680 # Redis is now ready to exit, bye bye...
36700:C 14 Mar 2023 09:13:31.120 # WARNING supervised by systemd - you MUST set appropriate values for TimeoutStartSec and TimeoutStopSec in your service unit.
36700:C 14 Mar 2023 09:13:31.120 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
36700:C 14 Mar 2023 09:13:31.120 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=36700, just started
36700:C 14 Mar 2023 09:13:31.120 # Configuration loaded
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 6.0.16 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                   
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 36700
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           http://redis.io        
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               

36700:M 14 Mar 2023 09:13:31.121 # Server initialized
36700:M 14 Mar 2023 09:13:31.121 * Loading RDB produced by version 6.0.16
36700:M 14 Mar 2023 09:13:31.121 * RDB age 5 seconds
36700:M 14 Mar 2023 09:13:31.121 * RDB memory usage when created 0.77 Mb
36700:M 14 Mar 2023 09:13:31.121 * DB loaded from disk: 0.000 seconds
36700:M 14 Mar 2023 09:13:31.121 * Ready to accept connections
36700:signal-handler (1678767272) Received SIGTERM scheduling shutdown...
36700:M 14 Mar 2023 09:44:32.267 # User requested shutdown...
36700:M 14 Mar 2023 09:44:32.267 * Saving the final RDB snapshot before exiting.
36700:M 14 Mar 2023 09:44:32.310 * DB saved on disk
36700:M 14 Mar 2023 09:44:32.310 * Removing the pid file.
36700:M 14 Mar 2023 09:44:32.310 # Redis is now ready to exit, bye bye...
39402:C 14 Mar 2023 09:44:32.372 # WARNING supervised by systemd - you MUST set appropriate values for TimeoutStartSec and TimeoutStopSec in your service unit.
39402:C 14 Mar 2023 09:44:32.372 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
39402:C 14 Mar 2023 09:44:32.372 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=39402, just started
39402:C 14 Mar 2023 09:44:32.372 # Configuration loaded
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 6.0.16 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                   
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 39402
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           http://redis.io        
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               

39402:M 14 Mar 2023 09:44:32.373 # Server initialized
39402:M 14 Mar 2023 09:44:32.373 * Loading RDB produced by version 6.0.16
39402:M 14 Mar 2023 09:44:32.373 * RDB age 0 seconds
39402:M 14 Mar 2023 09:44:32.373 * RDB memory usage when created 0.77 Mb
39402:M 14 Mar 2023 09:44:32.373 * DB loaded from disk: 0.000 seconds
39402:M 14 Mar 2023 09:44:32.373 * Ready to accept connections

frappe@EXP-D-0087:~/frappe-bench$ bench uninstall-app frappedesk
Traceback (most recent call last):
File “/usr/lib/python3.10/runpy.py”, line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File “/usr/lib/python3.10/runpy.py”, line 86, in _run_code
exec(code, run_globals)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 109, in
main()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=“bench”)
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 829, in call
return self.main(*args, **kwargs)
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 782, in main
rv = self.invoke(ctx)
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 610, in invoke
return callback(*args, **kwargs)
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/decorators.py”, line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/init.py”, line 29, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py”, line 801, in uninstall
frappe.init(site=site)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 248, in init
setup_module_map()
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1538, in setup_module_map
for module in get_module_list(app):
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1378, in get_module_list
return get_file_items(os.path.join(os.path.dirname(get_module(app_name).file), “modules.txt”))
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1327, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1050, in _gcd_import
File “”, line 1027, in _find_and_load
File “”, line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘frappedesk’

frappe@EXP-D-0087:~/frappe-bench$ bench install-app GitHub - frappe/helpdesk: Modern, Streamlined, Free and Open Source Customer Service Software
Traceback (most recent call last):
File “/usr/lib/python3.10/runpy.py”, line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File “/usr/lib/python3.10/runpy.py”, line 86, in _run_code
exec(code, run_globals)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 109, in
main()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=“bench”)
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 829, in call
return self.main(*args, **kwargs)
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 782, in main
rv = self.invoke(ctx)
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 610, in invoke
return callback(*args, **kwargs)
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/decorators.py”, line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/init.py”, line 29, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py”, line 411, in install_app
frappe.init(site=site)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 248, in init
setup_module_map()
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1538, in setup_module_map
for module in get_module_list(app):
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1378, in get_module_list
return get_file_items(os.path.join(os.path.dirname(get_module(app_name).file), “modules.txt”))
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1327, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1050, in _gcd_import
File “”, line 1027, in _find_and_load
File “”, line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘frappedesk’

This is a very non-standard port. Can you share the .conf files or at least the lines from within them

{
“db_name”: “”,
“db_password”: “”,
“db_type”: “mariadb”,
“developer-mode”: 1,
“encryption_key”: “=”,
“server_script_enabled”: true,
“redis_cache”:“redis://127.0.0.1:12311”,
“redis_queue”:“redis://127.0.0.1:11000”,
“redis_socketio”:“redis://127.0.0.1:12000”
}
@trentmu

Have a look at this post (adapt to your situation - it might help)

I had installed the frappe desk app (GitHub - frappe/helpdesk: Customer Service Software), the app did not install properly currently i am getting this on bench start.

I am unable to use the bench --site command

frappe@EXP-D-0087:~/frappe-bench$ bench start
14:17:01 system           | redis_socketio.1 started (pid=14744)
14:17:01 system           | web.1 started (pid=14750)
14:17:01 redis_socketio.1 | 14745:C 14 Mar 2023 14:17:01.818 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
14:17:01 redis_socketio.1 | 14745:C 14 Mar 2023 14:17:01.818 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=14745, just started
14:17:01 redis_socketio.1 | 14745:C 14 Mar 2023 14:17:01.818 # Configuration loaded
14:17:01 redis_socketio.1 | 14745:M 14 Mar 2023 14:17:01.819 * Increased maximum number of open files to 10032 (it was originally set to 1024).
14:17:01 redis_socketio.1 | 14745:M 14 Mar 2023 14:17:01.820 * Running mode=standalone, port=12000.
14:17:01 redis_socketio.1 | 14745:M 14 Mar 2023 14:17:01.820 # Server initialized
14:17:01 redis_socketio.1 | 14745:M 14 Mar 2023 14:17:01.820 * Ready to accept connections
14:17:01 system           | redis_cache.1 started (pid=14741)
14:17:01 system           | watch.1 started (pid=14765)
14:17:01 system           | socketio.1 started (pid=14766)
14:17:01 redis_cache.1    | 14742:C 14 Mar 2023 14:17:01.827 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
14:17:01 redis_cache.1    | 14742:C 14 Mar 2023 14:17:01.827 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=14742, just started
14:17:01 redis_cache.1    | 14742:C 14 Mar 2023 14:17:01.827 # Configuration loaded
14:17:01 redis_cache.1    | 14742:M 14 Mar 2023 14:17:01.828 * Increased maximum number of open files to 10032 (it was originally set to 1024).
14:17:01 redis_cache.1    | 14742:M 14 Mar 2023 14:17:01.828 * Running mode=standalone, port=12311.
14:17:01 redis_cache.1    | 14742:M 14 Mar 2023 14:17:01.829 # Server initialized
14:17:01 redis_cache.1    | 14742:M 14 Mar 2023 14:17:01.829 * Ready to accept connections
14:17:01 system           | worker.1 started (pid=14756)
14:17:01 system           | schedule.1 started (pid=14758)
14:17:01 system           | redis_queue.1 started (pid=14755)
14:17:01 redis_queue.1    | 14757:C 14 Mar 2023 14:17:01.823 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
14:17:01 redis_queue.1    | 14757:C 14 Mar 2023 14:17:01.823 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=14757, just started
14:17:01 redis_queue.1    | 14757:C 14 Mar 2023 14:17:01.823 # Configuration loaded
14:17:01 redis_queue.1    | 14757:M 14 Mar 2023 14:17:01.824 * Increased maximum number of open files to 10032 (it was originally set to 1024).
14:17:01 redis_queue.1    | 14757:M 14 Mar 2023 14:17:01.829 * Running mode=standalone, port=11000.
14:17:01 redis_queue.1    | 14757:M 14 Mar 2023 14:17:01.829 # Server initialized
14:17:01 redis_queue.1    | 14757:M 14 Mar 2023 14:17:01.829 * Ready to accept connections
14:17:02 watch.1          | Traceback (most recent call last):
14:17:02 watch.1          |   File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
14:17:02 watch.1          |     return _run_code(code, main_globals, None,
14:17:02 watch.1          |   File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
14:17:02 watch.1          |     exec(code, run_globals)
14:17:02 watch.1          |   File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 109, in <module>
14:17:02 watch.1          |     main()
14:17:02 watch.1          |   File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
14:17:02 watch.1          |     click.Group(commands=commands)(prog_name="bench")
14:17:02 watch.1          |   File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 829, in __call__
14:17:02 watch.1          |     return self.main(*args, **kwargs)
14:17:02 watch.1          |   File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 782, in main
14:17:02 watch.1          |     rv = self.invoke(ctx)
14:17:02 watch.1          |   File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
14:17:02 watch.1          |     return _process_result(sub_ctx.command.invoke(sub_ctx))
14:17:02 watch.1          |   File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
14:17:02 watch.1          |     return _process_result(sub_ctx.command.invoke(sub_ctx))
14:17:02 watch.1          |   File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1066, in invoke
14:17:02 watch.1          |     return ctx.invoke(self.callback, **ctx.params)
14:17:02 watch.1          |   File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 610, in invoke
14:17:02 watch.1          |     return callback(*args, **kwargs)
14:17:02 watch.1          |   File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/utils.py", line 91, in watch
14:17:02 watch.1          |     frappe.init("")
14:17:02 watch.1          |   File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 248, in init
14:17:02 watch.1          |     setup_module_map()
14:17:02 watch.1          |   File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1538, in setup_module_map
14:17:02 watch.1          |     for module in get_module_list(app):
14:17:02 watch.1          |   File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1378, in get_module_list
14:17:02 watch.1          |     return get_file_items(os.path.join(os.path.dirname(get_module(app_name).__file__), "modules.txt"))
14:17:02 watch.1          |   File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1327, in get_module
14:17:02 watch.1          |     return importlib.import_module(modulename)
14:17:02 watch.1          |   File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
14:17:02 watch.1          |     return _bootstrap._gcd_import(name[level:], package, level)
14:17:02 watch.1          |   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
14:17:02 watch.1          |   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
14:17:02 watch.1          |   File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
14:17:02 watch.1          | ModuleNotFoundError: No module named 'frappedesk'
14:17:02 system           | watch.1 stopped (rc=1)
14:17:02 system           | sending SIGTERM to redis_cache.1 (pid 14741)
14:17:02 system           | sending SIGTERM to redis_socketio.1 (pid 14744)
14:17:02 system           | sending SIGTERM to redis_queue.1 (pid 14755)
14:17:02 system           | sending SIGTERM to web.1 (pid 14750)
14:17:02 system           | sending SIGTERM to socketio.1 (pid 14766)
14:17:02 system           | sending SIGTERM to schedule.1 (pid 14758)
14:17:02 system           | sending SIGTERM to worker.1 (pid 14756)
14:17:02 redis_socketio.1 | 14745:signal-handler (1678783622) Received SIGTERM scheduling shutdown...
14:17:02 system           | schedule.1 stopped (rc=-15)
14:17:02 redis_socketio.1 | 14745:M 14 Mar 2023 14:17:02.824 # User requested shutdown...
14:17:02 redis_socketio.1 | 14745:M 14 Mar 2023 14:17:02.824 * Removing the pid file.
14:17:02 redis_socketio.1 | 14745:M 14 Mar 2023 14:17:02.824 # Redis is now ready to exit, bye bye...
14:17:02 system           | worker.1 stopped (rc=-15)
14:17:02 system           | web.1 stopped (rc=-15)
14:17:02 redis_cache.1    | 14742:signal-handler (1678783622) Received SIGTERM scheduling shutdown...
14:17:02 system           | socketio.1 stopped (rc=-15)
14:17:02 system           | redis_socketio.1 stopped (rc=-15)
14:17:02 redis_queue.1    | 14757:signal-handler (1678783622) Received SIGTERM scheduling shutdown...
14:17:02 redis_queue.1    | 14757:M 14 Mar 2023 14:17:02.830 # User requested shutdown...
14:17:02 redis_queue.1    | 14757:M 14 Mar 2023 14:17:02.830 * Removing the pid file.
14:17:02 redis_queue.1    | 14757:M 14 Mar 2023 14:17:02.830 # Redis is now ready to exit, bye bye...
14:17:02 redis_cache.1    | 14742:M 14 Mar 2023 14:17:02.830 # User requested shutdown...
14:17:02 redis_cache.1    | 14742:M 14 Mar 2023 14:17:02.830 * Removing the pid file.
14:17:02 redis_cache.1    | 14742:M 14 Mar 2023 14:17:02.830 # Redis is now ready to exit, bye bye...
14:17:02 system           | redis_cache.1 stopped (rc=-15)
14:17:02 system           | redis_queue.1 stopped (rc=-15)



@trentmu @revant_one It would be a big help if you could take a look and help out
regards,
parth

Try the suggestions from here…