Segnalazione #217
Errore durante creazione nuovo gruppo
0%
Description
Azione:
Users&Groups --> All Groups --> Create new group
dopo l'inserimento del nuovo gruppo, alla pressione del bottone "Save" sia ha il seguente errore:
Environment:
Request Method: POST
Request URL: http://octofuss.testing.lan/users/group/create
Django Version: 1.8.16
Python Version: 3.4.2
Installed Applications:
['django.contrib.sessions',
'django.contrib.messages',
'whitenoise.runserver_nostatic',
'django.contrib.staticfiles',
'octonet',
'hostqueue.apps.HostQueue',
'firewall.apps.Firewall',
'dhcp.apps.Dhcp',
'dansguardian.apps.DansGuardian',
'host.apps.Host',
'polygen.apps.Polygen',
'upgrade.apps.Upgrade',
'asterisk.apps.Asterisk',
'samba.apps.Samba',
'users.apps.Users',
'script.apps.Script',
'quota.apps.Quota',
'printers.apps.Printers',
'auth.apps.Auth']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.middleware.locale.LocaleMiddleware',
'octonet.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback:
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py" in get_response
132. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3/dist-packages/django/views/generic/base.py" in view
71. return self.dispatch(request, *args, **kwargs)
File "/usr/share/octonet/octonet/mixins.py" in dispatch
105. return super().dispatch(request, *args, **kw)
File "/usr/lib/python3/dist-packages/django/views/generic/base.py" in dispatch
89. return handler(request, *args, **kwargs)
File "/usr/lib/python3/dist-packages/django/views/generic/edit.py" in post
215. return self.form_valid(form)
File "/usr/share/octonet/users/views.py" in form_valid
610. self.root_tree.lcreate(['users', 'groups', self.group_name])
File "/usr/lib/python3/dist-packages/octofuss/xmlrpc.py" in lcreate
84. return self._wrap_call(self.server.create, "/".join(path), dumps(value))
File "/usr/lib/python3/dist-packages/octofuss/xmlrpc.py" in _wrap_call
42. raise globals().get(name, UnknownException)(msg)
Exception Type: UnknownException at /users/group/create
Exception Value: 'NoneType' object has no attribute 'lget'
Related issues
History
Updated by Christopher R. Gabriel over 7 years ago
- Status changed from Nuovo to Commenti
- Assignee changed from TRUELITE to Massimo Previdi
Attualmente non riesco a riprodurlo.
Puoi cortesemente fornirmi al versione del pacchetto octonet e la versione del pacchetto octofussd installati sul server?
Updated by Massimo Previdi over 7 years ago
Attualmente anch'io non riesco a fornirti, (sono a scuola),
la versione del pacchetto octonet e la versione del pacchetto octofussd installati sul server.
Posso verificare, appena possibile, solo quando sono nel fuss-box
Updated by Michael Guggenberg over 7 years ago
Christopher R. Gabriel ha scritto:
Attualmente non riesco a riprodurlo.
Puoi cortesemente fornirmi al versione del pacchetto octonet e la versione del pacchetto octofussd installati sul server?
confermo, octonet 0.2.2-1
Request Method: POST
Request URL: http://localhost:13402/users/group/create
Django Version: 1.8.16
Python Version: 3.4.2
Installed Applications:
['django.contrib.sessions',
'django.contrib.messages',
'whitenoise.runserver_nostatic',
'django.contrib.staticfiles',
'octonet',
'hostqueue.apps.HostQueue',
'firewall.apps.Firewall',
'dhcp.apps.Dhcp',
'dansguardian.apps.DansGuardian',
'host.apps.Host',
'polygen.apps.Polygen',
'upgrade.apps.Upgrade',
'asterisk.apps.Asterisk',
'samba.apps.Samba',
'users.apps.Users',
'script.apps.Script',
'quota.apps.Quota',
'printers.apps.Printers',
'auth.apps.Auth']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.middleware.locale.LocaleMiddleware',
'octonet.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback:
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py" in get_response
132. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3/dist-packages/django/views/generic/base.py" in view
71. return self.dispatch(request, *args, **kwargs)
File "/usr/share/octonet/octonet/mixins.py" in dispatch
105. return super().dispatch(request, *args, **kw)
File "/usr/lib/python3/dist-packages/django/views/generic/base.py" in dispatch
89. return handler(request, *args, **kwargs)
File "/usr/lib/python3/dist-packages/django/views/generic/edit.py" in post
215. return self.form_valid(form)
File "/usr/share/octonet/users/views.py" in form_valid
610. self.root_tree.lcreate(['users', 'groups', self.group_name])
File "/usr/lib/python3/dist-packages/octofuss/xmlrpc.py" in lcreate
84. return self._wrap_call(self.server.create, "/".join(path), dumps(value))
File "/usr/lib/python3/dist-packages/octofuss/xmlrpc.py" in _wrap_call
42. raise globals().get(name, UnknownException)(msg)
Exception Type: UnknownException at /users/group/create
Exception Value: 'NoneType' object has no attribute 'lget'
Updated by Paolo Dongilli over 7 years ago
- Related to Segnalazione #212: Manca opzione aggiunta gruppo utenti added
Updated by Massimo Previdi over 7 years ago
- Assignee changed from Massimo Previdi to TRUELITE
Buongiorno, confermo che i pacchetti installati nel server di prova sono i seguenti:
+++-=========================-=================-=================-========================================================
ii octonet 0.2.2-1 all OctoNet
+++-=========================-=================-=================-========================================================
ii octofussd 8.0.15-1 all server for remote computer lab administration
purtroppo anche dopo un update & upgrade del server,
persiste l'errore segnalato in precedenza durante la creazione di un nuovo gruppo! (docenti, alunni o studenti)
Updated by Christopher R. Gabriel over 7 years ago
- Assignee changed from TRUELITE to Mark Caglienzi
Updated by Mark Caglienzi over 7 years ago
- Status changed from In elaborazione to Commenti
- Assignee changed from Mark Caglienzi to Michael Guggenberg
Dopo diversi tentativi di riprodurre il problema non ci siamo riusciti.
Questo problema succede tutte le volte che si cerca di creare un nuovo gruppo?
Per proseguire nell'indagine a questo punto sarebbe utile avere il relativo log di octofussd (cioè durante un tentativo di creazione di gruppo che fallisce in questo modo), per vedere cosa succede nel backend.
Grazie!
Updated by Michael Guggenberg over 7 years ago
2017-04-12T07:44:16+0200 [stdout#info] CREATE users/groups/test None
2017-04-12T07:44:16+0200 [stderr#error] Traceback (most recent call last):
2017-04-12T07:44:16+0200 [stderr#error] File "/usr/lib/python3/dist-packages/octofuss/xmlrpc.py", line 121, in _wrap_call
2017-04-12T07:44:16+0200 [stderr#error] res = callable(*args)
2017-04-12T07:44:16+0200 [stderr#error] File "/usr/sbin/octofussd", line 142, in create
2017-04-12T07:44:16+0200 [stderr#error] return self.tree.create(path, value)
2017-04-12T07:44:16+0200 [stderr#error] File "/usr/lib/python3/dist-packages/octofuss/tree.py", line 114, in create
2017-04-12T07:44:16+0200 [stderr#error] return self.lcreate(_tolist(path), value)
2017-04-12T07:44:16+0200 [stderr#error] File "/usr/lib/python3/dist-packages/octofuss/tree.py", line 273, in lcreate
2017-04-12T07:44:16+0200 [stderr#error] return tree.lcreate(path[1:], value, **kw)
2017-04-12T07:44:16+0200 [stderr#error] File "/usr/lib/python3/dist-packages/octofuss/tree.py", line 273, in lcreate
2017-04-12T07:44:16+0200 [stderr#error] return tree.lcreate(path[1:], value, **kw)
2017-04-12T07:44:16+0200 [stderr#error] File "/usr/lib/python3/dist-packages/octofuss/tree.py", line 578, in lcreate
2017-04-12T07:44:16+0200 [stderr#error] return self.new_element(path0, value)
2017-04-12T07:44:16+0200 [stderr#error] File "/usr/share/octofussd/plugins/usersplugin/common.py", line 147, in new_element
2017-04-12T07:44:16+0200 [stderr#error] return group.lget([])
2017-04-12T07:44:16+0200 [stderr#error] AttributeError: 'NoneType' object has no attribute 'lget'
Updated by Christopher R. Gabriel over 7 years ago
- Assignee changed from Michael Guggenberg to Mark Caglienzi
Updated by Mark Caglienzi over 7 years ago
- Assignee changed from Mark Caglienzi to Christopher R. Gabriel
Corretto nel commit commit:ab36420b in octofussd
Fatto direttamente in master e pushato.
Updated by Christopher R. Gabriel over 7 years ago
- Assignee changed from Christopher R. Gabriel to Michael Guggenberg
Pubblicato nuovo pacchetto octofussd 8.0.16 con il fix precedente.