# Quorum failed error

**URL:** <https://discourse.chef.io/t/quorum-failed-error/13302>\
**Category:** Chef Infra (archive)\
**Created:** [July 13, 2018, 1:26pm UTC](https://discourse.chef.io/t/quorum-failed-error/13302 "2018-07-13T13:26:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![devaraj](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@devaraj](https://discourse.chef.io/u/devaraj)\
**Post date:** [July 13, 2018, 1:26pm UTC](https://discourse.chef.io/t/quorum-failed-error/13302/1 "2018-07-13T13:26:24Z")

</div>

Hi ,

I am trying to trigger a job using chef push job functionality.  
But getting “quorum failed” error while trying to start a job using knife command.

[root@chef-workstation cookbooks]# knife job start java 'node-1’  
Started. Job ID: 7296674996db01f7e3d86dd4c6ac0310  
.Quorum\_failed.  
command: touch  
created\_at: Fri, 13 Jul 2018 12:07:37 GMT  
env:  
id: 7296674996db01f7e3d86dd4c6ac0310  
nodes:  
nacked: node-1  
run\_timeout: 3600  
status: quorum\_failed  
updated\_at: Fri, 13 Jul 2018 12:07:37 GMT  
[root@chef-workstation cookbooks]#

Node is active and i can see it is able to communicate with push job server.

[root@chef-workstation cookbooks]# knife node status node-1  
node-1 available  
[root@chef-workstation cookbooks]#

From the push-job-client log, i could see below error:

INFO: [node-1] Received server heartbeat (sequence #302241) logging 0/3  
INFO: [node-1] Received server heartbeat (sequence #302242) logging 1/3  
INFO: [node-1] Received server heartbeat (sequence #302243) logging 2/3  
INFO: [node-1] Received server heartbeat (sequence #302244) logging 3/3  
INFO: [UNKNOWN] Job UNKNOWN: whitelist ‘java’ to ‘’  
INFO: [UNKNOWN] Job UNKNOWN: whitelist ‘java’ to ‘’  
ERROR: [node-1] Received commit adb43071447255a87b294ce313dc4e8a, but command ‘java’ is not in the whitelist!

But i have added the job to the whitelist attribute of node and i am able to see it from my chef-manage webui. Also added the details to push-job-client.rb file.

What could be possible reason for this error? Can anyone help me to understand the “quorum failed” error?

---

<div class="post-metadata">

**Author:** ![teknofire](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/teknofire/32/1021_2.png) [@teknofire](https://discourse.chef.io/u/teknofire)\
**Post date:** [July 13, 2018, 8:51pm UTC](https://discourse.chef.io/t/quorum-failed-error/13302/2 "2018-07-13T20:51:37Z")

</div>

You are getting quorum failed because server you specified is returning a `nacked` message for the job request. From the logs you posted that’s because it couldn’t find a `java` task in the whitelist in `/etc/chef/push-job-client.rb`

Can you confirm that there is a “java” whitelist entry in `/etc/chef/push-job-client.rb`. If so what does it look like? More than likely the task isn’t in the list or it’s not formatted correctly some how.

If you are using the `push-jobs` cookbook to configure your system and manually added the `java` task to `push-job-client.rb` it’s possible that it went through and removed the entry for you.

---

<div class="post-metadata">

**Author:** ![devaraj](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@devaraj](https://discourse.chef.io/u/devaraj)\
**Post date:** [July 14, 2018, 12:05pm UTC](https://discourse.chef.io/t/quorum-failed-error/13302/3 "2018-07-14T12:05:58Z")

</div>

Thanks for the reply.

i am using push-jobs cookbook .  
by default the chef-client command was there and it was working fine.  
knife job start chef-client ‘node-1’

when i set the push-jobs whitelist node attribute by running below command from workstation

knife node attribute set node-1 push\_jobs.whitelist ‘[“java: chef-client -o recipe[java]”]’

it set the attribute successfully but when i extract the attribute value in json file the push-jobs attribute value will be empty. i think i am missing something the attribute value is not updating correctly. so i decided to update the push-jobs cookbook attribute default.rb file and uploaded.

when i run command knife job start java ‘node-1’ i am getting quorum failed error.

In /etc/chef/ push-job-client.rb file it has below entry

cat /etc/chef/push-job-client.rb  
cat: /etc/chef/push-job-client.rb: No such file or directory  
[root@node-1 ~]# cat /etc/chef/push-jobs-client.rb

# Generated by Chef for node-1

# 

# Local modifications will be overwritten!

Chef::Config.from\_file("/etc/chef/client.rb")

# The whitelist comes from node[‘push\_jobs’][‘whitelist’]

whitelist({“java”=\>“chef-client -o recipe[java]”})

# We’re under runit, so don’t output timestamp

Mixlib::Log::Formatter.show\_time = false

---

<div class="post-metadata">

**Author:** ![devaraj](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@devaraj](https://discourse.chef.io/u/devaraj)\
**Post date:** [July 16, 2018, 1:54pm UTC](https://discourse.chef.io/t/quorum-failed-error/13302/5 "2018-07-16T13:54:04Z")

</div>

Hi

Please find job output details.

knife job start --capture java node-1  
Started. Job ID: adb4307144722c5f5e7f4ef1578f7521  
.Quorum\_failed.  
capture\_output: true  
command: java  
created\_at: Mon, 16 Jul 2018 12:29:02 GMT  
env:  
id: adb4307144722c5f5e7f4ef1578f7521  
nodes:  
nacked: node-1  
run\_timeout: 3600  
status: quorum\_failed  
updated\_at: Mon, 16 Jul 2018 12:29:02 GMT

[vagrant@lampnode pushjob] knife job output --channel stdout adb4307144722c5f5e7f4ef1578f7521 node-1 ERROR: The object you are looking for could not be found Response: \<HTML\>\<HEAD\>\<TITLE\>404 Not Found\</TITLE\>\</HEAD\>\<BODY\>\<H1\>Not Found\</H1\>The requested document was not found on this server.\<P\>\<HR\>\<ADDRESS\>mochiweb+webmachine web server\</ADDRESS\>\</BODY\>\</HTML\> [vagrant@lampnode pushjob]

---

<div class="post-metadata">

**Author:** ![teknofire](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/teknofire/32/1021_2.png) [@teknofire](https://discourse.chef.io/u/teknofire)\
**Post date:** [July 16, 2018, 3:05pm UTC](https://discourse.chef.io/t/quorum-failed-error/13302/6 "2018-07-16T15:05:40Z")

</div>

When you are pasting the contents from the `push-job-client.rb` file please escape it using triple backticks or put it into a gist and link to it. It’s very hard to tell if there is possibly some sort of formatting error with the file otherwise since it’s getting evaluated as markdown content.
