Web nginx wont start after power outage

gg_morpheus

Dabbler
Joined
Jan 11, 2019
Messages
14
I have been running Freenas for about 5 years. I am running 11.2 stable or so says #uname -a. I had a power outage 2 or 3 months ago and something must have gone wrong with the UPS driver because it appears the system went down hard. when I powered it back on my shares were not available however, it is worth noting that my Plex and Transmission jails are still working (I am pretty sure they are still jails and not iocage.) so I tried to login to the GUI to troubleshoot. However the GUI was not available and I have not been able to get nginx started. Initially I was receiving an error similar to file "/usr/local/libexec/nginx/ngx_http_uploadprogress_module.so" missing. So I looked at the nginx config file and removed all references to ngx_http_uploadprogress_module.so I was able to start nginx after this but the web server was just a landing page no login, no functionality so I reverted the config file from backup. I guess ngx_http_uploadprogress_module.so is important. so I googled and found ngx_http_uploadprogress_module.so somewhere on github. Not being sure of the correct version I just tried the first one I could find and put it in the file path above. Now when I try to start nginx I get a slightly different error:

root@freenas:/ # service nginx start
Performing sanity check on nginx configuration:
nginx: [emerg] dlopen() "/usr/local/libexec/nginx/ngx_http_uploadprogress_module.so" failed (Shared object "libc.so.6" not found, required by "ngx_http_uploa
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed
Starting nginx.
nginx: [emerg] dlopen() "/usr/local/libexec/nginx/ngx_http_uploadprogress_module.so" failed (Shared object "libc.so.6" not found, required by "ngx_http_uploa
/usr/local/etc/rc.d/nginx: WARNING: failed to start nginx

so it looks like I am missing libc.so.6. not sure where to get something like this or how to install it if I found it. I have used RPM and YUM a little bit and I think I read that FREEBSD uses pkg but I also understand that on FREENAS package managers are generally frowned upon and disabled due to not wanting users to install any additional software. I am hoping that someone has an idea of how to help. If nothing else someone with the same FREENAS version could hook me up with a copy of ngx_http_uploadprogress_module.so to rule out a problem with the module version.

MOBO: ASRock E3C224D4I-14S
CPU: Xeon E3-1231
RAM: 32GB ECC 4 X 8GB
Controller: 2 X mini SAS 8087 LSI 2308
HDD: 6 X 4TB WD Red ZFS

Thanks for your attention

Michael Rock
 

garm

Wizard
Joined
Aug 19, 2017
Messages
1,556
Don’t bother trying to fix stuff like this, just reinstall FreeNAS and read back the config you saved?
 

gg_morpheus

Dabbler
Joined
Jan 11, 2019
Messages
14
Thanks Garm. I am not sure how that would work is there a migration guide I can follow? when I mentioned I saved the configuration file I was just referring to making a copy of the nginx config file. I have the FREENAS OS installed on an SSD by itself. It sounds like you are saying I can move some config and settings files off the OS drive format and reinstall FREENAS on the SSD and move the config files and potentially not loose any data or settings and not have to recreate my pools? I would be interested in that. I don't want to backup 20 TB of data to an external HDD and blow everything away and have to essentially start over.
 

gg_morpheus

Dabbler
Joined
Jan 11, 2019
Messages
14
Wow, you were so right. I reinstalled Freenas from boot media. I did not even have to do a clean install and was back up and running in a few minutes with pools and all my Warden jails. Thanks!
 
Top