Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Lion broke screen sharing, VNC?

Lion is installed fine and dandy on my iMac. However, I cannot use Screen Sharing from my laptop (not upgraded... Yet) nor can I use VNC from my PC or iPad to connect to the iMac. Everything gets a "could not connect" error with no useful information.


I have Remote Administration turned on with thiMac and could use VNC just before the Lion upgrade went in.


Any pointers/suggestions?

iMac, Mac OS X (10.7)

Posted on Jul 20, 2011 12:15 PM

Reply
200 replies

Jul 25, 2011 4:15 PM in response to Ricky Yu

not working for me either from XP via VNC - tried ""Only use protocol 3.3"" but this didn't solve anything


interestingly in the system log, after I try to connect with VNC (nothing else) I see the following - there are some logmein lines in there for some reason (also noting logmein is busted under Lion for the moment too...)






loginwindow[768]: Login Window Application Started

loginwindow[768]: **DMPROXY** Found `/System/Library/CoreServices/DMProxy'.

com.logmein.logmeinguiagent[758]: 2011-07-26 09:02:46.434 - Debug - LMIGUIAgent - SessionManager - sessionTerminating

com.logmein.logmeinguiagent[758]: 2011-07-26 09:02:46.434 - Debug - LMIGUIAgent - SessionManager - DisplayServer stop

com.logmein.logmeinguiagent[758]: 2011-07-26 09:02:46.434 - Debug - LMIGUIAgent - SessionManager - DisplayServer close

com.logmein.logmeinguiagent[758]: 2011-07-26 09:02:46.434 - Debug - LMIGUIAgent - GUIAgent - DisplayServerStopped.Sent[758]

com.logmein.logmeinguiagent[758]: Session - Error occured:read errno: (9) Bad file descriptor

com.logmein.logmeinguiagent[758]: 2011-07-26 09:02:46.437 - Debug - LMIGUIAgent - SessionManager - Connection closed

com.logmein.logmeinguiagent[758]: 2011-07-26 09:02:46.437 - Debug - LMIGUIAgent - SessionManager - Closing DisplayServer

com.logmein.logmeinguiagent[758]: 2011-07-26 09:02:46.437 - Debug - LMIGUIAgent - SessionManager - DisplayServer close

com.logmein.logmeinguiagent[758]: 2011-07-26 09:02:46.437 - Debug - LMIGUIAgent - SessionManager - Exiting

com.apple.launchd[1] (com.logmein.logmeinguiagent): Unknown key for boolean: UseLMILaunchAgentFixer

com.apple.launchctl.LoginWindow[770]: com.apple.findmymacmessenger: Already loaded

com.logmein.logmeinguiagent[774]: 2011-07-26 09:02:46.511 - Info - LMIGUIAgent - Main - starting...

com.logmein.logmeinguiagent[774]: 2011-07-26 09:02:46.511 - Info - LMIGUIAgent - Main - started:774 uid:0 (parent:1 launchd)

com.logmein.logmeinguiagent[774]: 2011-07-26 09:02:46.512 - Info - LMIGUIAgent - Main - waiting for window server connection

com.logmein.logmeinguiagent[774]: 2011-07-26 09:02:46.531 - Info - LMIGUIAgent - Main - waiting for window server session

com.logmein.logmeinguiagent[774]: 2011-07-26 09:02:46.532 - Info - LMIGUIAgent - Main - connecting to session manager

ManagedClient[776]: MCX.createConnection bootstrap_register failed = 1100

loginwindow[768]: Login Window Started Security Agent

loginwindow[768]: kCGErrorFailure: CGSPackagesGetWorkspaceType: couldn't get workspace type

loginwindow[768]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.

SecurityAgent[777]: Echo enabled

com.logmein.logmeinguiagent[774]: 2011-07-26 09:02:47.178 - Debug - LMIGUIAgent - SessionManager - SessionAgentStarted

com.apple.launchd[1] (com.logmein.logmeinguiagent[758]): Exited with code: 1

SecurityAgent[777]: kCGErrorFailure: CGSPackagesGetWorkspaceType: couldn't get workspace type

SecurityAgent[777]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.

Jul 25, 2011 7:42 PM in response to MixedUp

Here's my sample log. Some similarities to yours excluding the logmein stuff.


21/07/11 9:54:57.343 AM screensharingd: Authentication: SUCCEEDED :: User Name: N/A :: Viewer Address: 192.168.183.12 :: Type: VNC DES

21/07/11 9:54:57.434 AM loginwindow: Login Window Application Started

21/07/11 9:54:57.445 AM loginwindow: **DMPROXY** Found `/System/Library/CoreServices/DMProxy'.

