MeshCentral icon indicating copy to clipboard operation
MeshCentral copied to clipboard

Update MacOS Agent instaler (MeshAgent.mpkg)

Open MANTAITS opened this issue 2 years ago • 32 comments

Hello, we find out that we are not able to do anything on connected Apple devices. We just see the desktop, we are able to move with mice but we can not click on anything and we can not see any open windows. Terminal a and files work properly.
We are using macOS Monterey v.12.1 Can I ask you to check it?

Thank you!

MANTAITS avatar Jan 03 '22 14:01 MANTAITS

Did you enable the permissions requested on macos? There are two separate ones. If you only accept one of the two, I think is when you get the scenario where you only see the background.

krayon007 avatar Jan 03 '22 22:01 krayon007

Yes, I have allowed meshagent_osx64 in Security & Privacy - Accessibility and Screen recording. Should I have it also somewhere else? Thanks

MANTAITS avatar Jan 04 '22 09:01 MANTAITS

And I'm still getting this message.

photo_2022-01-04_10-26-26

I found that someone install Agent via wget but it also doesn't work https://issueexplorer.com/issue/Ylianst/MeshAgent/104

MANTAITS avatar Jan 04 '22 09:01 MANTAITS

@krayon007 @Ylianst Any updates here? Thank you!

MANTAITS avatar Jan 10 '22 11:01 MANTAITS

I haven't reproduced it, but I will try a clean install with my Monterey System. Let me get back to you.

krayon007 avatar Jan 10 '22 15:01 krayon007

Same issue with the M1 Mac, not sure if the architecture is relevant.

I2700I avatar Jan 19 '22 05:01 I2700I

Same here Intel MAC with Monterey 12 and 12.1. On connect system is always asking for Screenrecord but it is already granted. Just Desktop-Background and Mousemove, no Windows at all.

JSuenram avatar Jan 24 '22 07:01 JSuenram

Same here! permissions already granted but keeps asking on every connection

Same here Intel MAC with Monterey 12 and 12.1. On connect system is always asking for Screenrecord but it is already granted. Just Desktop-Background and Mousemove, no Windows at all.

oezh avatar Jan 25 '22 23:01 oezh

I'll take a look on my Monterey System. One thing I've seen on occasion, is that the gatekeeper gets confused with permissions, as I've noticed that the UI is keyed by app name, but the actual permission is keyed by file hash. This can cause issues when the app binary is updated. I've filed a bug against Apple, but they never responded.

Anyways, I've seen scenarios where the permissions are messed up until you delete all the permissions for the app, and let it re-request permissions

In this case, it's not the agent causing the issues, but the OS itself that is getting in a wierd state

krayon007 avatar Jan 26 '22 01:01 krayon007

Is there an update on this? 3/22/2022 on M1 MacBook Pros' still doing the same thing. Even though permissions are granted.

zackrspv avatar Mar 22 '22 11:03 zackrspv

Have you tried removing all permissions, and letting it re-request the permission?

krayon007 avatar Mar 23 '22 03:03 krayon007

Have you tried removing all permissions, and letting it re-request the permission?

Yep. Two computers for test purposes, same issue with both.

I2700I avatar Mar 23 '22 04:03 I2700I

@Ylianst @krayon007 Any updates here? Thank you!

MANTAITS avatar Mar 28 '22 10:03 MANTAITS

Not yet. But I'm going to work on seeing if I can sign the macos agents, which should help with the permissions aspect of things.

krayon007 avatar Mar 28 '22 14:03 krayon007

Hey all,

I was about to make a new ticket about this, but found this. I've been experiencing similar issues. On some it's the above where there's just the desktop and we can control the mouse, but can't see anything regardless of how we enable permissions.

On my new 14" Macbook Pro, I'm only seeing a black screen in MeshCentral and do not have the ability to move the mouse. Please let us know if we can forward any log data.

Matt-CyberGuy avatar Mar 29 '22 21:03 Matt-CyberGuy

Have you guys tried downloading the binary installer and using that to install the agent, instead of the package installer? Does that make a difference for you?

krayon007 avatar Mar 30 '22 00:03 krayon007

Hi Bryan,

I have. On MacOS 11, this seemed to fix my issue on my M1 Macbook Air. Once I replaced the universal binary with the Arm one, things began working, but so far on both Intel and Arm I haven't been able to MeshCentral to work with Monterey.

On a side note, we have a handful of clients running Mac, and Monterey in general has been REALLY difficult to deploy things like screen sharing on. The solution for some apps has been going into system recovery and disabling SIP.

Actually now that it crossed my mind, I'm going to try it now to see if it fixes this issue.

Matt-CyberGuy avatar Mar 30 '22 00:03 Matt-CyberGuy

