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: Starting A high performance web server and a reverse proxy server…
atomic_server nginx: 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: nginx: configuration file /etc/nginx/nginx.conf test failed
atomic_server systemd: nginx.service: Control process exited, code=exited status=1
atomic_server systemd: nginx.service: Failed with result ‘exit-code’.
atomic_server systemd: Failed to start A high performance web server and a reverse proxy server.