Project

General

Profile

Feature #10556

Change action on 'XML configuration file not found' error

Added by Viktor Gurov about 2 months ago. Updated 27 days ago.

Status:
Feedback
Priority:
Normal
Category:
Configuration Backend
Target version:
Start date:
05/14/2020
Due date:
% Done:

100%

Estimated time:

Description

After a shutdown/filesystem error I got on boot:

XML configuration file not found. pfSense cannot continue booting.

then system halted

This is not a very useful behavior in this situation,
I think is better to do a factory reset or switch to single-user mode instead of just halting the system

Associated revisions

Revision 658b4b7f (diff)
Added by Viktor Gurov about 1 month ago

Do not halt on configuration file not found error. Implements #10556

Revision 5fff62d9 (diff)
Added by Viktor Gurov about 1 month ago

Do not halt on configuration file not found error. Implements #10556

History

#1 Updated by Jim Pingle about 2 months ago

  • Category changed from Diagnostics to Configuration Backend
  • Target version set to 2.5.0

We already have some code that could handle this, which restores the last good backup when invalid XML is detected. It should be viable, or maybe code a work-alike in sh: source:src/etc/inc/config.lib.inc#L229

#2 Updated by Viktor Gurov about 1 month ago

With this PR it goes forward and shows a console menu that allow you to make a factory reset for example:
https://github.com/pfsense/pfsense/pull/4338

#3 Updated by Jim Pingle about 1 month ago

  • Status changed from New to Pull Request Review

#4 Updated by Renato Botelho 27 days ago

  • Status changed from Pull Request Review to Feedback
  • Assignee set to Renato Botelho
  • % Done changed from 0 to 100

PR has been merged. Thanks!

Also available in: Atom PDF