MarketSquare / MarketSquare/SSHLibrary
GetFile error
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 167
- Forks
- 145
- PR merge metrics
- No merged PRs in 30d
Description
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'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing GetFile through abstractclient.py and pythonclient.py, especially _create_client, scp_all_client, and _create_scp_all_client, using the reported SCPClient traceback as the entry point. Reproduce the failure on the stated Python, Paramiko, and scp versions if possible; done means the cause of the missing transport is identified and the affected behavior is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100