Date: Wed, 21 Nov 2007 14:50:29 +0100 From: Laszlo Nagy <gandalf@shopzeus.com> To: freebsd-questions@freebsd.org Subject: Re: gdm-binary: Unable to connect to socket: hostname nor servname provided Message-ID: <474437A5.5050608@shopzeus.com> In-Reply-To: <47430D88.6000405@shopzeus.com> References: <47430D88.6000405@shopzeus.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Laszlo Nagy wrote: > > Hi All, > > Do you have any idea what is the problem with my settings? gdm places > this message in /var/log/messages: Here is another test: cassiopeia# /usr/local/etc/rc.d/gdm start Starting gdm. gdm-binary[86504]: DEBUG: Attempting to parse key string: daemon/ServAuthDir=/var/gdm cassiopeia# tail -100 /var/log/messages Nov 21 09:32:37 cassiopeia gdm-binary[86464]: DEBUG: gdm_slave_quick_exit: Killed everything from the display Nov 21 09:41:14 cassiopeia gdm-binary[86504]: DEBUG: Attempting to parse key string: daemon/ServAuthDir=/var/gdm Nov 21 09:41:14 cassiopeia gdm-binary[86504]: DEBUG: gdm_main: Here we go... Nov 21 09:41:14 cassiopeia gdm-binary[86504]: DEBUG: Attempting to parse key string: xdmcp/Enable=false Nov 21 09:41:14 cassiopeia gdm-binary[86504]: DEBUG: Attempting to parse key string: daemon/ServAuthDir=/var/gdm Nov 21 09:41:14 cassiopeia gdm-binary[86504]: DEBUG: Attempting to parse key string: daemon/ServAuthDir=/var/gdm Nov 21 09:41:14 cassiopeia gdm-binary[86504]: DEBUG: gdm_start_first_unborn_local: Starting :0 Nov 21 09:41:14 cassiopeia gdm-binary[86504]: DEBUG: gdm_display_manage: Managing :0 Nov 21 09:41:14 cassiopeia gdm-binary[86504]: DEBUG: loop check: last_start 0, last_loop 0, now: 1195656074, retry_count: 0 Nov 21 09:41:14 cassiopeia gdm-binary[86504]: DEBUG: Resetting counts for loop of death detection Nov 21 09:41:14 cassiopeia gdm-binary[86504]: DEBUG: Forking slave process Nov 21 09:41:14 cassiopeia gdm-binary[86504]: DEBUG: gdm_display_manage: Forked slave: 86505 Nov 21 09:41:14 cassiopeia gdm-binary[86504]: DEBUG: Attempting to parse key string: xdmcp/Enable=false Nov 21 09:41:14 cassiopeia gdm-binary[86504]: DEBUG: Accepting XDMCP connections... Nov 21 09:41:14 cassiopeia gdm-binary[86504]: DEBUG: XDMCP: Start up on host cassiopeia.ronet, port 177 Nov 21 09:41:14 cassiopeia gdm-binary[86504]: ERROR: Unable to connect to socket: hostname nor servname provided, or not known aborting... Nov 21 09:41:14 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: xdmcp/PingIntervalSeconds=15 Nov 21 09:41:14 cassiopeia gdm-binary[86505]: DEBUG: gdm_slave_start: Starting slave process for :0 Nov 21 09:41:14 cassiopeia gdm-binary[86505]: DEBUG: gdm_slave_start: Loop Thingie Nov 21 09:41:14 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: xdmcp/PingIntervalSeconds=15 Nov 21 09:41:14 cassiopeia gdm-binary[86505]: DEBUG: Sending VT_NUM == -1 for slave 86505 Nov 21 09:41:24 cassiopeia gdm-binary[86505]: DEBUG: Timeout occurred for sending message VT_NUM 86505 -1 Nov 21 09:41:24 cassiopeia gdm-binary[86505]: DEBUG: gdm_server_start: :0 Nov 21 09:41:24 cassiopeia gdm-binary[86505]: DEBUG: gdm_auth_secure_display: Setting up access for :0 Nov 21 09:41:24 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: daemon/ServAuthDir=/var/gdm Nov 21 09:41:24 cassiopeia gdm-binary[86505]: DEBUG: gdm_auth_secure_display: Setting up access Nov 21 09:41:24 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: debug/Enable=false Nov 21 09:41:24 cassiopeia gdm-binary[86505]: DEBUG: gdm_auth_secure_display: Setting up access for :0 - 1 entries Nov 21 09:41:24 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: debug/Enable=false Nov 21 09:41:24 cassiopeia gdm-binary[86505]: DEBUG: Sending COOKIE == <secret> for slave 86505 Nov 21 09:41:34 cassiopeia gdm-binary[86505]: DEBUG: Timeout occurred for sending message COOKIE 86505 2... Nov 21 09:41:34 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: debug/Enable=false Nov 21 09:41:34 cassiopeia gdm-binary[86505]: DEBUG: Sending AUTHFILE == <secret> for slave 86505 Nov 21 09:41:44 cassiopeia gdm-binary[86505]: DEBUG: Timeout occurred for sending message AUTHFILE 86505 /var/gdm/:0.Xauth Nov 21 09:41:44 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: daemon/VTAllocation=true Nov 21 09:41:44 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: daemon/FirstVT=7 Nov 21 09:41:44 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: security/DisallowTCP=true Nov 21 09:41:44 cassiopeia gdm-binary[86505]: DEBUG: Forking X server process Nov 21 09:41:44 cassiopeia gdm-binary[86505]: DEBUG: gdm_server_spawn: Forked server on pid 86507 Nov 21 09:41:44 cassiopeia gdm-binary[86505]: DEBUG: do_server_wait: Before mainloop waiting for server Nov 21 09:41:44 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: daemon/GdmXserverTimeout=10 Nov 21 09:41:44 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: daemon/GdmXserverTimeout=10 Nov 21 09:41:44 cassiopeia gdm-binary[86507]: DEBUG: Attempting to parse key string: daemon/LogDir=/var/log/gdm Nov 21 09:41:44 cassiopeia gdm-binary[86507]: DEBUG: Attempting to parse key string: daemon/LogDir=/var/log/gdm Nov 21 09:41:44 cassiopeia gdm-binary[86507]: DEBUG: gdm_server_spawn: '/usr/local/bin/X :0 -audit 0 -auth /var/gdm/:0.Xauth vt9' Nov 21 09:41:44 cassiopeia gdm-binary[86505]: DEBUG: gdm_server_start: After mainloop waiting for server Nov 21 09:41:44 cassiopeia gdm-binary[86505]: DEBUG: gdm_server_start: Completed :0! Nov 21 09:41:44 cassiopeia gdm-binary[86505]: DEBUG: Sending VT_NUM == 9 for slave 86505 Nov 21 09:41:54 cassiopeia gdm-binary[86505]: DEBUG: Timeout occurred for sending message VT_NUM 86505 9 Nov 21 09:41:54 cassiopeia gdm-binary[86505]: DEBUG: Sending XPID == 86507 for slave 86505 ---- at this point, the X server is started but gdm greeter is not showing up. cassiopeia# /usr/local/etc/rc.d/gdm stop Stopping gdm. Waiting for PIDS: 86504, 86504, 86504, 86504, 86504, 86504, 86504^C --- cannot stop gdm normally, I have to kill it... cassiopeia# kill 86504 cassiopeia# kill 86504 cassiopeia# kill 86504 -- apparently, killing gdm does not work, I have to do this: cassiopeia# kill -9 86504 cassiopeia# kill -9 86504 86504: No such process -- After this point, the greeter window of gdm shows up on the screen. cassiopeia#tail -300 /var/log/messages Nov 21 09:42:04 cassiopeia gdm-binary[86505]: DEBUG: Timeout occurred for sending message XPID 86505 86507 Nov 21 09:42:04 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: daemon/AutomaticLogin= Nov 21 09:42:04 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: daemon/TimedLogin= Nov 21 09:42:04 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: daemon/AutomaticLoginEnable=false Nov 21 09:42:04 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: daemon/TimedLoginEnable=false Nov 21 09:42:04 cassiopeia gdm-binary[86505]: DEBUG: gdm_slave_run: Opening display :0 Nov 21 09:42:04 cassiopeia gdm-binary[86505]: DEBUG: gdm_slave_greeter: Running greeter on :0 Nov 21 09:42:04 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: daemon/DisplayInitDir=/usr/local/etc/gdm/Init Nov 21 09:42:04 cassiopeia gdm-binary[86505]: DEBUG: Forking extra process: /usr/local/etc/gdm/Init/Default Nov 21 09:42:04 cassiopeia gdm-binary[86515]: DEBUG: Attempting to parse key string: xdmcp/Enable=false Nov 21 09:42:04 cassiopeia gdm-binary[86515]: DEBUG: Attempting to parse key string: daemon/User=gdm Nov 21 09:42:04 cassiopeia gdm-binary[86515]: DEBUG: Attempting to parse key string: daemon/ServAuthDir=/var/gdm Nov 21 09:42:04 cassiopeia gdm-binary[86515]: DEBUG: Attempting to parse key string: daemon/RootPath=/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/local/bin:/usr/local/bin:/opt/X11R6/bin:${exec_prefix}/bin --- more unimportant messages, then, these are the last messages from this process: Nov 21 09:45:25 cassiopeia gdmlogin[86520]: CRITICAL: Using compiled in value <0> for <greeter/PositionY=0> Nov 21 09:45:25 cassiopeia gdmlogin[86520]: CRITICAL: Could not access configuration key <greeter/PreFetchProgram=> Nov 21 09:45:25 cassiopeia gdmlogin[86520]: CRITICAL: Using compiled in value <> for <greeter/PreFetchProgram=> Nov 21 09:45:25 cassiopeia gdmlogin[86520]: CRITICAL: Could not access configuration key <greeter/SetPosition=false> Nov 21 09:45:25 cassiopeia gdmlogin[86520]: CRITICAL: Using compiled in value <FALSE> for <greeter/SetPosition=false> Nov 21 09:45:25 cassiopeia gdm-binary[86505]: DEBUG: gdm_slave_wait_for_login: In loop Nov 21 09:45:25 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: daemon/TimedLogin= Nov 21 09:45:25 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: daemon/TimedLogin= Nov 21 09:45:25 cassiopeia gdm-binary[86505]: DEBUG: Looking up per display value for security/PamStack=gdm Nov 21 09:45:25 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: security/PamStack=gdm Nov 21 09:45:25 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: security/PamStack=gdm Nov 21 09:45:25 cassiopeia gdm-binary[86505]: DEBUG: Requesting group=security key=PamStack locale=(null) Nov 21 09:45:25 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: security/PamStack=gdm Nov 21 09:45:25 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: security/PasswordRequired=false If I comment out "Enable=true" from the [xdmcp] section in gdb/custom.conf then everything works fine. What is happening here? :-( Thanks Laszlo
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?474437A5.5050608>