Service check of type 'script' broken in v0.6.0?

24 views
Skip to first unread message

Vincent

unread,
Aug 14, 2017, 12:13:47 PM8/14/17
to Nomad
Hi,

Is anyone else having this issue where their 'script' Service checks are failing after upgrading to v0.6?

      service{
        check {
          type = "script"
          command = "/bin/true" //Always pass
          interval = "10s"
          initial_status = "passing"
        }
      }

The consul service health endpoint shows:

  "Output": "context deadline exceeded",

We were still running consul v0.8.3 when we first encountered the issue. I've just upgraded to consul v0.9.2 with "enable_script_checks : true" (see https://www.consul.io/docs/upgrade-specific.html#script-checks-are-now-opt-in) but this didn't address it.

I'll be happy to open an issue if anyone else is encountering this.

Thanks,
V-

Michael Schurter

unread,
Aug 14, 2017, 12:59:13 PM8/14/17
to Vincent, Nomad
Hi Vincent,

The good news is that script checks are not broken in 0.6. The bad news is check timeout validation is broken in 0.6.

You need to add a timeout = "3s" parameter to your check:

      service{
        check {
          type = "script"
          command = "/bin/true" //Always pass
          interval = "10s"
          timeout = "3s"
          initial_status = "passing"
        }
      }

Check validation will be fixed in our next release to catch this earlier. Sorry for the hassle!

schmichael

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/nomad/issues
IRC: #nomad-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Nomad" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nomad-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nomad-tool/f6e89759-4fb1-4f49-8cc0-2add58d54a85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vincent

unread,
Aug 14, 2017, 1:13:13 PM8/14/17
to Nomad
That worked!! Thanks for getting back to us on this!
To unsubscribe from this group and stop receiving emails from it, send an email to nomad-tool+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages