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

ReadTimeout #12

Open
JordanRN opened this issue Aug 8, 2024 · 0 comments
Open

ReadTimeout #12

JordanRN opened this issue Aug 8, 2024 · 0 comments

Comments

@JordanRN
Copy link

JordanRN commented Aug 8, 2024

When connecting to a device, after X number of seconds the connection times out after calling get_facts

`(venv) root@netbox2:/opt/netbox-4.0.8/venv/lib/python3.10/site-packages/napalm# python ./fastiron_test.py 
/opt/netbox-4.0.8/venv/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/opt/netbox-4.0.8/venv/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
SSH connection established to 192.168.1.38:22
Interactive SSH session established
Traceback (most recent call last):
  File "/opt/netbox-4.0.8/venv/lib/python3.10/site-packages/napalm_ruckus_fastiron/FastIron.py", line 102, in open
    self.device.session_preparation()
  File "/opt/netbox-4.0.8/venv/lib/python3.10/site-packages/netmiko/ruckus/ruckus_fastiron.py", line 15, in session_preparation
    self._test_channel_read()
  File "/opt/netbox-4.0.8/venv/lib/python3.10/site-packages/netmiko/base_connection.py", line 1243, in _test_channel_read
    new_data += self.read_channel_timing(read_timeout=20)
  File "/opt/netbox-4.0.8/venv/lib/python3.10/site-packages/netmiko/base_connection.py", line 825, in read_channel_timing
    raise ReadTimeout(msg)
netmiko.exceptions.ReadTimeout: 

read_channel_timing's absolute timer expired.

The network device was continually outputting data for longer than 20
seconds.

If this is expected i.e. the command you are executing is continually emitting
data for a long period of time, then you can set 'read_timeout=x' seconds. If
you want Netmiko to keep reading indefinitely (i.e. to only stop when there is
no new data), then you can set 'read_timeout=0'.

You can look at the Netmiko session_log or debug log for more information.



During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/netbox-4.0.8/venv/lib/python3.10/site-packages/napalm/./fastiron_test.py", line 4, in <module>
    driver.open()
  File "/opt/netbox-4.0.8/venv/lib/python3.10/site-packages/napalm_ruckus_fastiron/FastIron.py", line 112, in open
    raise ConnectionException("Cannot connect to switch: %s:%s" % (self.hostname,
napalm.base.exceptions.ConnectionException: Cannot connect to switch: 192.168.1.38:22
(venv) root@netbox2:/opt/netbox-4.0.8/venv/lib/python3.10/site-packages/napalm# ^C
(venv) root@netbox2:/opt/netbox-4.0.8/venv/lib/python3.10/site-packages/napalm# `
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