i updated my vyos to the latest RR and alle works fine, except the firewall.
and if i want to load, there comes this error:
load /config/config.boot_bak
Loading configuration from '/config/config.boot_bak'
Traceback (most recent call last):
File "/usr/libexec/vyos/vyos-load-config.py", line 86, in <module>
virtual_migration.run()
File "/usr/lib/python3/dist-packages/vyos/migrator.py", line 213, in run
cfg_versions = self.read_config_file_versions()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/vyos/migrator.py", line 65, in read_config_file_versions
cfg_versions = component_version.from_file(cfg_file, vintage='vyos')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/vyos/component_version.py", line 80, in from_file
version_dict = from_string(line_in_config, vintage=vintage)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/vyos/component_version.py", line 57, in from_string
raise ValueError(f"malformed configuration string: {string_line}")
ValueError: malformed configuration string: // vyos-config-version: "bgp@4:broadcast-relay@1:cluster@1:config-management@1:conntrack@3:conntrack-sync@2:container@1:dhcp-relay@2:dhcp-server@6:dhcpv6-server@1:dns-forwarding@4:firewall@10:flow-accounting@1:https@4:ids@1:interfaces@28:ipoe-server@1:ipsec@12:isis@3:l2tp@4:lldp@1:mdns@1:monitoring@1:nat@5:nat66@1:ntp@2:openconnect@2:ospf@2:policy@5:pppoe-server@6:pptp@2:qos@2:quagga@11:rip@1:rpki@1:salt@1:snmp@3:ssh@2:sstp@4:system@26:vrf@3:vrrp@3:vyos-accel-ppp@2:wanloadbalance@3:webproxy@
My Version:
run sh ver
Version: VyOS 1.5-rolling-202309111408
Release train: current
Built by: [email protected]
Built on: Mon 11 Sep 2023 15:32 UTC
Build UUID: f033459c-25f8-48de-8728-3d0fc6eb43fe
Build commit ID: 0f75e12dd1af2f
Architecture: x86_64
Boot via: installed image
System type: bare metal
Hardware vendor: System manufacturer
Hardware model: System Product Name
Hardware S/N: System Serial Number
Hardware UUID: 9f50865a-799b-ffe1-532e-f02f745226c5
Copyright: VyOS maintainers and contributors
[edit]
I tried to just load the firewall section:
Migration script error: /opt/vyatta/etc/config-migrate/migrate/firewall/7-to-8: [Errno 1] failed to run command: ['/opt/vyatta/etc/config-migrate/migrate/firewall/7-to-8', '/tmp/tmpe9dy4wft']
returned:
exit code: 1.
Do you have other backups of the config from about the same time?
Because that last line is broken when it ends with “webproxy@”.
There should exist some number after that last “@”.
Here is for example how it currently looks like in the 1.5-rolling from 230917:
// Warning: Do not remove the following line.
// vyos-config-version: "bgp@4:broadcast-relay@1:cluster@1:config-management@1:conntrack@4:conntrack-sync@2:container@1:dhcp-relay@2:dhcp-server@6:dhcpv6-server@1:dns-dynamic@1:dns-forwarding@4:firewall@11:flow-accounting@1:https@4:ids@1:interfaces@30:ipoe-server@1:ipsec@12:isis@3:l2tp@4:lldp@1:mdns@1:monitoring@1:nat@5:nat66@1:ntp@3:openconnect@2:ospf@2:policy@5:pppoe-server@6:pptp@2:qos@2:quagga@11:rip@1:rpki@1:salt@1:snmp@3:ssh@2:sstp@4:system@26:vrf@3:vrrp@4:vyos-accel-ppp@2:wanloadbalance@3:webproxy@2"
// Release version: 1.5-rolling-202309170024
I dont however know when the version for webproxy section bumped to 2 so if possible try to add a “2” to the end of your line and see how things goes?
****@****:~$ cat /config/config.boot_bak
// Warning: Do not remove the following line.
// vyos-config-version: "bgp@4:broadcast-relay@1:cluster@1:config-management@1:conntrack@3:conntrack-sync@2:container@1:dhcp-relay@2:dhcp-server@6:dhcpv6-server@1:dns-forwarding@4:firewall@10:flow-accounting@1:https@4:ids@1:interfaces@28:ipoe-server@1:ipsec@12:isis@3:l2tp@4:lldp@1:mdns@1:monitoring@1:nat@5:nat66@1:ntp@2:openconnect@2:ospf@2:policy@5:pppoe-server@6:pptp@2:qos@2:quagga@11:rip@1:rpki@1:salt@1:snmp@3:ssh@2:sstp@4:system@26:vrf@3:vrrp@3:vyos-accel-ppp@2:wanloadbalance@3:webproxy@
****@****:~$