Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

AttributeError: 'ThreadedDict' object has no attribute 'userrole' #251

Open
ningli16 opened this issue Jun 30, 2017 · 0 comments
Open

AttributeError: 'ThreadedDict' object has no attribute 'userrole' #251

ningli16 opened this issue Jun 30, 2017 · 0 comments

Comments

@ningli16
Copy link
Contributor

Reproduce steps:

  1. Install CeTune master
  2. Install CeTune webui
  3. Add user:
    python user_Management.py -o add --user_name admin --passwd 123456 --role admin
  4. Run benchmark.

There's error in "python webui.py" runtime log:

10.239.44.90:63246 - - [30/Jun/2017 10:05:00] "HTTP/1.1 GET /configuration/user_role" - 500 Internal Server Error
<Storage {'timestamp': u'2017-06-30T10:04:04.898784'}>
10.239.44.90:63246 - - [30/Jun/2017 10:05:01] "HTTP/1.1 POST /monitor/tail_console" - 200 OK
get_param:<Storage {}>
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/web.py-0.40.dev0-py2.7.egg/web/application.py", line 257, in process
return self.handle()
File "/usr/local/lib/python2.7/dist-packages/web.py-0.40.dev0-py2.7.egg/web/application.py", line 248, in handle
return self._delegate(fn, self.fvars, args)
File "/usr/local/lib/python2.7/dist-packages/web.py-0.40.dev0-py2.7.egg/web/application.py", line 488, in _delegate
return handle_class(cls)
File "/usr/local/lib/python2.7/dist-packages/web.py-0.40.dev0-py2.7.egg/web/application.py", line 466, in handle_class
return tocall(*args)
File "webui.py", line 75, in GET
return common.eval_args( self, function_name, web.input() )
File "/home/ning/upload/docker/CeTune/conf/common.py", line 605, in eval_args
if function_name != "":
File "webui.py", line 82, in user_role
output = session.userrole
File "/usr/local/lib/python2.7/dist-packages/web.py-0.40.dev0-py2.7.egg/web/session.py", line 68, in getattr
return getattr(self._data, name)
AttributeError: 'ThreadedDict' object has no attribute 'userrole'

Actually, when running python user_Management.py -o list
there is admin user listed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant