Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init script failure #7

Open
airbornelamb opened this issue Apr 20, 2017 · 6 comments
Open

Init script failure #7

airbornelamb opened this issue Apr 20, 2017 · 6 comments

Comments

@airbornelamb
Copy link

After running the init script I get the below message:

It seems to have to do with this line in particular

nginx: [emerg] BIO_new_file("/etc/nginx/lambapp.space.chained.pem") failed

$ systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2017-04-20 14:17:41 UTC; 18s ago
Process: 9713 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid (code=exite
Process: 9718 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Main PID: 8410 (code=exited, status=0/SUCCESS)

Apr 20 14:17:41 lambapp systemd[1]: Starting A high performance web server and a reverse proxy server...
Apr 20 14:17:41 lambapp nginx[9718]: nginx: [emerg] BIO_new_file("/etc/nginx/lambapp.space.chained.pem") failed (SS
Apr 20 14:17:41 lambapp nginx[9718]: nginx: configuration file /etc/nginx/nginx.conf test failed
Apr 20 14:17:41 lambapp systemd[1]: nginx.service: Control process exited, code=exited status=1
Apr 20 14:17:41 lambapp systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Apr 20 14:17:41 lambapp systemd[1]: nginx.service: Unit entered failed state.
Apr 20 14:17:41 lambapp systemd[1]: nginx.service: Failed with result 'exit-code'.

@garrows
Copy link
Owner

garrows commented Apr 21, 2017

Does that file exist?

@airbornelamb
Copy link
Author

airbornelamb commented Apr 21, 2017 via email

@garrows
Copy link
Owner

garrows commented Apr 23, 2017

Looks like its a bug on my end.

Remove the lines from your /etc/nginx/sites-available/lambapp.space.conf

    ssl_certificate     %DOMAIN%.chained.pem;
    ssl_certificate_key %DOMAIN%.private.pem;

Unless of course you've created your letsencrypt certs already where you should change them to point to wherever you have put your certificates. I had assumed they were put in /etc/nginx/%DOMAIN%.chained.pem and /etc/nginx/%DOMAIN%.private.pem

@airbornelamb
Copy link
Author

airbornelamb commented Apr 24, 2017 via email

@garrows
Copy link
Owner

garrows commented Apr 25, 2017

No its my fault. I was halfway through adding support for letsencrypt but didn't finish. I didnt think anyone else was using this though. I'll be rebuilding some webservers in about 2 weeks so I'll have it all working then.

@airbornelamb
Copy link
Author

airbornelamb commented Apr 25, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants