Hello,
I just installed Nav 3.5.3 from source on a Debian 5 (Lenny), following the steps described in http://metanav.uninett.no/installing_from_source_on_debian. The problem is that when I try to log in I get the following error:
DocumentRoot: '/usr/local/nav/apache/webroot'
URI: '/index/login' Location: None Directory: '/usr/local/nav/apache/webroot/' Filename: '/usr/local/nav/apache/webroot/index.py' PathInfo: '/login'
Phase: 'PythonHandler' Handler: 'mod_python.publisher'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1229, in _process_target result = _execute_target(config, req, object, arg)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1128, in _execute_target result = object(arg)
File "/usr/lib/python2.5/site-packages/mod_python/publisher.py", line 213, in handler published = publish_object(req, object)
File "/usr/lib/python2.5/site-packages/mod_python/publisher.py", line 425, in publish_object return publish_object(req,util.apply_fs_data(object, req.form, req=req))
File "/usr/lib/python2.5/site-packages/mod_python/util.py", line 554, in apply_fs_data return object(**args)
File "/usr/local/nav/apache/webroot/index.py", line 194, in login authenticated = account.authenticate(password)
File "/usr/local/nav/lib/python/nav/db/navprofiles.py", line 119, in authenticate return stored_hash.verify(password)
File "/usr/local/nav/lib/python/nav/pwhash.py", line 116, in verify password=password)
File "/usr/local/nav/lib/python/nav/pwhash.py", line 80, in __init__ self.update(password)
File "/usr/local/nav/lib/python/nav/pwhash.py", line 96, in update hasher = known_methods[self.method].new(password + self.salt)
File "/usr/lib/python2.5/hashlib.py", line 98, in __hash_new return __get_builtin_constructor(name)(string)
File "/usr/lib/python2.5/hashlib.py", line 77, in __get_builtin_constructor raise ValueError, "unsupported hash type"
ValueError: unsupported hash type
Any clues on this? Did I do something wrong? Let me know if you need more info.
Thank You.
On Wed, 13 May 2009 16:42:11 +0200 Pau buttgereit@gmail.com wrote:
I just installed Nav 3.5.3 from source on a Debian 5 (Lenny), following the steps described in http://metanav.uninett.no/installing_from_source_on_debian. The problem is that when I try to log in I get the following error:
[snip]
File "/usr/local/nav/lib/python/nav/pwhash.py", line 80, in __init__ self.update(password)
File "/usr/local/nav/lib/python/nav/pwhash.py", line 96, in update hasher = known_methods[self.method].new(password + self.salt)
File "/usr/lib/python2.5/hashlib.py", line 98, in __hash_new return __get_builtin_constructor(name)(string)
File "/usr/lib/python2.5/hashlib.py", line 77, in __get_builtin_constructor raise ValueError, "unsupported hash type"
ValueError: unsupported hash type
Any clues on this? Did I do something wrong? Let me know if you need more info.
This seems to be a regression introduced by NAV 3.5.3, which causes the web login to fail under Python 2.5 or newer. I've just reported it here: https://bugs.launchpad.net/nav/+bug/376430
Thank you for reporting this issue; looks like we'll be releasing 3.4.4 to fix this ASAP.
Hello,
I'm not able to help you with that error, as I'm not really into python much - but..
This might be a dumb question, but why aren't you installing NAV from its Debian repository? Read http://pkg-nav.alioth.debian.org/ for further instructions. After aptitude has done its magic, it's time to follow the steps (and I mean step by step..) in /usr/share/doc/nav/README.Debian. This will also make your updating process a lot easier.
-Vidar S
-----Original Message----- From: Pau [mailto:buttgereit@gmail.com] Sent: 13. mai 2009 16:42 To: nav-users@itea.ntnu.no Subject: Login "unsupported hash type" error
Hello,
I just installed Nav 3.5.3 from source on a Debian 5 (Lenny), following the steps described in http://metanav.uninett.no/installing_from_source_on_debian. The problem is that when I try to log in I get the following error:
DocumentRoot: '/usr/local/nav/apache/webroot'
URI: '/index/login' Location: None Directory: '/usr/local/nav/apache/webroot/' Filename: '/usr/local/nav/apache/webroot/index.py' PathInfo: '/login'
Phase: 'PythonHandler' Handler: 'mod_python.publisher'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1229, in _process_target result = _execute_target(config, req, object, arg)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1128, in _execute_target result = object(arg)
File "/usr/lib/python2.5/site-packages/mod_python/publisher.py", line 213, in handler published = publish_object(req, object)
File "/usr/lib/python2.5/site-packages/mod_python/publisher.py", line 425, in publish_object return publish_object(req,util.apply_fs_data(object, req.form, req=req))
File "/usr/lib/python2.5/site-packages/mod_python/util.py", line 554, in apply_fs_data return object(**args)
File "/usr/local/nav/apache/webroot/index.py", line 194, in login authenticated = account.authenticate(password)
File "/usr/local/nav/lib/python/nav/db/navprofiles.py", line 119, in authenticate return stored_hash.verify(password)
File "/usr/local/nav/lib/python/nav/pwhash.py", line 116, in verify password=password)
File "/usr/local/nav/lib/python/nav/pwhash.py", line 80, in __init__ self.update(password)
File "/usr/local/nav/lib/python/nav/pwhash.py", line 96, in update hasher = known_methods[self.method].new(password + self.salt)
File "/usr/lib/python2.5/hashlib.py", line 98, in __hash_new return __get_builtin_constructor(name)(string)
File "/usr/lib/python2.5/hashlib.py", line 77, in __get_builtin_constructor raise ValueError, "unsupported hash type"
ValueError: unsupported hash type
Any clues on this? Did I do something wrong? Let me know if you need more info.
Thank You.