FreeNAS 9.1.1- An error occurred

by admin on

An error occurred. Sorry, the page you are looking for is currently unavailable. Please try again later. If you are the system administrator of this resource you should check the error_log for details. Faithfully yours, nginx.

Well, thanks. And the error log links to a nginx web page. Even more useful, indeed.

Some days ago, accessing my FreeNAS web gui, I found the error above. Fantastic, one day without trouble is a wasted day, right?

Well, finding the solution to this proved quite difficult, above all for the lack of knowledge on how FreeNAS works and for the lack of details in the error. For your reference, I’m using FreeNAS 9.1.1 . I thought that a simple:

could do, but I was wrong: the error remained the same.

After a lot of googleing, I finally found this link Serverfault – Restart Web UI on FreeNAS . What it says is that you have to restart not only nginx but even django in order to restore web gui functionality:

Just to give you a little background so you can dig deeper if you’re interested, Django + Nginx + FastCGI is kind of a web server stack (you know, like PHP and Apache). FreeNAS, at least version 9.1.1, uses this stack to publish the web gui. You can find some more explanation on Django + Nginx + FastCGI on this site: Alleged – Deploying Django + Nginx + FastCGI. The instructions are to deploy a similar instance, but there’s a scheme that should explain quite well how this stack works.

Anyway, at this point your web gui should work again. If it doesn’t, you could try to kill all python processes that are running (but BE PARTICULARLY SURE OF WHAT YOU ARE DOING!!!). That is what I did and it worked.

Why happened this? Well,in my case I had a custom script running in python using a lot of memory, which returned an error. At the same time django, which is a python web framework, stopped. I think that FreeNAS did something strange like killing all python instances, but I’m not sure nor I can debug the problem.

 

Written by: admin

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *