Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fiendish opened this issue Jun 17, 2021 · 2 comments

Comments

@fiendish
Copy link

fiendish commented Jun 17, 2021

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.

@soulgalore
Copy link
Member

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?

@fiendish
Copy link
Author

fiendish commented Jun 19, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants