Project

General

Profile

Problème accès Wazo Admin

Added by Damien VARICLIER over 2 years ago

Bonjour à tous !

Depuis peu de temps j'utilise Wazo est je suis très satisfait de la qualité du travail réalisé par la communauté et surtout pour la grande bibliothèque de greffons disponible :D

Je rencontre cependant un soucis quant à l'accès de Wazo Admin.

Après avoir renseigné l'ID et le MDP, j'obtiens ce message d'erreur " 'NoneType' object is not iterable".

Est-ce que quelqu'un a déjà rencontré ce problème et le cas échéant comment puis-je le résoudre ?

J'ai bien demandé à mon ami Google de l'aide, mais il semblerait que personne n'ai eu ce problème.

D'avance merci beaucoup pour votre aide !

Bonne journée !

Damien.


Replies (4)

RE: Problème accès Wazo Admin - Added by Sébastien Duthil over 2 years ago

L'erreur que tu vois est une erreur très générique en Python (le langage utilisé pour développer la nouvelle interface). Il nous faut une erreur plus complète pour comprendre ce qu'il se passe (et au passage, afficher une meilleure erreur si on tombe dans ton cas). Que vois-tu dans le fichier de log /var/log/xivo-admin-ui.log?

RE: Problème accès Wazo Admin - Added by Damien VARICLIER over 2 years ago

Voici le contenu du log lorsque je tente de me connecter :

2017-10-06 09:38:04,436 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/ 302
2017-10-06 09:38:04,607 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/login/ 200
2017-10-06 09:38:04,946 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/google-fonts-roboto.css 200
2017-10-06 09:38:05,209 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/select2-bootstrap.min.css 200
2017-10-06 09:38:05,253 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/google-fonts-sans-pro.css 200
2017-10-06 09:38:05,261 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/font-awesome.min.css 200
2017-10-06 09:38:05,277 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/ionicons.min.css 200
2017-10-06 09:38:05,285 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/bootstrap.min.css 200
2017-10-06 09:38:05,291 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/select2.min.css 200
2017-10-06 09:38:05,857 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/adminlte.min.css 200
2017-10-06 09:38:06,061 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/skin-blue.min.css 200
2017-10-06 09:38:08,513 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/datatables.min.css 200
2017-10-06 09:38:08,941 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/wazo-admin-ui.css 200
2017-10-06 09:38:09,806 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/wazo_admin_ui.plugins.authentication.plugin/css/login.css 200
2017-10-06 09:38:10,905 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/js/jquery-2.2.4.min.js 200
2017-10-06 09:38:14,765 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/js/bootstrap.min.js 200
2017-10-06 09:38:16,657 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/js/bootstrap-show-password.min.js 200
2017-10-06 09:38:16,677 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/js/bootstrap-validator.min.js 200
2017-10-06 09:38:16,713 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/js/jquery.slimscroll.min.js 200
2017-10-06 09:38:17,069 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/js/jquery-ui-custom-sortable.min.js 200
2017-10-06 09:38:17,237 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/js/datatables.min.js 200
2017-10-06 09:38:17,385 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/js/select2.min.js 200
2017-10-06 09:38:23,089 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/js/adminlte.min.js 200
2017-10-06 09:38:24,345 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/js/wazo-admin-ui.js 200
2017-10-06 09:38:35,718 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/fonts/glyphicons-halflings-regular.woff2 200
2017-10-06 09:38:37,029 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/img/wazo-bird-color.svg 200
2017-10-06 09:38:43,620 [22379] (ERROR) (wazo_admin_ui.core.errors): <type 'exceptions.Exception'>
Traceback (most recent call last):
  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_functions[rule.endpoint](**req.view_args)
  File "/usr/lib/python2.7/dist-packages/flask_classful.py", line 231, in proxy
    response = view(**request.view_args)
  File "/usr/lib/python2.7/dist-packages/flask_classful.py", line 202, in inner
    return fn(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/wazo_admin_ui/plugins/authentication/view.py", line 27, in post
    return self._login()
  File "/usr/lib/python2.7/dist-packages/wazo_admin_ui/plugins/authentication/view.py", line 35, in _login
    if form.validate_on_submit():
  File "/usr/lib/python2.7/dist-packages/flask_wtf/form.py", line 101, in validate_on_submit
    return self.is_submitted() and self.validate()
  File "/usr/lib/python2.7/dist-packages/wazo_admin_ui/plugins/authentication/form.py", line 37, in validate
    password=self.password.data).token.new('xivo_admin', expiration=60*60*12)
  File "/usr/lib/python2.7/dist-packages/wazo_admin_ui/core/auth.py", line 12, in __init__
    config.update(self._auth_config)
