LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   X server do not longer starts (https://www.linuxquestions.org/questions/linux-software-2/x-server-do-not-longer-starts-122226/)

restrepo 12-03-2003 05:10 AM

X server do not longer starts
 
Suddenly, after a normal reboot, the X server of my redhat 8.0 system, don't start all, but show me a ncurses screen which, in particular, display the following error:

_XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed_XSERVTransMakeAllCOTSServerListeners:

server already running Fatal server error:Cannot establish any listening sockets - Make sure an X server isn't already running

The two choices of either reconfigure the X server or kill it and launch
$ startx
do not work.

However
$ startx -- :1
from he console, launch properly the X server.

So, the workaround that I have found is just to change to runlevel 3 and exec startx -- :1 after login from the console. I should like the system running at runlevel 5, and ending with my usual gdm login screen, but until moment I have not found any solution.
I am tried all the ones which I have already found in the threads given by the properly google search: [list=a][*]remove /tmp/.X* and reboot [*]reinstall XFree86* and gdm[*] remove /tmp/ full contents and grep for X or xinit process and kill those. After that launch startx or reboot.[/list=a]

Thanks in advance
Diego Restrepo
restrepo_at_uv.es

restrepo 12-17-2003 08:34 AM

Another workaround was to change the display of gdm from 0 to 1. My runlevel 5 is again working after that

varadha 07-03-2004 03:55 PM

Hi,

This is my first post in this :Pengy: site. I tried to install mandrake 10.0 on my Dell laptop - as a dual-boot option. I have a few problems with the X server. Sorry that I could not post the complete XFree*.log - I am just quoting the reason for the Xserver crash as show on screen.

_XSERVTransSocketINETCreateListener: SocketCreateListener() failed
_XSERVTransMakeAllCOTSServersListeners:server already running.


Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running.


I tried your earlier work-arounds -
1) Delete /tmp/X*.
2) changing the display number - earlier it was :0 and changed to :1
3)checked the run-level in inittab - its 5 by default.
4) killed the running server - and restarted with :1

I deleted the file /tmp.. and started kdm, did a startx - but I get a blue screen (not plain - but with some darkish blue vertical columns..if this description really helps :))

Has someone encountered this b4 - and any ideas to fix it? The laptop specs are:

Inspiron 8600 - Pentium M 1.4 Ghz - WXGA - 1280 * 800 - Nvdia Ge Force - FX (32 MB).


Thanks.

R00ts 07-14-2004 11:01 PM

I am having the same error about cannot establish any listening sockets. I am running sarge debian and had this problem when I compiled my custom 2.6.6 kernel from source. My 2.4.25 kernel still works fine. I'm wondering if its some option I did/didn't select in the kernel configuration menu that is causing me this problem.

I found a FAQ about the error message here. After reading that guide, I tried a few different things:

Code:

#ps aux | grep `cat /tmp/.X0-lock`
Found that there were no such processes. I also did ls -la in the /tmp directory and found no other locks. Just to be safe I did

Code:

#rm -rf /tmp/.X0-lock
Then I did

Code:

#startx -- :1
And a screen loaded up, but it was just a plain screen with an X cursor in the middle which I couldn't even use with my (USB) mouse. When I did Ctrl+Alt+F1 I found that on the console an error message (forgot what they said exactly) was being printed out every 0.5 seconds. I forgot to try netstat -ln to make sure my 6000+ ports were not being used though. Any clue on how to fix this problem? I really want to get my new kernel working properly. :study:


All times are GMT -5. The time now is 06:41 PM.