Hi,
I’ve initialized a new yubikey with:
privacyidea token yubikey_mass_enroll --filename secrets.csv
The resulting CSV file was imported into privacyidea 2.7, I’ve got the
message that one token has been imported. Now I switch into the token
list and get the following message:
‘NoneType’ object has no attribute 'name’
The new token is not shown in the token list (but the existing token are
still there).
I’ve looked into the database tables and find:,----
| select * from token;
| …
| | 31 | imported | UBOM03638840_1 | hotp …
`----
,----
| mysql> select * from tokenrealm;
| …
| | 39 | 31 | NULL |
`----
mysql> select * from tokeninfo where token_id = 31;
±—±--------±------±-----±------------±---------+
| id | Key | Value | Type | Description | token_id |
±—±--------±------±-----±------------±---------+
| 72 | hashlib | sha1 | NULL | NULL | 31 |
±—±--------±------±-----±------------±---------+
In /var/log/privacyidea/privacyidea.log:
[2015-10-10 14:45:41,175][1791][139759296419584][ERROR][privacyidea.app:1423] Exception on /token/ [GET]
Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/flask/app.py”, line 1817, in wsgi_app
response = self.full_dispatch_request()
File “/usr/lib/python2.7/dist-packages/flask/app.py”, line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File “/usr/lib/python2.7/dist-packages/flask/app.py”, line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File “/usr/lib/python2.7/dist-packages/flask/app.py”, line 1475, in full_dispatch_request
rv = self.dispatch_request()
File “/usr/lib/python2.7/dist-packages/flask/app.py”, line 1461, in dispatch_request
return self.view_functionsrule.endpoint
File “/usr/lib/python2.7/dist-packages/privacyidea/lib/log.py”, line 125, in log_wrapper
f_result = func(*args, **kwds)
File “/usr/lib/python2.7/dist-packages/privacyidea/api/token.py”, line 334, in list_api
description=description)
File “/usr/lib/python2.7/dist-packages/privacyidea/lib/log.py”, line 125, in log_wrapper
f_result = func(*args, **kwds)
File “/usr/lib/python2.7/dist-packages/privacyidea/lib/token.py”, line 354, in get_tokens_paginate
token_dict = tokenobject.get_as_dict()
File “/usr/lib/python2.7/dist-packages/privacyidea/lib/tokenclass.py”, line 1284, in get_as_dict
token_dict = self.token.get()
File “/usr/lib/python2.7/dist-packages/privacyidea/lib/log.py”, line 125, in log_wrapper
f_result = func(*args, **kwds)
File “/usr/lib/python2.7/dist-packages/privacyidea/models.py”, line 408, in get
return self.get_vars(save=save)
File “/usr/lib/python2.7/dist-packages/privacyidea/lib/log.py”, line 125, in log_wrapper
f_result = func(*args, **kwds)
File “/usr/lib/python2.7/dist-packages/privacyidea/models.py”, line 442, in get_vars
realm_list.append(realm_entry.realm.name)
AttributeError: ‘NoneType’ object has no attribute ‘name’
Any ideas?
Jochen
–
The only problem with troubleshooting is that the trouble shoots back.