MarketSquare / SSHLibrary

Robot Framework test library for SSH and SFTP
http://marketsquare.github.io/SSHLibrary/
Other
158 stars 139 forks source link

GetFile error #429

Open doguz2509 opened 1 year ago

doguz2509 commented 1 year ago

Sometimes I got the following error when attempting to file download:

Execution Info: Being executed on AWS EC2 CentOS8.5 host

Keyword arguments: GetFile , , scp=ALL

Componenets Info: Python3.8 RF: 6.0.2 SSLibrary: 3.8.0 paramiko: 3.1.0 scp: 0.14.5

Error Info:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/SSHLibrary/library.py", line 1653, in get_file
    return self._run_command(self.current.get_file, source,
  File "/usr/local/lib/python3.8/site-packages/SSHLibrary/library.py", line 1826, in _run_command
    files = command(*args)
  File "/usr/local/lib/python3.8/site-packages/SSHLibrary/abstractclient.py", line 652, in get_file
    client = self._create_client(scp)
  File "/usr/local/lib/python3.8/site-packages/SSHLibrary/abstractclient.py", line 758, in _create_client
    return self.scp_all_client
  File "/usr/local/lib/python3.8/site-packages/SSHLibrary/abstractclient.py", line 123, in scp_all_client
    self._scp_all_client = self._create_scp_all_client()
  File "/usr/local/lib/python3.8/site-packages/SSHLibrary/pythonclient.py", line 283, in _create_scp_all_client
    return SCPClient(self.client)
  File "/usr/local/lib/python3.8/site-packages/SSHLibrary/pythonclient.py", line 394, in __init__
    self._scp_client = scp.SCPClient(ssh_client.get_transport())
  File "/usr/local/lib/python3.8/site-packages/scp.py", line 160, in __init__
    self.peername = self.transport.getpeername()
AttributeError: 'NoneType' object has no attribute 'getpeername'