brian
01/26/2023, 10:57 PMfleetctl from my local machine to generate an install package. any subcommand of fleetctl I try just seems to hang forever. I've tried both the release from the GitHub releases page and installing via npm. I've also tried with and without sudo. I'm on macOS 12.6 (Intel hardware). any idea what might be causing this?Kathy Satterlee
01/26/2023, 11:06 PMfleetctl -v?brian
01/26/2023, 11:07 PMbrian
01/26/2023, 11:07 PMsudo)brian
01/26/2023, 11:09 PMfleetctl or from hosts), but I’m not sure if that’s what’s causing my problems with fleetctl right now.Kathy Satterlee
01/26/2023, 11:14 PMfleetctl has functionality that doesn't require an existing server so you should at the very least get a version output.Kathy Satterlee
01/26/2023, 11:15 PMbrian
01/26/2023, 11:16 PMnpm -g list shows ├── fleetctl@v4.26.0.Kathy Satterlee
01/26/2023, 11:21 PMKathy Satterlee
01/26/2023, 11:25 PMfleetctl runs, the actual CLI app should be installed. It looks something like this:
Do you recall that happening ever?brian
01/26/2023, 11:26 PMKathy Satterlee
01/26/2023, 11:27 PMfleetctl -v after the ourge, but before reinstalling.brian
01/26/2023, 11:27 PMbrian
01/26/2023, 11:28 PMzsh: command not found: fleetctlKathy Satterlee
01/26/2023, 11:29 PMKathy Satterlee
01/26/2023, 11:30 PMthe only other piece of the puzzle that may be relevant is that I had the Fleet agent installed and connected to a sandbox account on fleetdm.com. I’m not sure if that would affect this at all.It really shouldn't, but just for safety's sake, try running the cleanup script: https://github.com/fleetdm/fleet/blob/main/orbit/tools/cleanup/cleanup_macos.sh
Benjamin Edwards
01/26/2023, 11:30 PMKathy Satterlee
01/26/2023, 11:31 PMBenjamin Edwards
01/26/2023, 11:31 PMbrian
01/26/2023, 11:31 PMBenjamin Edwards
01/26/2023, 11:32 PMbrian
01/26/2023, 11:32 PMbrian
01/26/2023, 11:33 PM$ sudo lsof -p 12026
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
env 12026 briandefiant cwd DIR 1,9 2240 379729 /Users/briandefiant
env 12026 briandefiant txt REG 1,9 151360 1152921500312781607 /usr/bin/env
env 12026 briandefiant txt REG 1,9 2177216 1152921500312782996 /usr/lib/dyld
env 12026 briandefiant 0u CHR 16,5 0t557 1021 /dev/ttys005
env 12026 briandefiant 1u CHR 16,5 0t557 1021 /dev/ttys005
env 12026 briandefiant 2u CHR 16,5 0t557 1021 /dev/ttys005brian
01/26/2023, 11:33 PM/usr/bin/env node /usr/local/bin/fleetctl -v process.brian
01/26/2023, 11:34 PMBenjamin Edwards
01/26/2023, 11:34 PMBenjamin Edwards
01/26/2023, 11:34 PMBenjamin Edwards
01/26/2023, 11:36 PMbrian
01/26/2023, 11:36 PM./fleetctl -v hangs and basically the same output from lsof.brian
01/26/2023, 11:39 PMBenjamin Edwards
01/26/2023, 11:40 PMbrian
01/27/2023, 12:47 PM./fleetctl -v after the reboot gave me the “the developer of this app can’t be verified” popup, so I right-clicked the fleetctl binary and did “Open”, then ran it from the terminal again and it worked! guess I should have tried a reboot sooner! I wonder why that “can’t be verified” popup wasn’t showing up at first though (iTerm or tmux related?).brian
01/27/2023, 12:48 PMBenjamin Edwards
01/27/2023, 1:27 PMmatx
01/27/2023, 4:41 PMmatx
01/27/2023, 4:42 PMxattr -lmatx
01/27/2023, 4:43 PMbrian
01/27/2023, 5:15 PM