Chinaunix首页 | 论坛 | 博客
  • 博客访问: 482246
  • 博文数量: 108
  • 博客积分: 25
  • 博客等级: 民兵
  • 技术积分: 1134
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-29 19:43
文章分类

全部博文(108)

文章存档

2016年(10)

2015年(9)

2014年(73)

2013年(16)

我的朋友

分类: Python/Ruby

2014-07-28 17:12:02

1.sftp IP 报‘Recieved message too long’
解决方法:
DEBUG:paramiko.transport:[chan 2] Max packet in: 34816 bytes
DEBUG:paramiko.transport:[chan 2] Max packet out: 32768 bytes
INFO:paramiko.transport:Secsh channel 2 opened.
DEBUG:paramiko.transport:[chan 2] Sesch channel 2 request ok
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/fabric/main.py", line 743, in main
    *args, **kwargs
  File "/usr/lib/python2.7/dist-packages/fabric/tasks.py", line 368, in execute
    multiprocessing
  File "/usr/lib/python2.7/dist-packages/fabric/tasks.py", line 264, in _execute
    return task.run(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in run
    return self.wrapped(*args, **kwargs)
  File "/opt/deploy/tools/fabfile.py", line 165, in install_jdk
    put("./project/jdk1.7.0_45.tar.gz","/usr/local")
  File "/usr/lib/python2.7/dist-packages/fabric/network.py", line 639, in host_prompting_wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/fabric/operations.py", line 346, in put
    ftp = SFTP(env.host_string)
  File "/usr/lib/python2.7/dist-packages/fabric/sftp.py", line 30, in __init__
    self.ftp = connections[host_string].open_sftp()
  File "/usr/lib/python2.7/dist-packages/paramiko/client.py", line 414, in open_sftp
    return self._transport.open_sftp_client()
  File "/usr/lib/python2.7/dist-packages/paramiko/transport.py", line 846, in open_sftp_client
    return SFTPClient.from_transport(self)
  File "/usr/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 106, in from_transport
    return cls(chan)
  File "/usr/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 87, in __init__
    server_version = self._send_version()
  File "/usr/lib/python2.7/dist-packages/paramiko/sftp.py", line 108, in _send_version
    t, data = self._read_packet()
  File "/usr/lib/python2.7/dist-packages/paramiko/sftp.py", line 179, in _read_packet
    raise SFTPError('Garbage packet received')
paramiko.SFTPError: Garbage packet received

注释掉/bin/bashrc里的cat,echo选项。
阅读(8068) | 评论(2) | 转发(0) |
0

上一篇:Gluster 问题汇总

下一篇:python timeit 模块

给主人留下些什么吧!~~