Xlib: connection to ":0.0" refused by server

You can report problems, make suggestions, about the new BETA versions in this forum. For stuff related to final releases, please post a message in other forums
n8bounds
Posts: 59
Joined: 24 Oct 2008, 13:39
Contact:

Xlib: connection to ":0.0" refused by server

Postby n8bounds » 08 Jan 2009, 20:56

I get the following error since 1.1.4, persisting even unto 1.1.5-beta2:

Code: Select all

[email protected] /root % gparted
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


(gpartedbin:8123): Gtk-WARNING **: cannot open display: :0.0
[email protected] /root %


This error occurs from the terminal emulator in the X session. This error occurs even for geany. This error occurs by issuing commands, like above, and also when attempting to use the buttons along the bottom.

This is with the following boot parameters (over pxe):

Code: Select all

LABEL 0 #Sysrcd Full Featured Kernel
  kernel sysresccd/rescuecd
  append initrd=sysresccd/initram.igz init=/linuxrc scandelay=5 netboot=http://192.168.1.29/pxe/sysrcd.dat setkmap=us dodhcp dostartx rootpass=linux ar_nowait ar_source=http://192.168.1.29/scripts/ ar_nodel autoruns=0 vncserver=1:linux


If I kill X and startx and attempt it again, it works just fine. Randomly, it works without having to restart X, but very infrequently. This happens on a variety of hardware platforms, with or without the vncserver started as a kernel option and with or without the vesa driver. This is with unmodified initram fs and dat files. The autorun script only mounts an NFS share.

Here is the last 50 lines of the messages file:

Code: Select all

