Skip to content

Instantly share code, notes, and snippets.

@momolog
Created May 8, 2013 21:43
Show Gist options
  • Save momolog/5543908 to your computer and use it in GitHub Desktop.
Save momolog/5543908 to your computer and use it in GitHub Desktop.
Backtrace for Net::SSH error while transfering a binary file via SFTP
Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-8
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/gems/net-ssh-2.6.7/lib/net/ssh/buffer.rb:284:in `block in write'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/gems/net-ssh-2.6.7/lib/net/ssh/buffer.rb:284:in `each'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/gems/net-ssh-2.6.7/lib/net/ssh/buffer.rb:284:in `write'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/gems/net-ssh-2.6.7/lib/net/ssh/buffer.rb:322:in `block in write_string'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/gems/net-ssh-2.6.7/lib/net/ssh/buffer.rb:319:in `each'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/gems/net-ssh-2.6.7/lib/net/ssh/buffer.rb:319:in `write_string'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/gems/net-ssh-2.6.7/lib/net/ssh/buffer.rb:55:in `block in from'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/gems/net-ssh-2.6.7/lib/net/ssh/buffer.rb:47:in `step'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/gems/net-ssh-2.6.7/lib/net/ssh/buffer.rb:47:in `from'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/gems/net-sftp-2.1.1/lib/net/sftp/session.rb:812:in `send_packet'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/gems/net-sftp-2.1.1/lib/net/sftp/protocol/base.rb:45:in `send_request'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/gems/net-sftp-2.1.1/lib/net/sftp/protocol/01/base.rb:112:in `write'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/gems/net-sftp-2.1.1/lib/net/sftp/session.rb:830:in `request'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/gems/net-sftp-2.1.1/lib/net/sftp/session.rb:273:in `write'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/gems/net-sftp-2.1.1/lib/net/sftp/session.rb:282:in `write!'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/gems/net-sftp-2.1.1/lib/net/sftp/operations/file.rb:120:in `write'
... 12 levels...
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/bundler/gems/vos-8de32a45bc4a/lib/vos/drivers/ssh_vfs_storage.rb:81:in `block in write_file'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/gems/net-sftp-2.1.1/lib/net/sftp/operations/file_factory.rb:45:in `open'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/bundler/gems/vos-8de32a45bc4a/lib/vos/drivers/ssh_vfs_storage.rb:80:in `write_file'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/bundler/gems/vfs-cfe28f74e173/lib/vfs/entries/file.rb:66:in `block in write'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/bundler/gems/vos-8de32a45bc4a/lib/vos/drivers/ssh.rb:39:in `call'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/bundler/gems/vos-8de32a45bc4a/lib/vos/drivers/ssh.rb:39:in `open'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/bundler/gems/vfs-cfe28f74e173/lib/vfs/entries/file.rb:61:in `write'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/bundler/gems/vfs-cfe28f74e173/lib/vfs/entries/file.rb:119:in `copy_to'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/bundler/gems/vfs-cfe28f74e173/lib/vfs/entries/universal_entry.rb:13:in `copy_to'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/bundler/gems/vfs-cfe28f74e173/lib/vfs/entry_proxy.rb:39:in `method_missing'
from (irb):11
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.11/lib/rails/commands/console.rb:47:in `start'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.11/lib/rails/commands/console.rb:8:in `start'
from /Users/aljoscha/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.11/lib/rails/commands.rb:41:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'1.9.3p392 :012 >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment