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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
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
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Cloudron fails to start due to nginx failure linked to absent app certificate

Cloudron fails to start due to nginx failure linked to absent app certificate

Scheduled Pinned Locked Moved Solved Support
nginxcertificates
8 Posts 4 Posters 1.1k Views 4 Watching
  • 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.
    • svigneauS Offline
      svigneauS Offline
      svigneau
      wrote on last edited by girish
      #1

      Hi,

      After an automatic Cloudron update, my Cloudron dashboard became unresponsive, although individual apps kept working. I restarted the server to try and solve this issue, but Cloudron wouldn't start.

      This seems linked to nginx, as checking nginx status gives:

      > systemctl status nginx.service
      ● nginx.service - nginx - high performance web server
           Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
          Drop-In: /etc/systemd/system/nginx.service.d
                   └─cloudron.conf
           Active: failed (Result: exit-code) since Sat 2023-08-26 21:54:09 UTC; 3s ago
             Docs: http://nginx.org/en/docs/
          Process: 277464 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE)
      

      Testing nginx configuration gives:

      nginx -t
      nginx: [emerg] cannot load certificate "/home/yellowtent/platformdata/nginx/cert/jitsi.sebastienvigneau.xyz.cert": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/home/yellowtent/platformdata/nginx/cert/jitsi.sebastienvigneau.xyz.cert','r') error:2006D080:BIO routines:BIO_new_file:no such file)
      nginx: configuration file /etc/nginx/nginx.conf test failed
      

      How should I go from there?

      1 Reply Last reply
      1
      • BrutalBirdieB Offline
        BrutalBirdieB Offline
        BrutalBirdie
        Partner
        wrote on last edited by
        #2

        I assume the app jitsi.sebastienvigneau.xyz was stopped for a long time, that's why the cert did not get renewed.
        Now its missing and the NGINX config expects it.

        You can disable the NGINX config of that app to fix the problem.

        Like my work? Consider donating a drink. Cheers!

        1 Reply Last reply
        1
        • BrutalBirdieB Offline
          BrutalBirdieB Offline
          BrutalBirdie
          Partner
          wrote on last edited by BrutalBirdie
          #3

          Fast way to find the NGINX config file for that app:

          find /home/yellowtent/platformdata/nginx -iname "jitsi.sebastienvigneau.xyz"
          

          Then you can move that file to a NAME.conf.off and restart the NGINX.
          That should do the trick.

          Like my work? Consider donating a drink. Cheers!

          1 Reply Last reply
          0
          • svigneauS Offline
            svigneauS Offline
            svigneau
            wrote on last edited by
            #4

            This did the trick. Thank you so much!

            1 Reply Last reply
            1
            • BrutalBirdieB Offline
              BrutalBirdieB Offline
              BrutalBirdie
              Partner
              wrote on last edited by
              #5

              That's what we are here for 🙂
              @staff should we add a check for that if an app is disabled for to long, either disable the NGINX config or renew the cert?

              Like my work? Consider donating a drink. Cheers!

              1 Reply Last reply
              1
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #6

                We do remove the app's nginx config when an app is stopped for this exact case (obsolete certs). I think for some reason this didn't happen in OP's case. Relevant code is here .

                If anyone hits this again, please leave a note at support@cloudron.io , happy to debug.

                1 Reply Last reply
                1
                • girishG girish marked this topic as a question on
                • girishG girish has marked this topic as solved on
                • avatar1024A Offline
                  avatar1024A Offline
                  avatar1024
                  wrote on last edited by
                  #7

                  This thread looks like a duplicate of this one. Just for info, I've also hit that issue on Friday after rebooting using the Cloudron dashboard, so I wonder if something is up with the automatic removal of certificates?

                  girishG 1 Reply Last reply
                  0
                  • avatar1024A avatar1024

                    This thread looks like a duplicate of this one. Just for info, I've also hit that issue on Friday after rebooting using the Cloudron dashboard, so I wonder if something is up with the automatic removal of certificates?

                    girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #8

                    @avatar1024 there is crash in cert renewal indeed. A fix is coming in 7.5.2

                    1 Reply Last reply
                    2
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                      • Login

                      • Don't have an account? Register

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