[Avocado-devel] SSH EOF error

Kevin Chen chenxlbr at gmail.com
Fri Sep 28 03:10:27 UTC 2018


😀, I resolved it. The openssh doesn't enable sftp on my imx6 board. Now I
can get the right result from avocado with remote runner plugin.


On Thu, Sep 27, 2018 at 12:37 PM Kevin Chen <chenxlbr at gmail.com> wrote:

> Hi everyone,
>
> I use Avocado 62 verison on host and my NXP imx6 board.I use remote
> plugin to test avocado on board side. Below is my test command and
> error message
>
> ```
> avocado run --remote-hostname 192.168.2.163 --remote-username root
> --remote-password root /bin/true
> JOB ID     : dee3aa3eb4f841e228064c1427cf69a767f29e48
> JOB LOG    :
> /home/xxxx/avocado/job-results/job-2018-09-27T00.32-dee3aa3/job.log
> LOGIN      : root at 192.168.2.163:22 (TIMEOUT: 60 seconds)
>  (1/1) /bin/true: PASS (0.10 s)
> Error running method "end_test" of plugin "tap": [Errno 2] No such
> file or directory:
>
> '/home/xxxxx/avocado/job-results/job-2018-09-27T00.32-dee3aa3/test-results/1-_bin_true/debug.log'
>
> Avocado crashed: SSHException: EOF during negotiation
> Traceback (most recent call last):
>
>   File "/usr/local/lib/python2.7/dist-packages/avocado/core/job.py",
> line 494, in run_tests
>     execution_order)
>
>   File
> "/usr/local/lib/python2.7/dist-packages/avocado_runner_remote/__init__.py",
> line 557, in run_suite
>     self.remote.receive_files(local_log_dir, zip_filename)
>
>   File
> "/usr/local/lib/python2.7/dist-packages/avocado_runner_remote/__init__.py",
> line 181, in wrapper
>     return method(*args, **kwargs)
>
>   File
> "/usr/local/lib/python2.7/dist-packages/avocado_runner_remote/__init__.py",
> line 323, in receive_files
>     remote_path, hosts=[self.hostname])
>
>   File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line
> 386, in execute
>     multiprocessing
>
>   File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line
> 276, in _execute
>     return task.run(*args, **kwargs)
>
>   File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line
> 173, in run
>     return self.wrapped(*args, **kwargs)
>
>   File
> "/usr/local/lib/python2.7/dist-packages/avocado_runner_remote/__init__.py",
> line 162, in receive_files
>     local_path)
>
>   File "/usr/local/lib/python2.7/dist-packages/fabric/network.py",
> line 687, in host_prompting_wrapper
>     return func(*args, **kwargs)
>
>   File "/usr/local/lib/python2.7/dist-packages/fabric/operations.py",
> line 535, in get
>     ftp = SFTP(env.host_string)
>
>   File "/usr/local/lib/python2.7/dist-packages/fabric/sftp.py", line
> 33, in __init__
>     self.ftp = connections[host_string].open_sftp()
>
>   File "/usr/local/lib/python2.7/dist-packages/paramiko/client.py",
> line 521, in open_sftp
>     return self._transport.open_sftp_client()
>
>   File "/usr/local/lib/python2.7/dist-packages/paramiko/transport.py",
> line 980, in open_sftp_client
>     return SFTPClient.from_transport(self)
>
>   File "/usr/local/lib/python2.7/dist-packages/paramiko/sftp_client.py",
> line 140, in from_transport
>     return cls(chan)
>
>   File "/usr/local/lib/python2.7/dist-packages/paramiko/sftp_client.py",
> line 105, in __init__
>     raise SSHException('EOF during negotiation')
>
> SSHException: EOF during negotiation
>
> Please include the traceback info and command line used on your bug report
> Report bugs visiting
> https://github.com/avocado-framework/avocado/issues/new
> ```
>
> I saw the test was pass result. I am newer about python. Could anyone
> give me some hints? Thanks!
>
> --
>
> ---
> Kevin Chen
> ShenZhen Guangdong, China
>


-- 

---
Kevin Chen
ShenZhen Guangdong, China
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/avocado-devel/attachments/20180928/fb4fdf13/attachment.htm>


More information about the Avocado-devel mailing list