throttle icon indicating copy to clipboard operation
throttle copied to clipboard

Command failed sudo pfctl -d, invalid value, error initializing audit plugin sudoers_audit

Open fiendish opened this issue 4 years ago • 2 comments

macOS 10.15.7 node v16.3.0 throttle version 2.1.1

I get this kind of output very often:

> throttle stop
node:child_process:326
      ex = new Error('Command failed: ' + cmd + '\n' + stderr);
           ^

Error: Command failed: sudo pfctl -d
sudo: 4294967295: invalid value
sudo: error initializing audit plugin sudoers_audit

    at ChildProcess.exithandler (node:child_process:326:12)
    at ChildProcess.emit (node:events:394:28)
    at maybeClose (node:internal/child_process:1067:16)
    at Socket.<anonymous> (node:internal/child_process:453:11)
    at Socket.emit (node:events:394:28)
    at Pipe.<anonymous> (node:net:661:12) {
  killed: false,
  code: 1,
  signal: null,
  cmd: 'sudo pfctl -d',
  stdout: '',
  stderr: 'sudo: 4294967295: invalid value\n' +
    'sudo: error initializing audit plugin sudoers_audit\n'
}
> throttle --up 10000 --down 10000 --rtt 10 --log
sudo dnctl -q flush
sudo dnctl -q pipe flush
sudo pfctl -f /etc/pf.conf
sudo pfctl -E
sudo pfctl -d
Error: Command failed: sudo pfctl -d
sudo: 4294967295: invalid value
sudo: error initializing audit plugin sudoers_audit

    at ChildProcess.exithandler (node:child_process:326:12)
    at ChildProcess.emit (node:events:394:28)
    at maybeClose (node:internal/child_process:1067:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {
  killed: false,
  code: 1,
  signal: null,
  cmd: 'sudo pfctl -d',
  stdout: '',
  stderr: 'sudo: 4294967295: invalid value\n' +
    'sudo: error initializing audit plugin sudoers_audit\n'
}

The errors don't happen every time, so I just run the command again until it works.

fiendish avatar Jun 17 '21 17:06 fiendish

Hi @fiendish I have never got it, but it looks like it could be a thing for users where the machine use AD see https://discussions.apple.com/thread/252518458 - is that the case for you too?

soulgalore avatar Jun 19 '21 13:06 soulgalore

Yes that is the case! Good catch.

fiendish avatar Jun 19 '21 16:06 fiendish