Coder Social home page Coder Social logo

Comments (10)

martanne avatar martanne commented on August 24, 2024

Sorry for the late answer. Is this reproducible (did it happen more than once)? Why did the irssi (or abduco server process) die? Killing the ssh client should only affect the abduco client process.

I tried it with ping and as far as I can see, it worked as expected:

$ ssh server
$ abduco -c foo ping google.com

Then locally, I killed the ssh client and reconnect.

$ ssh server
$ abduco
Active sessions (on host optimus7.inf.ethz.ch)
  Tue    2015-06-23 13:44:48    foo

As expected the session is still alive and no clients are connected i.e. no * is displayed in the listing above.

$ abduco -a foo
[ ping output omitted]
...
CTRL+C
abduco: foo: session terminated with exit status 0

from abduco.

jangler avatar jangler commented on August 24, 2024

No, I guess I've only seen it once. Still have that broken session hanging around, though. I'll see if I can figure out a way to reproduce this.

from abduco.

martanne avatar martanne commented on August 24, 2024

Still have that broken session hanging around, though.

That is the socket still exists? Could you check whether some process still has it opened (using e.g. lsof )?

I suspect that the abduco server process was killed with SIGKILL (in which case the socket will not be deleted because the signal can not be handled) instead of the default SIGTERM signal.

$ abduco -c sigterm ping google.com
$ killall abduco
$ abduco -c sigkill ping google.com
$ killall -9 abduco
$ abduco
Active sessions (on host debbook)
* Tue    2015-06-23 14:26:23    sigkill
$ abduco -a sigkill
attach-session: Connection refused

As you can see, the first session was properly cleaned up, however the latter seems analogous to your case.

At the moment I'm not sure how the cleanup procedure could be improved ...

from abduco.

jangler avatar jangler commented on August 24, 2024

Yeah, there's not much to do if you get SIGKILL. I checked using lsof and no process has the socket open. Any idea why abduco might have recieved SIGKILL?

from abduco.

rychipman avatar rychipman commented on August 24, 2024

I just had this happen to me now. I was running abduco in an ssh session to a vm, and the host machine rebooted. When I started the vm back up, I was stuck with a non-terminated but unattachable abduco session as described above. The socket is still present in the ~/.abduco directory.

from abduco.

martanne avatar martanne commented on August 24, 2024

Could you check whether the latest commits fix the issue? Such dead sockets should now be ignored. Only lightly tested though.

Adding @rpmohn since I know he is a heavy abduco user.

from abduco.

jangler avatar jangler commented on August 24, 2024

Works for me.

from abduco.

rpmohn avatar rpmohn commented on August 24, 2024

I haven't seen this, but I will pull the changes and test tomorrow.

from abduco.

martanne avatar martanne commented on August 24, 2024

I think this is fixed.

@rpmohn have you had time to test it in your AIX environment?

In general we have accumulated enough fixes and small improvements to warrant another release. Does current git HEAD work for you guys?

from abduco.

jangler avatar jangler commented on August 24, 2024

Working fine so far. I'll let you know if I have any problems.

from abduco.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.