Hi,
Thanks for your reply. I am unsure version of erpnext at moment, as nginx is not running after latest OS automatic update stopping erpnext from starting.
bench --version returns:
4.1.0
Bench update shows:
v10.1.65 → v10.1.65
- [new tag] v11.0.3-beta.26 → v11.0.3-beta.26
I am running on Ubuntu 16.04. I have not built the backup server as yet. I had the backup server running a while ago but it would not import the SQL backup as the gcalendar module was present. I was just about to sort this out when I got the error below yesterday:
sudo nginx -t
nginx: [emerg] dlopen() “/usr/share/nginx/modules/ngx_http_modsecurity_module.so” failed (/usr/share/nginx/modules/ngx_http_modsecurity_module.so: cannot open shared object file: No such file or directory) in /etc/nginx/nginx.conf:8
nginx: configuration file /etc/nginx/nginx.conf test failed
More detail as follows:
sudo apt install nginx
Reading package lists… Done
Building dependency tree
Reading statbench --version
4.1.0e information… Done
nginx is already the newest version (1.10.3-0ubuntu0.16.04.3).
The following packages were automatically installed and are no longer required:
linux-headers-4.15.0-36 linux-headers-4.15.0-36-generic linux-image-4.15.0-36-generic linux-modules-4.15.0-36-generic linux-modules-extra-4.15.0-36-generic
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up nginx-core (1.10.3-0ubuntu0.16.04.3) …
Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details.
invoke-rc.d: initscript nginx, action “start” failed.
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2018-12-02 09:34:54 AEST; 4ms ago
Process: 20341 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Dec 02 09:34:54 kombo-erp systemd[1]: Starting A high performance web server and a reverse proxy server…
Dec 02 09:34:54 kombo-erp nginx[20341]: nginx: [emerg] dlopen() “/usr/share/nginx/modules/ngx_http_modsecurity_module.so” failed (/usr/share/nginx/m…inx.conf:8
Dec 02 09:34:54 kombo-erp nginx[20341]: nginx: configuration file /etc/nginx/nginx.conf test failed
Dec 02 09:34:54 kombo-erp systemd[1]: nginx.service: Control process exited, code=exited status=1
Dec 02 09:34:54 kombo-erp systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Dec 02 09:34:54 kombo-erp systemd[1]: nginx.service: Unit entered failed state.
Dec 02 09:34:54 kombo-erp systemd[1]: nginx.service: Failed with result ‘exit-code’.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package nginx-core (–configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nginx:
nginx depends on nginx-core (>= 1.10.3-0ubuntu0.16.04.3) | nginx-full (>= 1.10.3-0ubuntu0.16.04.3) | nginx-light (>= 1.10.3-0ubuntu0.16.04.3) | nginx-extras (>= 1.10.3-0ubuntu0.16.04.3); however:
Package nginx-core is not configured yet.
Package nginx-full is not installed.
Package nginx-light is not installed.
Package nginx-extras is not installed.
nginx depends on nginx-core (<< 1.10.3-0ubuntu0.16.04.3.1~) | nginx-full (<< 1.10.3-0ubuntu0.16.04.3.1~) | nginx-light (<< 1.10.3-0ubuntu0.16.04.3.1~) | nginx-extras (<< 1.10.3-0ubuntu0.16.04.3.1~); however:
Package nginx-core is not configured yet.
Package nginx-full is not installed.
Package nginx-light is not installed.
Package nginx-extras is not installed.
dpkg: error processing package nginx (–configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
nginx-core
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have commented out the shared lib in the nginx.conf file and it now returns the error below:
– Unit nginx.service has failed.
– The result is failed.
Dec 02 09:59:59 kombo-erp systemd[1]: nginx.service: Unit entered failed state.
Dec 02 09:59:59 kombo-erp systemd[1]: nginx.service: Failed with result ‘exit-code’.
Dec 02 09:59:59 kombo-erp polkitd(authority=local)[1338]: Unregistered Authentication A
Dec 02 10:00:01 kombo-erp CRON[22709]: pam_unix(cron:session): session opened for user
Dec 02 10:00:01 kombo-erp CRON[22710]: (frappe) CMD (cd /home/frappe/frappe-bench && /
Dec 02 10:00:01 kombo-erp CRON[22709]: pam_unix(cron:session): session closed for user
Dec 02 10:00:15 kombo-erp polkitd(authority=local)[1338]: Registered Authentication Age
Dec 02 10:00:15 kombo-erp gnome-session[4999]: Gtk-Message: GtkDialog mapped without a
Dec 02 10:00:20 kombo-erp polkitd(authority=local)[1338]: Operator of unix-session:c2 s
Dec 02 10:00:20 kombo-erp systemd[1]: Starting A high performance web server and a reve
– Subject: Unit nginx.service has begun start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit nginx.service has begun starting up.
Dec 02 10:00:21 kombo-erp nginx[22760]: nginx: [emerg] duplicate upstream "frappe-bench
Dec 02 10:00:21 kombo-erp nginx[22760]: nginx: configuration file /etc/nginx/nginx.conf
Dec 02 10:00:21 kombo-erp systemd[1]: nginx.service: Control process exited, code=exite
Dec 02 10:00:21 kombo-erp systemd[1]: Failed to start A high performance web server and
– Subject: Unit nginx.service has failed
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit nginx.service has failed.
– The result is failed.
Dec 02 10:00:21 kombo-erp systemd[1]: nginx.service: Unit entered failed state.
Dec 02 10:00:21 kombo-erp systemd[1]: nginx.service: Failed with result ‘exit-code’.
Dec 02 10:00:21 kombo-erp polkitd(authority=local)[1338]: Unregistered Authentication A
lines 1326-1361/1361 (END)
– Subject: Unit nginx.service has failed
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit nginx.service has failed.
– The result is failed.
Dec 02 09:59:59 kombo-erp systemd[1]: nginx.service: Unit entered failed state.
Dec 02 09:59:59 kombo-erp systemd[1]: nginx.service: Failed with result ‘exit-code’.
Dec 02 09:59:59 kombo-erp polkitd(authority=local)[1338]: Unregistered Authentication Ag
Dec 02 10:00:01 kombo-erp CRON[22709]: pam_unix(cron:session): session opened for user f
Dec 02 10:00:01 kombo-erp CRON[22710]: (frappe) CMD (cd /home/frappe/frappe-bench && /h
Dec 02 10:00:01 kombo-erp CRON[22709]: pam_unix(cron:session): session closed for user f
Dec 02 10:00:15 kombo-erp polkitd(authority=local)[1338]: Registered Authentication Agen
Dec 02 10:00:15 kombo-erp gnome-session[4999]: Gtk-Message: GtkDialog mapped without a t
Dec 02 10:00:20 kombo-erp polkitd(authority=local)[1338]: Operator of unix-session:c2 su
Dec 02 10:00:20 kombo-erp systemd[1]: Starting A high performance web server and a rever
– Subject: Unit nginx.service has begun start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit nginx.service has begun starting up.
Dec 02 10:00:21 kombo-erp nginx[22760]: nginx: [emerg] duplicate upstream "frappe-bench-
Dec 02 10:00:21 kombo-erp nginx[22760]: nginx: configuration file /etc/nginx/nginx.conf
Dec 02 10:00:21 kombo-erp systemd[1]: nginx.service: Control process exited, code=exited
Dec 02 10:00:21 kombo-erp systemd[1]: Failed to start A high performance web server and
– Subject: Unit nginx.service has failed
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit nginx.service has failed.
– The result is failed.
Dec 02 10:00:21 kombo-erp systemd[1]: nginx.service: Unit entered failed state.
Dec 02 10:00:21 kombo-erp systemd[1]: nginx.service: Failed with result ‘exit-code’.
Dec 02 10:00:21 kombo-erp polkitd(authority=local)[1338]: Unregistered Authentication Ag
lines 1326-1361/1361 (END)
– Subject: Unit nginx.service has failed
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit nginx.service has failed.
– The result is failed.
Dec 02 09:59:59 kombo-erp systemd[1]: nginx.service: Unit entered failed state.
Dec 02 09:59:59 kombo-erp systemd[1]: nginx.service: Failed with result ‘exit-code’.
Dec 02 09:59:59 kombo-erp polkitd(authority=local)[1338]: Unregistered Authentication Age
Dec 02 10:00:01 kombo-erp CRON[22709]: pam_unix(cron:session): session opened for user fr
Dec 02 10:00:01 kombo-erp CRON[22710]: (frappe) CMD (cd /home/frappe/frappe-bench && /ho
Dec 02 10:00:01 kombo-erp CRON[22709]: pam_unix(cron:session): session closed for user fr
Dec 02 10:00:15 kombo-erp polkitd(authority=local)[1338]: Registered Authentication Agent
Dec 02 10:00:15 kombo-erp gnome-session[4999]: Gtk-Message: GtkDialog mapped without a tr
Dec 02 10:00:20 kombo-erp polkitd(authority=local)[1338]: Operator of unix-session:c2 suc
Dec 02 10:00:20 kombo-erp systemd[1]: Starting A high performance web server and a revers
– Subject: Unit nginx.service has begun start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
So I am trying to sort this out and hoping at the same time (plan B) I can remove the old gcalendar integration so if I cannot fix the server and get nginx running, I can at least import my backup to a new clean install of erpnext - at least that is my plan…