tobami/littlechef — Issue #85: No handlers could be found for logger "ssh.transport"
Author: rweng
Created: 2012-02-19 23:09:45+00:00
State: open

Hi,

when trying to install ruby 1.9.3 with rbenv (`rbenv install 1.9.3-p0 (system)`) ([this cookbook](https://github.com/fnichol/chef-rbenv)), on EC2 with ubuntu 10.04 (AMI: ami-95dde2e1) I get the following error:

~~~
No handlers could be found for logger "ssh.transport"

FAILED: chef-solo could not finish configuring the node

Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/fabric/main.py", line 710, in main
*args, **kwargs
File "/Library/Python/2.7/site-packages/fabric/tasks.py", line 292, in execute
multiprocessing
File "/Library/Python/2.7/site-packages/fabric/tasks.py", line 191, in _execute
return task.run(*args, **kwargs)
File "/Library/Python/2.7/site-packages/fabric/tasks.py", line 113, in run
return self.wrapped(*args, **kwargs)
File "/Library/Python/2.7/site-packages/littlechef/runner.py", line 182, in recipe
chef.sync_node(data)
File "/Library/Python/2.7/site-packages/littlechef/chef.py", line 84, in sync_node
_node_cleanup()
File "/Library/Python/2.7/site-packages/littlechef/chef.py", line 289, in _node_cleanup
_remove_remote_node_data_bag()
File "/Library/Python/2.7/site-packages/littlechef/chef.py", line 282, in _remove_remote_node_data_bag
if exists(node_data_bag_path):
File "/Library/Python/2.7/site-packages/fabric/contrib/files.py", line 35, in exists
return not func(cmd).failed
File "/Library/Python/2.7/site-packages/fabric/network.py", line 457, in host_prompting_wrapper
return func(*args, **kwargs)
File "/Library/Python/2.7/site-packages/fabric/operations.py", line 904, in run
return _run_command(command, shell, pty, combine_stderr)
File "/Library/Python/2.7/site-packages/fabric/operations.py", line 814, in _run_command
stdout, stderr, status = _execute(default_channel(), wrapped_command, pty,
File "/Library/Python/2.7/site-packages/fabric/state.py", line 340, in default_channel
chan = connections[env.host_string].get_transport().open_session()
File "/Library/Python/2.7/site-packages/ssh/transport.py", line 660, in open_session
return self.open_channel('session')
File "/Library/Python/2.7/site-packages/ssh/transport.py", line 729, in open_channel
raise SSHException('SSH session not active')
ssh.SSHException: SSH session not active
~~~

This only thing I found online was [this](http://cisight.com/solve-fabric-no-handlers-could-be-found-for-logger-ssh-transport-fatal-error-no-existing-session/#more-167), but deleting .ssh doesnt work.