I recently had a boot drive failure. After reinstalling TrueNAS Scale and restoring the automatic backups in /var/db/system, I have not been able to access the Web UI.
The network is fine. I can connect to the apps running on the server - just not the Web UI itself. After reading through the forums, I have found that the nginx service is failing to start.
It looks like the certificate isn’t found. I’m not sure how to fix this.
The error I see is:
[emerg] 27846#27846: cannot load certificate key "/etc/certificates/truenas_default.key": BIO_new_file() failed (SSL: error:80000002:system library::No such file or directory:calling:fopen(/etc/certificates/truenas_default.key, r) error:10000080:BIO routines::no such file)
ETA:
In the /etc/certificates directory there’s one file truenas_default.crt (which I assume is the public key) and a sub-directory CA which is empty. I’m guessing the default automatic backups that I restored do not include the automatically generated private key?