Error with the Bench start command

I get this error when i run the bench start command

03:35:02 system | redis_socketio.1 started (pid=15902)
03:35:02 redis_socketio.1 | 15907:C 11 Dec 03:35:02.986 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
03:35:02 redis_socketio.1 | 15907:C 11 Dec 03:35:02.986 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=15907, just started
03:35:02 redis_socketio.1 | 15907:C 11 Dec 03:35:02.986 # Configuration loaded
03:35:02 redis_socketio.1 | 15907:M 11 Dec 03:35:02.987 * Increased maximum number of open files to 10032 (it was originally set to 1024).
03:35:02 redis_socketio.1 | 15907:M 11 Dec 03:35:02.989 * Running mode=standalone, port=12000.
03:35:02 redis_socketio.1 | 15907:M 11 Dec 03:35:02.989 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
03:35:02 redis_socketio.1 | 15907:M 11 Dec 03:35:02.989 # Server initialized
03:35:02 redis_socketio.1 | 15907:M 11 Dec 03:35:02.989 # 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.
03:35:02 redis_socketio.1 | 15907:M 11 Dec 03:35:02.989 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command ‘echo never > /sys/kernel/mm/transparent_hugepage/enabled’ as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
03:35:02 redis_socketio.1 | 15907:M 11 Dec 03:35:02.989 * Ready to accept connections
03:35:02 system | worker_long.1 started (pid=15904)
03:35:03 system | redis_queue.1 started (pid=15909)
03:35:03 redis_queue.1 | 15913:C 11 Dec 03:35:02.992 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
03:35:03 redis_queue.1 | 15913:C 11 Dec 03:35:02.992 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=15913, just started
03:35:03 redis_queue.1 | 15913:C 11 Dec 03:35:02.992 # Configuration loaded
03:35:03 redis_queue.1 | 15913:M 11 Dec 03:35:02.993 * Increased maximum number of open files to 10032 (it was originally set to 1024).
03:35:03 redis_queue.1 | 15913:M 11 Dec 03:35:02.994 * Running mode=standalone, port=11000.
03:35:03 redis_queue.1 | 15913:M 11 Dec 03:35:02.994 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
03:35:03 redis_queue.1 | 15913:M 11 Dec 03:35:02.994 # Server initialized
03:35:03 redis_queue.1 | 15913:M 11 Dec 03:35:02.994 # 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.
03:35:03 redis_queue.1 | 15913:M 11 Dec 03:35:02.994 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command ‘echo never > /sys/kernel/mm/transparent_hugepage/enabled’ as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
03:35:03 redis_queue.1 | 15913:M 11 Dec 03:35:02.994 * Ready to accept connections
03:35:03 system | socketio.1 started (pid=15918)
03:35:03 system | watch.1 started (pid=15910)
03:35:03 system | redis_cache.1 started (pid=15925)
03:35:03 redis_cache.1 | 15929:C 11 Dec 03:35:03.005 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
03:35:03 redis_cache.1 | 15929:C 11 Dec 03:35:03.005 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=15929, just started
03:35:03 redis_cache.1 | 15929:C 11 Dec 03:35:03.005 # Configuration loaded
03:35:03 redis_cache.1 | 15929:M 11 Dec 03:35:03.006 * Increased maximum number of open files to 10032 (it was originally set to 1024).
03:35:03 redis_cache.1 | 15929:M 11 Dec 03:35:03.007 * Running mode=standalone, port=13000.
03:35:03 redis_cache.1 | 15929:M 11 Dec 03:35:03.007 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
03:35:03 redis_cache.1 | 15929:M 11 Dec 03:35:03.007 # Server initialized
03:35:03 redis_cache.1 | 15929:M 11 Dec 03:35:03.007 # 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.
03:35:03 redis_cache.1 | 15929:M 11 Dec 03:35:03.007 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command ‘echo never > /sys/kernel/mm/transparent_hugepage/enabled’ as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
03:35:03 redis_cache.1 | 15929:M 11 Dec 03:35:03.007 * Ready to accept connections
03:35:03 system | worker_short.1 started (pid=15924)
03:35:03 system | schedule.1 started (pid=15931)
03:35:03 system | worker_default.1 started (pid=15942)
03:35:03 system | web.1 started (pid=15930)
03:35:04 socketio.1 | listening on *: 9000
03:35:07 web.1 | * Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
03:35:07 web.1 | * Restarting with inotify reloader
03:35:08 watch.1 | yarn run v1.12.3
03:35:08 watch.1 | error An unexpected error occurred: “EACCES: permission denied, scandir ‘/opt/bench/.config/yarn/link’”.
03:35:08 watch.1 | info If you think this is a bug, please open a bug report with the information provided in “/opt/bench/frappe-bench/apps/frappe/yarn-error.log”.
03:35:08 watch.1 | info Visit yarn run | Yarn for documentation about this command.
03:35:08 system | watch.1 stopped (rc=0)
03:35:08 system | sending SIGTERM to redis_socketio.1 (pid 15902)
03:35:08 system | sending SIGTERM to worker_long.1 (pid 15904)
03:35:08 system | sending SIGTERM to redis_queue.1 (pid 15909)
03:35:08 system | sending SIGTERM to web.1 (pid 15930)
03:35:08 system | sending SIGTERM to schedule.1 (pid 15931)
03:35:08 system | sending SIGTERM to worker_default.1 (pid 15942)
03:35:08 system | sending SIGTERM to socketio.1 (pid 15918)
03:35:08 system | sending SIGTERM to redis_cache.1 (pid 15925)
03:35:08 system | sending SIGTERM to worker_short.1 (pid 15924)
03:35:08 redis_socketio.1 | 15907:signal-handler (1544495708) Received SIGTERM scheduling shutdown…
03:35:08 redis_queue.1 | 15913:signal-handler (1544495708) Received SIGTERM scheduling shutdown…
03:35:08 redis_cache.1 | 15929:signal-handler (1544495708) Received SIGTERM scheduling shutdown…
03:35:08 worker_default.1 | 03:35:08 Warm shut down requested
03:35:08 worker_short.1 | 03:35:08 Warm shut down requested
03:35:08 worker_long.1 | 03:35:08 Warm shut down requested
03:35:08 system | schedule.1 stopped (rc=-15)
03:35:08 system | socketio.1 stopped (rc=-15)
03:35:08 redis_socketio.1 | 15907:M 11 Dec 03:35:08.299 # User requested shutdown…
03:35:08 redis_socketio.1 | 15907:M 11 Dec 03:35:08.299 * Removing the pid file.
03:35:08 redis_socketio.1 | 15907:M 11 Dec 03:35:08.299 # Redis is now ready to exit, bye bye…
03:35:08 system | redis_socketio.1 stopped (rc=-15)
03:35:08 redis_queue.1 | 15913:M 11 Dec 03:35:08.312 # User requested shutdown…
03:35:08 redis_queue.1 | 15913:M 11 Dec 03:35:08.312 * Removing the pid file.
03:35:08 redis_queue.1 | 15913:M 11 Dec 03:35:08.312 # Redis is now ready to exit, bye bye…
03:35:08 system | redis_queue.1 stopped (rc=-15)
03:35:08 redis_cache.1 | 15929:M 11 Dec 03:35:08.327 # User requested shutdown…
03:35:08 redis_cache.1 | 15929:M 11 Dec 03:35:08.327 * Removing the pid file.
03:35:08 redis_cache.1 | 15929:M 11 Dec 03:35:08.327 # Redis is now ready to exit, bye bye…
03:35:08 system | redis_cache.1 stopped (rc=-15)
03:35:08 system | worker_long.1 stopped (rc=-15)
03:35:08 system | worker_default.1 stopped (rc=-15)
03:35:08 system | worker_short.1 stopped (rc=-15)
03:35:08 system | web.1 stopped (rc=-15)

Need help to come out of this please

It looks like you have permission error.
Btw, what Linux? what version?
A Screenshot of the permissions in that folder?

Try to remove --quiet from your proc file , and try it again

could also be SELINUX - check with

getenforce

A similar problem was also fixed here

@khushal_t I removed --quit and still the same problem

Thanks for your help everyone
i have finally solved it
i ran this command in the frappe-bench folder sudo chown -R $USER:$(id -gn $USER) /opt/bench/.config

and then Bench start
and it worked