TrueNAS 12.0-U1.1 - nginx stopping after restart, webUI not accessible

Description

After clean install latest stable version of TrueNAS and first reboot nginx will crash showing that it cannot find a certificate.

Solution is for me to set up post init command with service nginx start

More details in community forum here:

https://www.truenas.com/community/threads/truenas-12-0-u1-1-nginx-stopping-after-restart-webui-not-accessible.90842/

Here is /var/log/nginx/error.log

2021/02/05 19:45:45 [emerg] 1775#100778: cannot load certificate "/etc/certificates/freenas_default.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/certificates/freenas_default.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
2021/02/05 19:45:45 [emerg] 1776#100778: cannot load certificate "/etc/certificates/freenas_default.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/certificates/freenas_default.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
2021/02/05 19:52:58 [emerg] 1777#100679: cannot load certificate "/etc/certificates/freenas_default.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/certificates/freenas_default.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
2021/02/05 19:52:58 [emerg] 1778#100679: cannot load certificate "/etc/certificates/freenas_default.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/certificates/freenas_default.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
2021/02/05 20:07:33 [emerg] 1786#100808: cannot load certificate "/etc/certificates/freenas_default.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/certificates/freenas_default.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
2021/02/05 20:07:33 [emerg] 1787#100808: cannot load certificate "/etc/certificates/freenas_default.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/certificates/freenas_default.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)

Debug attached.

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Waqar Ahmed March 9, 2021 at 2:18 PM

Feedback timeout

Waqar Ahmed March 5, 2021 at 4:49 PM

when you have some time, can you please have a peek at my above message ? Thank you

Waqar Ahmed February 28, 2021 at 3:10 PM

Can we perhaps schedule a teamviewer session please ? I have not been able to reproduce this and curious why it happens after a reboot without making any changes in the CLI. It would be nice if you could let me know what time works best for you with timezone please and we can move with that. Thank you

Oldřich Střítecký February 26, 2021 at 8:19 AM

So I tested again and it seems that its happening on normal second reboot without editing anything in CLI.

Waqar Ahmed February 26, 2021 at 2:40 AM

Thank you for reaching out , to be clear, can you please confirm if some action was performed via CLI or just on your second try a reboot triggered this ?

Need additional information
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Impact

High

Components

Fix versions

Priority

More fields

Katalon Platform

Created February 7, 2021 at 12:09 AM
Updated July 1, 2022 at 5:14 PM
Resolved March 9, 2021 at 2:18 PM