Problem restoring backup from ISO

General questions.
Post Reply
erikvl
Posts: 16
Joined: April 9th, 2018, 9:14 am

Problem restoring backup from ISO

Post by erikvl » April 12th, 2018, 12:02 pm

I am testing the restore process (from an ISO) and that failed.

The system gets installed properly. Many settings seem to have been restored properly too. For instance the root password.
But, setting up the firewall during boot fails miserably. First error is this:
iptables v1.4.21: Empty interface is likely to be undesired
Then very many follow. Starting with:
iptables v1.4.21: Bad IP address ""

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Empty interface is likely to be undesired
Try `iptables -h' or 'iptables --help' for more information.
Use of uninitialized value $destination in pattern match (m//) at /usr/lib/firewall/rules.pl line 380.
Use of uninitialized value $destination in pattern match (m//) at /usr/lib/firewall/rules.pl line 380.
Use of uninitialized value $destination in pattern match (m//) at /usr/lib/firewall/rules.pl line 380.
And after that:
Enabling S.M.A.R.T.: sda sdb [ OK ]
BROADCAST variable missing from input, cannot continue. [ FAIL ]
Adding static routes...
RTNETLINK answers: Network is unreachable
RTNETLINK answers: Network is unreachable
RTNETLINK answers: Network is unreachable [ FAIL ]
Starting the Cyrus SASL Server... [ OK ]
Initializing kernel random number generator... [ OK ]
Setting time on boot... ERROR! Not online! [ WARN ]
After login, what stands out is that none of the interfaces (red, green and orange) exist. Instead their unconfigured originals are still there.
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 00:0d:b9:49:d0:88 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 00:0d:b9:49:d0:89 brd ff:ff:ff:ff:ff:ff
4: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 00:0d:b9:49:d0:8a brd ff:ff:ff:ff:ff:ff
This is most likely what makes setting up the firewall fail.

Have I overlooked something important, or have I run into a bug?

edit: Running setup seems to fix things.
When I run setup it confirms that nics have not been assigned. I have to enter all settings in the networking section of the setup menu again. After that the system boots as before the restore.

User avatar
Arne.F
Core Developer
Core Developer
Posts: 8522
Joined: May 7th, 2006, 8:57 am
Location: BS <-> NDH
Contact:

Re: Problem restoring backup from ISO

Post by Arne.F » April 12th, 2018, 2:09 pm

If the iso was created with an other hardware it is normal that you have to rerun setup after restore because the assignment of the nics not match.
Arne

Support the project on the donation!

Image

Image

Image
PS: I will not answer support questions via email and ignore IPFire related messages on my non IPFire.org mail addresses.

erikvl
Posts: 16
Joined: April 9th, 2018, 9:14 am

Re: Problem restoring backup from ISO

Post by erikvl » April 12th, 2018, 5:51 pm

Arne.F wrote:
April 12th, 2018, 2:09 pm
If the iso was created with an other hardware it is normal that you have to rerun setup after restore because the assignment of the nics not match.
No, exact same hardware. More experiments with restoring backups show that network settings do not get (fully) restored.

For instance, make a backup, change the orange ip fi, restore backup, note that orange ip does not get restored.

User avatar
Arne.F
Core Developer
Core Developer
Posts: 8522
Joined: May 7th, 2006, 8:57 am
Location: BS <-> NDH
Contact:

Re: Problem restoring backup from ISO

Post by Arne.F » April 20th, 2018, 8:01 am

I have checked the backup includes and it is intended that the nic config is excluded from this backup. This is to prevent users to loose the access to the webif after restore a backup. You have to setup the same nic/network cfg to use a backup...
Arne

Support the project on the donation!

Image

Image

Image
PS: I will not answer support questions via email and ignore IPFire related messages on my non IPFire.org mail addresses.

Post Reply