question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

X Forwarding doesn't work properly

See original GitHub issue

Version: 1.0.99 Platform: linux 5.0.0-37-generic Plugins: altair, clickable-links, save-output, scrollbar, shell-selector, theme-gruvbox, title-control

[SSH] Could not connect to the X server :6000: Error: connect ECONNREFUSED 127.0.0.1:6000
Failed to open connection to "session" message bus: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.

Running without a11y support!

[SSH] Could not connect to the X server :6000: Error: connect ECONNREFUSED 127.0.0.1:6000

[SSH] Could not connect to the X server :6000: Error: connect ECONNREFUSED 127.0.0.1:6000
Error: cannot open display: localhost:10.0
echo $DISPLAY
localhost:10.0

Do we need to do extra steps? Tested with other terminals without a problem

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
marcinbojkocommented, Feb 10, 2020

@ohmyhub Thank you, but I’d prefer to have it working out of the box, beside voodoo. Steps are known to me, but these are artificial.

1reaction
Eugenycommented, Feb 7, 2021

Side note for anyone getting ECONNREFUSED 127.0.0.1:6000 - you need a X server (vcxsrv, xming or similar) on your client. It’s got nothing to do with X11UseLocalhost or server-side configuration in general. I’ll be adding more useful help messages in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

X11 Not Forwarding over SSH ($DISPLAY not getting set)
I met the same problem. I solved it by switching ssh client from OpenSSH to Putty. It seems that OpenSSH does not support...
Read more >
Diagnosing X-Windows forwarding problems with ssh
If you log in to a machine with ssh and you find that X-Windows programs don't work, the first thing to do is...
Read more >
Problems with X11 forwarding - Super User
After installing and running XMing, an ssh from a MinGW window to a Linux server fixed my problem. X forwarding now works.
Read more >
SSH X11 forwarding does not work. Why? - Server Fault
If I forward M's ssh port to my local machine it still does not work: terminal1$ ssh -L 8888:M:22 N terminal2$ ssh -X...
Read more >
Use X forwarding on a personal computer to securely run ...
For X forwarding in SSH to work, your personal computer must be running an X server program. The X server program manages the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found