serverpilot-letsencrypt icon indicating copy to clipboard operation
serverpilot-letsencrypt copied to clipboard

Error on installation - no such file error on nginx restart.

Open wookelvin opened this issue 8 years ago • 9 comments

I have this error right at the very end of the log:

Restarting nginx-sp: nginx: [emerg] BIO_new_file("/etc/letsencrypt/live/{server-address},/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/{server-address},/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx-sp.

And now my sight shows up as "ERR_CONNECTION_REFUSED", server is unreachable.

Ideas for a fix?

wookelvin avatar Oct 13 '17 19:10 wookelvin

Same error for me too. I don't understand. I am trying to fix last 3 hours but I also can not see my other website on same droplet. Please guys. At least how can I uninstall. I need my other websites. I didn't take other website backups.. OMG

erenergul avatar Oct 15 '17 09:10 erenergul

How to uninstall https://github.com/lesaff/serverpilot-letsencrypt#if-things-go-wrong

lesaff avatar Oct 15 '17 11:10 lesaff

@lesaff Thanks for the script! do you have any idea how to uninstall everything related to letsencrypt? I'll like to start afresh but it seems what you linked to above only remove part of the script.

Thanks for any help!

gonebeta avatar Oct 15 '17 20:10 gonebeta

I ended up moving away from serverpilot altogether and using the certbot scripts directly on a fresh build of ubuntu. But I'll leave this thread open since it never really got resolved.

wookelvin avatar Oct 15 '17 20:10 wookelvin

This happened to me when I tried to install the certificate before the DNS propagated. I deleted the ssl conf file as @lesaff suggested earlier, restarted nginx, and tried again when I could actually reach the http version of the site. Everything worked that time.

ricsmo avatar Oct 25 '17 01:10 ricsmo

Hy guys.. After uninstalling using this: https://github.com/lesaff/serverpilot-letsencrypt#if-things-go-wrong

Try to install again.

When you prompted Please enter your app name: [enter your APP NAME ON SERVERPILOT !!!]

Please enter the System User name for the app: [enter your serverpilot username for ssh. In my case, I use default username 'serverpilot']

HAVE FUN !!!

chandranoor avatar Oct 29 '17 18:10 chandranoor

Hi, The problem has occurred because script generated a wrong path. You just need open domain.com.ssl.conf and find three lines at position: 10, 11, 29 and edit their path to match with /etc/letsencrypt/live/www.domain.com or /etc/letsencrypt/live/domain.com, if you not sure, please cd to /etc/letsencrypt/live and type "ls".

I think the author should fix that minor bug. The script does not know if serverpilot create the folder with www or non-www.

firefoxvt avatar Nov 20 '17 05:11 firefoxvt

Hey @firefoxvt I have the same error. What do you do if the domain is not created in /etc/letsencrypt/live/ ?

emmanuel1982 avatar Aug 12 '18 20:08 emmanuel1982

I am having the same error. I've tried everything on this thread, even the #ifthingsgowrong instructions and then tried to install again and it's still making my site go down. Any help would be much appreciated. I'm not sure what else to do. @firefoxvt when I try to cd to /etc/letsencrypt/live it says there is no such file. I've used this method for lots of sites and within the last two months I haven't been able to use this method at all. Is something broken in the script?

doran8719 avatar Sep 11 '18 04:09 doran8719