Page MenuHomeVyOS Platform

commit archive: reboot not working with sftp
Open, Requires assessmentPublicBUG

Description

Using the following configuration will "break" system reboots once the backup target is unreachable.

system {
    config-management {
        commit-archive {
            location sftp://vyos:[email protected]3.13/backups/configs/
        }
        commit-revisions 200
    }
}

Having a look at the process monitor the initial boot commit is stuck

frr        949  0.1  0.3  11232  2736 ?        Ss   21:27   0:01 /usr/lib/frr/bfdd -d -F traditional --daemon -A 127.0.0.1
root      1204  0.2  0.5  25292  4212 ?        S    21:28   0:01 /opt/vyatta/sbin/my_commit
root      3494  0.0  0.0   2280   732 ?        S    21:29   0:00  \_ /bin/run-parts --regex=^[a-zA-Z0-9._-]+$ -- /etc/commit/post-hooks.d
root      3508  0.0  2.2  44828 17168 ?        S    21:29   0:00      \_ /usr/bin/perl /etc/commit/post-hooks.d/02vyatta-commit-push.pl
root      3516 63.7  3.3 186584 24976 ?        R    21:29   8:17          \_ python3 -c from vyos.remote import upload; upload("/tmp/config.boot.3508", "sftp://vyos:[email protected]/backups/configs/"
root      1223  1.9  3.1  31812 23800 ?        S    21:28   0:16 ddclient - sleeping for 50 seconds

@erkin there should be an "unreachable" timeout of 30 to 60 seconds

image.png (374×668 px, 126 KB)

Details

Difficulty level
Unknown (require assessment)
Version
1.3.1
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

c-po updated the task description. (Show Details)
c-po added a project: VyOS 1.4 Sagitta.
c-po changed Version from 1.3.1-S1 to 1.3.1.
c-po added a subscriber: erkin.
c-po updated the task description. (Show Details)

I can confirm this has been the reason I've had issues upgrading from 1.2.x to 1.3.x.
Removing this statement before attempting, I can now upgrade from 1.2 to 1.3 smoothly, no OOM errors or other problems.