Results 1 to 6 of 6

Thread: Problems disconnecting ssh session after zmcontrol stop /start?

  1. #1
    Join Date
    Jan 2007
    Location
    Baltimore, Maryland
    Posts
    51
    Rep Power
    8

    Default Problems disconnecting ssh session after zmcontrol stop /start?

    I have tried Zimbra under CentOS 4.4 32 bit, CentOS 4.4 64 bit and now RHEL 4 64 bit and see the same behavior with my ssh sessions. I am using putty 0.58

    I connect in this fashion
    ssh bowergo
    su – root
    su – zimbra

    When I exit out at the end my putty window closes, most of the time. It seems to me that the sessions that do not close are sessions that I execute a zmcontrol stop and a zmcontrol start.

    Anyone else see this behavior or can anyone offer an explanation or fix?

    I see a new version of putty that I am going to grab. 0.59 2007-01-24

  2. #2
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    Wow. That's a new one.

    When you are having this problem, try to open another SSH session, and SSH to your box. Then run top and see if anything is eating cpu cycles.

    john

  3. #3
    Join Date
    Mar 2006
    Location
    Massachusetts
    Posts
    965
    Rep Power
    10

    Default

    I've actually seen the same thing happen with both Putty and Konsole on Linux, but not necessarily with anything related to Zimbra; just in general an ssh session not properly disconnecting. I just close out of the app, or sometimes kill off the ssh session locally. As far as I know doing this has never left any runaway processes on the remote host or anything like that.

    I really don't think this is anything to worry about, and I'm pretty sure it is not a Zimbra problem. (Others may disagree.)

  4. #4
    Join Date
    Jan 2007
    Location
    Baltimore, Maryland
    Posts
    51
    Rep Power
    8

    Default

    Nothing odd in top, during or after failed exit attempt or when I close the Window and the session. These processes ended when I closed the Window

    root 32313 0.0 0.0 37084 2576 ? Ss 09:46 0:00 sshd: bowergo [priv]
    bowergo 32318 0.0 0.0 37228 1780 ? S 09:46 0:00 sshd: bowergo@notty

    Also it only took 1 attempt to duplicate this exit problem.

    ssh bowergo
    su - root
    su - zimbra
    zmcontrol status
    zmcontrol stop
    zmcontrol start
    zmcontrol status
    exit
    exit
    exit


    It is not a problem, it is just an odd behavior.

    Also I did upgrade to putty 0.59
    Last edited by bowergo; 04-11-2007 at 07:18 AM. Reason: more details

  5. #5
    Join Date
    Nov 2005
    Location
    Beloit, Wisconsin
    Posts
    71
    Rep Power
    9

    Default

    I have the same thing happen when I connect to Fedora Core 4 from putty 0.59. If I had to guess, it is because Red Hat clears the screen after you exit and putty or konsole doesn't like that??? Either way, it isn't a Zimbra problem.
    Last edited by RyecoAaron; 04-11-2007 at 10:58 AM.

  6. #6
    Join Date
    Nov 2009
    Location
    Auckland, New Zealand
    Posts
    20
    Rep Power
    5

    Default

    Old thread I know, but I found the solution.

    This cleanly exits the SSH session after starting Zimbra:

    ssh zimbra@your.zimbra.server "/opt/zimbra/bin/zmcontrol start </dev/null"

    Ref: thread on fixunix.com: "ssh session does not end after executing remote command" (which in turn links to an explanation as to why OpenSSH sometimes does this)

Similar Threads

  1. Zimbra .pids / service monitoring
    By bin2hex in forum Administrators
    Replies: 24
    Last Post: 04-03-2010, 09:12 PM
  2. Can't start Zimbra!
    By zibra in forum Administrators
    Replies: 5
    Last Post: 03-22-2007, 11:34 AM
  3. why doesn't 'zmcontrol stop' work?
    By ipguru99 in forum Administrators
    Replies: 5
    Last Post: 03-11-2007, 02:14 PM
  4. zimbra suddently refused to get mail
    By nosiath in forum Installation
    Replies: 2
    Last Post: 02-21-2007, 07:06 AM
  5. Services stopped working
    By lilwong in forum Administrators
    Replies: 4
    Last Post: 08-15-2006, 09:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •