Cannot load certificate key .../_.sub.domain.org.key failed - No such file or directory
-
Hi all,
I've had an issue with backups filling my boot disk, and taking down the server.
I managed to recover - got most services restarted, except nginx.
During the process I deleted the Cloudron domain (sub.domain.org) .key file. I deleted it because it was zero byte size. I was reading another thread and got the idea there. This is now leading to the following issues:
Jun 17 11:48:06 apps nginx[6811]: nginx: [emerg] cannot load certificate key "/home/yellowtent/platformdata/nginx/cert/_.sub.domain.org.key": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fop$ Jun 17 11:48:06 apps systemd[1]: nginx.service: Control process exited, code=exited status=1 Jun 17 11:48:06 apps systemd[1]: nginx.service: Failed with result 'exit-code'. Jun 17 11:48:06 apps systemd[1]: Failed to start nginx - high performance web server. Jun 17 11:48:06 apps systemd[1]: nginx.service: Service hold-off time over, scheduling restart. Jun 17 11:48:06 apps systemd[1]: nginx.service: Scheduled restart job, restart counter is at 4. Jun 17 11:48:06 apps systemd[1]: Stopped nginx - high performance web server. Jun 17 11:48:06 apps systemd[1]: Starting nginx - high performance web server... Jun 17 11:48:06 apps nginx[6835]: nginx: [emerg] cannot load certificate key "/home/yellowtent/platformdata/nginx/cert/_.sub.domain.org.key": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fop$ Jun 17 11:48:06 apps systemd[1]: nginx.service: Control process exited, code=exited status=1 Jun 17 11:48:06 apps systemd[1]: nginx.service: Failed with result 'exit-code'. Jun 17 11:48:06 apps systemd[1]: Failed to start nginx - high performance web server. Jun 17 11:48:06 apps systemd[1]: nginx.service: Service hold-off time over, scheduling restart. Jun 17 11:48:06 apps systemd[1]: nginx.service: Scheduled restart job, restart counter is at 5. Jun 17 11:48:06 apps systemd[1]: Stopped nginx - high performance web server. Jun 17 11:48:06 apps systemd[1]: nginx.service: Start request repeated too quickly. Jun 17 11:48:06 apps systemd[1]: nginx.service: Failed with result 'exit-code'. Jun 17 11:48:06 apps systemd[1]: Failed to start nginx - high performance web server.My issue now is that nginx won't start, due to the _.sub.domain.org.key file not being there.
I'm unsure what to do from now.
Can anyone help? What options do I have to recover? Any help appreciated.
-
Hi all,
I've had an issue with backups filling my boot disk, and taking down the server.
I managed to recover - got most services restarted, except nginx.
During the process I deleted the Cloudron domain (sub.domain.org) .key file. I deleted it because it was zero byte size. I was reading another thread and got the idea there. This is now leading to the following issues:
Jun 17 11:48:06 apps nginx[6811]: nginx: [emerg] cannot load certificate key "/home/yellowtent/platformdata/nginx/cert/_.sub.domain.org.key": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fop$ Jun 17 11:48:06 apps systemd[1]: nginx.service: Control process exited, code=exited status=1 Jun 17 11:48:06 apps systemd[1]: nginx.service: Failed with result 'exit-code'. Jun 17 11:48:06 apps systemd[1]: Failed to start nginx - high performance web server. Jun 17 11:48:06 apps systemd[1]: nginx.service: Service hold-off time over, scheduling restart. Jun 17 11:48:06 apps systemd[1]: nginx.service: Scheduled restart job, restart counter is at 4. Jun 17 11:48:06 apps systemd[1]: Stopped nginx - high performance web server. Jun 17 11:48:06 apps systemd[1]: Starting nginx - high performance web server... Jun 17 11:48:06 apps nginx[6835]: nginx: [emerg] cannot load certificate key "/home/yellowtent/platformdata/nginx/cert/_.sub.domain.org.key": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fop$ Jun 17 11:48:06 apps systemd[1]: nginx.service: Control process exited, code=exited status=1 Jun 17 11:48:06 apps systemd[1]: nginx.service: Failed with result 'exit-code'. Jun 17 11:48:06 apps systemd[1]: Failed to start nginx - high performance web server. Jun 17 11:48:06 apps systemd[1]: nginx.service: Service hold-off time over, scheduling restart. Jun 17 11:48:06 apps systemd[1]: nginx.service: Scheduled restart job, restart counter is at 5. Jun 17 11:48:06 apps systemd[1]: Stopped nginx - high performance web server. Jun 17 11:48:06 apps systemd[1]: nginx.service: Start request repeated too quickly. Jun 17 11:48:06 apps systemd[1]: nginx.service: Failed with result 'exit-code'. Jun 17 11:48:06 apps systemd[1]: Failed to start nginx - high performance web server.My issue now is that nginx won't start, due to the _.sub.domain.org.key file not being there.
I'm unsure what to do from now.
Can anyone help? What options do I have to recover? Any help appreciated.
@ei8fdb said in Cannot load certificate key .../_.sub.domain.org.key failed - No such file or directory:
_.sub.domain.org.key
One of the nginx config files is referencing this key. You can delete the config file and the key/cert file. You can find out which file is referencing it by grep'ing inside
/etc/nginx/applications. Once deleted, you cansystemctl restart nginx -
G girish marked this topic as a question on
-
G girish has marked this topic as solved on
-
Z ZeZaung referenced this topic on
-
L luckow referenced this topic on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login