Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected exception during accept: 'NoneType' object has no attribute 'get_name' closing #1

Open
Muna24 opened this issue Jan 8, 2019 · 0 comments

Comments

@Muna24
Copy link

Muna24 commented Jan 8, 2019

Hello

I reached the part
From modeled YANG modules to a NETCONF service
in the readme file
and I receive these errors:

  • from the server side:
    NetconfSSHServer(port=12345): Unexpected exception during accept: 'NoneType' object has no attribute 'get_name' closing

  • from the client side:
    Exception: Error reading SSH protocol banner
    Traceback (most recent call last):
    File "/usr/local/lib/python3.6/dist-packages/paramiko/transport.py", line 2138, in _check_banner
    buf = self.packetizer.readline(timeout)
    File "/usr/local/lib/python3.6/dist-packages/paramiko/packet.py", line 367, in readline
    buf += self._read_timeout(timeout)
    File "/usr/local/lib/python3.6/dist-packages/paramiko/packet.py", line 576, in _read_timeout
    raise socket.timeout()
    socket.timeout

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/paramiko/transport.py", line 1966, in run
self._check_banner()
File "/usr/local/lib/python3.6/dist-packages/paramiko/transport.py", line 2143, in _check_banner
"Error reading SSH protocol banner" + str(e)
paramiko.ssh_exception.SSHException: Error reading SSH protocol banner

Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/paramiko/transport.py", line 2138, in _check_banner
buf = self.packetizer.readline(timeout)
File "/usr/local/lib/python3.6/dist-packages/paramiko/packet.py", line 367, in readline
buf += self._read_timeout(timeout)
File "/usr/local/lib/python3.6/dist-packages/paramiko/packet.py", line 576, in _read_timeout
raise socket.timeout()
socket.timeout

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 2, in
File "/usr/local/lib/python3.6/dist-packages/netconf/client.py", line 429, in init
host, port, "netconf", username, password, debug, cache=cache, proxycmd=proxycmd)
File "/usr/local/lib/python3.6/dist-packages/sshutil/conn.py", line 158, in init
proxycmd)
File "/usr/local/lib/python3.6/dist-packages/sshutil/conn.py", line 75, in init
self.ssh = cache.get_ssh_socket(host, port, username, password, debug, proxycmd)
File "/usr/local/lib/python3.6/dist-packages/sshutil/cache.py", line 334, in get_ssh_socket
True, debug, proxycmd)
File "/usr/local/lib/python3.6/dist-packages/sshutil/cache.py", line 147, in _open_ssh_socket
sshsock.start_client(event)
File "/usr/local/lib/python3.6/dist-packages/paramiko/transport.py", line 587, in start_client
raise e
File "/usr/local/lib/python3.6/dist-packages/paramiko/transport.py", line 1966, in run
self._check_banner()
File "/usr/local/lib/python3.6/dist-packages/paramiko/transport.py", line 2143, in _check_banner
"Error reading SSH protocol banner" + str(e)
paramiko.ssh_exception.SSHException: Error reading SSH protocol banner

( as a summary of what I have done: I create a linux (lxc) container, os = ubuntu bionic, I install both netconf and modeled.netconf) and I follow what is given in the readme file

Any clues on how I can solve the problems?

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant