Cannot connect to localhost using bench start

I have some problem when I’m using bench start. It shows huge amount of information that I don’t understand but I know it doen’t start the server 'cause redis is stopped

10:07:26 system           | redis_socketio.1 started (pid=3085)
10:07:26 redis_socketio.1 | 3090:C 17 Nov 10:07:26.373 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
10:07:26 redis_socketio.1 | 3090:C 17 Nov 10:07:26.373 # Redis version=4.0.1, bits=64, commit=00000000, modified=0, pid=3090, just started
10:07:26 redis_socketio.1 | 3090:C 17 Nov 10:07:26.373 # Configuration loaded
10:07:26 redis_socketio.1 | 3090:M 17 Nov 10:07:26.374 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
10:07:26 redis_socketio.1 | 3090:M 17 Nov 10:07:26.375 # Server can't set maximum open files to 10032 because of OS error: Operation not permitted.
10:07:26 redis_socketio.1 | 3090:M 17 Nov 10:07:26.375 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
10:07:26 redis_socketio.1 | 3090:M 17 Nov 10:07:26.376 * Running mode=standalone, port=12000.
10:07:26 redis_socketio.1 | 3090:M 17 Nov 10:07:26.376 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
10:07:26 redis_socketio.1 | 3090:M 17 Nov 10:07:26.376 # Server initialized
10:07:26 redis_socketio.1 | 3090:M 17 Nov 10:07:26.376 # 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.
10:07:26 redis_socketio.1 | 3090:M 17 Nov 10:07:26.376 # 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.
10:07:26 redis_socketio.1 | 3090:M 17 Nov 10:07:26.376 * Ready to accept connections
10:07:26 system           | worker_long.1 started (pid=3086)
10:07:26 system           | web.1 started (pid=3099)
10:07:26 system           | socketio.1 started (pid=3102)
10:07:26 system           | schedule.1 started (pid=3098)
10:07:26 system           | worker_default.1 started (pid=3101)
10:07:26 system           | worker_short.1 started (pid=3116)
10:07:26 system           | watch.1 started (pid=3115)
10:07:26 system           | redis_queue.1 started (pid=3094)
10:07:26 redis_queue.1    | 3104:C 17 Nov 10:07:26.388 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
10:07:26 redis_queue.1    | 3104:C 17 Nov 10:07:26.388 # Redis version=4.0.1, bits=64, commit=00000000, modified=0, pid=3104, just started
10:07:26 redis_queue.1    | 3104:C 17 Nov 10:07:26.388 # Configuration loaded
10:07:26 redis_queue.1    | 3104:M 17 Nov 10:07:26.390 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
10:07:26 redis_queue.1    | 3104:M 17 Nov 10:07:26.390 # Server can't set maximum open files to 10032 because of OS error: Operation not permitted.
10:07:26 redis_queue.1    | 3104:M 17 Nov 10:07:26.390 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
10:07:26 redis_queue.1    | 3104:M 17 Nov 10:07:26.391 * Running mode=standalone, port=11000.
10:07:26 redis_queue.1    | 3104:M 17 Nov 10:07:26.391 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
10:07:26 redis_queue.1    | 3104:M 17 Nov 10:07:26.391 # Server initialized
10:07:26 redis_queue.1    | 3104:M 17 Nov 10:07:26.391 # 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.
10:07:26 redis_queue.1    | 3104:M 17 Nov 10:07:26.391 # 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.
10:07:26 redis_queue.1    | 3104:M 17 Nov 10:07:26.391 * Ready to accept connections
10:07:26 system           | redis_cache.1 started (pid=3124)
10:07:26 redis_cache.1    | 3126:C 17 Nov 10:07:26.413 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
10:07:26 redis_cache.1    | 3126:C 17 Nov 10:07:26.413 # Redis version=4.0.1, bits=64, commit=00000000, modified=0, pid=3126, just started
10:07:26 redis_cache.1    | 3126:C 17 Nov 10:07:26.413 # Configuration loaded
10:07:26 redis_cache.1    | 3126:M 17 Nov 10:07:26.415 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
10:07:26 redis_cache.1    | 3126:M 17 Nov 10:07:26.415 # Server can't set maximum open files to 10032 because of OS error: Operation not permitted.
10:07:26 redis_cache.1    | 3126:M 17 Nov 10:07:26.415 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
10:07:26 redis_cache.1    | 3126:M 17 Nov 10:07:26.428 * Running mode=standalone, port=13000.
10:07:26 redis_cache.1    | 3126:M 17 Nov 10:07:26.429 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
10:07:26 redis_cache.1    | 3126:M 17 Nov 10:07:26.429 # Server initialized
10:07:26 redis_cache.1    | 3126:M 17 Nov 10:07:26.429 # 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.
10:07:26 redis_cache.1    | 3126:M 17 Nov 10:07:26.429 # 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.
10:07:26 redis_cache.1    | 3126:M 17 Nov 10:07:26.429 * Ready to accept connections
10:07:27 socketio.1       | listening on *: 9000
10:07:31 worker_long.1    | 10:07:31 RQ worker u'rq:worker:administrator-X202E.3092.long' started, version 0.9.1
10:07:31 worker_long.1    | 10:07:31 Cleaning registries for queue: long
10:07:31 worker_long.1    | 10:07:31 
10:07:31 worker_long.1    | 10:07:31 *** Listening on long...
10:07:31 worker_default.1 | 10:07:31 RQ worker u'rq:worker:administrator-X202E.3107.default' started, version 0.9.1
10:07:31 worker_default.1 | 10:07:31 Cleaning registries for queue: default
10:07:31 worker_default.1 | 10:07:31 
10:07:31 worker_default.1 | 10:07:31 *** Listening on default...
10:07:31 worker_short.1   | 10:07:31 RQ worker u'rq:worker:administrator-X202E.3125.short' started, version 0.9.1
10:07:31 worker_short.1   | 10:07:31 Cleaning registries for queue: short
10:07:31 worker_short.1   | 10:07:31 
10:07:31 worker_short.1   | 10:07:31 *** Listening on short...
10:07:31 web.1            |  * Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
10:07:31 web.1            |  * Restarting with inotify reloader
10:07:32 web.1            |  * Debugger is active!
10:07:32 web.1            |  * Debugger PIN: 246-368-264
10:07:32 watch.1          | compiling avatar.less
10:07:32 watch.1          | compiling calendar.less
10:07:32 watch.1          | compiling common.less
10:07:32 watch.1          | compiling desk.less
10:07:32 watch.1          | compiling desktop.less
10:07:32 watch.1          | compiling docs.less
10:07:32 watch.1          | compiling email.less
10:07:32 watch.1          | compiling form.less
10:07:33 watch.1          | compiling form_grid.less
10:07:33 watch.1          | compiling gantt.less
10:07:33 watch.1          | compiling indicator.less
10:07:33 watch.1          | compiling kanban.less
10:07:33 watch.1          | compiling list.less
10:07:33 watch.1          | compiling mixins.less
10:07:33 watch.1          | compiling mobile.less
10:07:33 watch.1          | compiling module.less
10:07:33 watch.1          | compiling navbar.less
10:07:33 watch.1          | compiling page.less
10:07:33 watch.1          | compiling report.less
10:07:33 watch.1          | compiling role_editor.less
10:07:33 watch.1          | compiling sidebar.less
10:07:33 watch.1          | compiling slickgrid.less
10:07:33 watch.1          | compiling tree.less
10:07:33 watch.1          | compiling website.less
10:07:33 watch.1          | compiling email.less
10:07:33 watch.1          | compiling erpnext.less
10:07:33 watch.1          | compiling hub.less
10:07:33 watch.1          | compiling pos.less
10:07:33 watch.1          | compiling website.less
10:07:33 watch.1          | file watching on *: 6787
10:07:33 watch.1          | Less files compiled
10:07:33 watch.1          | Wrote css/frappe-web.css - 65.46 KB
10:07:35 watch.1          | Wrote js/frappe-web.min.js - 133.43 KB
10:07:36 watch.1          | Wrote js/control.min.js - 75.41 KB
10:07:37 watch.1          | Wrote js/dialog.min.js - 120.17 KB
10:07:37 watch.1          | Wrote css/desk.min.css - 311.29 KB
10:07:37 watch.1          | Wrote css/frappe-rtl.css - 32.75 KB
10:07:37 watch.1          | Wrote js/libs.min.js - 1.14 MB
10:07:41 watch.1          | Wrote js/desk.min.js - 467.41 KB
10:07:41 watch.1          | Wrote css/module.min.css - 2.17 KB
10:07:41 watch.1          | Wrote css/form.min.css - 4.56 KB
10:07:43 watch.1          | Wrote js/form.min.js - 199.38 KB
10:07:43 watch.1          | Wrote css/list.min.css - 15.47 KB
10:07:45 watch.1          | Wrote js/list.min.js - 153.47 KB
10:07:45 watch.1          | Wrote css/report.min.css - 8.35 KB
10:07:46 watch.1          | Wrote js/report.min.js - 261.55 KB
10:07:46 watch.1          | Wrote js/web_form.min.js - 247.94 KB
10:07:46 watch.1          | Wrote css/web_form.css - 24.71 KB
10:07:46 watch.1          | Wrote js/print_format_v3.min.js - 23.66 KB
10:07:46 watch.1          | Wrote css/erpnext.css - 8.09 KB
10:07:46 watch.1          | Wrote js/erpnext-web.min.js - 3.91 KB
10:07:47 watch.1          | Wrote js/erpnext.min.js - 152.46 KB
10:07:47 watch.1          | Wrote js/item-dashboard.min.js - 8.16 KB
10:07:49 watch.1          | events.js:160
10:07:49 watch.1          |       throw er; // Unhandled 'error' event
10:07:49 watch.1          |       ^
10:07:49 watch.1          | 
10:07:49 watch.1          | Error: watch /home/administrator/frappe-bench/apps/frappe/frappe/website/doctype/company_history/README.md ENOSPC
10:07:49 watch.1          |     at exports._errnoException (util.js:1020:11)
10:07:49 watch.1          |     at FSWatcher.start (fs.js:1443:19)
10:07:49 watch.1          |     at Object.fs.watch (fs.js:1470:11)
10:07:49 watch.1          |     at createFsWatchInstance (/home/administrator/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:37:15)
10:07:49 watch.1          |     at setFsWatchListener (/home/administrator/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:80:15)
10:07:49 watch.1          |     at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/administrator/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:228:14)
10:07:49 watch.1          |     at FSWatcher.NodeFsHandler._handleFile (/home/administrator/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:255:21)
10:07:49 watch.1          |     at FSWatcher.<anonymous> (/home/administrator/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:473:21)
10:07:49 watch.1          |     at FSReqWrap.oncomplete (fs.js:123:15)
10:07:49 system           | watch.1 stopped (rc=0)
10:07:49 system           | sending SIGTERM to redis_socketio.1 (pid 3085)
10:07:49 system           | sending SIGTERM to worker_long.1 (pid 3086)
10:07:49 system           | sending SIGTERM to redis_queue.1 (pid 3094)
10:07:49 system           | sending SIGTERM to web.1 (pid 3099)
10:07:49 system           | sending SIGTERM to schedule.1 (pid 3098)
10:07:49 system           | sending SIGTERM to worker_default.1 (pid 3101)
10:07:49 system           | sending SIGTERM to socketio.1 (pid 3102)
10:07:49 system           | sending SIGTERM to redis_cache.1 (pid 3124)
10:07:49 system           | sending SIGTERM to worker_short.1 (pid 3116)
10:07:49 redis_socketio.1 | 3090:signal-handler (1510888069) Received SIGTERM scheduling shutdown...
10:07:49 redis_queue.1    | 3104:signal-handler (1510888069) Received SIGTERM scheduling shutdown...
10:07:49 worker_long.1    | 10:07:49 Warm shut down requested
10:07:49 system           | schedule.1 stopped (rc=-15)
10:07:49 worker_default.1 | 10:07:49 Warm shut down requested
10:07:49 redis_cache.1    | 3126:signal-handler (1510888069) Received SIGTERM scheduling shutdown...
10:07:49 worker_short.1   | 10:07:49 Warm shut down requested
10:07:50 system           | socketio.1 stopped (rc=-15)
10:07:50 redis_queue.1    | 3104:M 17 Nov 10:07:50.032 # User requested shutdown...
10:07:50 redis_queue.1    | 3104:M 17 Nov 10:07:50.032 * Removing the pid file.
10:07:50 redis_queue.1    | 3104:M 17 Nov 10:07:50.032 # Redis is now ready to exit, bye bye...
10:07:50 system           | redis_queue.1 stopped (rc=-15)
10:07:50 redis_socketio.1 | 3090:M 17 Nov 10:07:50.033 # User requested shutdown...
10:07:50 redis_socketio.1 | 3090:M 17 Nov 10:07:50.034 * Removing the pid file.
10:07:50 redis_socketio.1 | 3090:M 17 Nov 10:07:50.034 # Redis is now ready to exit, bye bye...
10:07:50 system           | redis_socketio.1 stopped (rc=-15)
10:07:50 system           | worker_long.1 stopped (rc=-15)
10:07:50 redis_cache.1    | 3126:M 17 Nov 10:07:50.083 # User requested shutdown...
10:07:50 redis_cache.1    | 3126:M 17 Nov 10:07:50.083 * Removing the pid file.
10:07:50 redis_cache.1    | 3126:M 17 Nov 10:07:50.084 # Redis is now ready to exit, bye bye...
10:07:50 system           | redis_cache.1 stopped (rc=-15)
10:07:50 system           | worker_default.1 stopped (rc=-15)
10:07:50 system           | worker_short.1 stopped (rc=-15)
10:07:50 system           | web.1 stopped (rc=-15)

can anyone tell me what is wrong? cause I already try localhost:8000 but it says unable to connect

Hi
I have same error, I need to close some apps on my PC. if on server I need to restart server.

shreya115 diagnosed that -

It’s a disk space error.
Try running this command in your terminal and then start bench,
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

Bench start fail

1 Like

it works!!! @clarkej, thanks for the solve