System Server is terminated after Login Window

Hi, I must have misconfigured something, maybe you have a hint for me where to look in the configuration.

My problem is this:
I boot my machine, Vine System Server is listening on port 5901. I connect to my machine with SSH and then connect to the machine with UltraVNC from a windows client.
This part is working, I get the common mac user login screen.
I enter my username and password, and after hitting the enter key, UltraVNC quits and I am no longer able to reconnect with UltraVNC.

The VineServer log states, the moment I do the login in the Login Window, VineServer is terminated and restarted, trying to again use port 5901 which is already in use.

The solution for the moment is, to explicitely kill all VineServer processes manually with the kill command, VineServer then automatically restarts an I again can connect with UltraVNC.

I appreciate any hint you have…

Attachched you find the log messages:

2008-09-17 13:55:10.390 OSXvnc-server[207:20b] Waiting for clients
2008-09-17 13:55:10.391 OSXvnc-server[207:2203] Using Private Event Source
Wed Sep 17 13:55:10 localhost OSXvnc-server[207] : 3891612: ( connectAndCheck) Untrusted apps are not allowed to connect to or launch Window S erver before login.
Wed Sep 17 13:55:10 localhost OSXvnc-server[207] : Window Ser ver is not available.
Wed Sep 17 13:55:10 localhost OSXvnc-server[207] : Window Ser ver is not available.
Wed Sep 17 13:55:10 localhost OSXvnc-server[207] : CGSCreateE ventSourceState: cannot resolve shmem.

