Problem with ERPNext installation!

Hello, I have been trying to install ERPNext for several days. I’m not very good with development…

When I go to the site, I get “Not Found”, “… does not exist.”.

here are the logs:
/bench/frappe-bench$ bench start
21:27:45 system | redis_cache.1 started (pid=27300)
21:27:45 system | redis_queue.1 started (pid=27302)
21:27:45 system | web.1 started (pid=27306)
21:27:45 system | socketio.1 started (pid=27309)
21:27:45 redis_cache.1 | 27303:C 24 Apr 2024 21:27:45.910 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
21:27:45 redis_cache.1 | 27303:C 24 Apr 2024 21:27:45.910 # Redis version=5.0.14, bits=64, commit=00000000, modified=0, pid=27303, just started
21:27:45 redis_queue.1 | 27308:C 24 Apr 2024 21:27:45.910 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
21:27:45 redis_cache.1 | 27303:C 24 Apr 2024 21:27:45.910 # Configuration loaded
21:27:45 redis_queue.1 | 27308:C 24 Apr 2024 21:27:45.910 # Redis version=5.0.14, bits=64, commit=00000000, modified=0, pid=27308, just started
21:27:45 redis_queue.1 | 27308:C 24 Apr 2024 21:27:45.910 # Configuration loaded
21:27:45 redis_queue.1 | 27308:M 24 Apr 2024 21:27:45.911 * Increased maximum number of open files to 10032 (it was originally set to 1024).
21:27:45 redis_queue.1 | 27308:M 24 Apr 2024 21:27:45.911 # Could not create server TCP listening socket 127.0.0.1:11000: bind: Address already in use
21:27:45 system | worker.1 started (pid=27318)
21:27:45 system | redis_queue.1 stopped (rc=1)
21:27:45 redis_cache.1 | 27303:M 24 Apr 2024 21:27:45.912 * Increased maximum number of open files to 10032 (it was originally set to 1024).
21:27:45 redis_cache.1 | 27303:M 24 Apr 2024 21:27:45.912 # Could not create server TCP listening socket 127.0.0.1:13000: bind: Address already in use
21:27:45 system | watch.1 started (pid=27315)
21:27:45 system | redis_cache.1 stopped (rc=1)
21:27:45 system | schedule.1 started (pid=27317)
21:27:45 system | sending SIGTERM to web.1 (pid 27306)
21:27:45 system | sending SIGTERM to socketio.1 (pid 27309)
21:27:45 system | sending SIGTERM to watch.1 (pid 27315)
21:27:45 system | sending SIGTERM to schedule.1 (pid 27317)
21:27:45 system | sending SIGTERM to worker.1 (pid 27318)
21:27:45 system | web.1 stopped (rc=-15)
21:27:45 system | socketio.1 stopped (rc=-15)
21:27:45 system | watch.1 stopped (rc=-15)
21:27:45 system | schedule.1 stopped (rc=-15)
21:27:45 system | worker.1 stopped (rc=-15)

Thank you in advance if anyone is kind enough to help me!
(Sorry for my english, I’m french :wink: )

Have a good day/ night !

Could not create server TCP listening socket 127.0.0.1:13000: bind: Address already in use

Hmm, I believe this means that the bench is already running somewhere, possibly in the background (if you ran bench setup production at some point).

What happens if you run bench restart? If It’s running in the background, then it will restart the processes using supervisorctl.

Hello, @corentin thank you for your response!

This is if I do “bench restart”:
erpnext@vps-04980c8f:~/bench/frappe-bench$ bench restart
$ supervisorctl restart frappe:
error: <class ‘socket.error’>, [Errno 13] Permission denied: file: /usr/lib/python2.7/socket.py line: 228
ERROR: supervisorctl restart frappe:
subprocess.CalledProcessError: Command ‘supervisorctl restart frappe:’ returned non-zero exit status 2.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/home/erpnext/.local/bin/bench”, line 8, in
sys.exit(cli())
File “/home/erpnext/bench/bench/cli.py”, line 132, in cli
bench_command()
File “/home/erpnext/bench/bench/commands/utils.py”, line 41, in restart
Bench(“.”).reload(web, supervisor, systemd)
File “/home/erpnext/bench/bench/utils/render.py”, line 126, in wrapper_fn
return fn(*args, **kwargs)
File “/home/erpnext/bench/bench/bench.py”, line 152, in reload
restart_supervisor_processes(bench_path=self.name, web_workers=web, _raise=_raise)
File “/home/erpnext/bench/bench/utils/bench.py”, line 342, in restart_supervisor_processes
failure = bench.run(f"{sudo}supervisorctl restart {group}", _raise=_raise)
File “/home/erpnext/bench/bench/bench.py”, line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
File “/home/erpnext/bench/bench/utils/init.py”, line 169, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: supervisorctl restart frappe: