• X11 Forwarding Broken on Solaris

    If you’re running Solaris 8 or 9 and an upgrade results in broken SSH X11 forwarding, the problem may be Sun’s socfs bug. The symptom will be SSH’s failure to set the $DISPLAY variable and an error in your system log looking something like this:

    Jun 3 09:40:24 servername sshd[26432]: [ID 800057 auth.error] error: Failed to allocate internet-domain X11 display socket.

    To fix this, you can either install Sun’s latest socfs patch for your version of the OS, or simply force sshd into IPv4 mode by doing the following:

    Edit you sshd_config file, adding the following:

    # IPv4 only
    ListenAddress 0.0.0.0

    Edit your sshd startup script to issue a “-4″ to sshd on start:

    case "$1" in
    'start')
    echo 'starting ssh daemon'
    /usr/local/sbin/sshd -4
    ;;

    Restart sshd, and that should pretty much do it… Enjoy.

    This entry was posted on Tuesday, June 3rd, 2008 at 10:39 am and is filed under Data and Technology. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
  • 4 Comments

    Take a look at some of the responses we've had to this article.

    1. ckgreenman
      Jun 16th
      Reply

      This appears to also affect Solaris 10. To work around the issue in 10 simply edit /lib/svc/method/sshd and append the ‘-4′ to the start function. once the file is saved simply issue ’svcadm restart ssh’

    2. Brett
      Jul 22nd
      Reply

      THANK YOU!!!! I dont have a cd/dvd drive on my sun netra x1 so a reinstall is pretty much a no go. You saved my system!

    3. Jeremy Idol
      Aug 29th
      Reply

      Current patch created the problem for systems what only use IPv4. The solution, until a binary resolution is provided, is to config up an IPv6 localhost interface as such:

      ifconfig lo0 inet6 plumb up

      Which brings up:

      lo0: flags=2002000849 mtu 8252 index 1
      inet6 ::1/128

      Ensure the /etc/hosts as the following entry as well:

      ::1 localhost

      This will bring up a ipv6 localhost interface, which allows the forwarding over X11 to operate without a problem. Recycle the ssh daemon and it should work without a problem.

    4. Joao Martins
      Aug 29th
      Reply

      I don’t know better way to express my gratitude for your help: Thank you.

  • Leave a Reply

    Let us know what you thought.

  • Name (required):

    Email (required):

    Website:

    Message:

