Project

General

Profile

Actions

Bug #13157

closed

PHP error restoring DHCP lease data on fresh installation:

Added by Jim Pingle over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Viktor Gurov
Category:
Backup / Restore
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
22.05
Release Notes:
Default
Affected Version:
2.5.0
Affected Architecture:

Description

Restoring a configuration with DHCP lease data can lead to a PHP error when restoring during a fresh install:

[12-May-2022 18:31:16 ] PHP Warning: file_put_contents(/var/dhcpd/var/db/dhcpd.leases): failed to open stream: No such file or directory in /etc/inc/config.lib.inc on line 264

If the restore part happens before the first DHCP daemon startup that directory structure likely doesn't exist yet.

See also: https://forum.netgate.com/topic/172133/php-errors-with-2-7-0-development-amd64-20220512-1201-snapshot


Related issues

Related to Feature #10910: Backup/restore DHCP v4/v6 leasesResolvedRenato Botelho09/17/2020

Actions
Actions

Also available in: Atom PDF