first, bench setup nginx will overwrite previous config as I mention, so first check should be the config file, the generated file should be ~/frappe-bench/config
check the content , at least the config is included ssl setting, then you should check nginx setting, if you have another web service in running, I assume you should has symbol link to ~/frappe-bench/config/nginx.conf for nginx to work.
if all is fine, then you may need post the nginx log for error troubleshoot.
Thanks, yes, I’m lost But I’m somewhat used to being lost so it’s ok.
I checked ~/frappe-bench/config and can confirm that the path to my ssl certificate information is included.
In my Nginx config however, I don’t see a symlink to this file anywhere…which basically answers my question about how Nginx is ‘aware’ of ERPNext. I guess it’s not
Wait…yes, there is a symbolic link in sites-enabled and it does, in fact, point to
/home/myerpnext/frappe-bench/config/nginx.conf
Hmmm…something is off. Guess it’s time to check the Nginx logs.
Jason
P.S. Well, just did a quick check…I don’t see anything odd or helpful in the access.log or error.log for Nginx…hmmm
I think it should be sudo supervisorctl status nginx
Also maybe you can check the /etc/letsencrypt/live/ to see if your certs path/name are all correctly referred to (in the site_config.json, common_site_config.json, nginx.conf)
You can also use the command sudo certbot certificates.
for multitenant , em … I have not setup this feature yet , so no rich support can provide
for mariadb, can check any access log issue
for bench update, if major file(s) has changed, it would better to issue follow command as well:
bench build
bench clear-cache
bench clear-website-cache
Thanks again. Let’s see, I stumbled onto this post:
And noticed that I have the same problem (maybe it’s a problem?) in that there is no supervisor.conf file in home/myerpnext/frappe-bench/config
So I made a symbolic link as explained in the post above and then resetup supervisor.
But now, when I run supervisorctl status I still get nothing.
Am I supposed to be running it inside the frappe directory or inside the ERPNext directory? Or can it be run from anywhere…which is what I was assuming.
then you require to generate one and link it up through supervisor service, since I using Fedora it may different than yours , just for your reference only.
and supervisor service can’t execute directly through root in Fedora, I not sure how about on ubuntu or Debian, here is my control for your reference in /etc/group
this can allow me to use systemctl to manage supervisor service
oh not enough, I still require to take supervisor pid to correct permission in supervisor.conf files
like this:
Thanks, I’m using Ubuntu 20.04. The extension is .conf it seems.
But I’m not clear on the path you have. Where is the ‘config’ directory? I guess that is in frappe-bench right?
So in that directory (home/myerpnext/frappe-bench/config) I have the conf file “supervisor.conf”
And in /etc/supervisor/conf.d/ I have a symbolic link titled “frappe-bench.conf” that points to the file in the /home/myerpnext/frappe-bench/config file.
Thank you so much for all of your support! I finally figured it all out. Somehow my symbolic link to the frappe-bench.conf file in the supervisor directory had been deleted. I messed a few other things up along the way but finally managed to get them all repaired last night.
Then, this morning I was trying to figure out why supervisor was not running and I noticed I had copied pasted the symbolic link creation command but did not correct some information in the path! Oh no! The title of my ERPNext instance is part of the path.
So, I had a symbolic link pointing to something that didn’t exist.
I fixed the link and then ran the following commands and finally I have everything running again.
sudo supervisorctl stop all
sudo supervisorctl start all
Whew! I don’t know why this happened just because the power went out. Hopefully it won’t happen again or, if it does, hopefully I’ll remember how to fix it.
Good to hear you have solved the problem.
I mostly don’t use the name frappe-bench for the installation I did. So your mistake happened to me several times. Forget to change the name of the bench when pasting the command
Thanks I’ve just realized that by solving my ERPNext problem, somehow I introduced a new problem. My three other applications running through Nginx are now inaccessible. If I remove the config for ERPNext those sites are available but with the ERPNext config they are inaccessible.
I guess I need to adjust something in that ERPNet config…not sure what though. Any ideas?