"bench start" command cannot start server

here the logs:

17:04:52 system | workerbeat.1 started (pid=28740)
17:04:52 system | web.1 started (pid=28739)
17:04:52 web.1 | /bin/sh: 1: ./env/bin/frappe: not found
17:04:52 system | web.1 stopped (rc=127)
17:04:52 system | redis_cache.1 started (pid=28741)
17:04:52 redis_cache.1 | [28747] 31 Mar 17:04:52.105 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
17:04:52 redis_cache.1 | .
17:04:52 redis_cache.1 | .-__ ''-._ 17:04:52 redis_cache.1 | _.- . . ‘’-._ Redis 2.8.4 (00000000/0) 64 bit
17:04:52 redis_cache.1 | .- .-```. ```\/ _.,_ ''-._ 17:04:52 redis_cache.1 | ( ' , .-` | `, ) Running in stand alone mode 17:04:52 redis_cache.1 | |`-._`-...-` __...-.-.|'_.-'| Port: 11311 17:04:52 redis_cache.1 | | -. ._ / _.-' | PID: 28747 17:04:52 redis_cache.1 | -._ -._ -./ .-’ .-’
17:04:52 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 17:04:52 redis_cache.1 | | -.
-._ _.-'_.-' | http://redis.io 17:04:52 redis_cache.1 | -._ -._-..-'.-’ .-’
17:04:52 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 17:04:52 redis_cache.1 | | -.
-._ _.-'_.-' | 17:04:52 redis_cache.1 | -._ -._-.
.-‘_.-’ _.-’
17:04:52 redis_cache.1 | -._ -..-’ _.-’
17:04:52 redis_cache.1 | -._ _.-' 17:04:52 redis_cache.1 | -.
.-’
17:04:52 redis_cache.1 |
17:04:52 redis_cache.1 | [28747] 31 Mar 17:04:52.112 # Server started, Redis version 2.8.4
17:04:52 redis_cache.1 | [28747] 31 Mar 17:04:52.112 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
17:04:52 redis_cache.1 | [28747] 31 Mar 17:04:52.112 * The server is now ready to accept connections on port 11311
17:04:52 system | worker.1 started (pid=28742)
17:04:52 system | sending SIGTERM to worker.1 (pid 28742)
17:04:52 system | sending SIGTERM to redis_cache.1 (pid 28741)
17:04:52 system | sending SIGTERM to workerbeat.1 (pid 28740)
17:04:52 redis_cache.1 | [28747 | signal handler] (1427792692) Received SIGTERM, scheduling shutdown…
17:04:52 redis_cache.1 | [28747] 31 Mar 17:04:52.129 # User requested shutdown…
17:04:52 redis_cache.1 | [28747] 31 Mar 17:04:52.129 # Redis is now ready to exit, bye bye…
17:04:52 system | redis_cache.1 stopped (rc=-15)
17:04:52 system | worker.1 stopped (rc=-15)
17:04:52 system | workerbeat.1 stopped (rc=-15)

thanks

Run,

bench setup procfile
bench start

not working :smiley_cat:
why :./env/bin/frappe: not found?

17:32:02 redis_cache.1 | [30625] 31 Mar 17:32:02.335 # Server started, Redis version 2.8.4
17:32:02 redis_cache.1 | [30625] 31 Mar 17:32:02.335 * The server is now ready to accept connections on port 11311
17:32:02 system | web.1 started (pid=30617)
17:32:02 web.1 | /bin/sh: 1: ./env/bin/frappe: not found
17:32:02 system | web.1 stopped (rc=127)
17:32:02 system | worker.1 started (pid=30620)
17:32:02 system | sending SIGTERM to worker.1 (pid 30620)
17:32:02 system | sending SIGTERM to redis_cache.1 (pid 30619)
17:32:02 system | sending SIGTERM to workerbeat.1 (pid 30618)
17:32:02 redis_cache.1 | [30625 | signal handler] (1427794322) Received SIGTERM, scheduling shutdown…
17:32:02 system | worker.1 stopped (rc=-15)
17:32:02 system | workerbeat.1 stopped (rc=-15)
17:32:02 redis_cache.1 | [30625] 31 Mar 17:32:02.446 # User requested shutdown…
17:32:02 redis_cache.1 | [30625] 31 Mar 17:32:02.447 # Redis is now ready to exit, bye bye…
17:32:02 system | redis_cache.1 stopped (rc=-15)

Because it’s removed in version5
Can you run

bench setup procfile
cat Procfile

workerbeat: sh -c ‘cd sites && exec …/env/bin/python -m frappe.celery_app beat -s scheduler.schedule’
web: ./env/bin/frappe --serve --sites_path sites
worker: sh -c ‘cd sites && exec …/env/bin/python -m frappe.celery_app worker’
redis_cache: redis-server config/redis.confubuntu@VM-33-217-ubuntu:~/frappe-bench$

Pushed a fix

Run,

bench update
bench setup procfile
bench start

it works,: :smile:

thanks!