Login eror (8.2 Beta)

Status
Not open for further replies.

ciucciuruc

Cadet
Joined
Apr 1, 2012
Messages
1
today i tried to access freenas and it give me this issue "The page you are looking for is temporarily unavailable.
Please try again later."
(freenas 8.2.0 beta 2 x64)
can anyone help?
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
It's beta, there are still bugs. Either use 8.04 or wait for the next beta.
 

unholyeyebrows

Explorer
Joined
Apr 19, 2012
Messages
55
I have just seen this after a power cut on 8.2 beta 3

Hi

I got home earlier to find there had been a power cut at my home (the power was back on when I got home). My HP Proliant had automatically re-booted once the power was restored, but when I access the FreeNAS web interface I just get a white page with:

The page you are looking for is temporarily unavailable.
Please try again later.

Gracefully powering-down the server (pressing the physical power button and letting the server shut-down) and powering back-up has not fixed this. The NAS otherwise seems to be working fine - the services running on my jail are there, plus I can access CIFS shares OK. So it just seems to be the web interface which is broken.

I'll try it again in the morning in case the problem does go away when I try back later, but if anyone knows of any tricks to fix this in the mean time then any input will be greatly appreciated.

Thanks
Nick
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Hi Nick,

Have you tried clearning your browser cache or using a different browser?

Can you see a menu on the screen if you have one connected to your FreeNAS system?
 

unholyeyebrows

Explorer
Joined
Apr 19, 2012
Messages
55
Hi

A different browser on a different PC is giving me the same error. The server is headless so I can't easily check the menu. I can SSH in to the box though if that is any help.

Nick.
 

unholyeyebrows

Explorer
Joined
Apr 19, 2012
Messages
55
Seven hours later and problem has not cleared. Clearing the browser cache has not helped. Strange one!

Nick.
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
There should be anything on logs.. /var/log/lighttpd*

Or while starting the UI:

/usr/local/etc/rc.d/django start

The easy solution is saving /data/freenas-v1.db and reinstall.
 

unholyeyebrows

Explorer
Joined
Apr 19, 2012
Messages
55
There should be anything on logs.. /var/log/lighttpd*

Or while starting the UI:

/usr/local/etc/rc.d/django start

The easy solution is saving /data/freenas-v1.db and reinstall.

Thanks for the input. On my server /var/log/lighttpd* do not exist. Also, restarting django made no difference. I'd rather not re-install just yet in case any bug hunters want to try to troubleshot this whilst I have the error.

Nick
 

unholyeyebrows

Explorer
Joined
Apr 19, 2012
Messages
55
Ah, I forgot it is 8.2, the file would be /var/log/nginx-error.log

Aha - well I have some of these logs! Here's what I get from a tail -f of this file when I try to reload the web UI of my FreeNAS server whose IP address is 192.168.1.253:


2012/05/23 22:54:59 [error] 2148#0: *59 kevent() reported about an closed connection (61: Connection refused) while reading response header from upstream, client: 192.168.1.9, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.253"
2012/05/23 22:55:00 [error] 2148#0: *59 kevent() reported about an closed connection (61: Connection refused) while reading response header from upstream, client: 192.168.1.9, server: localhost, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.253"
 

unholyeyebrows

Explorer
Joined
Apr 19, 2012
Messages
55
# cd /usr/local/www/freenasUI
# python manage.py runserver 0.0.0.0:8080

That should throw the error

Thanks again. This hasn't worked - the web UI still does not load and I get the following in the command line:


Validating models...

Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.commands.runserver.Command object at 0x803143fd0>>
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 88, in inner_run
self.validate(display_num_errors=True)
File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 249, in validate
num_errors = get_validation_errors(s, app)
File "/usr/local/lib/python2.7/site-packages/django/core/management/validation.py", line 35, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File "/usr/local/lib/python2.7/site-packages/django/db/models/loading.py", line 146, in get_app_errors
self._populate()
File "/usr/local/lib/python2.7/site-packages/django/db/models/loading.py", line 61, in _populate
self.load_app(app_name, True)
File "/usr/local/lib/python2.7/site-packages/django/db/models/loading.py", line 78, in load_app
models = import_module('.models', app_name)
File "/usr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/usr/local/www/freenasUI/system/models.py", line 34, in <module>
from freenasUI.contrib.IPAddressField import IPAddressField
File "/usr/local/www/freenasUI/contrib/__init__.py", line 5
SyntaxError: Non-ASCII character '\xf3' in file /usr/local/www/freenasUI/contrib/__init__.py on line 5, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details


I'm starting to wonder if my system disk (which is a USB thumb drive) might have possibly become corrupt over the power cut. I had an issue before when my NAS simply wouldn't boot, and a re-install was needed. I wonder if I might have the same type of problem here.
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
It was not supposed to work, it was to show what was the error...

That is indeed what happened, somehow the dat on USB corrupted on the power cut (mostly likely it corrupted way before, but as freenas runs basically on ram it was not noticed before).
 

unholyeyebrows

Explorer
Joined
Apr 19, 2012
Messages
55
I think I'll re-install then (and possibly change the USB stick while I'm at it).

Many thanks William (& everyone else) for the input - much appreciated.
Nick
 

Cordel

Dabbler
Joined
Aug 18, 2012
Messages
22
Ran into this issue with FreeNAS-8.2.0-RELEASE-p1-x64 (r11950) on my Dual Socket AMD Opteron 2x 4 Core with 16GB REG ECC DDRII system. All other services operating fine.
Code:
Web page returns: "The page you are looking for is temporarily unavailable.
Please try again later."