2008-09-17 13:55:10.393 OSXvnc-server[207:2203] No Event Source – Using 10.3 AP I
2008-09-17 13:55:10.393 OSXvnc-server[207:2203] Using Dynamic Event Tap – HID f or console user
2008-09-17 13:55:10.394 OSXvnc-server[207:340f] IPv6: Started Listener Thread on port 5901
2008-09-17 13:55:10.395 OSXvnc-server[207:2203] Started Listener Thread on port 5901
2008-09-17 13:58:09.119 OSXvnc-server[207:340f] New IPv6 Client Notification - NewRFBClient
2008-09-17 13:58:09.121 OSXvnc-server[207:20b] Error obtaining CGSConnection (268435459)
2008-09-17 13:58:09.312 OSXvnc-server[207:3703] Protocol version 3.4
2008-09-17 13:58:09.312 OSXvnc-server[207:3703] Ignoring minor version mismatch
2008-09-17 13:58:09.541 OSXvnc-server[207:20b] Error obtaining CGSConnection (268435459)
2008-09-17 13:58:09.541 OSXvnc-server[207:20b] Error obtaining cursor data - cursor not sent
Wed Sep 17 13:58:09 it-specialist.local OSXvnc-server[207] : CGSLookupServerPort: _CGSSessionDeathWatchPort(gSessionPort) returns 268435459
2008-09-17 13:58:09.583 OSXvnc-server[207:20b] Error obtaining CGSConnection (268435459)
2008-09-17 13:58:09.618 OSXvnc-server[207:20b] Error obtaining CGSConnection (268435459)
2008-09-17 13:58:09.652 OSXvnc-server[207:20b] Error obtaining CGSConnection (268435459)
2008-09-17 13:58:09.686 OSXvnc-server[207:20b] Error obtaining CGSConnection (268435459)
2008-09-17 13:58:09.719 OSXvnc-server[207:20b] Error obtaining CGSConnection (268435459)
2008-09-17 13:58:09.753 OSXvnc-server[207:20b] Error obtaining CGSConnection (268435459) – giving up
2008-09-17 13:58:10.682 OSXvnc-server[207:3703] Pixel format for client 0.0.0.0:
2008-09-17 13:58:10.682 OSXvnc-server[207:3703] 8 bpp, depth 8
2008-09-17 13:58:10.683 OSXvnc-server[207:3703] true colour: max r 7 g 7 b 3, shift r 0 g 3 b 6
2008-09-17 13:58:10.716 OSXvnc-server[207:3703] ENCODING: ZRLE for client 0.0.0.0
2008-09-17 13:58:10.716 OSXvnc-server[207:3703] ULTRA Encoding not supported(ignored): 9 (9)
2008-09-17 13:58:10.837 OSXvnc-server[207:3703] Using compression level 6 for client 0.0.0.0
2008-09-17 13:58:10.875 OSXvnc-server[207:3703] Enabling Cursor Shape protocol extension for client 0.0.0.0
2008-09-17 13:58:10.891 OSXvnc-server[207:3703] Enabling Cursor Position protocol extension for client 0.0.0.0
2008-09-17 13:58:10.891 OSXvnc-server[207:3703] Using jpeg image quality level 6 for client 0.0.0.0
2008-09-17 13:58:10.916 OSXvnc-server[207:3703] Unknown Encoding Type(ignored): 4294901766 (FFFF0006)
2008-09-17 13:58:10.939 OSXvnc-server[207:3703] Enabling LastRect protocol extension for client 0.0.0.0
2008-09-17 13:58:10.939 OSXvnc-server[207:3703] Enabling Dynamic Desktop Sizing for client 0.0.0.0
2008-09-17 13:58:11.652 OSXvnc-server[207:3703] Client Connected - Registering Screen Update Notification
2008-09-17 13:58:35.443 OSXvnc-server[207:20b] OSXvnc-server received signal: 15
2008-09-17 13:58:35.444 OSXvnc-server[207:20b] Unloading Tiger Extensions
2008-09-17 13:58:35.444 OSXvnc-server[207:20b] Unloading Jaguar Extensions
2008-09-17 13:58:35.446 OSXvnc-server[207:20b] Removing Observers
2008-09-17 13:58:35.447 OSXvnc-server[207:20b] RFB Shudown Complete
2008-09-17 13:58:35.741 OSXvnc-server[267:20b] Arguments: -rfbport 5901 -desktop it-specialist -rfbnoauth -localhost -SystemServer 1 -alwaysshared -allowsleep -restartonuserswitch N -UnicodeKeyboard 0 -keyboardLoading Y -pressModsForKeys Y -EventTap 3 -swapButtons -rendezvous N
2008-09-17 13:58:35.743 OSXvnc-server[267:20b] Warning: No Auth specified, running with no password protection
2008-09-17 13:58:35.744 OSXvnc-server[267:20b] Main Bundle: /Library/Application Support/VineServer
2008-09-17 13:58:35.986 OSXvnc-server[267:20b] Loading Bundle /Library/Application Support/VineServer/Resources/TigerBundle.bundle
2008-09-17 13:58:35.989 OSXvnc-server[267:20b] Loading Bundle /Library/Application Support/VineServer/Resources/JaguarBundle.bundle
2008-09-17 13:58:35.992 OSXvnc-server[267:20b] Keyboard Loading - Enabled
2008-09-17 13:58:35.992 OSXvnc-server[267:20b] Press Modifiers For Keys - Enabled
2008-09-17 13:58:36.651 OSXvnc-server[267:20b] Keyboard Detected: German (Type:2) - Loading Keys
2008-09-17 13:58:36.652 OSXvnc-server[267:20b] Loading 56 XKeysym Special Keys
2008-09-17 13:58:36.654 OSXvnc-server[267:20b] Running in Little Endian
2008-09-17 13:58:36.656 OSXvnc-server[267:20b] Waiting for clients
2008-09-17 13:58:36.656 OSXvnc-server[267:2503] Using Private Event Source
2008-09-17 13:58:36.657 OSXvnc-server[267:2503] Using Dynamic Event Tap – HID for console user
2008-09-17 13:58:36.658 OSXvnc-server[267:3807] IPv6: Failed to Bind Socket: Port 5901 may be in use by another VNC
2008-09-17 13:58:36.659 OSXvnc-server[267:2503] Started Listener Thread on port 5901

So most of that behavior is as expected. The trick is that when a user logs in another Vine Server should be started (under the user’s login session) that is on port 5901 that you should be able to connect to. Can you verify if the other VNC (owned by the newly logged in user) is running and what it’s status is?

Thank you for your quick answer.

Would you be so kind telling me how to determine the status of the other Vine Server?

The above snippet of the log is everything I get. If I try to connect to my machine with UltraVNC I get the following error: see attached image

The strange Thing is, that I still can telnet to port 5901…

That protocol message usually indicates you are connecting to ARD but that only ever runs on port 5900. What do you get when you telnet to port 5901?
For Vine Server It should be:

RFB 003.008

exactly

That seems really strange then that you can’t get logged in with UltraVNC because clearly the server is up and connecting. I wonder if it’s having a problem reading the password file. Can you look at the processes that are running which should include the path to the password file and then make sure that file is READABLE by the user you are login in as?

btw: I just tried using UltraVNC 1.0.5 on Windows XP, now UltraVNC just quits without any message…

can you give me a hint, where to look for the password files?

would anybody be so kind giving me a hint on this?