Cu 163, 164, 165 RC: backupctrl broken

Using the “Backup Console”, running “backupctrl restore” fails with

backup.pl:
. . . 145: convert-to-location
. . . 148: firewallctrl
. . . 151: convert-ovpn
. . . 163: convert-dns-settings
“not found” - although existing.

Temporarily replacing the calls with full path of the files
circumvented this pothole,
leading to further errors as follow-ups.

[ wiki.ipfire.org - Using the Backup Console ]

I tried every one and I don’t remember this error.

Please send the entire line you entered and the entire response from the command.

A)

As required in cited wiki: “backupctrl restore filename” -
in my case:
. . . . . “backupctrl restore 2022-03-11-09 17.ipf”

B) explicit version:

backup.pl:
line 145: convert-to-location not found
line 148: firewallctrl not found
line 151: convert-ovpn not found
line 163: convert-dns-settings not found

[ my memory - from a box without any working network connection ]

RETRY:
setting up from nightly → master → x86_64 → with ipfire-2.27.x86_64-full-core165.iso
dated 2022-03-17_03:43
running “setup” to configure interfaces
running “backupctrl restore 2022-03-11-09 17.ipf”:

/var/ipfire/backup/bin/backup.pl:
line 151: convert-to-location: command not found
line 154: firewallctrl: command not found
line 157: convert-ovpn: command not found
line 175: convert-dns-settings: command not found

“which …” locates them at /user/local/bin

Temporarily replacing the calls with full path of the files circumvented these four errors,
leading to further message output:
“Use of uninitialized value $fwoptions {“DROPHOSTFILE”} in string ne at /usr/lib/firewall/rules.pl line 693.”

This message re-appears in following boot processes on the display.

CONFIRMATION:
At least, in 5.15.23-ipfire, modified “backupctrl restore” succeeds to re-load the basic configs;
after a reboot and “/etc/init.d/dhcp restart” the external network was available.

hwfan, hwvolt, DynDNS: still missing (see my other posts).

Changing Pakfire to “Testing” repository, refresh works, and hostapd can be installed.

AND: “Talos VRT rules with subscription” is enabled,
at first sight without creating any obvious problems :slight_smile:
Cudos to Stefan!

I can confirm!

[root@ipfireVMc164t ~]# backupctrl restore /var/ipfire/backup/2022-03-17-14:05.ipf
etc/group
etc/hosts
etc/httpd/server-ecdsa.crt
etc/httpd/server-ecdsa.csr
etc/httpd/server-ecdsa.key
etc/httpd/server.crt
. . .
var/log/rrd/hddshutdown-sda.rrd
var/log/rrd/hddtemp-sda.rrd
var/log/rrd/wio/
var/log/vnstat/
var/log/vnstat/vnstat.db
groupadd: group 'dhcpcd' already exists
useradd: user 'dhcpcd' already exists
/var/ipfire/backup/bin/backup.pl: line 151: convert-to-location: command not found
/var/ipfire/backup/bin/backup.pl: line 154: firewallctrl: command not found
/var/ipfire/backup/bin/backup.pl: line 157: convert-ovpn: command not found
/var/ipfire/backup/bin/backup.pl: line 175: convert-dns-settings: command not found
[root@ipfireVMc164t ~]# 

Please do a bug report.

Information to add a bug report in IPFire Bugzilla:

1 Like

https://bugzilla.ipfire.org/show_bug.cgi?id=12811

1 Like

@manfred_knick - thank you for reporting this!

fix patch here:
https://git.ipfire.org/?p=ipfire-2.x.git;a=commit;h=136d91f3463445c8ee525d98f06f82d5a028784e

My Pleasure!
Kind regards

1 Like