Jan  8 15:42:25 sysresccd AX.25: bpqether driver version 004
Jan  8 15:42:25 sysresccd eth0: link up
Jan  8 15:42:25 sysresccd ata1: port disabled. ignoring.
Jan  8 15:42:25 sysresccd ata1: EH complete
Jan  8 15:42:25 sysresccd aufs test_add:432:mount[5011]: uid/gid/perm /squashfs 0/0/0755, 0/0/01777
Jan  8 15:42:27 sysresccd warning: process `hwsetup' used the deprecated sysctl system call with 1.23.
Jan  8 15:42:36 sysresccd ACPI: I/O resource piix4_smbus [0x1040-0x1047] conflicts with ACPI region SMB_ [0x1040-0x104b]
Jan  8 15:42:36 sysresccd ACPI: Device needs an ACPI driver
Jan  8 15:42:36 sysresccd piix4_smbus 0000:00:07.3: Host SMBus controller not enabled!
Jan  8 15:42:36 sysresccd parport_pc 00:08: reported by Plug and Play ACPI
Jan  8 15:42:36 sysresccd parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
Jan  8 15:42:36 sysresccd NET3 PLIP version 2.4-parport [email protected]
Jan  8 15:42:36 sysresccd plip0: Parallel port at 0x378, using IRQ 7.
Jan  8 15:42:36 sysresccd ppdev: user-space parallel port driver
Jan  8 15:42:36 sysresccd Fusion MPT base driver 3.04.07
Jan  8 15:42:36 sysresccd Copyright (c) 1999-2008 LSI Corporation
Jan  8 15:42:36 sysresccd Fusion MPT SPI Host driver 3.04.07
Jan  8 15:42:36 sysresccd mptspi 0000:00:10.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
Jan  8 15:42:36 sysresccd mptbase: ioc0: Initiating bringup
Jan  8 15:42:36 sysresccd ioc0: LSI53C1030 B0: Capabilities={Initiator}
Jan  8 15:42:36 sysresccd scsi2 : ioc0: LSI53C1030 B0, FwRev=00000000h, Ports=1, MaxQ=128, IRQ=17
Jan  8 15:42:37 sysresccd input: Power Button (FF) as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
Jan  8 15:42:37 sysresccd ACPI: Power Button (FF) [PWRF]
Jan  8 15:42:37 sysresccd input: Sleep Button (CM) as /devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input4
Jan  8 15:42:37 sysresccd ACPI: Sleep Button (CM) [SLPB]
Jan  8 15:42:37 sysresccd ACPI: AC Adapter [ACAD] (on-line)
Jan  8 15:42:38 sysresccd rc-scripts: PCMCIA disabled via cmdline ...
Jan  8 15:42:38 sysresccd rc-scripts: Skipping DHCP broadcast ...
Jan  8 15:42:40 sysresccd rc-scripts: Skipping ALSA detection ...
Jan  8 15:42:47 sysresccd NET: Registered protocol family 10
Jan  8 15:42:47 sysresccd lo: Disabled Privacy Extensions
Jan  8 15:42:47 sysresccd sshd[7301]: Server listening on :: port 22.
Jan  8 15:42:47 sysresccd sshd[7301]: Server listening on 0.0.0.0 port 22.
Jan  8 15:42:47 sysresccd eth0: duplicate address detected!
Jan  8 15:42:48 sysresccd md: Autodetecting RAID arrays.
Jan  8 15:42:48 sysresccd md: Scanned 0 and added 0 devices.
Jan  8 15:42:48 sysresccd md: autorun ...
Jan  8 15:42:48 sysresccd md: ... autorun DONE.
Jan  8 15:42:49 sysresccd dhcpcd[7415]: eth0: dhcpcd 4.0.2 starting
Jan  8 15:42:49 sysresccd dhcpcd[7415]: eth0: broadcasting for a lease
Jan  8 15:42:49 sysresccd dhcpcd[7415]: eth0: offered 192.168.0.249 from 192.168.1.29
Jan  8 15:42:49 sysresccd dhcpcd[7415]: eth0: checking 192.168.0.249 is available on attached networks
Jan  8 15:42:54 sysresccd dhcpcd[7415]: eth0: acknowledged 192.168.0.249 from 192.168.1.29
Jan  8 15:42:54 sysresccd dhcpcd[7415]: eth0: leased 192.168.0.249 for 86400 seconds
Jan  8 15:43:07 sysresccd rpc.statd[7671]: Version 1.1.3 Starting
Jan  8 15:43:07 sysresccd rpc.statd[7671]: Flags:
Jan  8 15:43:08 sysresccd RPC: Registered udp transport module.
Jan  8 15:43:08 sysresccd RPC: Registered tcp transport module.
Jan  8 15:48:32 sysresccd sshd[8134]: Accepted keyboard-interactive/pam for root from 192.168.0.50 port 41675 ssh2
Jan  8 15:48:32 sysresccd sshd[8134]: pam_unix(sshd:session): session opened for user root by (uid=0)


Please let me know how I can help. Thanks,
Nathan

sander
Posts: 7
Joined: 16 Nov 2008, 18:52

Postby sander » 10 Jan 2009, 07:48

I'm getting this same error, but one thing I notice is that this happens only in the X session started by the "dostartx" boot parameter.

This session is having more problems: none of the buttons/menu entries that are supposed to start a program work. This also seems to be caused by refused connections, see /var/log/startx2.log:

Code: Select all

xauth:  creating new authority file /root/.serverauth.5902


X.Org X Server 1.4.2
Release Date: 11 June 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.25.19-x64-fd11 i686
Xlib: connection to ":0.0" refused by server

Xlib: No protocol specified


giving up.

xinit:  unable to connect to X server

xinit:  No such process (errno 3):  Server error.
ttp://wiki.x.org
   to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Jan 10 08:31:03 2009
(EE) Unable to locate/open config file
New driver is "i810"
(==) Using default built-in configuration (55 lines)
(EE) Failed to load module "extmod" (module does not exist, 0)
(EE) Failed to load module "dbe" (module does not exist, 0)
(EE) Failed to load module "glx" (module does not exist, 0)
(EE) Failed to load module "record" (module does not exist, 0)
(EE) Failed to load module "dri" (module does not exist, 0)
(EE) Failed to load module "vga" (module does not exist, 0)
(WW) intel: No matching Device section for instance (BusID PCI:0:2:1) found
(EE) open /dev/fb0: No such file or directory
(II) Module "ddc" already built-in
(II) Module "i2c" already built-in
(II) Module "ramdac" already built-in
AUDIT: Sat Jan 10 08:31:17 2009: 5987 Xorg: client 4 rejected from local host (uid 0)
AUDIT: Sat Jan 10 08:33:06 2009: 5987 Xorg: client 4 rejected from local host (uid 0)
AUDIT: Sat Jan 10 08:33:08 2009: 5987 Xorg: client 4 rejected from local host (uid 0)
AUDIT: Sat Jan 10 08:33:09 2009: 5987 Xorg: client 4 rejected from local host (uid 0)
AUDIT: Sat Jan 10 08:33:09 2009: 5987 Xorg: client 4 rejected from local host (uid 0)
AUDIT: Sat Jan 10 08:33:10 2009: 5987 Xorg: client 4 rejected from local host (uid 0)
AUDIT: Sat Jan 10 08:35:06 2009: 5987 Xorg: client 4 rejected from local host (uid 0)
AUDIT: Sat Jan 10 08:35:31 2009: 5987 Xorg: client 4 rejected from local host (uid 0)
AUDIT: Sat Jan 10 08:35:58 2009: 5987 Xorg: client 4 rejected from local host (uid 0)
AUDIT: Sat Jan 10 08:36:57 2009: 5987 Xorg: client 4 rejected from local host (uid 0)
AUDIT: Sat Jan 10 08:37:05 2009: 5987 Xorg: client 4 rejected from local host (uid 0)
AUDIT: Sat Jan 10 08:37:23 2009: 5987 Xorg: client 4 rejected from local host (uid 0)


waiting for X server to shut down FreeFontPath: FPE "/usr/share/fonts/misc/" refcount is 2, should be 1; fixing.


I followed this file using "tail -f /var/log/startx2.log", and these AUDIT lines appear when I try to start a program either by pressing one of the buttons or by selecting a menu entry.

Also notice the "giving up" at the top of /var/log/startx.log.

Exiting this initial "dostartx" X session by pressing ctrl-alt-backspace and starting a new one by typing "startx" seems to fix this for me (I'm typing this from a manually started X session on 1.1.5-beta3).

sander
Posts: 7
Joined: 16 Nov 2008, 18:52

Postby sander » 11 Jan 2009, 11:06

Same problem with 1.1.5-beta4

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Postby admin » 14 Jan 2009, 08:02

Is it always working when you start Xorg by hand ? Is sysresccd-1.1.3 the last version to work ?

Can you check the value of $DISPLAY in your shell, and compare it when it works and when it fails. You can also compare the whole environment using env.

You can try to add a "sleep 10" in /bin/bashlogin before startx is executed just to see if it's a race condition. For instance, Xorg may need something to be initialized in the background and it depends on how much time it takes.

n8bounds
Posts: 59
Joined: 24 Oct 2008, 13:39
Contact:

Postby n8bounds » 26 Jan 2009, 20:21

Unfortunately, I'm not sure exactly when the problem started. I'm going to grab the latest beta and do some testing..

n8bounds
Posts: 59
Joined: 24 Oct 2008, 13:39
Contact:

Postby n8bounds » 27 Jan 2009, 13:08

Here's the output of env when it boots to a black X screen:

Code: Select all

USER=root
LOGNAME=root
HOME=/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i486-pc-linux-gnu/gcc-bin/4.2.4
MAIL=/var/mail/root
SHELL=/bin/zsh
SSH_CLIENT=192.168.1.29 41315 22
SSH_CONNECTION=192.168.1.29 41315 192.168.0.244 22
SSH_TTY=/dev/pts/0
TERM=xterm
SHLVL=1
PWD=/root
OLDPWD=/root
CONFIG_PROTECT_MASK=/etc/udev/rules.d /etc/fonts/fonts.conf /etc/terminfo /etc/ca-certificates.conf /etc/revdep-rebuild
CVS_RSH=ssh
GCC_SPECS=
GDK_USE_XFT=1
INFOPATH=/usr/share/info:/usr/share/binutils-data/i486-pc-linux-gnu/2.18/info:/usr/share/gcc-data/i486-pc-linux-gnu/4.2.4/info
LANG=en_US.UTF-8
LESS=-R -M --shift 5
LESSOPEN=|lesspipe.sh %s
LIBGL_DRIVERS_PATH=/usr/lib/dri
MANPATH=/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i486-pc-linux-gnu/2.18/man:/usr/share/gcc-data/i486-pc-linux-gnu/4.2.4/man
OPENGL_PROFILE=xorg-x11
PAGER=/usr/bin/less
EDITOR=/bin/nano
LS_COLORS=no=00:fi=00:di=01;34:ln=01;35:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:ex=01;32:*.btm=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.gz=01;31:*.bz2=01;31:*.zip=01;31:*.rar=01;31:*.7z=01;31:*.ace=01;31:*.dar=01;31:*.lzo=01;31:*.tbz2=01;31:*.deb=01;35:*.rpm=01;35:*.htm=01;36:*.php=01;36:*.php3=01;36:*.html=01;36:*.c=04;43;30:*.cpp=04;43;30:*.h=00;43;30:*.hpp=00;43;30:
LD_LIBRARY_PATH=/usr/lib/gcc/i486-pc-linux-gnu/4.2.4
HISTSIZE=512
_=/usr/bin/env


Here's the env after a simple xserver zap (when everything seems fine):

Code: Select all

USER=root
LOGNAME=root
HOME=/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i486-pc-linux-gnu/gcc-bin/4.2.4
MAIL=/var/mail/root
SHELL=/bin/zsh
SSH_CLIENT=192.168.1.29 41315 22
SSH_CONNECTION=192.168.1.29 41315 192.168.0.244 22
SSH_TTY=/dev/pts/0
TERM=xterm
SHLVL=1
PWD=/root
OLDPWD=/root
CONFIG_PROTECT_MASK=/etc/udev/rules.d /etc/fonts/fonts.conf /etc/terminfo /etc/ca-certificates.conf /etc/revdep-rebuild
CVS_RSH=ssh
GCC_SPECS=
GDK_USE_XFT=1
INFOPATH=/usr/share/info:/usr/share/binutils-data/i486-pc-linux-gnu/2.18/info:/usr/share/gcc-data/i486-pc-linux-gnu/4.2.4/info
LANG=en_US.UTF-8
LESS=-R -M --shift 5
LESSOPEN=|lesspipe.sh %s
LIBGL_DRIVERS_PATH=/usr/lib/dri
MANPATH=/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i486-pc-linux-gnu/2.18/man:/usr/share/gcc-data/i486-pc-linux-gnu/4.2.4/man
OPENGL_PROFILE=xorg-x11
PAGER=/usr/bin/less
EDITOR=/bin/nano
LS_COLORS=no=00:fi=00:di=01;34:ln=01;35:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:ex=01;32:*.btm=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.gz=01;31:*.bz2=01;31:*.zip=01;31:*.rar=01;31:*.7z=01;31:*.ace=01;31:*.dar=01;31:*.lzo=01;31:*.tbz2=01;31:*.deb=01;35:*.rpm=01;35:*.htm=01;36:*.php=01;36:*.php3=01;36:*.html=01;36:*.c=04;43;30:*.cpp=04;43;30:*.h=00;43;30:*.hpp=00;43;30:
LD_LIBRARY_PATH=/usr/lib/gcc/i486-pc-linux-gnu/4.2.4
HISTSIZE=512
_=/usr/bin/env


...they are both exactly the same.....

n8bounds
Posts: 59
Joined: 24 Oct 2008, 13:39
Contact:

Postby n8bounds » 27 Jan 2009, 13:09

Well crap, I just realized that my ssh session wasn't capturing the $DISPLAY variable....

n8bounds
Posts: 59
Joined: 24 Oct 2008, 13:39
Contact:

Postby n8bounds » 27 Jan 2009, 13:23

Here are some scrots. (Click for larger versions.)

Initial boot:
Image

xserver zap:
Image

after a startx:
Image

russk
Posts: 2
Joined: 26 Feb 2016, 23:47

Re: Xlib: connection to ":0.0" refused by server

Postby russk » 26 Feb 2016, 23:53

I realize this is a very old thread but I encountered this error yesterday and thought I would post my solution.

I was able to open windows, until I joined a wifi network. From then I was getting this error.
I finally realized that the hostname was changing after getting an IP address from the router.

So I executed this command:

Code: Select all

# hostname sysresccd


Since that was the original hostname, I was then able to open windows again.


Return to “Beta versions (report a bug found in a beta)”

Who is online

Users browsing this forum: No registered users and 4 guests