Unable to connect when logged out 10.7 4.0b

This may be known issue since it’s a beta and I’m grateful it works as well as it does, however I am unable to connect to any Mac running Lion whenever the computer is logged out. I was able to do this with the older versions of OS X. Is this a known issue, or am I doing something wrong? When I try to connect, it starts and then the host closes the connection. Here is what I have:

  • Screen sharing is off
  • System server running
  • I’ve tried several clients, 32-bit color and non 32-bit color
  • Works fine when logged in

The most pertinent info I can find in the log is this:

OSXvnc-server: 3891612: (connectAndCheck) Untrusted apps are not allowed to connect to or launch Window Server before login.
OSXvnc-server: Window Server is not available.

It sounds like something isn’t installed properly with permissions. You might try to “repair permissions” on your drive and then you might need to remove the OSXvnc startup service and re-install it.

I was having this same issue testing the System Server on a 10.7.3 MacBook with version 4 beta of Vine.

I tried repairing permissions but that didn’t fix it. I ended up reformatting the computer using a 10.7.1 image we have, updating it using Software Update to 10.7.3 and then reinstalling the Vine 4 beta System Server and it now works properly.

I can reboot the Mac and remote out to it while it’s at the login screen using my VNC viewer on my PC (UltraVNC)

I’m having the same problem. VNC works fine if someone is logged in. But if noone is logged in then the VNC connections fails to start.

I use:

  • Mac OS 10.7.4
  • Vine Server 4.0Beta (1109201627)
  • Chicken of the VNC 2.0b4 as client on Mac OS 10.7.4

I have started the Vine Server as root on the command line in order to get more log information. Here it is:

sh-3.2# /Applications/Vine\ Server.app/OSXvnc-server
2012-06-07 17:32:10.327 OSXvnc-server[783:707] Arguments:
2012-06-07 17:32:10.328 OSXvnc-server[783:707] Main Bundle: /Applications/Vine Server.app
2012-06-07 17:32:10.329 OSXvnc-server[783:707] Loading Bundle /Applications/Vine Server.app/Contents/Resources/TigerBundle.bundle
Jun 7 17:32:10 macmini500.sec.intern OSXvnc-server[783] : 3891612: (connectAndCheck) Untrusted apps are not allowed to connect to or launch Window Server before login.
Jun 7 17:32:10 macmini500.sec.intern OSXvnc-server[783] : kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
2012-06-07 17:32:10.335 OSXvnc-server[783:707] Running in Little Endian
2012-06-07 17:32:10.335 OSXvnc-server[783:707] Pasteboard Inaccessible - Pasteboard sharing disabled
2012-06-07 17:32:10.335 OSXvnc-server[783:707] Waiting for clients
2012-06-07 17:32:10.335 OSXvnc-server[783:2713] Using Private Event Source
Jun 7 17:32:10 macmini500.sec.intern OSXvnc-server[783] : Window Server is not available.
Jun 7 17:32:10 macmini500.sec.intern OSXvnc-server[783] : Window Server is not available.
Jun 7 17:32:10 macmini500.sec.intern OSXvnc-server[783] : CGSCreateEventSourceState: cannot resolve shmem.
2012-06-07 17:32:10.336 OSXvnc-server[783:2713] No Event Source – Using 10.3 API
2012-06-07 17:32:10.336 OSXvnc-server[783:2713] Unable to get session dictionary.
2012-06-07 17:32:10.336 OSXvnc-server[783:2713] Using Smart Event Tap – Session for off-screen user
2012-06-07 17:32:10.337 OSXvnc-server[783:2713] Started Listener Thread on port 5900
2012-06-07 17:32:17.136 OSXvnc-server[783:707] Error obtaining CGSConnection (1000)
_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
2012-06-07 17:32:17.182 OSXvnc-server[783:707] Error obtaining CGSConnection (1000)
2012-06-07 17:32:17.217 OSXvnc-server[783:707] Error obtaining CGSConnection (1000)
2012-06-07 17:32:17.251 OSXvnc-server[783:707] Error obtaining CGSConnection (1000)
2012-06-07 17:32:17.286 OSXvnc-server[783:707] Error obtaining CGSConnection (1000)
2012-06-07 17:32:17.321 OSXvnc-server[783:707] Error obtaining CGSConnection (1000)
2012-06-07 17:32:17.356 OSXvnc-server[783:707] Error obtaining CGSConnection (1000)
2012-06-07 17:32:17.390 OSXvnc-server[783:2007] Protocol version 3.8
2012-06-07 17:32:17.391 OSXvnc-server[783:707] Error obtaining CGSConnection (1000) – giving up

This Apple page suggest that there might be an error in the application if the message “Untrusted apps are not allowed to connect to or launch Window Server before login” appears:
http://developer.apple.com/library/mac/#technotes/tn2083/_index.html

Kind regards
Tilo Kienitz

This seems to be fixed in Beta 2. I’m no longer having the issue after the update.

Thank you!!