Code Monkey home page Code Monkey logo

Comments (7)

mattbrictson avatar mattbrictson commented on June 5, 2024

Thanks for the report! What versions of Capistrano and SSHKit are you running?

from airbrussh.

mattbrictson avatar mattbrictson commented on June 5, 2024

Also, if you could offer any insight into why this may be happening, I would appreciate the troubleshooting assistance. The @position value should never be nil, but maybe we can figure out the combination of circumstances that leads to the bug.

Some ideas:

  1. Are you deploying to multiple servers? It could be a threading issue.
  2. Are you mutating the SSHKit Command object as it is running?
  3. Do you encounter the bug always in the same step in your deploy, or is it unpredictable?

Worst case, I can patch the code so that nil is gracefully handled, rather than blow up with an exception. However we should still try to get the root cause if we can.

Thanks!

from airbrussh.

kenn avatar kenn commented on June 5, 2024

sshkit-1.10.0 / capistrano-3.5.0

Are you deploying to multiple servers? It could be a threading issue.

I vaguely remember that it occurred when I was deploying to multiple servers without host filters. So, yes.

Are you mutating the SSHKit Command object as it is running?

No.

Do you encounter the bug always in the same step in your deploy, or is it unpredictable?

It was pretty random, so it may be a threading issue as you mentioned. I'll use host filter to work around that for now.

As much as I wanted to help you more, I don't have time to dig into the source at this moment. Maybe I was too adventurous when I decided to upgrade Capistrano as well as Debian, Sunzi, MySQL, etc. at the same time... 😄

from airbrussh.

mattbrictson avatar mattbrictson commented on June 5, 2024

One more question: are you using invoke within an on block anywhere in your tasks? Like this:

on ... do
  execute ...
  execute ...
  invoke "some:task"
end

from airbrussh.

kenn avatar kenn commented on June 5, 2024

Yes, exactly.

from airbrussh.

mattbrictson avatar mattbrictson commented on June 5, 2024

Great. Now I think I understand how nested invoke plus multiple servers could trigger this bug. Thanks for the help!

from airbrussh.

mattbrictson avatar mattbrictson commented on June 5, 2024

Fix has been released in 1.0.2 🚢

from airbrussh.

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.