Ok... I can definitely confirm this is a binary related issue. At least on my M1, the only agent that works is the x86 binary, the Universal and Arm binaries both endlessly ask for permission each time I try to connect.

Matt-CyberGuy avatar Apr 08 '22 22:04 Matt-CyberGuy

Same here on Monterey on a M1... it seems that the binary works fine, you need to install homebrew first

barart avatar Jun 10 '22 23:06 barart

I've got the same issue here. A brand new Macbook Air 2020 M1 running the latest Monterey 12.5 and installed the "Apple macOS Agent (64bit)". continuous popups asking for screen record permissions.

@matt-cylanda you made reference to the x86 binary. what am I selecting to get this? If I select "Linux / BSD / macOS Binary Installer" the only Apple download i can see is "Apple OSX Universal" which i think you mentioned does not work.

UPDATE: i uninstalled the previous "Apple macOS Agent (64bit)" and i've installed the "Apple OSX Universal" (via the command line) from "Linux / BSD / macOS Binary Installer" and now that's working as expected. the machine already had Rosetta v2 installed from another package if that's relevant.

SECOND UPDATE: with the agent i have installed now, i can't see the screen when it's sitting at a login prompt. i had to use ScreenConnect to remotely login to the Mac. once logged in i was able to disconnect/reconnect from Mesh and the desktop appeared.

side note - after uninstalling the "Apple macOS Agent (64bit)" using the procedure here: https://github.com/Ylianst/MeshCentral/issues/365 i note that "meshagent_osx64" still exists throughout Security & Privacy. the universal agent i installed above appears as "meshagent". not a big deal, but i just thought I would mention that the uninstall didn't remove that. perhaps that's just a Mac thing?

wizdude avatar Jul 27 '22 23:07 wizdude

Exactly the same problem here.

I have a MacBook Pro 16 M1 running Monterey 12.5.

The normal "Apple macOS" client installs fine, but every time you try to use Desktop > Connect, you are prompted with this and it never works:

Screenshot 2022-07-28 at 23 05 24

Using the Apple OSX Universal client works, but it's no where near as elegant.

We have a large user base of M1 Macs and I can see that this is going to be a major issue if we try to move them to MeshCentral @krayon007

jbredcar avatar Jul 28 '22 22:07 jbredcar

So if I understand correctly, when using an M1 Mac you are only seeing issues with the arm binary but not the universal or Intel binary?

krayon007 avatar Jul 28 '22 22:07 krayon007

When using this one (macOS Agent (64bit), remote control does not work. Each time you are prompted to grant access.

Screenshot 2022-07-28 at 23 54 18

When using this one, everything works, however it just installs wherever you have downloaded it. I cannot find any information on how to get this to work in the same was the the macOS Agent (64bit).

Screenshot 2022-07-28 at 23 54 52

jbredcar avatar Jul 28 '22 22:07 jbredcar

The ideal for me @krayon007 would be for the macOS Agent (64bit) to be updated so that it works correctly, as a .pkg is much neater for mass deployment.

jbredcar avatar Jul 28 '22 22:07 jbredcar

Interesting. I may have to update my M1 to Monterey Mine is still on Big Sur and works fine with all the binaries.

krayon007 avatar Jul 28 '22 23:07 krayon007

That would be really helpful if you could, as we are looking to roll this out for all of our clients, but a lot of them are using MacBook Pro M1 with Monterey.

jbredcar avatar Jul 28 '22 23:07 jbredcar

Keep in mind that Apple Macs with M1 chip are not 64bits, they are M1 (Apple Silicon) an ARM architecture, macOS agent 64bits is not going to work on M1 macs as they are different architecture...

barart avatar Jul 28 '22 23:07 barart

Yes, but it does work when Rosetta2 is installed, with the exception of remote control.

Would an Apple Silicon build of the .pkg be a possibility please?

jbredcar avatar Jul 29 '22 06:07 jbredcar

hey gang, just looking at all the mac issues now as somebody kindly donated an M1 to fix bugs! has anybody found a way to actually get the remote control working on M1 12.7.2 ? ive tried the mpkg and the binarys and they just dont wanna work? if i can find a way to get it working i can look into why it needs to be done that way

si458 avatar Feb 24 '24 13:02 si458

Yes, after many attempts I got it to work with macOS 13 Ventura. If I remember correct, it was this way: https://github.com/Ylianst/MeshCentral/issues/3397#issuecomment-1198706281 and myabe you have to install rosetta first: sudo /usr/sbin/softwareupdate --install-rosetta --agree-to-license

macOS 12 Monterey will be EOL end-of-life at the end of 2024, so testing with Ventura makes more sense.

b-hal avatar Feb 24 '24 13:02 b-hal