StorageGRID nginx service report an error status after a planned admin node reboot
Applies to
- StorageGRID 11.3.x
- StorageGRID upgrade, or any other maintenance that would require a reboot of the admin node and/or service restart.
Issue
- After upgrading StorageGRID Admin Node gets stuck by "
Error: nginx-gw failed to start
" on the starting services stage. It can also occur during a normal reboot of the admin node.
- "
Configuration validation failed
" is detected inservermanager.log.
DEBUG -- Command '/usr/sbin/nginx-gw -t' PID 16587
DEBUG -- Command '/usr/sbin/nginx-gw -t' completed with exit code 1
WARNING -- Configuration validation failed.
nginx: [emerg] PEM_read_bio_X509_AUX("/etc/apache2/ssl.crt/custom-server-chain.crt") failed (SSL: error:0906D066:PEM routines:PEM_read_bio:bad end line)
nginx: configuration file /etc/nginx-gw/nginx-gw.conf test failed
WARNING -- Configuration validation failed.
nginx: [emerg] PEM_read_bio_X509_AUX("/etc/apache2/ssl.crt/custom-server-chain.crt") failed (SSL: error:0906D066:PEM routines:PEM_read_bio:bad end line)
nginx: configuration file /etc/nginx-gw/nginx-gw.conf test failed
ERROR -- Configuration not valid. Reverting all changes
ERROR -- Configuration not valid. Reverting all changes
- The following messages can be seen in
nginx-gw/error.log
.
[emerg] 1343#1343: BIO_new_file("/etc/apache2/ssl.crt/custom-server-chain.crt") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/apache2/ssl.crt/custom-server-chain.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
[emerg] 16272#16272: PEM_read_bio_X509_AUX("/etc/apache2/ssl.crt/custom-server-chain.crt") failed (SSL: error:0906D066:PEM routines:PEM_read_bio:bad end line)