Voilà plusieurs fois que je rencontre ce problème sur un mac mini avec OSX 10.6.8 server.
Lorsque je tente d’ouvrir une session VNC, il me demande le login/password puis plus rien…
Je vous partage donc ma solution trouvée après quelques recherches
Lors de ma tentative de connexion, en regardant dans les logs je trouve ces lignes :
Nov 8 11:54:53 monserveur AppleVNCServer[40429]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged. Nov 8 11:54:53 monserveur com.apple.RemoteDesktop.agent[40417]: Tue Nov 8 11:54:53 monserveur.local AppleVNCServer[40429] <Error>: kCGErrorIllegalArgument: CGSGetDisplayBounds (display ff000000) Nov 8 11:54:53 monserveur com.apple.RemoteDesktop.agent[40417]: Tue Nov 8 11:54:53 monserveur.local AppleVNCServer[40429] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
Après quelques recherches sur le net, il semblerait que cela provienne d’une confusion entre les sessions ouvertes sur la machine…
Pour régler le problème on repère toutes les sessions ouvertes par l’utilisateur root (UID 0) et on kill :
ps -axl | grep loginwindow
0 88 1 80004004 0 50 0 2504220 5472 - Ss 80f72a0 ?? 0:15.10 /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow console
0 1052 136 80004004 0 50 0 2503692 5444 - Ss 9cfb7e0 ?? 0:15.95 /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow
0 1138 136 80004004 0 50 0 2503692 5424 - Ss 80e42a0 ?? 0:15.95 /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow
0 1167 136 80004004 0 50 0 2503692 5432 - Ss 8252a80 ?? 0:15.50 /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow
0 1481 136 80004004 0 50 0 2504716 5440 - Ss 1517da80 ?? 0:15.88 /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow
0 2963 136 80004004 0 50 0 2504716 5480 - Ss 1517d7e0 ?? 0:15.60 /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow
0 33210 136 80004004 0 50 0 2476016 5412 - Ss 154877e0 ?? 0:15.54 /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow
501 40687 39819 6 0 31 0 2435548 296 - R+ 9cfb540 ttys000 0:00.00 grep loginwindow
Dans mon cas il n’y a que des sessions ouvertes par l’utilisateur root donc on va toutes les killer sauf celle ouverte avec le terminal
(la première ligne ou il est noté « console » à la fin :
sudo kill -9 1052 sudo kill -9 1138 sudo kill -9 1167 ...
Ensuite on redémarre le service VNC :
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -restart -agent
Et le tour est joué, il devrait maintenant être possible de se connecter à nouveau via VNCserver
Partager sur :