Restarting django will bring the webpage back to life:
/usr/local/etc/rc.d/django restart

I haven't found and obvious errors in any of the logs via /var/log other than:
Code:
2012/10/01 21:34:09 [error] 29449#0: *178046 upstream prematurely closed connection while reading response header from upstream, client: 10.0.0.101, server: localhost, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "coreys-nas.local"


Nothing out of the ordinary, and system is on a UPS. Utilities have not had any problems anyway.
I did note that the used RAM cleared out about 7GB of space sometime this evening. I verified via uptime the system has been on and up for 6 days.
 

abbas_qamar

Cadet
Joined
Oct 13, 2012
Messages
1
Hello,

After re-starting django, I am now able to access the web interface of my FreeNAS 8.3 Beta release.

//

/usr/local/etc/rc.d/django restart

//

Thank you for your suggestion. It worked for me.

Regards,
Abbas.
 

nons

Cadet
Joined
Nov 2, 2012
Messages
4
I just had this happen on on 8.3.0 release. Restarting django through ssh fixed it.

nons
 

mbf210

Cadet
Joined
Dec 1, 2012
Messages
3
I have a similar issue on 8.3.0. And django keeps starting then quickly fails and I cannot access the GUI
 

warri

Guru
Joined
Jun 6, 2011
Messages
1,193
Same issue just appeared out of nowhere on my 8.3.0 box.
Restarting django via ssh seems to have fixed it though.

Content of /var/log/nginx-error.log:
Code:
2012/12/23 03:08:40 [error] 14088#0: *912 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.50, server: localhost, request: "GET / HTTP/1
.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.30"
2012/12/23 03:08:40 [error] 14088#0: *912 kevent() reported about an closed connection (61: Connection refused) while reading response header from upstream, client: 192.168.1.50, server: lo
calhost, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.30"
2012/12/23 03:08:46 [error] 14088#0: *912 kevent() reported about an closed connection (61: Connection refused) while reading response header from upstream, client: 192.168.1.50, server: lo
calhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.30"
2012/12/23 03:08:46 [error] 14088#0: *912 kevent() reported about an closed connection (61: Connection refused) while reading response header from upstream, client: 192.168.1.50, server: lo
calhost, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.30"
2012/12/23 03:08:46 [error] 14088#0: *912 kevent() reported about an closed connection (61: Connection refused) while reading response header from upstream, client: 192.168.1.50, server: lo
calhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.30"
2012/12/23 03:08:46 [error] 14088#0: *912 kevent() reported about an closed connection (61: Connection refused) while reading response header from upstream, client: 192.168.1.50, server: lo
calhost, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.30"
2012/12/23 03:08:47 [error] 14088#0: *912 kevent() reported about an closed connection (61: Connection refused) while reading response header from upstream, client: 192.168.1.50, server: lo
calhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.30"
2012/12/23 03:08:47 [error] 14088#0: *912 kevent() reported about an closed connection (61: Connection refused) while reading response header from upstream, client: 192.168.1.50, server: lo
calhost, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.30"
2012/12/23 03:08:47 [error] 14088#0: *912 kevent() reported about an closed connection (61: Connection refused) while reading response header from upstream, client: 192.168.1.50, server: lo
calhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.30"
2012/12/23 03:08:47 [error] 14088#0: *912 kevent() reported about an closed connection (61: Connection refused) while reading response header from upstream, client: 192.168.1.50, server: lo
calhost, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.30"
2012/12/23 03:08:47 [error] 14088#0: *912 kevent() reported about an closed connection (61: Connection refused) while reading response header from upstream, client: 192.168.1.50, server: lo
calhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.30"
2012/12/23 03:08:48 [error] 14088#0: *912 kevent() reported about an closed connection (61: Connection refused) while reading response header from upstream, client: 192.168.1.50, server: lo
calhost, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.30"
2012/12/23 03:08:48 [error] 14088#0: *912 kevent() reported about an closed connection (61: Connection refused) while reading response header from upstream, client: 192.168.1.50, server: lo
calhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.30"
2012/12/23 03:08:48 [error] 14088#0: *912 kevent() reported about an closed connection (61: Connection refused) while reading response header from upstream, client: 192.168.1.50, server: lo
calhost, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.30"
2012/12/23 03:08:48 [error] 14088#0: *912 kevent() reported about an closed connection (61: Connection refused) while reading response header from upstream, client: 192.168.1.50, server: lo
calhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.30"
2012/12/23 03:08:48 [error] 14088#0: *912 writev() failed (32: Broken pipe) while sending request to upstream, client: 192.168.1.50, server: localhost, request: "GET /favicon.ico HTTP/1.1",
 upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.30"
2012/12/23 03:09:16 [error] 14088#0: *912 writev() failed (32: Broken pipe) while sending request to upstream, client: 192.168.1.50, server: localhost, request: "GET / HTTP/1.1", upstream:
"fastcgi://127.0.0.1:9042", host: "192.168.1.30"
2012/12/23 03:09:16 [error] 14088#0: *912 kevent() reported about an closed connection (61: Connection refused) while reading response header from upstream, client: 192.168.1.50, server: lo
calhost, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.30"
 

nicisdigital

Cadet
Joined
Jan 15, 2013
Messages
7
I just encountered the same issue, expect that my SSH daemon appears to be dead. Anything I can do before reinstall?
 
Status
Not open for further replies.
Top