Title: Unable to launch bitcoin core - getting X11 connection broke: Maximum allowed... Post by: hogo_fogo on December 08, 2016, 11:55:01 PM 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 :) Title: Re: Unable to launch bitcoin core - getting X11 connection broke: Maximum allowed... Post by: cr1776 on December 09, 2016, 12:04:52 AM 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 :) Which version? What OS and version? 😀 Title: Re: Unable to launch bitcoin core - getting X11 connection broke: Maximum allowed... Post by: hogo_fogo on December 09, 2016, 12:38:34 AM 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 Title: Re: Unable to launch bitcoin core - getting X11 connection broke: Maximum allowed... Post by: btc_enigma on December 09, 2016, 06:34:29 AM 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.
Title: Re: Unable to launch bitcoin core - getting X11 connection broke: Maximum allowed... Post by: hogo_fogo on December 09, 2016, 01:25:27 PM 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... :-\ Title: Re: Unable to launch bitcoin core - getting X11 connection broke: Maximum allowed... Post by: cr1776 on December 09, 2016, 01:57:45 PM 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... :-\ 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) Title: Re: Unable to launch bitcoin core - getting X11 connection broke: Maximum allowed... Post by: hogo_fogo on December 12, 2016, 04:09:54 AM 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 XClock starts fine: Code: root@server:/opt/bitcoin-0.13.1/bin# xclock Any suggestions? Thank you for your time. Cheers, Title: Re: Unable to launch bitcoin core - getting X11 connection broke: Maximum allowed... Post by: btc_enigma on December 12, 2016, 04:18:38 AM 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 XClock starts fine: Code: root@server:/opt/bitcoin-0.13.1/bin# xclock 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 ? Title: Re: Unable to launch bitcoin core - getting X11 connection broke: Maximum allowed... Post by: hogo_fogo on December 12, 2016, 11:51:08 PM 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 I guess I will try to re-install bitcoinwallet next :( Thank you for your time. Title: Re: Unable to launch bitcoin core - getting X11 connection broke: Maximum allowed... Post by: MrAlexar on January 02, 2018, 10:33:40 PM 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. |