Evan Romasco-Kelly
01/24/2024, 10:08 PMfleetctl preview
and running into some issues. Not sure if this is the right forum, but I’ll throw details in a thread if anyone can lend a hand.Evan Romasco-Kelly
01/24/2024, 10:10 PMfleetctl preview
on MacOS 14 (M1) is throwing this error:
Pulling Docker dependencies...
time="2024-01-24T12:05:56-07:00" level=warning msg="The \"FLEET_LICENSE_KEY\" variable is not set. Defaulting to a blank string."
time="2024-01-24T12:05:56-07:00" level=warning msg="The \"FLEET_LICENSE_KEY\" variable is not set. Defaulting to a blank string."
fleet02 Skipped - Image is already being pulled by fleet01
mysql01 Pulling
redis01 Pulling
fleet01 Pulling
2024/01/24 12:05:56 must use ASL logging (which requires CGO) if running as root
2024/01/24 12:05:56 must use ASL logging (which requires CGO) if running as root
2024/01/24 12:05:56 must use ASL logging (which requires CGO) if running as root
error getting credentials - err: exit status 1, out: ``
Error: Failed to run `docker-compose`
Evan Romasco-Kelly
01/24/2024, 10:10 PMGrant Bilstad
01/24/2024, 10:31 PMfleetctl
would you have going (current is 4.43.3 as of this message)?
Recommend in the order these commands if using npm
sudo npm install -g fleetctl
(latest fleetctl as a global package)
sudo fleetctl
(this finishes up the install)
fleetctl preview
(non sudo)
Also have noticed some issues with older versions of Docker on Apple Silicon and they've mostly addressed issues in the latest versions.Evan Romasco-Kelly
01/24/2024, 10:33 PMEvan Romasco-Kelly
01/24/2024, 10:34 PMsudo fleetctl
command in the docs here: https://fleetdm.com/try-fleet/fleetctl-previewEvan Romasco-Kelly
01/24/2024, 10:35 PMError: downloading dependencies: unzip download contents: open /Users/myuser/.fleet/preview/.env: permission denied
This error can usually be resolved by fixing the permissions on the /Users/evanromascokelly/.fleet directory, or re-running this command with sudo.
Evan Romasco-Kelly
01/24/2024, 10:37 PMdrwxrwxr-x 4 root staff 128 Jan 24 15:35 .fleet
and for ~/.fleet/preview/.env:
-rw-r--r-- 1 root staff 42 Jan 24 15:22 .env
Evan Romasco-Kelly
01/24/2024, 10:40 PMGrant Bilstad
01/24/2024, 10:45 PMfleetctl preview reset
(might need to try this one as sudo) then try the fleetctl preview
Evan Romasco-Kelly
01/24/2024, 10:57 PMsudo fleetctl preview reset
and fleetctl preview
Kathy Satterlee
01/25/2024, 1:57 AMnpm remove —purge fleetctl
2. sudo npm remove —purge fleetctl
3. npm i -g fleetctl
If you get a permissions error here (pretty common), there’s a good guide here for getting past them. I like the NVM option personally, but any of the solutions are fine.
4. Try running fleetctl preview
againEvan Romasco-Kelly
01/25/2024, 6:19 PMError: downloading dependencies: unzip download contents: open /Users/myuser/.fleet/preview/.env: permission denied
This error can usually be resolved by fixing the permissions on the /Users/myuser/.fleet directory, or re-running this command with sudo.
Kathy Satterlee
01/25/2024, 7:09 PMKathy Satterlee
01/25/2024, 7:10 PMKathy Satterlee
01/25/2024, 10:18 PMKathy Satterlee
01/25/2024, 10:19 PMnpx fleetctl preview
just for giggles.Evan Romasco-Kelly
01/25/2024, 11:00 PMKathy Satterlee
01/26/2024, 3:03 PM