TOS webui won't load after power failure
Posted: 01 May 2023, 01:55
Hey,
After a series of power loss events in my house, my TOS web ui won't load.
I SSH'ed into the machine and nginx is failing to start, with a warning about invalid conf.
I inspected the conf files, and it looks like nginx.conf contained what's usually in nginx-http.conf, and nginx-http.conf was a truncated version of nginx.conf?
After restoring nginx.conf and nginx-http.conf from the install image, it's working again.
Since these files are so critical, maybe there's some way they can be better protected during the boot sequence so that they don't written to during boot, to prevent corruption?
After a series of power loss events in my house, my TOS web ui won't load.
I SSH'ed into the machine and nginx is failing to start, with a warning about invalid conf.
I inspected the conf files, and it looks like nginx.conf contained what's usually in nginx-http.conf, and nginx-http.conf was a truncated version of nginx.conf?
After restoring nginx.conf and nginx-http.conf from the install image, it's working again.
Since these files are so critical, maybe there's some way they can be better protected during the boot sequence so that they don't written to during boot, to prevent corruption?