I had a nice stable instance of ERPNext running for a few months but the power went out this evening and now I’m stuck. Started my server back up, all Nginx apps were running without issue but ERPNext is giving me the:
Sorry! We will be back soon. Don’t panic. It’s not you, it’s us.
I’ve tried bench restart but get a cryptic message about being in edit mode instead of production mode…read around on the forums but am lost.
Thanks, yes, I agree. I am hosting a demo site so it’s not crucial but I’m in a mini panic as well. Once this turns into a functioning production site it will need to stay up and come back up in the event of a power outage (even if they are rare) so I need to know how to fix the problem.
I did install an SSL certificate after getting ERPNext up and running a few months back…maybe I have the same problem.
Well, I’m still experimenting and I’m not “back soon”
It seems problematic a power outage (for whatever reason) would render the site so inaccessible…I’m sitting here banging away with lightening and thunder outside…power might go out again before I can figure this out…which will be a sign that I’m supposed to give up and go to bed.
I give up Going to bed…maybe I’ll make some progress tomorrow. I’m beyond the “Sorry! We will be back soon” message now…SSL not set properly it seems but why…it all worked without issue before the restart… Sigh… A bit frustrated that it can be so hard to get it up and running after a simple restart.
I’ve poked around a bit today and am lost. Nginx is running and serving other web apps without any problems. Redis is running and seems to be properly configured. I have the path to my valid SSL certificates set properly…but now, after last night running
bench setup nginx
My ERPNext is entirely inaccessible. I get a “cannot establish a secure connection” error when trying to access via my domain. The
output seems to indicate that it’s configured properly. After adding the ssl certificate path I get the following (with private information blocked out).
Does anyone have any suggestions as to how I can troubleshoot this? For example, bench commands that allow me to obtain more diagnostic information? Any help/advice will be most appreciated.
P.S. I do get the “bench is installed in editable mode” message but that is ok for now as this is a production demo. Or, at least I think that is ok…?
P.P.S. One more comment here and then I’m going to take a break. In my sites-available directory (for Nginx) I see no reference to ERPNext…? I’ve forgotten how it was configured prior to the problem I’m experiencing here but it seems like there should be something, somewhere, pointing to ERPNext…no? I have 4 sites-enabled files all pointing to other little web apps and they all work flawlessly. The ‘default’ file seems to just be for port 80…so, this is probably a very ignorant question but, where is the Nginx config to make it ‘aware’ of ERPNext?
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.
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.