FreeNAS has django problems.

Status
Not open for further replies.

pepsifx357

Cadet
Joined
Mar 4, 2012
Messages
2
Hey everyone, This is my first post here.

I've been given a FreeNAS server to download the contents of the shares, so I can move them to another server. Upon booting the machine, it looked like there were a few problems. After FreeNAS booted, I got a 503 error on the webpage and none of the shares exist on the Windows network. Obviously, because the server is at my house now, it can't find the Active Directory that it was linked to. I did some digging around(I'm not a Freebsd expert), and I found something called django that is having problems. I tried to start the service and this is what the output was:

Code:
nas# service django start
Traceback (most recent call last):
  File "/usr/local/www/freenasUI/manage.py", line 42, in <module>
    execute_manager(settings)
  File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager

  File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute
    trying to work out the original path from the module can be problematic.
  File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 252, in fetch_command
    return klass
  File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 101, in get_commands
    project_directory = None
  File "/usr/local/lib/python2.7/site-packages/django/utils/functional.py", line 276, in __getattr__
    self._setup()
  File "/usr/local/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
    self._wrapped = Settings(settings_module)
  File "/usr/local/lib/python2.7/site-packages/django/conf/__init__.py", line 135, in __init__
    logging_config_module = importlib.import_module(logging_config_path)
  File "/usr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/usr/local/lib/python2.7/site-packages/django/utils/log.py", line 3, in <module>
    from django.core import mail
  File "/usr/local/lib/python2.7/site-packages/django/core/mail/__init__.py", line 19, in <module>
    from django.core.mail.backends.smtp import EmailBackend as _SMTPConnection
  File "/usr/local/lib/python2.7/site-packages/django/core/mail/backends/smtp.py", line 2, in <module>
    import smtplib
ValueError: bad marshal data (unknown type code)
chown: /tmp/django.sock: No such file or directory
/usr/local/etc/rc.d/django: WARNING: failed precmd routine for django



Another thing that I found, is that the Array0, which has all of the shares, that is supposed to be mounted at /mnt/Array0 is not there.

This is FreeNAS 8.2-Release-P6 64bit. From what I understand, this box isn't too old. I'm not sure the nature of the shutdown before it got to me, but something has definitely gone wrong.

If worst case scenario comes, can I reinstall FreeNAS on the flash drive and import the Raid 10 back into the system?

Thanks,

Ben
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Ben,

If you can look closer at the version and post that, it would be more helpful to have the correct FreeNAS version.

The version you posted is for FreeBSD, you want to post the FreeNAS BUILD version near the top of the system information page.

You can reinstall FreeNAS and import your raid back, as long as it wasn't from an earlier version of FreeNAS (version 7).
 

pepsifx357

Cadet
Joined
Mar 4, 2012
Messages
2
Thanks for the reply. I'm not sure how to check the version, because I can't access the web interface. I'm pretty sure it's not 7, but I don't know which 8.x it is. How do I check it?

Edit:

I found the version in /etc/version.freenas

It is:

FreeNAS-8.0.3-RELEASE-p1-x64 (9591)
 
Status
Not open for further replies.
Top