Visitors have tagged this post: Failed to allocate internet-domain X11 display socket (590) - Failed to allocate internet-domain X11 display socket. (244) - t (153) - error: Failed to allocate internet-domain X11 display socket. (150) - error: Failed to allocate internet-domain X11 display socket (141) - Failed to allocate internet domain X11 display socket (110) - error: Failed to allocate internet-domain X11 display s (66) - Failed to allocate internet-domain X11 display socket Solaris (63) - Failed to allocate internet-domain X11 display socket S (62) - solaris ssh Failed to allocate internet-domain X11 disp (46) - solaris Failed to allocate internet-domain X11 display socket (43) - failed to allocate internet-domain X11 (38) - solaris 10 x11 forwarding (31) - solaris 10 Failed to allocate internet-domain X11 displ (27) - sshd Failed to allocate internet-domain X11 display socket (24) - solaris x11 forwarding (23) - Failed to allocate internet-domain X11 display socket solaris 10 (23) - Solaris 10 Failed to allocate internet-domain X11 display socket (22) - solaris No X11 DISPLAY variable was set (22) - solaris Failed to allocate internet-domain X11 display  (19) - failed to allocate internet-domain X11 display (18) - solaris 10 x forwarding (15) - No X11 DISPLAY variable was set solaris (14) - \"Failed to allocate internet-domain X11 display socket\ (13) - X11 forwarding solaris (12) - ssh x11 forwarding solaris (12) - enable x11 forwarding solaris (12) - sshd Failed to allocate internet-domain X11 display soc (12) - auth.error] error: Failed to allocate internet-domain X11 display socket. (12) - no x11 display variable was set solaris 10 (12) - Failed to allocate internet-domain X11 display socket. solaris (12) - solaris 10 error: Failed to allocate internet-domain X1 (11) - Solaris 10 Failed to allocate internet-domain X11 display socket. (11) - solaris error: Failed to allocate internet-domain X11 display socket (11) - solaris ssh X11 forwarding (11) - X11 forwarding solaris 10 (10) - ssh X11 forwarding solaris 10 (10) - solaris 9 Failed to allocate internet-domain X11 display socket (10) - Solaris Failed to allocate internet-domain X11 display socket. (10) - forwarding (10) - solaris (9) - enable x11 forwarding solaris 10 (9) - ssh Failed to allocate internet-domain X11 display socket (9) - Failed to allocate internet-domain X11 display socke (8) - solaris 10 No X11 DISPLAY variable was set (8) - spiralbound net (7) - solaris x11 forward (7) - Solaris error: Failed to allocate internet-domain X11 d (7) - auth error] error: Failed to allocate internet-domain X (7) - allocate internet-domain X11 display socket (7) - x11 forwarding ssh solaris (7) - ssh error: Failed to allocate internet-domain X11 display socket (7) - solaris error: Failed to allocate internet-domain X11 display socket. (7) - Failed to allocate internet-domain X11 display socket Solaris 8 (7) - Failed to allocate internet-domain X11 display socket solaris 9 (7) - x forwarding solaris DISPLAY not (7) - \"error: Failed to allocate internet-domain X11 display socket.\ (7) - f (6) - internet-domain X11 display socket (6) - solaris sshd x11 forwarding (6) - X11 display not set solaris (6) - mss (5) - solaris ssh x forwarding (5) - x11 forwarding broken on solaris (5) - ssh Failed to allocate internet-domain X11 display sock (5) - solaris 10 X11 forwarding broken (5) - solaris ssh Failed to allocate internet-domain X11 display socket (5) - auth.error] error: Failed to allocate internet-domain X11 display socket (5) - sshd error: Failed to allocate internet-domain X11 display socket (5) - x forwarding solaris 10 (5) - socfs (5) - solaris 10 xforwarding (5) - \"Failed to allocate internet-domain X11 display socket.\ (5) - solaris x forwarding (4) - solaris 10 ssh x forwarding (4) - x11 forwarding failed to allocate internet domain X11 d (4) - error: Failed to allocate internet-domain X11 (4) - ssh failed to allocate internet-domain X11 (4) - sshd[ ]: error: Failed to allocate internet-domain X11  (4) - solaris ssh display not set (4) - solaris 9 Failed to allocate internet-domain X11 displa (4) - X11 tunneling solaris (4) - restarting x forwarding for solaris 10 (4) - no X11 Display variable solaris (4) - error: Failed to allocate internet-domain X11 display socket solaris 10 (4) - sun ssh x11 forwarding (4) - error Failed to allocate internet-domain X11 display socket (4) - sshd error: Failed to allocate internet-domain X11 display socket. (4) - solaris x11 forwarding ssh (4) - solaris DISPLAY variable (4) - DISPLAY variable not set solaris 9 (4) - solaris 8 Failed to allocate internet-domain X11 display socket (4) - solaris 8 Failed to allocate internet-domain X11 display socket. (4) - x11 DISPLAY variable solaris (4) - ssh display not set solaris 8 (4) - solaris sshd x11forwarding (4) - Solaris set display (4) - jeremy idol (4) - solaris X11Forward (4) - \"error: Failed to allocate internet-domain X11 display socket\ (4) - solaris 9 x11 forwarding (3) - failed to allocate internet-domain (3) - solaris patch X11 forwarding (3) - how to set X11 DISPLAY variable in Solaris 10 (3) - solaris X11Forwarding (3) - ailed to allocate internet-domain X11 display socket (3) - x11 forwarding display not set (3) - how to set X11 DISPLAY variable on solaris 10 (3) - solaris 10 enable ssh x11 forwarding (3) - solaris 10 sshd x11 forwarding (3) - X11 DISPLAY SOCKET (3) - solaris10 Failed to allocate internet-domain X11 displa (3) - ssh solaris DISPLAY not set (3) - Failed to allocate internet-domain X11 socket solaris (3) - x11 forwarding zones (3) - sshd error Failed to allocate internet-domain X11 display socket (3) - solaris x forwarding broken (3) - solaris No X11 DISPLAY variable was set, (3) - Failed to allocate internet-domain X11 display socket sshd solaris (3) - solaris sshd Failed to allocate internet-domain X11 display socket (3) - error: Failed to allocate internet-domain X11 display socket. solaris (3) - DISPLAY variable Solaris (3) - No X11 DISPLAY variable was set solaris 9 (3) - solaris x11 forwarding display not set (3) - solaris 10 X11 display not set (3) - error: Failed to allocate internet-domain X11 display socket. solaris 10 (3) - No x11 DISPLAY variable was set on solaris (3) - error: Failed to allocate internet-domain X11 display socket solaris 10 patch (3) - error: Failed to allocate internet-domain X11 display socket. solaris 9 (3) - no x11 display variable was set in solaris (3) - Failed to allocate internet-domain X11 display socket zones (3) - No x11 DISPLAY ssh forwarding (3) - x forwarding solaris display variable (3) - X11 forwarding broken solaris spiral (3) - Failed to allocate internet-domain X11 display socket. solaris 10 (3) - recycle the ssh daemon (3) - solaris 10 x11 forwarding ssh (3) - error failed to allocate internet-domain x11 display socket. (3) - \"no x11 display variable was set\ solaris (3) - error: Failed to a llocate internet-domain X11 display socket (3) - solaris \"Failed to allocate internet-domain X11 display socket\ (3) - X11 forwarding setup solaris (3) - solaris X11 forwarding problem (2) - X11Forwarding solaris (2) - solaris enable x forwarding (2) - FR (2) - Solaris 10 ssh x11 (2) - X forwarding solaris (2) - 1 (2) - solaris9 enable x11 forwarding (2) -