Web interface dying with 503 - Service Not Available. Logs

Status
Not open for further replies.

markhsa

Dabbler
Joined
Feb 24, 2012
Messages
13
Not sure what has happened.
8.0.4p1 64. Have rebooted.
Web interface simply gets: 503 - Service Not Available

Logs only show:

tail -f /var/log/lighttpd.error.log
2012-04-25 15:20:21: (mod_fastcgi.c.2852) fcgi-server re-enabled: unix:/tmp/django.sock
2012-04-26 10:05:40: (mod_fastcgi.c.1732) connect failed: No such file or directory on unix:/tmp/django.sock
2012-04-26 10:05:40: (mod_fastcgi.c.3025) backend died; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 1
2012-04-26 10:05:42: (mod_fastcgi.c.2852) fcgi-server re-enabled: unix:/tmp/django.sock
2012-04-26 10:28:13: (mod_fastcgi.c.1732) connect failed: No such file or directory on unix:/tmp/django.sock
2012-04-26 10:28:13: (mod_fastcgi.c.3025) backend died; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 1
2012-04-26 10:28:15: (mod_fastcgi.c.2852) fcgi-server re-enabled: unix:/tmp/django.sock
2012-04-26 10:32:43: (mod_fastcgi.c.1732) connect failed: No such file or directory on unix:/tmp/django.sock
2012-04-26 10:32:43: (mod_fastcgi.c.3025) backend died; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 1
2012-04-26 10:32:45: (mod_fastcgi.c.2852) fcgi-server re-enabled: unix:/tmp/django.sock


Any idea what the matter could be?

This was working fine, so not sure what happened.
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
How much memory do you have? Anything suspicious before on that log?

To restart webinterface use:
# /usr/local/etc/rc.d/django restart
 

markhsa

Dabbler
Joined
Feb 24, 2012
Messages
13
I have 16 gigs RAM.

Here is what I get when I try to start like that:

/usr/local/etc/rc.d/django restart
cat: /var/run/django.pid: No such file or directory
usage: kill [-s signal_name] pid ...
kill -l [exit_status]
kill -signal_name pid ...
kill -signal_number pid ...
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "/usr/local/www/freenasUI/manage.py", line 33, in <module>
from django.core.management import execute_manager
ImportError: No module named django.core.management
chown: /tmp/django.sock: No such file or directory
/usr/local/etc/rc.d/django: WARNING: failed precmd routine for django
 

markhsa

Dabbler
Joined
Feb 24, 2012
Messages
13
I did install transmission-daemon and then remove it.
I must have messed something up in the process. Can anyone assistn with this to see if I removed a package or something perhaps?
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
Well, you screwed it by installing transmission on root...
Easier to copy/save /data/freenas-v1.db, reinstall and upload config...
 

markhsa

Dabbler
Joined
Feb 24, 2012
Messages
13
Is there another way to fix this? What did installing it to root change?

Thanks for the assistance.
 

markhsa

Dabbler
Joined
Feb 24, 2012
Messages
13
I have about 13 TB of data on this so and pretty nervous about getting this fixed obviously.
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
The python version were overwrited...
Don't worry, FreeNAS is completely dettached from storage data, you can safely reinstall on usb disk and reimport config.
 

markhsa

Dabbler
Joined
Feb 24, 2012
Messages
13
Is there a way to fix this? Looks like I borked python maybe?
"No module named django.core.management"
 

markhsa

Dabbler
Joined
Feb 24, 2012
Messages
13
Right. I mean anyway to repair the existing install? pkg_add some python perhaps? Any other thoughts on avoiding a re-install and DB import of the config.
Hoping to repair this.

Thanks for the help
 

markhsa

Dabbler
Joined
Feb 24, 2012
Messages
13
I am remote on this machine via ssh, and it is chalenging to get physical access ( long drive ) so thats why I am hoping to do this.
Any advice on what to try would really help
 

markhsa

Dabbler
Joined
Feb 24, 2012
Messages
13
I just did a python install but that did not fix:

kg_add -r python
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/python.tbz... Done.
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/All/python26-2.6.6.tbz... Done.

====
Note that some of the standard modules are provided as separate
ports since they require extra dependencies:

bsddb databases/py-bsddb
gdbm databases/py-gdbm
sqlite3 databases/py-sqlite3
tkinter x11-toolkits/py-tkinter

Install them as needed.
====
 

markhsa

Dabbler
Joined
Feb 24, 2012
Messages
13
I am installing 2.7 now:
pkg_add -v -r python27

Do you think this will fix or do you have other ideas?
 
Status
Not open for further replies.
Top