Empty config file

Today the status display no longer showed any inputs or outputs, which is why I restarted the device once (power supply interrupted). It then showed the catch-all panic code light sequence red-red-red. At first I thought that probably the SD card failed, but it turned out that the access to the SD card still works fine with a computer, but the config.txt was empty. I copied the template from Github into it (IoTaWatt/config.txt at master · boblemaire/IoTaWatt · GitHub) and now it runs again.

Now I ask myself how the config could be deleted and if I still have access to the stored values?

This is the log file:

No clock yet: SD initialized.
5/19/18 04:17:52 Real Time Clock is running. Unix time: 1526703472
5/19/18 04:17:52 Version: 02_03_05
5/19/18 04:17:52 Reset reason: Exception
5/19/18 04:17:52 Trace:  9:5, 9:9, 1:2, 1:3, 1:4, 1:5, 1:6, 1:3, 1:4, 1:5, 1:6, 1:3, 1:4, 1:5, 3:0, 3:7, 3:7, 3:7, 7:0, 7:8, 7:8, 7:8, 7:8, 1:6, 1:1, 9:0, 9:1, 8:4, 8:6, 8:8, 9:3, 9:4
5/19/18 04:17:52 ESP8266 ChipID:2329763
5/19/18 04:17:52 device name: IotaWatt, version: 3
5/19/18 04:17:52 Local time zone: 0
5/19/18 04:17:54 MDNS responder started
5/19/18 04:17:54 You can now connect to http://IotaWatt.local
5/19/18 04:17:54 HTTP server started
5/19/18 04:17:54 dataLog: service started.
5/19/18 04:17:55 dataLog: Last log entry:1526703470
5/19/18 04:17:55 statService: started.
5/19/18 04:17:56 timeSync: service started.
5/19/18 04:17:56 WiFi connected. SSID: rexoweb, IP: 192.168.11.83
5/19/18 04:17:56 Updater: started.
5/19/18 04:17:56 historyLog: service started.
5/19/18 04:17:57 historyLog: Last log entry:1526703420
5/19/18 04:17:57 EmonService: started.url: 192.168.11.76:80/emoncms, node: IotaWatt, post interval: 5, unsecure GET
5/19/18 04:17:56 timeSync: adjusting RTC by -2
5/19/18 04:17:58 EmonService: Start posting at 1526703435
5/19/18 04:17:59 influxDB: started.url: 192.168.11.76,port=8086,db=BETTERSPACE,post interval: 10
5/19/18 04:17:59 influxDB: Start posting from 5/19/18 04:16:50 
5/19/18 07:17:58 timeSync: adjusting RTC by 2
5/19/18 11:18:04 Updater: Update from 02_03_05 to 02_03_06
5/19/18 11:18:04 Updater: download 02_03_06
5/19/18 11:18:25 Updater: Release downloaded 21223ms, size 615432
5/19/18 11:18:39 Updater: Update downloaded and signature verified
5/19/18 11:18:45 Updater: firmware upgraded to version 02_03_06
5/19/18 11:18:45 Firmware updated, restarting.

** Restart **

SD initialized.
5/19/18 11:18:54z Real Time Clock is running. Unix time 1526728734 
5/19/18 11:18:54z Version 02_03_06
5/19/18 11:18:54z Updater: Installing update files for version 02_03_06
5/19/18 11:18:54z Updater: Installing GRAPH.HTM
5/19/18 11:18:54z Updater: Installing GRAPH.JS
5/19/18 11:18:55z Updater: Installing INDEX.HTM
5/19/18 11:18:56z Updater: Installing TABLES.TXT
5/19/18 11:18:56z Updater: Installing CNFSTYLE.CSS
5/19/18 11:18:56z Updater: Installing EDIT.HTM
5/19/18 11:18:57z Updater: Installation complete.
5/19/18 11:18:57z Reset reason: Software/System restart
5/19/18 11:18:57z Trace:  1:6, 1:3, 1:5, 1:6, 1:1, 9:0, 9:1, 8:4, 8:6, 8:8, 9:3, 9:4, 9:5, 9:9, 1:2, 1:3, 1:5, 1:6, 1:1, 9:0, 9:1, 8:4, 8:6, 8:8, 9:3, 9:4, 9:5, 9:9, 1:2, 1:3, 1:4, 1:5
5/19/18 11:18:57z ESP8266 ChipID: 2329763
5/19/18 11:18:57z Local time zone: 0
5/19/18 11:18:57z device name: IotaWatt, version: 3
5/19/18 11:19:00z Connecting with WiFiManager.
5/19/18 11:19:05z MDNS responder started
5/19/18 11:19:06z You can now connect to http://IotaWatt.local
5/19/18 11:19:06z HTTP server started
5/19/18 11:19:06z dataLog: service started.
5/19/18 11:19:07z dataLog: Last log entry: 1526728705
5/19/18 11:19:07z statService: started.
5/19/18 11:19:07z timeSync: service started.
5/19/18 11:19:07z WiFi connected. SSID: rexoweb, IP: 192.168.11.83
5/19/18 11:19:07z Updater: started.
5/19/18 11:19:07z historyLog: service started.
5/19/18 11:19:08z historyLog: Last log entry 1526728680
5/19/18 11:19:08z EmonService: started. url:192.168.11.76:80/emoncms,node:IotaWatt,interval:5, unsecure GET
5/19/18 11:19:06z timeSync: adjusting RTC by -2
5/19/18 11:19:08z EmonService: Start posting at 5/19/18 11:17:55 
5/19/18 11:19:11z influxDB: started.
5/19/18 11:19:11z influxDB: Start posting from 5/19/18 11:17:50 
5/20/18 22:19:13z timeSync: adjusting RTC by -2

** Restart **

SD initialized.
5/21/18 11:05:42z Real Time Clock is running. Unix time 1526900742 
5/21/18 11:05:42z Power failure detected.
5/21/18 11:05:42z Version 02_03_06
5/21/18 11:05:42z Reset reason: External System
5/21/18 11:05:42z Trace:  1:3, 1:20, 1:1, 9:0, 25:1, 8:4, 8:38, 8:8, 9:6, 5:2, 1:3, 1:4, 67:67, 33:4, 1:3, 129:4, 5:3, 1:4, 1:3, 33:4, 1:131, 1:4, 9:35, 0:4, 1:3, 1:4, 1:3, 1:4, 1:3, 1:4, 1:3, 1:4
5/21/18 11:05:42z ESP8266 ChipID: 2329763
5/21/18 11:05:42z Config file parse failed.
5/21/18 11:05:42z Configuration failed
5/21/18 11:05:42z Program halted.