Nginx Connection failed

  • Hi Guys,
    I have a "problem" with my Open Media Vault NAS.
    First i get this E-Mail:

    Code
    Connection failed Service nginx
     
     Date:        Sat, 14 May 2016 20:00:37
     Action:      restart
     Host:        BANANAS
     Description: failed protocol test [HTTP] at INET[127.0.0.1:443] via TCPSSL -- HTTP: Error receiving data -- Resource temporarily unavailable
     
     
    Your faithful employee,
    Monit


    One Minute after I get this E-Mail:

    Code
    Connection succeeded Service nginx
     
     Date:        Sat, 14 May 2016 20:01:10
     Action:      alert
     Host:        BANANAS
     Description: connection succeeded to INET[127.0.0.1:443] via TCPSSL
     
    Your faithful employee,
    Monit


    Can you help with this problem???
    Or is this so ok, so I can't do their something.


    KoenigderPimpfe

    • Offizieller Beitrag

    Can you help with this problem???
    Or is this so ok, so I can't do their something.


    I think it has to do with monit (the process monitoring utility) starting before the nginx daemon. You can override the order of starting daemon. There are guides in the debian wiki for sysvinit.


    If you want to check the order go to this folder /etc/rc5.d/ see if the processes with starting "S" monit is after or before nginx. In normal conditions nginx should be before monit.


    If you don't really care about this type of notification just turn them off in the appropriate section (process monitoring)

  • Hi,


    same here, but startup order should be fine. I get the message, if the system is up and running.


    S03nginx
    S17monit


    Fresh installed 2.2.5 on Raspberry Pi 3.


    thanks
    tinux

  • Hi all,


    are there any news on this issue: I got the same Emails, when the system was up and running. If there was an electrical power breakdown I would have known. So on my system, it also can't be related to the boot sequence.


    Best regards


    McFly

  • Hi,


    I have the same problem :


    Code
    Connection failed Service nginx
    Date:        Wed, 19 Oct 2016 12:30:42
    Action:      restart
    Host:        localhost
    Description: failed protocol test [HTTP] at INET[127.0.0.1:443] via TCPSSL -- HTTP: Error receiving data -- Resource temporarily unavailable
    Your faithful employee,
    Monit


    Code
    Connection succeeded Service nginx
    Date:        Wed, 19 Oct 2016 12:31:15
    Action:      alert
    Host:        localhost
    Description: connection succeeded to INET[127.0.0.1:443] via TCPSSL
    Your faithful employee,
    Monit

    Version : 2.2.10 Stone burner


    Any ideas ?

  • Hello,


    I have the same issue.
    I have changed the monit config to:


    Bash: /etc/monit/conf.d/openmediavault-nginx.conf
    check process nginx with pidfile /var/run/nginx.pid
      start program = "/bin/systemctl start nginx"
      stop program = "/bin/systemctl stop nginx"
      mode active
      if cpu is greater than 40% for 2 cycles then alert
      if cpu is greater than 80% for 5 cycles then restart
      if failed host 127.0.0.1 port 80 protocol http timeout 15 seconds for 10 times within 15 cycles then restart

    (I changed the last line)
    I have no operational experience with this yet though.


    Greetings,
    Hendrik

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!