CSSH broken after Solaris patches

Help
lollo_bis
2008-08-28
2013-06-03
  • lollo_bis

    lollo_bis - 2008-08-28

    Duncan, all,

    I've enjoyed cssh for a good few years now.

    After applying the latest Recommended and Security Patch Cluster on a Solaris 10 box where cssh 3.19.1 has been working perfectly fine for ages, it now dies with the following error.

    [icarus]$ cssh -v
    Version: 3.19 (2006/07/24 19:12:54)
    [icarus]$ cssh -dD imiap01 imiap02
    Can't find DISPLAY -- guessing `unix:0' at /usr/local/bin/cssh line 1628
    Can't connect to display `unix:0': Illegal seek at /usr/perl5/site_perl/5.8.4/X11/Protocol.pm line 2264
    [icarus]

    Any ideas about how to re-establish order?

    Cheers

    Loris

     
    • Duncan Ferguson

      Duncan Ferguson - 2008-08-28

      Do other x apps work, such as xterm or xclock?

      Do you know what your $DISPLAY env var was set to before the upgrade?  Can you try setting as

      DISPLAY=:0.0
      export DISPLAY

      and see if that makes a difference?

        Duncs

       
      • lollo_bis

        lollo_bis - 2008-08-28

        Hi Duncan,

        Thanks a mill for your reply.
        (jeeez, that was quick!)

        Right, other X apps do NOT work, as a matter of fact.

        On a windows box, I fire up Cygwin/X and then connect with putty to icarus (the Solaris box where cssh lives).
        So far, this has always worked without me having to care about the DISPLAY variable.

        But now...

        [icarus]$ xclock
        Error: Can't open display:

        [icarus]$ export DISPLAY=101.159.244.203:0.0

        [icarus]$ xclock
        Xlib: connection to "101.159.244.203:0.0" refused by server
        Xlib: No protocol specified

        Error: Can't open display: 101.159.244.203:0.0
        [icarus]$

        Ok so, it's definitely Solaris and not cssh.
        Still, how do I go around this?

        Cheers

        Loris

         
        • Duncan Ferguson

          Duncan Ferguson - 2008-08-28

          You'll probably find Sun has disabled forwarding of X displays in /etc/ssh/ssd_config as part of the patch process - I suggest reviewing the ssh config files to see if anything else has changed

            Duncs

           
    • lollo_bis

      lollo_bis - 2008-08-28

      Update:

      It may be Cygwin/X screwed!

      If I try using another X server (Mocha-X in this case), xterm works OK, but then again cssh fails as follows:

      [icarus]$ cssh imiap01 imiap02
      77d024 is not a hash at /usr/perl5/site_perl/5.8.4/sun4-solaris-64int/Tk/MainWindow.pm line 55.
      Abort (core dumped)
      [icarus]$

      The debug options don't really add more (as far as I can see)

      [icarus]/export/home/pg10326$ cssh -dD miap01 imiap02
      14:06:48: VERSION: 3.19 (2006/07/24 19:12:54)
      14:06:48: Reading in from config file /etc/csshrc
      14:06:48: Reading in from config file /export/home/pg10326/.csshrc
      14:06:48: auto_quit=yes
      14:06:48: comms=ssh
      14:06:48: console_position=
      14:06:48: ignore_host_errors=no
      14:06:48: key_addhost=Control-plus
      14:06:48: key_clientname=Alt-n
      14:06:48: key_paste=Control-v
      14:06:48: key_quit=Control-q
      14:06:48: key_retilehosts=Alt-r
      14:06:48: mouse_paste=Button-2
      14:06:48: rsh_args=
      14:06:48: screen_reserve_bottom=40
      14:06:48: screen_reserve_left=0
      14:06:48: screen_reserve_right=0
      14:06:48: screen_reserve_top=0
      14:06:48: ssh=/usr/bin/ssh
      14:06:48: ssh_args=-x
      14:06:48: terminal=/usr/openwin/bin/xterm
      14:06:48: terminal_allow_send_events=-xrm 'XTerm.VT100.allowSendEvents:true'
      14:06:48: terminal_args=
      14:06:48: terminal_decoration_height=10
      14:06:48: terminal_decoration_width=8
      14:06:48: terminal_font=6x13
      14:06:48: terminal_reserve_bottom=0
      14:06:48: terminal_reserve_left=0
      14:06:48: terminal_reserve_right=0
      14:06:48: terminal_reserve_top=0
      14:06:48: terminal_size=80x24
      14:06:48: terminal_title_opt=-T
      14:06:48: title=CSSH
      14:06:48: use_hotkeys=yes
      14:06:48: window_tiling=yes
      14:06:48: window_tiling_direction=right
      14:06:48: Checking path to xterm
      14:06:48: Looking for /usr/openwin/bin/xterm
      14:06:48: Already configured OK
      14:06:48: Checking path to ssh
      14:06:48: Looking for /usr/bin/ssh
      14:06:48: Already configured OK
      14:06:48: Fetching font size
      14:06:48: Done with font size
      14:06:48: Loading keymaps and keycodes
      14:06:48: Unknown keycode 127
      14:06:48: Logging for /etc/clusters
      14:06:48: Looking for csshrc
      14:06:48: Finished loading clusters
      14:06:48: Resolving cluster names: started
      14:06:48: Found server miap01
      14:06:48: Found server imiap02
      14:06:48: leaving with miap01
      14:06:48: leaving with imiap02
      14:06:48: Resolving cluster names: completed
      14:06:48: create_windows: started
      77cfac is not a hash at /usr/perl5/site_perl/5.8.4/sun4-solaris-64int/Tk/MainWindow.pm line 55.
      Abort (core dumped)
      [icarus]/export/home/pg10326$

      What am I missing?

      Loris

       
      • Duncan Ferguson

        Duncan Ferguson - 2008-08-28

        > If I try using another X server (Mocha-X in this case), xterm works OK, but then again cssh fails as follows:

        What is $DISPLAY set to in this case?

          Duncs

         
    • lollo_bis

      lollo_bis - 2008-08-28

      Hmmm...

      No, the file hasn't changed and the options are still good:

      [icarus]$ grep X /etc/ssh/sshd_config
      # X11 tunneling options
      X11Forwarding yes
      X11DisplayOffset 10
      X11UseLocalhost yes
      [icarus]$

      Loris

       
    • lollo_bis

      lollo_bis - 2008-08-28

      Duncan, that's

      [icarus]/$ echo $DISPLAY
      101.159.244.203:0.0
      [icarus]/$

      which is the IP of my windows box.

      I believe these two links are pointing me to the right direction
      http://www.nntp.perl.org/group/perl.tcltk/2006/09/msg99.html
      http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=383018

      And this other one
      http://www.nabble.com/Bug-349800:-clusterssh:-not-hash-error-message,-doesn't-run-td18071387.html
      says it's not your fault!   ;-)

      Cheers

      Loris

       
      • Duncan Ferguson

        Duncan Ferguson - 2008-08-28

        Thanks for the info - I have put some details in the FAQ for it

          Duncs

         
    • lollo_bis

      lollo_bis - 2008-08-28

      Duncan,

      My issue was on Cygwin/X.
      What REALLY fixed it for me is the following:
      http://blog.invisible.ch/2005/03/15/connecting-from-a-x-client-to-a-cygwin-x-server/

      Thankg again for your help,

      Loris

       
    • lollo_bis

      lollo_bis - 2008-09-09

      Duncan,

      (just for completeness)
      A bug in patch 138060-03 (Solaris 10 SPARC) has broken X forwarding for SSH.
      A fix for this is available in patch 138060-04.
      I tested it myself and it does indeed resolve the issue.

      http://groups.google.com/group/comp.sys.sun.admin/browse_thread/thread/18f75d8ba71f3877#
      http://sunsolve.sun.com/search/document.do?assetkey=1-66-240906-1

      Thanks again for a great tool

      Loris

       

Log in to post a comment.