https://github.com/osquery/osquery logo
Title
a

Anthony M

10/26/2022, 8:44 AM
Hey fleet team 👋 I am trying fleet-desktop on a macOS device. The app is stuck on connecting, so I used the cleanup script and reinstalled everything, but it is still not working. Here is the error after the installation:
/opt/orbit/bin/desktop/macos/stable/Fleet\ <http://Desktop.app/Contents/MacOS/fleet-desktop|Desktop.app/Contents/MacOS/fleet-desktop> 
2022-10-25T15:44:51+02:00 INF fleet-desktop version=1.3.1
2022-10-25T15:44:51+02:00 FTL missing URL environment FLEET_DESKTOP_DEVICE_IDENTIFIER_PATH
Any idea on why I am having this issue? Thanks in advance.
k

Kathy Satterlee

10/26/2022, 3:01 PM
Hi, @Anthony M! Can you check the Orbit logs as well to see if there are any errors there? /private/var/log/orbit/orbit.std{out|err}.log
r

roberto

10/26/2022, 3:05 PM
how are you starting fleet desktop? the app is currently meant to be run by Orbit, which will generate and provide the right environment variables (
FLEET_DESKTOP_DEVICE_IDENTIFIER_PATH
being one of them)
a

Anthony M

10/26/2022, 4:39 PM
Thank you both for helping. @Kathy Satterlee I have nothing in stdout and i have this in stderr
2022-10-26T18:22:21+02:00 INF calling flags update
2022-10-26T18:22:51+02:00 INF calling flags update
@roberto fleet desktop started automatically after the installation.
Apparently it's not started by orbit 🤔
pstree | grep orbit  
 |     \--- 58874 anthony grep orbit
 |--= 57591 anthony /opt/orbit/bin/desktop/macos/stable/Fleet <http://Desktop.app/Contents/MacOS/fleet-desktop|Desktop.app/Contents/MacOS/fleet-desktop>
 |-+= 92875 root /opt/orbit/bin/orbit/orbit
 | \-+- 92900 root /opt/orbit/bin/osqueryd/macos-app/stable/osquery.app/Contents/MacOS/osqueryd -<REDACTED>
 |   \--- 92901 root /opt/orbit/bin/osqueryd/macos-app/stable/osquery.app/Contents/MacOS/osqueryd
r

roberto

10/26/2022, 4:59 PM
in the first snippet you sent I can see you started a fleet desktop process on your own, maybe there's something about that? to debug I would make sure to terminate all fleet desktop processes, then
sudo killall orbit
to force Orbit to restart and see what happens
a

Anthony M

10/26/2022, 5:25 PM
I started fleet desktop on my own to look why it was not working. So I did it while fleet desktop was already running as on the screenshot. I just did what you said. fleet-desktop restarted by itself but it is still stuck on connecting
k

Kathy Satterlee

10/26/2022, 5:39 PM
Are you seeing the same error now that Desktop was started by Orbit?
$HOME/Library/Logs/Fleet/fleet-desktop.log
a

Anthony M

10/26/2022, 5:42 PM
2022-10-26T19:41:57+02:00 DBG successfully refetched the token from disk
2022-10-26T19:41:57+02:00 ERR get device URL error="decode GET /api/latest/fleet/device/REDACTED/desktop response: json: cannot unmarshal object into Go struct field fleetDesktopResponse.error of type error"
it's the exact same error yes
r

roberto

10/26/2022, 6:11 PM
thanks Anthony, do you mind sharing what version of Fleet are you using?
a

Anthony M

10/26/2022, 6:14 PM
Fleet 4.21.0 • Go go1.19.1
and
Fleet Desktop v.1.3.1
r

roberto

10/26/2022, 7:00 PM
thank you! I just submitted a PR, the fix is in the Fleet Server, I will let you know as soon as I know we're releasing a fix https://github.com/fleetdm/fleet/pull/8457
a

Anthony M

10/26/2022, 7:02 PM
Awesome, many thanks!
z

zwass

10/28/2022, 2:31 PM
The patch is out: https://github.com/fleetdm/fleet/releases/tag/fleet-v4.22.1 Please let us know if this resolves the issue for you.
s

Stephan M

10/28/2022, 8:11 PM
Resolved it for us
a

Anthony M

11/02/2022, 1:19 PM
Hey, sorry I was on holiday. It's also working for me now. Thank you for this. Last question, what is the difference between fleet desktop free and premium? Is the policy failing information only available for premium?
k

Kathy Satterlee

11/02/2022, 4:01 PM
That's great! For Free instances, Fleet Desktop includes the
My Device
and
Transparency
Links. With Premium, you have notifications for failing policies and the ability to provide a custom landing page for
Transparency
.
a

Anthony M

11/02/2022, 4:15 PM
Thank you for the info 👍
k

Kathy Satterlee

11/02/2022, 4:17 PM
Any time.