Bitcoin Forum
May 05, 2024, 10:07:44 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Unable to launch bitcoin core - getting X11 connection broke: Maximum allowed...  (Read 1820 times)
hogo_fogo (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 1


View Profile
December 08, 2016, 11:55:01 PM
 #1

I've installed bitcoin core and it was running OK. We had an electric surge recently, consequently server running the wallet restarted. Now when I try to start bitcoin core wallet by "./bitcoin-qt" I get

QXcbConnection: Failed to initialize XRandr
Qt: XKEYBOARD extension not present on the X server.
The X11 connection broke: Maximum allowed requested length exceeded (code 4).
XIO:  fatal IO error 2 (No such file or directory) on X server ":10.0"

Thank you for your time.

Please help Smiley

1714946864
Hero Member
*
Offline Offline

Posts: 1714946864

View Profile Personal Message (Offline)

Ignore
1714946864
Reply with quote  #2

1714946864
Report to moderator
1714946864
Hero Member
*
Offline Offline

Posts: 1714946864

View Profile Personal Message (Offline)

Ignore
1714946864
Reply with quote  #2

1714946864
Report to moderator
Whoever mines the block which ends up containing your transaction will get its fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
cr1776
Legendary
*
Offline Offline

Activity: 4032
Merit: 1299


View Profile
December 09, 2016, 12:04:52 AM
 #2

I've installed bitcoin core and it was running OK. We had an electric surge recently, consequently server running the wallet restarted. Now when I try to start bitcoin core wallet by "./bitcoin-qt" I get

QXcbConnection: Failed to initialize XRandr
Qt: XKEYBOARD extension not present on the X server.
The X11 connection broke: Maximum allowed requested length exceeded (code 4).
XIO:  fatal IO error 2 (No such file or directory) on X server ":10.0"

Thank you for your time.

Please help Smiley



Which version? What OS and version? 😀
hogo_fogo (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 1


View Profile
December 09, 2016, 12:38:34 AM
 #3

Quote

Which version? What OS and version? 😀

Wallet: bitcoin-0.13.1
OS: 4.4.0-47-generic #68-Ubuntu SMP x86-64

Thank you for your reply
btc_enigma
Hero Member
*****
Offline Offline

Activity: 688
Merit: 565


View Profile
December 09, 2016, 06:34:29 AM
 #4

Seems like your server's X display didn't start properly. Do you have a monitor connected to the server and can other ubuntu gui applications like xclock.

hogo_fogo (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 1


View Profile
December 09, 2016, 01:25:27 PM
 #5

Seems like your server's X display didn't start properly. Do you have a monitor connected to the server and can other ubuntu gui applications like xclock.

Thank you for your reply. Yes, I have monitor connected. The deskop shows correctly. And yes, other programs starts ok (for example truecrypt). Any other suggestions? I guess I will try another reboot...  Undecided
cr1776
Legendary
*
Offline Offline

Activity: 4032
Merit: 1299


View Profile
December 09, 2016, 01:57:45 PM
 #6

Seems like your server's X display didn't start properly. Do you have a monitor connected to the server and can other ubuntu gui applications like xclock.

Thank you for your reply. Yes, I have monitor connected. The deskop shows correctly. And yes, other programs starts ok (for example truecrypt). Any other suggestions? I guess I will try another reboot...  Undecided

There are various ways to see if X is running, but a more robust way might be to try something like this:

if ! xset q &>/dev/null; then
    echo "No X server at \$DISPLAY [$DISPLAY]" >&2
    exit 1
fi

see
(http://stackoverflow.com/questions/637005/how-to-check-if-x-server-is-running)
hogo_fogo (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 1


View Profile
December 12, 2016, 04:09:54 AM
 #7

I believe the X server is running, but I am unable to start wallet even after system restart:
Code:
root@server:/opt/bitcoin-0.13.1/bin# ls -l
total 57460
-rwxr-xr-x 1 user user  2748184 Oct 27 00:10 bitcoin-cli
-rwxr-xr-x 1 user user  8860824 Oct 27 00:10 bitcoind
-rwxr-xr-x 1 user user 33109328 Oct 27 00:10 bitcoin-qt
-rwxr-xr-x 1 user user  3080120 Oct 27 00:10 bitcoin-tx
-rwxr-xr-x 1 user user 11032784 Oct 27 00:10 test_bitcoin
root@server:/opt/bitcoin-0.13.1/bin# ./bitcoin-qt
QXcbConnection: Failed to initialize XRandr
Qt: XKEYBOARD extension not present on the X server.
The X11 connection broke: Maximum allowed requested length exceeded (code 4)
XIO:  fatal IO error 2 (No such file or directory) on X server ":10.0"
      after 209 requests (205 known processed) with 0 events remaining.
root@server:/opt/bitcoin-0.13.1/bin# ps -e|grep X
 3043 ?        00:00:45 Xvnc
 4200 tty7     00:00:01 Xorg
root@server:/opt/bitcoin-0.13.1/bin#

XClock starts fine:
Code:
root@server:/opt/bitcoin-0.13.1/bin# xclock
root@server:/opt/bitcoin-0.13.1/bin#

Any suggestions? Thank you for your time.

Cheers,
btc_enigma
Hero Member
*****
Offline Offline

Activity: 688
Merit: 565


View Profile
December 12, 2016, 04:18:38 AM
 #8

I believe the X server is running, but I am unable to start wallet even after system restart:
Code:
root@server:/opt/bitcoin-0.13.1/bin# ls -l
total 57460
-rwxr-xr-x 1 user user  2748184 Oct 27 00:10 bitcoin-cli
-rwxr-xr-x 1 user user  8860824 Oct 27 00:10 bitcoind
-rwxr-xr-x 1 user user 33109328 Oct 27 00:10 bitcoin-qt
-rwxr-xr-x 1 user user  3080120 Oct 27 00:10 bitcoin-tx
-rwxr-xr-x 1 user user 11032784 Oct 27 00:10 test_bitcoin
root@server:/opt/bitcoin-0.13.1/bin# ./bitcoin-qt
QXcbConnection: Failed to initialize XRandr
Qt: XKEYBOARD extension not present on the X server.
The X11 connection broke: Maximum allowed requested length exceeded (code 4)
XIO:  fatal IO error 2 (No such file or directory) on X server ":10.0"
      after 209 requests (205 known processed) with 0 events remaining.
root@server:/opt/bitcoin-0.13.1/bin# ps -e|grep X
 3043 ?        00:00:45 Xvnc
 4200 tty7     00:00:01 Xorg
root@server:/opt/bitcoin-0.13.1/bin#

XClock starts fine:
Code:
root@server:/opt/bitcoin-0.13.1/bin# xclock
root@server:/opt/bitcoin-0.13.1/bin#

Any suggestions? Thank you for your time.

Cheers,

Strange, can you see if this works
Code:
sudo dpkg-reconfigure xserver-xorg

By the way, why is the display :10 , are you using a vnc session ?

hogo_fogo (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 1


View Profile
December 12, 2016, 11:51:08 PM
 #9

Hi btc_enigma,

Thank you for your suggestion. Unfortunately it did not help:

Code:
root@server:/opt/bitcoin-0.13.1/bin# sudo dpkg-reconfigure xserver-xorg
root@server:/opt/bitcoin-0.13.1/bin# ./bitcoin-qt
QXcbConnection: Failed to initialize XRandr
Qt: XKEYBOARD extension not present on the X server.
The X11 connection broke: Maximum allowed requested length exceeded (code 4)
XIO:  fatal IO error 2 (No such file or directory) on X server ":10.0"
      after 209 requests (205 known processed) with 0 events remaining.
root@server:/opt/bitcoin-0.13.1/bin#

I guess I will try to re-install bitcoinwallet next Sad

Thank you for your time.
MrAlexar
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
January 02, 2018, 10:33:40 PM
 #10

I had the same problem. Solved now.

I was using TMUX, it's a screen manager for bash on Linux. (similar to `screen`).

When I ran bitcoin GUI from within TMUX I would get that error. But when I ran it from a fresh new terminal, it worked.

So, you should make sure the terminal has access to X11. Running `xclock` is a good way to test that as others mentioned.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!