Skip to content

Instantly share code, notes, and snippets.

@Ferada
Last active August 29, 2015 14:10
Show Gist options
  • Save Ferada/757c386eff126e73dfe6 to your computer and use it in GitHub Desktop.
Save Ferada/757c386eff126e73dfe6 to your computer and use it in GitHub Desktop.
Another one.
0 % DEBUG=2 tugboat ssh -e my-host
Droplet fuzzy name provided. Finding droplet ID...I, [2014-12-03T15:13:37.827339 #2424] INFO -- : Started GET request to: https://api.digitalocean.com/droplets?client_id=UH7mlwnlc2YmFli8HtTmy&api_key=b98c40df867aadd134ad6c4e0311bd57
D, [2014-12-03T15:13:37.827523 #2424] DEBUG -- : Request Headers:
----------------
User-Agent : Faraday v0.8.9
Request Body:
-------------
Timeout::Error!
/var/lib/gems/1.9.1/gems/tugboat-0.2.1/lib/tugboat/middleware/authentication_middleware.rb:24:in `rescue in call': undefined method `status' for nil:NilClass (NoMethodError)
from /var/lib/gems/1.9.1/gems/tugboat-0.2.1/lib/tugboat/middleware/authentication_middleware.rb:20:in `call'
from /var/lib/gems/1.9.1/gems/faraday-0.8.9/lib/faraday/connection.rb:253:in `run_request'
from /var/lib/gems/1.9.1/gems/faraday-0.8.9/lib/faraday/connection.rb:106:in `get'
from /var/lib/gems/1.9.1/gems/digital_ocean-1.0.1/lib/digital_ocean/resource/droplet.rb:6:in `list'
from /var/lib/gems/1.9.1/gems/tugboat-0.2.1/lib/tugboat/middleware/find_droplet.rb:75:in `call'
from /var/lib/gems/1.9.1/gems/tugboat-0.2.1/lib/tugboat/middleware/inject_client.rb:33:in `call'
from /var/lib/gems/1.9.1/gems/tugboat-0.2.1/lib/tugboat/middleware/check_configuration.rb:19:in `call'
from /var/lib/gems/1.9.1/gems/tugboat-0.2.1/lib/tugboat/middleware/inject_configuration.rb:10:in `call'
from /var/lib/gems/1.9.1/gems/middleware-0.1.0/lib/middleware/runner.rb:31:in `call'
from /var/lib/gems/1.9.1/gems/middleware-0.1.0/lib/middleware/builder.rb:102:in `call'
from /var/lib/gems/1.9.1/gems/tugboat-0.2.1/lib/tugboat/cli.rb:104:in `ssh'
from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
from /var/lib/gems/1.9.1/gems/tugboat-0.2.1/bin/tugboat:10:in `<top (required)>'
from /usr/local/bin/tugboat:23:in `load'
from /usr/local/bin/tugboat:23:in `<main>'
@petems
Copy link

petems commented Dec 3, 2014

I'd recomend you regenerate your DO keys or delete this gist, looks like our DEBUG=2 to redact API keys logic was bugged, so these could be compromised.

I fixed it here: petems/tugboat#140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment