And sometimes, when i run test with number 3 (when i try to connect some more devices than in test 1 and 2, and i know that all connections to all devices are working)- i get exception:
host.yakovlev:AsyncBackup/ $ python3 test.py -t 1 [0:05:11]
1
192.168.15.1: Trying to connect
192.168.26.1: Trying to connect
192.168.32.1: Trying to connect
192.168.68.1: Trying to connect
192.168.72.1: Trying to connect
192.168.64.1: Trying to connect
192.168.38.1: Trying to connect
192.168.104.1: Trying to connect
192.168.106.1: Trying to connect
192.168.74.1: Trying to connect
192.168.56.1: Trying to connect
192.168.15.1: Connection successful
192.168.46.1: Trying to connect
192.168.32.1: Connection successful
192.168.26.1: Connection successful
192.168.68.1: Connection successful
192.168.28.1: Trying to connect
192.168.38.1: Connection successful
192.168.104.1: Connection successful
192.168.64.1: Connection successful
192.168.106.1: Connection successful
192.168.72.1: Connection successful
192.168.46.1: Connection successful
192.168.56.1: Connection successful
192.168.74.1: Connection successful
192.168.28.1: Connection successful
host.yakovlev:AsyncBackup/ $ python3 test.py -t 2 [0:04:39]
2
10.254.0.130: Trying to connect
192.168.16.1: Trying to connect
10.254.0.130: Connection successful
192.168.52.1: Trying to connect
192.168.80.1: Trying to connect
192.168.78.1: Trying to connect
192.168.42.1: Trying to connect
192.168.48.1: Trying to connect
192.168.76.1: Trying to connect
192.168.96.1: Trying to connect
192.168.70.1: Trying to connect
192.168.54.1: Trying to connect
10.240.0.129: Trying to connect
192.168.42.1: Connection successful
192.168.96.1: Connection successful
192.168.48.1: Connection successful
192.168.52.1: Connection successful
192.168.16.1: Connection successful
192.168.70.1: Connection successful
192.168.78.1: Connection successful
192.168.76.1: Connection successful
192.168.54.1: Connection successful
10.240.0.129: Connection successful
192.168.80.1: Connection successful
host.yakovlev:AsyncBackup/ $ python3 test.py -t 3 [0:04:20]
3
192.168.42.1: Trying to connect
10.254.0.130: Trying to connect
192.168.16.1: Trying to connect
192.168.42.1: Connection successful
192.168.26.1: Trying to connect
192.168.52.1: Trying to connect
192.168.80.1: Trying to connect
192.168.32.1: Trying to connect
192.168.15.1: Trying to connect
192.168.78.1: Trying to connect
192.168.76.1: Trying to connect
192.168.48.1: Trying to connect
192.168.96.1: Trying to connect
192.168.70.1: Trying to connect
10.254.0.130: Connection successful
192.168.16.1: Connection successful
192.168.26.1: Connection successful
192.168.52.1: Connection successful
192.168.80.1: Connection successful
192.168.32.1: Connection successful
192.168.15.1: Connection successful
192.168.78.1: Connection successful
192.168.76.1: Connection successful
192.168.48.1: Connection successful
192.168.96.1: Connection successful
192.168.70.1: Connection successful
Task exception was never retrieved
future: <Task finished coro=<task() done, defined at test.py:19> exception=DisconnectError('Disconnect Error: Permission denied',)>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
result = coro.throw(exc)
File "test.py", line 20, in task
async with asyncssh.connect(host, username=user, password=passwd, known_hosts=None, client_keys=None) as conn:
File "/usr/local/lib/python3.5/dist-packages/asyncssh/misc.py", line 138, in __aenter__
self._result = yield from self._coro
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4429, in connect
conn, _ = yield from create_connection(None, host, port, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4219, in create_connection
yield from auth_waiter
File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
asyncssh.misc.DisconnectError: Disconnect Error: Permission denied
Task exception was never retrieved
future: <Task finished coro=<task() done, defined at test.py:19> exception=DisconnectError('Disconnect Error: Permission denied',)>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
result = coro.throw(exc)
File "test.py", line 20, in task
async with asyncssh.connect(host, username=user, password=passwd, known_hosts=None, client_keys=None) as conn:
File "/usr/local/lib/python3.5/dist-packages/asyncssh/misc.py", line 138, in __aenter__
self._result = yield from self._coro
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4429, in connect
conn, _ = yield from create_connection(None, host, port, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4219, in create_connection
yield from auth_waiter
File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
asyncssh.misc.DisconnectError: Disconnect Error: Permission denied
Task exception was never retrieved
future: <Task finished coro=<task() done, defined at test.py:19> exception=DisconnectError('Disconnect Error: Permission denied',)>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
result = coro.throw(exc)
File "test.py", line 20, in task
async with asyncssh.connect(host, username=user, password=passwd, known_hosts=None, client_keys=None) as conn:
File "/usr/local/lib/python3.5/dist-packages/asyncssh/misc.py", line 138, in __aenter__
self._result = yield from self._coro
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4429, in connect
conn, _ = yield from create_connection(None, host, port, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4219, in create_connection
yield from auth_waiter
File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
asyncssh.misc.DisconnectError: Disconnect Error: Permission denied
Task exception was never retrieved
future: <Task finished coro=<task() done, defined at test.py:19> exception=DisconnectError('Disconnect Error: Permission denied',)>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
result = coro.throw(exc)
File "test.py", line 20, in task
async with asyncssh.connect(host, username=user, password=passwd, known_hosts=None, client_keys=None) as conn:
File "/usr/local/lib/python3.5/dist-packages/asyncssh/misc.py", line 138, in __aenter__
self._result = yield from self._coro
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4429, in connect
conn, _ = yield from create_connection(None, host, port, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4219, in create_connection
yield from auth_waiter
File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
asyncssh.misc.DisconnectError: Disconnect Error: Permission denied
Task exception was never retrieved
future: <Task finished coro=<task() done, defined at test.py:19> exception=DisconnectError('Disconnect Error: Permission denied',)>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
result = coro.throw(exc)
File "test.py", line 20, in task
async with asyncssh.connect(host, username=user, password=passwd, known_hosts=None, client_keys=None) as conn:
File "/usr/local/lib/python3.5/dist-packages/asyncssh/misc.py", line 138, in __aenter__
self._result = yield from self._coro
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4429, in connect
conn, _ = yield from create_connection(None, host, port, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4219, in create_connection
yield from auth_waiter
File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
asyncssh.misc.DisconnectError: Disconnect Error: Permission denied
Task exception was never retrieved
future: <Task finished coro=<task() done, defined at test.py:19> exception=DisconnectError('Disconnect Error: Permission denied',)>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
result = coro.throw(exc)
File "test.py", line 20, in task
async with asyncssh.connect(host, username=user, password=passwd, known_hosts=None, client_keys=None) as conn:
File "/usr/local/lib/python3.5/dist-packages/asyncssh/misc.py", line 138, in __aenter__
self._result = yield from self._coro
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4429, in connect
conn, _ = yield from create_connection(None, host, port, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4219, in create_connection
yield from auth_waiter
File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
asyncssh.misc.DisconnectError: Disconnect Error: Permission denied
Task exception was never retrieved
future: <Task finished coro=<task() done, defined at test.py:19> exception=DisconnectError('Disconnect Error: Permission denied',)>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
result = coro.throw(exc)
File "test.py", line 20, in task
async with asyncssh.connect(host, username=user, password=passwd, known_hosts=None, client_keys=None) as conn:
File "/usr/local/lib/python3.5/dist-packages/asyncssh/misc.py", line 138, in __aenter__
self._result = yield from self._coro
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4429, in connect
conn, _ = yield from create_connection(None, host, port, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4219, in create_connection
yield from auth_waiter
File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
asyncssh.misc.DisconnectError: Disconnect Error: Permission denied
Task exception was never retrieved
future: <Task finished coro=<task() done, defined at test.py:19> exception=DisconnectError('Disconnect Error: Permission denied',)>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
result = coro.throw(exc)
File "test.py", line 20, in task
async with asyncssh.connect(host, username=user, password=passwd, known_hosts=None, client_keys=None) as conn:
File "/usr/local/lib/python3.5/dist-packages/asyncssh/misc.py", line 138, in __aenter__
self._result = yield from self._coro
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4429, in connect
conn, _ = yield from create_connection(None, host, port, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4219, in create_connection
yield from auth_waiter
File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
asyncssh.misc.DisconnectError: Disconnect Error: Permission denied
Task exception was never retrieved
future: <Task finished coro=<task() done, defined at test.py:19> exception=DisconnectError('Disconnect Error: Permission denied',)>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
result = coro.throw(exc)
File "test.py", line 20, in task
async with asyncssh.connect(host, username=user, password=passwd, known_hosts=None, client_keys=None) as conn:
File "/usr/local/lib/python3.5/dist-packages/asyncssh/misc.py", line 138, in __aenter__
self._result = yield from self._coro
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4429, in connect
conn, _ = yield from create_connection(None, host, port, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4219, in create_connection
yield from auth_waiter
File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
asyncssh.misc.DisconnectError: Disconnect Error: Permission denied
Task exception was never retrieved
future: <Task finished coro=<task() done, defined at test.py:19> exception=DisconnectError('Disconnect Error: Permission denied',)>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
result = coro.throw(exc)
File "test.py", line 20, in task
async with asyncssh.connect(host, username=user, password=passwd, known_hosts=None, client_keys=None) as conn:
File "/usr/local/lib/python3.5/dist-packages/asyncssh/misc.py", line 138, in __aenter__
self._result = yield from self._coro
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4429, in connect
conn, _ = yield from create_connection(None, host, port, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4219, in create_connection
yield from auth_waiter
File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
asyncssh.misc.DisconnectError: Disconnect Error: Permission denied
Task exception was never retrieved
future: <Task finished coro=<task() done, defined at test.py:19> exception=DisconnectError('Disconnect Error: Permission denied',)>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
result = coro.throw(exc)
File "test.py", line 20, in task
async with asyncssh.connect(host, username=user, password=passwd, known_hosts=None, client_keys=None) as conn:
File "/usr/local/lib/python3.5/dist-packages/asyncssh/misc.py", line 138, in __aenter__
self._result = yield from self._coro
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4429, in connect
conn, _ = yield from create_connection(None, host, port, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4219, in create_connection
yield from auth_waiter
File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
asyncssh.misc.DisconnectError: Disconnect Error: Permission denied
Task exception was never retrieved
future: <Task finished coro=<task() done, defined at test.py:19> exception=DisconnectError('Disconnect Error: Permission denied',)>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
result = coro.throw(exc)
File "test.py", line 20, in task
async with asyncssh.connect(host, username=user, password=passwd, known_hosts=None, client_keys=None) as conn:
File "/usr/local/lib/python3.5/dist-packages/asyncssh/misc.py", line 138, in __aenter__
self._result = yield from self._coro
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4429, in connect
conn, _ = yield from create_connection(None, host, port, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/asyncssh/connection.py", line 4219, in create_connection
yield from auth_waiter
File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
asyncssh.misc.DisconnectError: Disconnect Error: Permission denied
So my problem is when i get really more than about 30 sessions I can get asyncssh.misc.DisconnectError exceptions and i don't know why.
System information: