Actions
Bug #13157
closedPHP error restoring DHCP lease data on fresh installation:
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.
Related issues
Updated by Viktor Gurov over 2 years ago
- Assignee set to Viktor Gurov
- Affected Version set to 2.5.0
Updated by Viktor Gurov over 2 years ago
- Related to Feature #10910: Backup/restore DHCP v4/v6 leases added
Updated by Jim Pingle over 2 years ago
- Status changed from New to Pull Request Review
Updated by Viktor Gurov over 2 years ago
- Status changed from Pull Request Review to Feedback
- % Done changed from 0 to 100
Applied in changeset eca0a3acd2e806a4bfb56d23413dafdd782a3280.
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