Hi team,
I’m new to using ERPNext and followed only installation guides. I installed in it Ubuntu 22.04, erpnext version 15. I need help to check why I’m encountering Port already in use (port 8000) upon running “bench start”
bench start
10:02:08 system | redis_cache.1 started (pid=7050)
10:02:08 system | redis_queue.1 started (pid=7051)
10:02:08 system | web.1 started (pid=7053)
10:02:08 system | socketio.1 started (pid=7056)
10:02:08 system | watch.1 started (pid=7063)
10:02:08 system | schedule.1 started (pid=7066)
10:02:08 system | worker.1 started (pid=7068)
10:02:08 redis_queue.1 | 7057:C 01 Oct 2024 10:02:08.058 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
10:02:08 redis_queue.1 | 7057:C 01 Oct 2024 10:02:08.058 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=7057, just started
10:02:08 redis_queue.1 | 7057:C 01 Oct 2024 10:02:08.058 # Configuration loaded
10:02:08 redis_cache.1 | 7058:C 01 Oct 2024 10:02:08.058 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
10:02:08 redis_cache.1 | 7058:C 01 Oct 2024 10:02:08.058 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=7058, just started
10:02:08 redis_cache.1 | 7058:C 01 Oct 2024 10:02:08.058 # Configuration loaded
10:02:08 redis_queue.1 | 7057:M 01 Oct 2024 10:02:08.059 * Increased maximum number of open files to 10032 (it was originally set to 1024).
10:02:08 redis_cache.1 | 7058:M 01 Oct 2024 10:02:08.059 * Increased maximum number of open files to 10032 (it was originally set to 1024).
10:02:08 redis_queue.1 | 7057:M 01 Oct 2024 10:02:08.059 * Running mode=standalone, port=11000.
10:02:08 redis_queue.1 | 7057:M 01 Oct 2024 10:02:08.059 # Server initialized
10:02:08 redis_queue.1 | 7057:M 01 Oct 2024 10:02:08.059 # 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:02:08 redis_cache.1 | 7058:M 01 Oct 2024 10:02:08.060 * Running mode=standalone, port=13000.
10:02:08 redis_cache.1 | 7058:M 01 Oct 2024 10:02:08.060 # Server initialized
10:02:08 redis_cache.1 | 7058:M 01 Oct 2024 10:02:08.060 # 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:02:08 redis_queue.1 | 7057:M 01 Oct 2024 10:02:08.061 * Ready to accept connections
10:02:08 redis_cache.1 | 7058:M 01 Oct 2024 10:02:08.061 * Ready to accept connections
10:02:08 socketio.1 | Realtime service listening on: 9000
10:02:08 watch.1 |
10:02:08 web.1 | /home/nwi/frappe-folder/env/lib/python3.11/site-packages/passlib/utils/init.py:854: DeprecationWarning: ‘crypt’ is deprecated and slated for removal in Python 3.13
10:02:08 web.1 | from crypt import crypt as _crypt
10:02:08 watch.1 | yarn run v1.22.22
10:02:08 web.1 | Address already in use
10:02:08 web.1 | Port 8000 is in use by another program. Either identify and stop that program, or start the server with a different port.
10:02:08 system | web.1 stopped (rc=1)
10:02:08 system | sending SIGTERM to redis_cache.1 (pid 7050)
10:02:08 system | sending SIGTERM to redis_queue.1 (pid 7051)
10:02:08 system | sending SIGTERM to socketio.1 (pid 7056)
10:02:08 system | sending SIGTERM to watch.1 (pid 7063)
10:02:08 system | sending SIGTERM to schedule.1 (pid 7066)
10:02:08 system | sending SIGTERM to worker.1 (pid 7068)
10:02:08 redis_cache.1 | 7058:signal-handler (1727791328) Received SIGTERM scheduling shutdown…
10:02:08 redis_queue.1 | 7057:signal-handler (1727791328) Received SIGTERM scheduling shutdown…
10:02:08 system | worker.1 stopped (rc=-15)
10:02:08 system | schedule.1 stopped (rc=-15)
10:02:08 system | socketio.1 stopped (rc=-15)
10:02:08 system | watch.1 stopped (rc=-15)
10:02:08 redis_queue.1 | 7057:M 01 Oct 2024 10:02:08.862 # User requested shutdown…
10:02:08 redis_queue.1 | 7057:M 01 Oct 2024 10:02:08.862 * Removing the pid file.
10:02:08 redis_queue.1 | 7057:M 01 Oct 2024 10:02:08.862 # Redis is now ready to exit, bye bye…
10:02:08 redis_cache.1 | 7058:M 01 Oct 2024 10:02:08.862 # User requested shutdown…
10:02:08 redis_cache.1 | 7058:M 01 Oct 2024 10:02:08.863 * Removing the pid file.
10:02:08 redis_cache.1 | 7058:M 01 Oct 2024 10:02:08.863 # Redis is now ready to exit, bye bye…
10:02:08 system | redis_queue.1 stopped (rc=-15)
10:02:08 system | redis_cache.1 stopped (rc=-15)
Even if I kill services running in 8000, new gunicorn services gets spawned
lsof -i :8000
gunicorn 7497 5u IPv4 68020 0t0 TCP localhost:8000 (LISTEN)
gunicorn 7498 5u IPv4 68020 0t0 TCP localhost:8000 (LISTEN)
gunicorn 7498 5u IPv4 68020 0t0 TCP localhost:8000 (LISTEN)
ps aux | grep gunicorn
7495 0.1 0.0 120352 85184 ? S 10:05 0:00 /home/nwi/frappe-folder/env/bin/python /home/nwi/frappe-folder/env/bin/gunicorn -b 127.0.0.1:8000 -w 2 frappe.app:application --preload
7497 0.0 0.0 120352 68264 ? S 10:05 0:00 /home/nwi/frappe-folder/env/bin/python /home/nwi/frappe-folder/env/bin/gunicorn -b 127.0.0.1:8000 -w 2 frappe.app:application --preload
7498 0.0 0.0 120352 68264 ? S 10:05 0:00 /home/nwi/frappe-folder/env/bin/python /home/nwi/frappe-folder/env/bin/gunicorn -b 127.0.0.1:8000 -w 2 frappe.app:application --preload
Any help will be appreciated!