nginx: [emerg] BIO_new_file("/etc/letsencrypt/live/example.com/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/example.com/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
That feeling When you know what's wrong but you can't find he issue
@spiderrobotpig Did you get a certificate from Let's Encrypt?
Is the nginx user allowed to access the certs?
Are the permissions set correctly on that directory?
feel free to ping with any additional info, I use nginx in the majority of the servers I manage
@spiderrobotpig it's not at example.com?
(also it might be a symlink)
@boots it's definitely something we missed, but we've changed all the instances we are aware of Also grep -R isn't pulling anything up
@spiderrobotpig grep -R example /etc/nginx
@boots currently out for a few minutes but we'll run it
@boots YAY THANK YOU
@boots Wait, so it old us the file, but when we open it the xample.com isn'
@spiderrobotpig nano ^W example
@spiderrobotpig (open it in nano, hit ctrl-w, search example)
@spiderrobotpig It looks like you didn't change the default example security token lines in your nginx configuration file for your instance; you need to either remove them (which means no SSL) or put in the file path for your own keys.
@InspectorCaracal we did that though which is the confusing part
@spiderrobotpig HMM. Check that you don't have multiple nginx configuration files active?
@InspectorCaracal that might be the issue tbh. Not sure how to check that tho
@spiderrobotpig Do you know what the OS you're working on is? If it's a version of Ubunto or Debian (if you install things with apt-get) then it should be in /etc/nginx/sites-available/
@InspectorCaracal Ubuntu. And we changed that one. We'll double check tho :3
@spiderrobotpig it looks like it's looking for a key for example.com, which you almost surely don't have :P
@nightpool Yah haha. But we've changed all instances we know of and grep -R isn't pulling up anything
@spiderrobotpig So are you still getting the same error? or a different one?
@nightpool same error. That's the weird part
@spiderrobotpig did you restart nginx after changing the configuration? Did you do nginx config-test to make sure you didn't forget a semicolon?
yes tothe first, and we're running nginx-t
@spiderrobotpig In this case, it's trying to find 'example.com's SSL pem file.
@krainboltgreene Yah, the issue is that we've changed all known instances to the correct domain and grep-R isn't pulling up anything
PLZ SEND HALP