After closing browser site is running and if we type "bench start " shows following error

weber@weber-desktop:~/Desktop/websocerp/werp$ bench start
16:36:11 web.1 | started with pid 4543
16:36:11 worker.1 | started with pid 4544
16:36:11 workerbeat.1 | started with pid 4546
16:36:12 web.1 | * Running on http://0.0.0.0:8000/
16:36:12 web.1 | Traceback (most recent call last):
16:36:12 web.1 | File “./env/bin/frappe”, line 9, in
16:36:12 web.1 | load_entry_point(‘frappe==4.6.1’, ‘console_scripts’, ‘frappe’)()
16:36:12 web.1 | File “/home/weber/Desktop/websocerp/werp/apps/frappe/frappe/cli.py”, line 53, in main
16:36:12 web.1 | return run(fn, parsed_args)
16:36:12 web.1 | File “/home/weber/Desktop/websocerp/werp/apps/frappe/frappe/cli.py”, line 83, in run
16:36:12 web.1 | out = globals().get(fn)(**args)
16:36:12 web.1 | File “/home/weber/Desktop/websocerp/werp/apps/frappe/frappe/cli.py”, line 67, in new_fn
16:36:12 web.1 | return fn(*args, **new_kwargs)
16:36:12 web.1 | File “/home/weber/Desktop/websocerp/werp/apps/frappe/frappe/cli.py”, line 814, in serve
16:36:12 web.1 | frappe.app.serve(port=port, profile=profile, site=frappe.local.site, sites_path=sites_path)
16:36:12 web.1 | File “/home/weber/Desktop/websocerp/werp/apps/frappe/frappe/app.py”, line 144, in serve
16:36:12 web.1 | use_debugger=True, use_evalex=True, threaded=True)
16:36:12 web.1 | File “/home/weber/Desktop/websocerp/werp/env/local/lib/python2.7/site-packages/werkzeug/serving.py”, line 706, in run_simple
16:36:13 web.1 | test_socket.bind((hostname, port))
16:36:13 web.1 | File “/usr/lib/python2.7/socket.py”, line 224, in meth
16:36:13 web.1 | return getattr(self._sock,name)(*args)
16:36:13 web.1 | socket.error: [Errno 98] Address already in use
16:36:13 web.1 | process terminated
16:36:13 system | sending SIGTERM to all processes
16:36:13 system | sending SIGTERM to pid 4544
16:36:13 system | sending SIGTERM to pid 4546
16:36:13 worker.1 | process terminated

How can I stop website running

Hello,
Your earlier bench process has not stopped and is running in the background due to which the console displays the error “socket.error: [Errno 98] Address already in use” you are unable to run bench start once again
Simply closing the browser site does not terminate the background processes responsible for the application
Kindly kill the relevant processes that are running in the background and run bench start again

how can we find out relevant processes are running in background and how to kill them

Hi all,
I’d like to relaunch this question.
I’m also wondering how to kill the “bench start” process.
Once I run “bench start” (frappe not in production), how do we stop bench from the Console? I’m on digital Ocean.
Best,
François

I just kill the bench serve or frappe serve command.

You can find it using : ps -AF | grep bench

some guessing here
bench stop
bench restart
?