21/07/11 9:54:57.558 AM com.apple.launchctl.LoginWindow: com.apple.findmymacmessenger: Already loaded

21/07/11 9:54:57.610 AM com.apple.SecurityServer: Session 100027 created

21/07/11 9:54:57.613 AM loginwindow: Login Window Started Security Agent

21/07/11 9:54:57.646 AM loginwindow: kCGErrorFailure: CGSPackagesGetWorkspaceType: couldn't get workspace type

21/07/11 9:54:57.646 AM loginwindow: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.

21/07/11 9:54:57.782 AM SecurityAgent: Echo enabled

21/07/11 9:54:57.782 AM SecurityAgent: Echo enabled

21/07/11 9:54:58.016 AM sandboxd: ([743]) applepushservice(743) deny file-read-data /private/etc/master.passwd

21/07/11 9:54:58.164 AM SecurityAgent: kCGErrorFailure: CGSPackagesGetWorkspaceType: couldn't get workspace type

21/07/11 9:54:58.164 AM SecurityAgent: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.

21/07/11 9:56:38.881 AM SecurityAgent: (ipc/send) invalid destination port: CGSGetNextEventRecord (Inline) connection 0x1a34f, 16384 bytes

21/07/11 9:56:38.881 AM SecurityAgent: CGSShutdownServerConnections: Detaching application from window server

Jul 25, 2011 11:45 PM in response to JaseOD

Thought I'd give Screens for iOS a try since it specifies Lion compatibility.


Everythingwentbetterthanexpected.jpg


It works perfectly. I imagine I'll need to play around a little to work out all the gestures etc. In terms of pure VNC functionality it's perfect. Seems that sending username/password in the VNC connect does the trick. This isn't an option in the other clients I've been testing with. Screens might be doing other things under the hood as well, I dont know.


It's not the cheapest option for remote control, but it's a very polished app. There are versions for iOS and Mac available, all $20.

Jul 26, 2011 7:40 AM in response to Geordon

Here is an official response from REAL VNC:


VNC Enterprise Edition is currently not compatible with OS X Lion...

To ensure you continue to have the best experience when using VNC Enterprise Edition on a Mac we recommend that you refrain from updating to OS X Lion until Enterprise Edition version 4.6.2 is available.


http://www.realvnc.com/company/press/news/lion-information.html

Jul 26, 2011 10:49 AM in response to Ricky Yu

They are perhaps correct in the sense of achieving FULL compatibility, but I was able to get it working.


"VNC/SCREEN SHARING IS BROKEN with Remote Management"


That's a correct statement - I think.


I was able to connect from the Real VNC viewer on a win7 box, via lan to my mini, via Screen Sharing.


I went through a ton of possible configurations, but what finally worked was closing the ARD app on the mini.


Then I was able to connect without issue.


After I connect via VNC, I can then start ARD and it works fine as well.


I think the problem is that while they can both use the same port, either the app or the os is having a hissy fit over it.

Jul 27, 2011 5:14 AM in response to Geordon

OK! Following advice from another thread:


1. DELETE ARDAgent 3.5.1 (HDD > System > Library > CoreServices > Remote Management)


2. Copied ARDAgent 3.4 (available through Apple's own Support Download section)


3. Restart machine



AND Screen Sharing WORKS between my OS X Lion machines! NO WAY will I be installing ANY update of Remote Desktop Client Update from Apple EVER again!

Jul 28, 2011 1:21 AM in response to boymilo

Here is the link mate. Enjoy!


http://support.apple.com/kb/DL1350



Instructions by tchaga:


1. Download ARD 3.4 (RemoteDesktopClient.dmg), mount it, look inside the package/Contents, copy the Archive.pax.gz to the desktop.


2. Expand the Archive.pax.gz and navigate inside the resulting folder Archive to /System/Library/CoreServices/RemoteManagement


3. Navigate to the same folder at the root of your HD (i.e. HD/System/Library/CoreServices/RemoteManagement)


4. Copy ARDAgent from your HD/System/Library/CoreServices/RemoteManagement to the Desktop and then delete it from the HD/System/Library/CoreServices/RemoteManagement folder (you need admin password).


5. Copy ARDAgent from Archive/System/Library/CoreServices/RemoteManagement to HD/System/Library/CoreServices/RemoteManagement (you need admin password again).


6. Restart


Message was edited by: Reubania

Lion broke screen sharing, VNC?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.