Project

General

Profile

Actions

Feature #10556

closed

Change action on 'XML configuration file not found' error

Added by Viktor Gurov over 4 years ago. Updated almost 4 years ago.

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

100%

Estimated time:
Plus Target Version:
Release Notes:

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

Actions #1

Updated by Jim Pingle over 4 years 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

Actions #2

Updated by Viktor Gurov over 4 years 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

Actions #3

Updated by Jim Pingle over 4 years ago

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

Updated by Renato Botelho over 4 years 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!

Actions #5

Updated by Anonymous almost 4 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF