Nginx Connection failed

    • OMV 2.x
    • Nginx Connection failed

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

      Source Code

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


      One Minute after I get this E-Mail:

      Source Code

      1. Connection succeeded Service nginx
      2. Date: Sat, 14 May 2016 20:01:10
      3. Action: alert
      4. Host: BANANAS
      5. Description: connection succeeded to INET[127.0.0.1:443] via TCPSSL
      6. Your faithful employee,
      7. Monit

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

      KoenigderPimpfe
    • koenigderpimpfe wrote:

      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)
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • Hi,

      I have the same problem :

      Source Code

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


      Source Code

      1. Connection succeeded Service nginx
      2. Date: Wed, 19 Oct 2016 12:31:15
      3. Action: alert
      4. Host: localhost
      5. Description: connection succeeded to INET[127.0.0.1:443] via TCPSSL
      6. Your faithful employee,
      7. Monit
      Version : 2.2.10 Stone burner

      Any ideas ?

      The post was edited 2 times, last by dickcie ().

    • Hello,

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

      Shell-Script: /etc/monit/conf.d/openmediavault-nginx.conf

      1. check process nginx with pidfile /var/run/nginx.pid
      2. start program = "/bin/systemctl start nginx"
      3. stop program = "/bin/systemctl stop nginx"
      4. mode active
      5. if cpu is greater than 40% for 2 cycles then alert
      6. if cpu is greater than 80% for 5 cycles then restart
      7. 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