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

Fortigate vDOM backup failing #3436

Open
LoveSkylark opened this issue Feb 28, 2025 · 0 comments
Open

Fortigate vDOM backup failing #3436

LoveSkylark opened this issue Feb 28, 2025 · 0 comments

Comments

@LoveSkylark
Copy link

I'm attempting to back up my FortiGate Firewalls, but I'm encountering the following error:

│ W, [2024-07-05T11:01:20.253418 https://github.com/ytti/oxidized/issues/33] WARN -- : x.x.x.x raised Timeout::Error with msg "execution expired"`

I can successfully back up over 100 other devices from various vendors. The configuration is large, and it takes a few minutes to scroll through the CLI when I run show | grep . manually. I've seen previous discussions about similar issues and have tried those solutions.

Adjusting the timeout doesn't seem to help—it just prolongs the failure.

When using diagnostics on the FortiGate, I notice that the process stalls after entering config global:

SSH: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory
cmd=config global
end

SSH: channel 0: rcvd adjust 131072
SSH: channel 0: request [email protected] confirm 1
SSH: channel 0: rcvd adjust 131072
SSH: channel 0: rcvd adjust 131072
SSH: channel 0: rcvd adjust 131072
SSH: channel 0: rcvd adjust 131072

So it looks like the FortiGate is not even getting a request for 'show | grep .'

Increasing the timeout just leads to more occurrences of 'SSH: channel 0: rcvd adjust 131072' before it ultimately fails.

Looking at the 'fortios.rb' code, I see that only these commands are executed:

cfg << cmd('config global') if @vdom_enabled
cfg << cmd('end') if @vdom_enabled

Interestingly, this same setup is successfully backing up configurations from a FortiGate that isn't using vDOMs.

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