python install.py --production (frappe-bench folder isnt located at /home/frappe/frappe-bench. its in the root)
bench setup supervisor
bench setup nginx
I tried accessing erpnext on 192.XXX.X.XXX:8000 but couldnt connect return error connection. does nginx and supervisor start immedately?
I checked the services with “service --status-all”. nginx has a minus sign while supervisor has a plus sign.
I tried starting nginx and it gave me this error
“Job for nginx.service failed because the control process exited with error code.
See “systemctl status nginx.service” and “journalctl -xe” for details.”
how do i start production mode? did i make a mistake?
If the installation is in the root, then something went wrong. It should be installed as a non-root user (eg. frappe)… to that user’s $HOME (eg. /home/frappe) where it should create a “frappe-bench” subdir. The user should be able to run sudo commands.
If you install production, it should start without bench start.
If you already had an installed/running nginx/apache, then the script is likely to fail because it cannot assign the port and therefore doesn’t finish the nginx install properly.
If it’s showing v12, then it installed a development version instead of production, so it needs a “bench start”
I recommend that you reinstall using a manual method so that you can see the errors more clearly
still experienced the issue with nginx. this is the error message according to systemctl status nginx.service
atomic_server systemd[1]: Starting A high performance web server and a reverse proxy server…
atomic_server nginx[19918]: nginx: [emerg] open() “/etc/nginx/conf.d/frappe-bench.conf” failed (2: No such file or directory) in /etc/nginx/nginx.conf:75
atomic_server nginx[19918]: nginx: configuration file /etc/nginx/nginx.conf test failed
atomic_server systemd[1]: nginx.service: Control process exited, code=exited status=1
atomic_server systemd[1]: nginx.service: Failed with result ‘exit-code’.
atomic_server systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Yep and if you are running ERPNext on another machine (being your local server), basically, the IP address of that server should be all that you need.
Double check your local server IP is all I can think of and can you ssh to it from another computer and where are you actually accessing ERPNext from, another computer?
I have no idea what the setup of Nextcloud is like, but by default ERPNext defaults to port 8000 and you would access it using the host IP unless you setup DNS & so forth.
If Nextcloud is using port 8000 yes you would need to assign a different port and you can use