ValueError at /account/login/

Status
Not open for further replies.

phr3akstorm

Cadet
Joined
Jul 24, 2011
Messages
4
About 4 days after upgrading via GUI to 8Release I began getting the error below. Only get it when I enter the correct ID/PW combination. Relatively new to Linux and FreeNAS. What can I do to fix this without loosing all my data on the Raid?

Thanks!


ValueError at /account/login/
Got unknown password algorithm type in password.
Request Method: POST
Request URL: http://96.234.154.125/account/login/
Django Version: 1.2.5
Exception Type: ValueError
Exception Value:
Got unknown password algorithm type in password.
Exception Location: /usr/local/lib/python2.7/site-packages/django/contrib/auth/models.py in get_hexdigest, line 33
Python Executable: /usr/local/bin/python
Python Version: 2.7.1
Python Path: ['/usr/local/www/freenasUI', '/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg', '/usr/local/lib/python2.7/site-packages/South-0.7.2-py2.7.egg', '/usr/local/lib/python2.7/site-packages/flup-1.0.2-py2.7.egg', '/usr/local/lib/python2.7/site-packages/python_ldap-2.3.13-py2.7-freebsd-8.2-RELEASE-amd64.egg', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-freebsd8', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages', '/usr/local/www']
Server time: Tue, 26 Jul 2011 13:30:15 -0700


Environment:

Request Method: POST
Request URL: http://96.234.154.125/account/login/
Django Version: 1.2.5
Python Version: 2.7.1
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'freeadmin',
'south',
'dojango',
'account',
'system',
'network',
'storage',
'sharing',
'services']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'freenasUI.freeadmin.middleware.RequireLoginMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'dojango.middleware.DojoCollector')


Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
100. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
76. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
78. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/views.py" in login
32. if form.is_valid():
File "/usr/local/lib/python2.7/site-packages/django/forms/forms.py" in is_valid
121. return self.is_bound and not bool(self.errors)
File "/usr/local/lib/python2.7/site-packages/django/forms/forms.py" in _get_errors
112. self.full_clean()
File "/usr/local/lib/python2.7/site-packages/django/forms/forms.py" in full_clean
268. self._clean_form()
File "/usr/local/lib/python2.7/site-packages/django/forms/forms.py" in _clean_form
296. self.cleaned_data = self.clean()
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/forms.py" in clean
85. self.user_cache = authenticate(username=username, password=password)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/__init__.py" in authenticate
52. user = backend.authenticate(**credentials)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/backends.py" in authenticate
17. if user.check_password(password):
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/models.py" in check_password
260. return check_password(raw_password, self.password)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/models.py" in check_password
41. return hsh == get_hexdigest(algo, salt, raw_password)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/models.py" in get_hexdigest
33. raise ValueError("Got unknown password algorithm type in password.")

Exception Type: ValueError at /account/login/
Exception Value: Got unknown password algorithm type in password.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
What version were you upgrading from??

There are some differences in the database that don't work well when you upgrade (version 8.x), or even when you save your settings and then reload them on a new version.
My suggestion is to reflash, use 8.01 beta 4, it fixes a bunch of stuff, and of course there's other stuff that still needs fixing.

You won't loose your data by doing that, you'll just have to re-import your volume. Actually, if you can access the command line from the console, it might not hurt to export your pool(s) first. 'zpool export pool-name'

Post back and tell us what version you just upgraded from first.
 

phr3akstorm

Cadet
Joined
Jul 24, 2011
Messages
4
Thank you. Updated from 8RC4. Odd thing is is worked fine fir a couple days then started w the error.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Hmmm, not sure why it took a couple of days before that happened.

Anyway, there shouldn't be any problem upgrading (reflash from CD) to 8.01 beta 4, and then importing your pool.
You'll of course need to re-enter all of your settings. If you can get to the command line in the version you're at
now, export your pool.

After you upgrade, go to the command line and type 'zpool import'.
After that finishes, do a 'zpool status' to be sure it worked.
I don't think you'll be able to view your files yet because a mount point hasn't been created, but don't worry about that.
Now, do another 'zpool EXPORT'
Then go to the GUI, Storage -> Volumes - View All Volumes
Look for the Icon that says 'Auto Import' when you hover your mouse over it.
It looks like a little stack of disks with circular arrows.
Click that and give it a minute and your pool should be online again.

Post back and let us know how it went.
 
Status
Not open for further replies.
Top