roblin
March 6, 2018, 8:51pm
1
Hi there,
I have a multi tenant DNS based ERP next installation.
It is version 9.
Just today I renewed one of the site let’s encrypt certificate using this:
/home/frappe/frappe-bench$ sudo -H bench setup lets-encrypt [site-name]
I could access the site briefly after that when my SSH was still open.
Now after I exited the SSH, I can’t access all my sites.
Error message on the browser:
ERR_CONNECTION_TIMED_OUT
Thanks in advance for the help.
roblin
March 6, 2018, 9:54pm
2
I suspect the nginx service was not restarted correctly.
I ran this script:
home/frappe/frappe-bench$ ps aux | grep nginx
root 56050 0.0 0.4 97752 5024 ? Ss 21:38 0:00 nginx: master process /usr/sbin/nginx
www-data 56176 0.0 0.4 97752 4184 ? S 21:49 0:00 nginx: worker process
www-data 56177 0.0 0.3 97752 3680 ? S 21:49 0:00 nginx: cache manager process
roblin 56181 0.0 0.0 14264 932 pts/0 S+ 21:52 0:00 grep --color=auto nginx
Anything unusual?
Thanks
@roblin Try this:
Regenerate the nginx configuration
$ bench setup nginx
Restart the nginx server
$ sudo service nginx restart
roblin
March 6, 2018, 11:27pm
4
Thanks for the response,
Tried that, did not help.
try this:
sudo bench setup socketio
sudo bench setup supervisor
sudo bench setup redis
sudo bench setup nginx
sudo service nginx reload
sudo supervisorctl reload
@roblin try to reboot your server
roblin
March 6, 2018, 11:56pm
8
roblin:
ps aux | grep nginx
Now restarting failed
roblin@localhost:/home/frappe/frappe-bench$ sudo service nginx restart
Restarting nginx nginx [fail]
And here is the grep:
roblin@localhost:/home/frappe/frappe-bench$ ps aux | grep nginx
roblin 2781 0.0 0.0 14264 932 pts/0 S+ 23:55 0:00 grep --color=auto nginx
roblin
March 7, 2018, 12:12am
9
Now restarting failed
roblin@localhost:/home/frappe/frappe-bench$ sudo service nginx restart
Restarting nginx nginx [fail]
And here is the grep:
roblin@localhost:/home/frappe/frappe-bench$ ps aux | grep nginx
roblin 2781 0.0 0.0 14264 932 pts/0 S+ 23:55 0:00 grep --color=auto nginx
roblin
March 7, 2018, 4:10am
10
roblin:
ps aux | grep nginx
So I unistalled Nginx and reinstalled. It works ok now:
roblin@localhost:/home/frappe/frappe-bench$ ps aux | grep nginx
root 6494 0.0 0.1 85892 1340 ? Ss 04:03 0:00 nginx: master process /usr/sbin/nginx
www-data 6497 0.0 0.1 86236 1756 ? S 04:03 0:00 nginx: worker process
www-data 6498 0.0 0.1 86236 1756 ? S 04:03 0:00 nginx: worker process
www-data 6499 0.0 0.1 86236 1756 ? S 04:03 0:00 nginx: worker process
www-data 6500 0.0 0.1 86236 1756 ? S 04:03 0:00 nginx: worker process
roblin 6502 0.0 0.0 14264 932 pts/0 S+ 04:03 0:00 grep --color=auto nginx
roblin@localhost:/home/frappe/frappe-bench$ sudo nginx -c /etc/nginx/nginx.conf -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
However I still can’t access ERPNext. Looks like I need to link it to ERPNext.
Is there a way to do it manually?
Thanks