Comments (7)
Thanks for the report! What versions of Capistrano and SSHKit are you running?
from airbrussh.
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:
- Are you deploying to multiple servers? It could be a threading issue.
- Are you mutating the SSHKit
Command
object as it is running? - 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.
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.
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.
Yes, exactly.
from airbrussh.
Great. Now I think I understand how nested invoke
plus multiple servers could trigger this bug. Thanks for the help!
from airbrussh.
Fix has been released in 1.0.2 🚢
from airbrussh.
Related Issues (20)
- AppVeyor CI (Windows) builds failing with net-ssh 4.0.0
- command_output HOT 9
- Colors in the capistrano.log file HOT 3
- Circular dependency warning
- Empty console output HOT 9
- Customize output to show server hostname HOT 1
- Mocha::NotInitializedError on stubbed tests when running minitest locally HOT 2
- "invalid byte sequence in UTF-8" when rsyncing files with international character
- Make rake a gem dependency HOT 3
- Make ConsoleFormatter's context configurable HOT 5
- Console error only when using Spring HOT 1
- Test on ruby 3
- Travis-CI builds are no longer working HOT 3
- Replace Travis with CircleCI HOT 1
- Switch from alias_method to prepend HOT 7
- Colorize LogMessages again HOT 3
- IO.console can be nil
- Vague and unhelpful error message if log cannot be created HOT 4
- Hostname in output HOT 1
- Tests fail under Ruby 2.4.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from airbrussh.