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 #1

Updated by Viktor Gurov over 2 years ago

  • Assignee set to Viktor Gurov
  • Affected Version set to 2.5.0
Actions #2

Updated by Viktor Gurov over 2 years ago

Actions #3

Updated by Jim Pingle over 2 years ago

  • Status changed from New to Pull Request Review
Actions #4

Updated by Viktor Gurov over 2 years ago

  • Status changed from Pull Request Review to Feedback
  • % Done changed from 0 to 100
Actions #5

Updated by Christopher Cope over 2 years ago

  • Status changed from Feedback to Resolved

Tested and working successfully on

22.05-BETA (amd64)
built on Tue May 17 06:27:39 UTC 2022
FreeBSD 12.3-STABLE

Marking resolved.

Actions

Also available in: Atom PDF