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


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Cloudron Forum

Apps | Demo | Docs | Install

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

Scheduled Pinned Locked Moved Solved Support
nginx
2 Posts 2 Posters 156 Views
    • 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.
  • ei8fdbE Offline
    ei8fdbE Offline
    ei8fdb
    wrote on last edited by girish
    #1

    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.

    girishG 1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    replied to ei8fdb on last edited by
    #2

    @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
    1
  • girishG girish marked this topic as a question on
  • girishG girish has marked this topic as solved on
  • Z ZeZaung referenced this topic on

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Login

  • Don't have an account? Register

  • Login or register to search.