I reinstalled the frappe-bench and then encountered some problems. When I tried to start the erpnext, it shows me the error as the title.
Traceback (most recent call last):
File "/home/life/Desktop/gitHub/frappe-bench/env/bin/frappe", line 9, in <module>
load_entry_point('frappe==4.0.1', 'console_scripts', 'frappe')()
File "/home/life/Desktop/gitHub/frappe-bench/apps/frappe/frappe/cli.py", line 49, in main
return run(fn, parsed_args)
File "/home/life/Desktop/gitHub/frappe-bench/apps/frappe/frappe/cli.py", line 79, in run
out = globals().get(fn)(**args)
File "/home/life/Desktop/gitHub/frappe-bench/apps/frappe/frappe/cli.py", line 63, in new_fn
return fn(*args, **new_kwargs)
File "/home/life/Desktop/gitHub/frappe-bench/apps/frappe/frappe/cli.py", line 731, in serve
frappe.app.serve(port=port, profile=profile, site=frappe.local.site, sites_path=sites_path)
File "/home/life/Desktop/gitHub/frappe-bench/apps/frappe/frappe/app.py", line 134, in serve
use_debugger=True, use_evalex=True)
File "/home/life/Desktop/gitHub/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 706, in run_simple
test_socket.bind((hostname, port))
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use
I tried to kill all the processes using port 8000 but it doesn't work. I tried to restart and then ran it again, the same error showed again. So I thought the problem doesn't lie in the port number? How to fix this?
I noticed that there are similar posts, but there are no detailed solutions.