ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    NGINX Just Stop Working

    IT Discussion
    nginx ubuntu 20.04
    7
    37
    2.9k
    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.
    • scottalanmillerS
      scottalanmiller @NashBrydges
      last edited by

      @NashBrydges are you sure that you are on the right box? The nginx process has literally no logs, at all. The service has never logged that it started, stopped, ran or anything else.

      Also, LXD is running on this system. It appears that this is a hypervisor host rather than a web server.

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        You can still search the logs, you just have to account for the name.

        So instead of a standard search...

        grep nginx mylog
        

        You have to do it twice...

        grep "nginx nginx" mylog
        
        1 Reply Last reply Reply Quote 0
        • ObsolesceO
          Obsolesce
          last edited by Obsolesce

          At this point it's likely a more efficient use of time to migrate to a new VM if there's no indication of anything in any logs. Maybe debug logging could shine some light on something like you said, hopefully it does it again when expected, or maybe it won't help at all.... who knows. But being that it can be rebooted all the time, doesn't sound like a LoB service, so yeah, I'd just bring up a new VM and migrate as there is spare time and not waste so much time on further troubleshooting. Before you swap the traffic over to the new one, you can run tests on the new one to see if the same issue exists, too.

          scottalanmillerS 1 Reply Last reply Reply Quote 1
          • scottalanmillerS
            scottalanmiller @NashBrydges
            last edited by

            @NashBrydges said in NGINX Just Stop Working:

            It runs nothing but NGINX and is hosted on hyper-v server.

            The logs that you showed don't agree here. They show it running other things and not Nginx.

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @Obsolesce
              last edited by

              @Obsolesce said in NGINX Just Stop Working:

              At this point it's likely a more efficient use of time to migrate to a new VM if there's no indication of anything in any logs. Maybe debug logging could shine some light on something like you said, hopefully it does it again when expected, or maybe it won't help at all.... who knows. But being that it can be rebooted all the time, doesn't sound like a LoB service, so yeah, I'd just bring up a new VM and migrate as there is spare time and not waste so much time on further troubleshooting. Before you swap the traffic over to the new one, you can run tests on the new one to see if the same issue exists, too.

              And if you rebuild, I highly recommend doing so on the current OS version. This is in no way the issue here, but the more you want reliable, stable, easy to maintain, the more you should be always on the current releases. LTS releases are for very special "failure" situations where additional expertise, effort, and problems are accepted to deal with bad software.

              1 Reply Last reply Reply Quote 1
              • scottalanmillerS
                scottalanmiller
                last edited by

                What's the output of...

                sudo netstat -tulpn
                
                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @NashBrydges
                  last edited by

                  @NashBrydges said in NGINX Just Stop Working:

                  The issue is that NGINX will randomly just stop routing requests.

                  So the proxy action stops, but the service does not? This could easily be something like a firewall or load balancing that is changing and being fixed by the reboot and not related to Nginx directly.

                  Given the description of the problem, we have several places to look. Nginx being only one of them.

                  1 Reply Last reply Reply Quote 0
                  • NashBrydgesN
                    NashBrydges
                    last edited by

                    Wanted to close the loop here. I've recreated the server and refetched all my certs. It's been working well for the last 2 days. Fingers crossed it stays that way.

                    Thanks to everyone who participated!

                    DustinB3403D scottalanmillerS 2 Replies Last reply Reply Quote 0
                    • DustinB3403D
                      DustinB3403 @NashBrydges
                      last edited by

                      @NashBrydges said in NGINX Just Stop Working:

                      Thanks to everyone who participated!

                      Is this the age of "everyone gets a trophy" I want praise for sitting here watching with my 🍿 !

                      Glad you got it working

                      NashBrydgesN 1 Reply Last reply Reply Quote 0
                      • NashBrydgesN
                        NashBrydges @DustinB3403
                        last edited by

                        @DustinB3403 said in NGINX Just Stop Working:

                        @NashBrydges said in NGINX Just Stop Working:

                        Thanks to everyone who participated!

                        Is this the age of "everyone gets a trophy" I want praise for sitting here watching with my 🍿 !

                        Glad you got it working

                        Yes, I'm big on participation ribbons. Lol

                        1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller @NashBrydges
                          last edited by

                          @NashBrydges said in NGINX Just Stop Working:

                          Wanted to close the loop here. I've recreated the server and refetched all my certs. It's been working well for the last 2 days. Fingers crossed it stays that way.

                          Thanks to everyone who participated!

                          Ah, doing things the DevOps way. When it doubt, nuke and rebuild.

                          1 Reply Last reply Reply Quote 0
                          • 1
                          • 2
                          • 2 / 2
                          • First post
                            Last post