TypeError: 'NoneType' object is not iterable
2017-10-06 09:38:43,621 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) POST https://muntz/admin/login/ 302
2017-10-06 09:38:43,862 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/ 302
2017-10-06 09:38:44,066 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/login/ 200
2017-10-06 09:38:44,630 [22379] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/fonts/fontawesome-webfont.woff2?v=4.7.0 200

RE: Problème accès Wazo Admin - Added by Sébastien Duthil over 2 years ago

OK, on voit un bout de la cause du problème, mais pas tout, on comprend pas encore comment tu peux tomber dans ce cas.

Pourrais-tu redémarrer wazo-admin-ui puis te loguer, et nous donner les logs de toute cette période-là?

Pour redémarrer wazo-admin-ui:

systemctl restart wazo-admin-ui

RE: Problème accès Wazo Admin - Added by Damien VARICLIER over 2 years ago

Voici la suite du log (je n'ai pas remis le reste de tout à l'heure) après avoir effectué la manip :

2017-10-06 17:04:46,242 [12710] (INFO) (wazo_admin_ui.controller): wazo-admin-ui starting...
2017-10-06 17:04:55,627 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/ 302
2017-10-06 17:04:56,143 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/login/ 200
2017-10-06 17:04:56,428 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/google-fonts-roboto.css 200
2017-10-06 17:04:56,870 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/select2-bootstrap.min.css 200
2017-10-06 17:04:56,893 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/google-fonts-sans-pro.css 200
2017-10-06 17:04:56,897 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/font-awesome.min.css 200
2017-10-06 17:04:56,901 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/ionicons.min.css 200
2017-10-06 17:04:56,907 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/bootstrap.min.css 200
2017-10-06 17:04:57,045 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/select2.min.css 200
2017-10-06 17:04:57,645 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/adminlte.min.css 200
2017-10-06 17:04:57,881 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/skin-blue.min.css 200
2017-10-06 17:05:00,121 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/datatables.min.css 200
2017-10-06 17:05:00,705 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/css/wazo-admin-ui.css 200
2017-10-06 17:05:01,661 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/wazo_admin_ui.plugins.authentication.plugin/css/login.css 200
2017-10-06 17:05:04,805 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/js/jquery-2.2.4.min.js 200
2017-10-06 17:05:04,953 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/js/bootstrap.min.js 200
2017-10-06 17:05:06,889 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/js/bootstrap-show-password.min.js 200
2017-10-06 17:05:08,493 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/js/bootstrap-validator.min.js 200
2017-10-06 17:05:08,625 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/js/jquery.slimscroll.min.js 200
2017-10-06 17:05:09,278 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/js/jquery-ui-custom-sortable.min.js 200
2017-10-06 17:05:09,873 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/js/datatables.min.js 200
2017-10-06 17:05:10,057 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/js/select2.min.js 200
2017-10-06 17:05:11,077 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/js/adminlte.min.js 200
2017-10-06 17:05:14,293 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/js/wazo-admin-ui.js 200
2017-10-06 17:05:19,573 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/fonts/glyphicons-halflings-regular.woff2 200
2017-10-06 17:05:24,721 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/img/wazo-bird-color.svg 200
2017-10-06 17:07:08,496 [12710] (ERROR) (wazo_admin_ui.core.errors): <type 'exceptions.Exception'>
Traceback (most recent call last):
  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_functions[rule.endpoint](**req.view_args)
  File "/usr/lib/python2.7/dist-packages/flask_classful.py", line 231, in proxy
    response = view(**request.view_args)
  File "/usr/lib/python2.7/dist-packages/flask_classful.py", line 202, in inner
    return fn(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/wazo_admin_ui/plugins/authentication/view.py", line 27, in post
    return self._login()
  File "/usr/lib/python2.7/dist-packages/wazo_admin_ui/plugins/authentication/view.py", line 35, in _login
    if form.validate_on_submit():
  File "/usr/lib/python2.7/dist-packages/flask_wtf/form.py", line 101, in validate_on_submit
    return self.is_submitted() and self.validate()
  File "/usr/lib/python2.7/dist-packages/wazo_admin_ui/plugins/authentication/form.py", line 37, in validate
    password=self.password.data).token.new('xivo_admin', expiration=60*60*12)
  File "/usr/lib/python2.7/dist-packages/wazo_admin_ui/core/auth.py", line 12, in __init__
    config.update(self._auth_config)
TypeError: 'NoneType' object is not iterable
2017-10-06 17:07:08,498 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) POST https://muntz/admin/login/ 302
2017-10-06 17:07:08,697 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/ 302
2017-10-06 17:07:08,874 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/login/ 200
2017-10-06 17:07:09,365 [12710] (INFO) (wazo_admin_ui): (172.16.0.15) GET https://muntz/admin/static/fonts/fontawesome-webfont.woff2?v=4.7.0 200
    (1-4/4)