Getting this error when running "bench start"

07:26:35 system           | redis_socketio.1 started (pid=3158)
07:26:35 redis_socketio.1 | 3162:M 09 May 07:26:35.175 * Increased maximum number of open files to 10032 (it was originally set to 1024).
07:26:35 redis_socketio.1 | 3162:M 09 May 07:26:35.176 # Creating Server TCP listening socket 127.0.0.1:12003: bind: Address already in use
07:26:35 system           | redis_socketio.1 stopped (rc=1)
07:26:35 system           | web.1 started (pid=3155)
07:26:35 system           | schedule.1 started (pid=3160)
07:26:35 system           | worker_long.1 started (pid=3156)
07:26:35 system           | worker_default.1 started (pid=3157)
07:26:35 system           | watch.1 started (pid=3159)
07:26:35 system           | redis_cache.1 started (pid=3172)
07:26:35 redis_cache.1    | 3178:M 09 May 07:26:35.219 * Increased maximum number of open files to 10032 (it was originally set to 1024).
07:26:35 redis_cache.1    | 3178:M 09 May 07:26:35.219 # Creating Server TCP listening socket 127.0.0.1:13003: bind: Address already in use
07:26:35 system           | redis_cache.1 stopped (rc=1)
07:26:35 system           | worker_short.1 started (pid=3164)
07:26:35 system           | socketio.1 started (pid=3176)
07:26:35 system           | redis_queue.1 started (pid=3181)
07:26:35 system           | sending SIGTERM to web.1 (pid 3155)
07:26:35 system           | sending SIGTERM to schedule.1 (pid 3160)
07:26:35 system           | sending SIGTERM to worker_long.1 (pid 3156)
07:26:35 system           | sending SIGTERM to worker_default.1 (pid 3157)
07:26:35 system           | sending SIGTERM to watch.1 (pid 3159)
07:26:35 system           | sending SIGTERM to worker_short.1 (pid 3164)
07:26:35 system           | sending SIGTERM to socketio.1 (pid 3176)
07:26:35 system           | sending SIGTERM to redis_queue.1 (pid 3181)
07:26:35 redis_queue.1    | 3185:M 09 May 07:26:35.245 * Increased maximum number of open files to 10032 (it was originally set to 1024).
07:26:35 redis_queue.1    | 3185:M 09 May 07:26:35.245 # Creating Server TCP listening socket 127.0.0.1:11003: bind: Address already in use
07:26:35 system           | redis_queue.1 stopped (rc=1)
07:26:35 system           | web.1 stopped (rc=-15)
07:26:35 system           | worker_long.1 stopped (rc=-15)
07:26:35 system           | schedule.1 stopped (rc=-15)
07:26:35 system           | socketio.1 stopped (rc=-15)
07:26:35 system           | watch.1 stopped (rc=-15)
07:26:35 system           | worker_default.1 stopped (rc=-15)
07:26:35 system           | worker_short.1 stopped (rc=-15)

I have no idea why this error happens, yesterday bench was ok, thank you so much and looking forward to your help!

1 Like

It looks like the port addresses are already in use by some other processes, you may want to check your site_config.json file and try to change them to other ports and it may work.

Last time, I ran “bench start” on the server and later I forgot to terminate the Bench and it was still running and when the tomorrow of that day, I tried to run “bench start” again, I had that outcome and it is because the Bench is running.
The solution to it is to reboot the server by this command “sudo reboot”, and now I can run “bench start” again.

2 Likes

Thank you for reply! really appreciate it!