Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Cannot load certificate key .../_.sub.domain.org.key failed - No such file or directory

    Support
    nginx
    2
    2
    140
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ei8fdb
      ei8fdb last edited by girish

      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.

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @ei8fdb last edited by

        @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 can systemctl restart nginx

        1 Reply Last reply Reply Quote 1
        • Topic has been marked as a question  girish girish 
        • Topic has been marked as solved  girish girish 
        • Referenced by  Z ZeZaung 
        • First post
          Last post
        Powered by NodeBB