Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

"Error reading running config" while backup config #36

Open
polaris197 opened this issue Aug 30, 2019 · 0 comments
Open

"Error reading running config" while backup config #36

polaris197 opened this issue Aug 30, 2019 · 0 comments

Comments

@polaris197
Copy link

Hi
I had some some error while backuping configuration on Fortigate 3000.

I have the message "Error reading running config" and a raise socket.timeout() exception.

My investigating found that it was the error channel of the ssh connection which raise this timeout and stop the reading for the standard output.

I do this modification on the plugin python module:
pyfg/pyFG/fortios.py
from line 149 replace this
error = '' output = '' for e in error_chan.read(): error = error + self._read_wrapper(e) for o in output_chan.read(): output = output + self._read_wrapper(o)

by

error = '' output = '' try: for e in error_chan.read(): error = error + self._read_wrapper(e) except: pass for o in output_chan.read(): output = output + self._read_wrapper(o)

And with this modification, i have no more error.

As diagnosis, i suspect that the Fortigate 3000 don't send any caracter to the stream

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

No branches or pull requests

1 participant