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. Error : Nginx Error - Error reloading nginx: reload exited with code 1 signal null

Error : Nginx Error - Error reloading nginx: reload exited with code 1 signal null

Scheduled Pinned Locked Moved Solved Support
nginxtroubleshoot
8 Posts 2 Posters 1.1k Views 2 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.
  • jordanurbsJ Offline
    jordanurbsJ Offline
    jordanurbs
    wrote on last edited by joseph
    #1

    It started when I needed to investigate a bad SSL certificate (NET::ERR_CERT_DATE_INVALID) which came up out of the blue.

    Tried a location change on the app (to www.) and it gave me the Nginx Error - Error reloading nginx: reload exited with code 1 signal null... and same thing each time I 'retry location change task'

    This is WordPress Developer app btw

    I see enough threads on here that offer suggestions for diagnosing or deleting corrupted nginx config files but I can't access the terminal at all, when I open it it's just a blank black screen with the top menu but no way to enter any commands!

    Screenshot 2024-07-25 at 8.16.02 AM.png

    1 Reply Last reply
    0
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      Can you run cloudron-support --troubleshoot on the server via SSH?

      The nginx configs are on the host system not the app itself (where the webterminal would be launched into)

      jordanurbsJ 1 Reply Last reply
      0
      • J joseph marked this topic as a question on
      • nebulonN nebulon

        Can you run cloudron-support --troubleshoot on the server via SSH?

        The nginx configs are on the host system not the app itself (where the webterminal would be launched into)

        jordanurbsJ Offline
        jordanurbsJ Offline
        jordanurbs
        wrote on last edited by
        #3

        @nebulon

        [OK]	node version is correct
        [OK]	docker is running
        [OK]	MySQL is running
        [FAIL]	nginx is down. Removing extraneous dashboard domain configs ...
        
        

        nginx status...

         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 Mon 2024-07-29 20:48:01 UTC; 31s ago
               Docs: http://nginx.org/en/docs/
            Process: 40540 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE)
        
        1 Reply Last reply
        0
        • jordanurbsJ Offline
          jordanurbsJ Offline
          jordanurbs
          wrote on last edited by
          #4

          Restarted the droplet a couple times and now Cloudron is completely down, can't even access the dashboard..

          1 Reply Last reply
          0
          • jordanurbsJ Offline
            jordanurbsJ Offline
            jordanurbs
            wrote on last edited by
            #5

            And getting this in journalctl

            Jul 29 20:13:23 gourshanne-cloudron systemd[1]: nginx.service: Scheduled restart job, restart counter is at 5.
            Jul 29 20:13:23 gourshanne-cloudron systemd[1]: Stopped nginx - high performance web server.
            Jul 29 20:13:23 gourshanne-cloudron systemd[1]: nginx.service: Start request repeated too quickly.
            Jul 29 20:13:23 gourshanne-cloudron systemd[1]: nginx.service: Failed with result 'exit-code'.
            Jul 29 20:13:23 gourshanne-cloudron systemd[1]: Failed to start nginx - high performance web server.
            Jul 29 20:13:28 gourshanne-cloudron systemd[1]: nginx.service: Start request repeated too quickly.
            Jul 29 20:13:28 gourshanne-cloudron systemd[1]: nginx.service: Failed with result 'exit-code'.
            Jul 29 20:13:28 gourshanne-cloudron systemd[1]: Failed to start nginx - high performance web server.
            Jul 29 20:13:59 gourshanne-cloudron systemd[1]: Starting nginx - high performance web server...
            Jul 29 20:14:00 gourshanne-cloudron nginx[9820]: nginx: [emerg] cannot load certificate "/home/yellowtent/platformdata/ng>
            Jul 29 20:14:00 gourshanne-cloudron systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
            Jul 29 20:14:00 gourshanne-cloudron systemd[1]: nginx.service: Failed with result 'exit-code'.
            Jul 29 20:14:00 gourshanne-cloudron systemd[1]: Failed to start nginx - high performance web server.
            Jul 29 20:14:00 gourshanne-cloudron systemd[1]: nginx.service: Scheduled restart job, restart counter is at 1.
            Jul 29 20:14:00 gourshanne-cloudron systemd[1]: Stopped nginx - high performance web server.
            Jul 29 20:14:00 gourshanne-cloudron systemd[1]: Starting nginx - high performance web server...
            Jul 29 20:14:01 gourshanne-cloudron nginx[10065]: nginx: [emerg] cannot load certificate "/home/yellowtent/platformdata/n>
            Jul 29 20:14:01 gourshanne-cloudron systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
            lines 1-56
            
            1 Reply Last reply
            0
            • jordanurbsJ Offline
              jordanurbsJ Offline
              jordanurbs
              wrote on last edited by
              #6

              Tried running "nginx -s reload" as root

              and got this:

              nginx: [emerg] cannot load certificate "/home/yellowtent/platformdata/nginx/cert/_.plvrs.online.cert": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/home/yellowtent/platformdata/nginx/cert/_.plvrs.online.cert','r') error:2006D080:BIO routines:BIO_new_file:no such file)
              
              1 Reply Last reply
              0
              • jordanurbsJ Offline
                jordanurbsJ Offline
                jordanurbs
                wrote on last edited by
                #7

                Alright well I did a ton of forum searching and random things and eventually

                /home/yellowtent/box/scripts/recreate-containers 
                

                fixed it, after deleting conf files and what-not.

                Cloudron is now back up and the nginx problem is gone for the app.

                Cheers everyone.

                1 Reply Last reply
                1
                • J joseph has marked this topic as solved on
                • nebulonN Offline
                  nebulonN Offline
                  nebulon
                  Staff
                  wrote on last edited by
                  #8

                  Just to note here, a server reboot often is not the best idea if some services are still up and running. Nearly everything can be fixed while the server is active and a reboot might just bring down those unnecessarily.

                  1 Reply Last reply
                  0
                  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