"Bench Start" Doesn't start dev server

I am getting the classic redis cache error which says Address already in use.

Following is the terminal output after hitting “bench start”

12:31:22 system | socketio.1 started (pid=4888)
12:31:22 system | web.1 started (pid=4889)
12:31:22 system | redis_cache.1 started (pid=4893)
12:31:22 redis_cache.1 | [4901] 30 Sep 12:31:22.906 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
12:31:22 redis_cache.1 | [4901] 30 Sep 12:31:22.906 # Creating Server TCP listening socket *:11311: bind: Address already in use
12:31:22 system | redis_cache.1 stopped (rc=1)
12:31:22 system | workerbeat.1 started (pid=4884)
12:31:22 system | redis_async_broker.1 started (pid=4890)
12:31:22 redis_async_broker.1 | [4903] 30 Sep 12:31:22.910 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
12:31:22 redis_async_broker.1 | [4903] 30 Sep 12:31:22.910 # Creating Server TCP listening socket *:12311: bind: Address already in use
12:31:22 system | redis_async_broker.1 stopped (rc=1)
12:31:22 system | worker.1 started (pid=4886)
12:31:22 system | sending SIGTERM to workerbeat.1 (pid 4884)
12:31:22 system | sending SIGTERM to worker.1 (pid 4886)
12:31:22 system | sending SIGTERM to web.1 (pid 4889)
12:31:22 system | sending SIGTERM to socketio.1 (pid 4888)
12:31:22 system | workerbeat.1 stopped (rc=-15)
12:31:22 system | worker.1 stopped (rc=-15)
12:31:22 system | web.1 stopped (rc=-15)
12:31:22 system | socketio.1 stopped (rc=-15)

i tried all the solutions from this forum but none seem to work for me.

How do i overcome it ?

1 Like

Try with this,
Instead of bench start command try with this : bench serve --port port_no
example : bench serve --port 9000

2 Likes

Thanks @priya_s for the fix.

I can see the login page on http://localhost:8080

But i am not able to login using the default credentials given in the tutorials which says User ID - Administrator and pswd - admin

Did you ever faced this ?

What’s the error on console or on bench serve screen?

@saurabh6790 all sorted now.

Thanks !

I think you’ve setup for production, which means that frappe/erpnext process run in background and start when the system boots. Have you done so,

On dev environment, I strongly suggest using bench start and not bench serve alone, bench start starts a few other process as well.