Skip to content

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

@Muna24

Description

@Muna24

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions