SOLVED ImportError: No module named backends

Status
Not open for further replies.

sdspieg

Contributor
Joined
Aug 6, 2012
Messages
168
I'm having a strange problem. After upgrading to 9.2.1.7, I've been getting this error (ImportError: No module named backends) that keeps repeating itself on the screen, alternating with some error message about my ada3 (which I thought I had offline). Some of my plugins (plex, transmission, etc.) are still working, others (subsonic, etc.) are not. I now also seem to have a new ip address (which I only found out by running an ip scannner), and when I try to get into the webgui, I get an error message ("an error occured") from nginx. I can still telnet and ftp into the server though.

Does anybody have any idea about how I could restore access to the webgui or fix the problem in any othetr way? Thanks!

-Stephan
 

sdspieg

Contributor
Joined
Aug 6, 2012
Messages
168
Just looked into my nginx-error.log, and this is what I get. 192.168.1.14 and *18 are 2 windows-based pcs from which I try to access the freenas server .
Code:
2014/08/09 13:53:34 [error] 4249#0: *1 connect() to 127.0.0.1:9042 failed (61: Connection refused) while connecting to upstream, client: 192.168.1.14, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.26"
2014/08/09 14:14:37 [error] 4249#0: *3 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 192.168.1.18, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.26"
2014/08/09 14:15:00 [error] 4249#0: *5 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 192.168.1.18, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.26"
2014/08/09 14:15:01 [error] 4249#0: *5 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 192.168.1.18, server: localhost, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.26"
2014/08/09 14:15:01 [error] 4249#0: *5 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 192.168.1.18, server: localhost, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.26"
2014/08/09 14:18:49 [error] 4249#0: *9 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 192.168.1.14, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.26"
2014/08/09 14:18:49 [error] 4249#0: *9 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 192.168.1.14, server: localhost, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.26"
2014/08/09 14:18:49 [error] 4249#0: *9 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 192.168.1.14, server: localhost, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.26"
2014/08/09 14:23:45 [error] 4249#0: *13 writev() failed (32: Broken pipe) while sending request to upstream, client: 192.168.1.14, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.26"
2014/08/09 14:23:45 [error] 4249#0: *13 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 192.168.1.14, server: localhost, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.26"
2014/08/09 14:23:45 [error] 4249#0: *13 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 192.168.1.14, server: localhost, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9042", host: "192.168.1.26"
 
Last edited:

sdspieg

Contributor
Joined
Aug 6, 2012
Messages
168
Still trying to figure this out. I tried to start the django service using this command in ssh (based on http://blog.darioef.com/2013/02/freenas-page-you-are-looking-for-is.html)
Code:
/usr/local/etc/rc.d/django start

But I get the same error messages I get on my console when I start up FreeNAS:
Code:
[root@freenas] ~# /usr/local/etc/rc.d/django start
Traceback (most recent call last):
  File "/usr/local/www/freenasUI/manage.py", line 42, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 280, in execute
    translation.activate('en-us')
  File "/usr/local/lib/python2.7/site-packages/django/utils/translation/__init__.py", line 130, in activate
    return _trans.activate(language)
  File "/usr/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 188, in activate
    _active.value = translation(language)
  File "/usr/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 177, in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)
  File "/usr/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 159, in _fetch
    app = import_module(appname)
  File "/usr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/usr/local/www/freenasUI/../freenasUI/api/__init__.py", line 27, in <module>
    from tastypie.api import Api
  File "/usr/local/lib/python2.7/site-packages/tastypie/api.py", line 8, in <module>
    from tastypie.serializers import Serializer
  File "/usr/local/lib/python2.7/site-packages/tastypie/serializers.py", line 9, in <module>
    from django.core.serializers import json as djangojson
  File "/usr/local/lib/python2.7/site-packages/django/core/serializers/__init__.py", line 22, in <module>
    from django.core.serializers.base import SerializerDoesNotExist
  File "/usr/local/lib/python2.7/site-packages/django/core/serializers/base.py", line 5, in <module>
    from django.db import models
  File "/usr/local/lib/python2.7/site-packages/django/db/models/__init__.py", line 5, in <module>
    from django.db.models.query import Q
  File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py", line 14, in <module>
    from django.db.models.fields import AutoField
  File "/usr/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 13, in <module>
    from django.db.models.query_utils import QueryWrapper
  File "/usr/local/lib/python2.7/site-packages/django/db/models/query_utils.py", line 10, in <module>
    from django.db.backends import util
ImportError: No module named backends


If anybody has any ideas, please do let me know...

Thanks
 

sdspieg

Contributor
Joined
Aug 6, 2012
Messages
168
I (after ftp'ing the /data folder from the FreeNAS system to my Windows PC's HDD) reflashed the usb-stick, used the freenas-v1.db (from my Windows PC's HDD) to restore the configuration and I now appear to be up and running. All jails are up and working perfectly. Sigh of relief.
 
Status
Not open for further replies.
Top