Hallo,
wir haben an unserer Schule nach einer frischen lmn7 installation einige Fehler im WebUI.
Nach jedem Login (außer global-admin) werden wir von einer Fehlermeldung begrüßt:
Der Fehler:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/aj/api/endpoint.py", line 71, in wrapper
status = 200
File "/usr/lib/linuxmuster-webui/plugins/lmn_landingpage/views.py", line 23, in handle_api_quota
return lmn_getSophomorixValue(sophomorixCommand, jsonpath)
File "/usr/lib/linuxmuster-webui/plugins/lmn_common/api.py", line 167, in lmn_getSophomorixValue
output = output.split('# JSON-begin')[1]
IndexError: list index out of range
Die Fehler erscheinen auf allen Seiten und immer ist es ein IndexError: list index out of range.
Der Befehl sophomorix-query --sam sfrei --user-full --quota-usage -jj
liefert folgende Ausgabe:
OK: SophomorixSchemaVersion 1 matches required Version 1
Use of uninitialized value $full_user in substitution (s///) at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 6033.
Use of uninitialized value $full_user in split at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 6034.
Use of uninitialized value $full_user in pattern match (m//) at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 6043.
Use of uninitialized value $quota_data in substitution (s///) at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 6055.
Use of uninitialized value $quota_data in split at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 6056.
Use of uninitialized value $used in multiplication (*) at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 6058.
Use of uninitialized value $soft_limit in string eq at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 6060.
Use of uninitialized value $soft_limit in multiplication (*) at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 6064.
Use of uninitialized value $hard_limit in string eq at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 6067.
Use of uninitialized value $hard_limit in multiplication (*) at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 6071.
Use of uninitialized value $full_user in substitution (s///) at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 6033.
Use of uninitialized value $full_user in split at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 6034.
Use of uninitialized value $full_user in pattern match (m//) at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 6043.
Use of uninitialized value $quota_data in substitution (s///) at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 6055.
Use of uninitialized value $quota_data in split at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 6056.
Use of uninitialized value $used in multiplication (*) at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 6058.
Use of uninitialized value $soft_limit in string eq at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 6060.
Use of uninitialized value $soft_limit in multiplication (*) at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 6064.
Use of uninitialized value $hard_limit in string eq at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 6067.
Use of uninitialized value $hard_limit in multiplication (*) at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 6071.
# JSON-begin
{"LISTS":{"ROOM":[],"COMPUTER":[],"USER":["sfrei"],"GROUP":[]},"USER":{"sfrei":{"sophomorixCustom2":null,"sophomorixComment":"created by sophomorix","sophomorixFirstnameASCII":"Sebastian","sophomorixCustomMulti5":[],"sophomorixIntrinsic2":"teachers/sfrei","sophomorixWebuiPermissionsCalculated":["core:config:read: true","core:config:write: true","filesystem:read: false","filesystem:write: true","lm:schoolsettings: false","lm:users:apply: false","lm:users:check: false","lm:users:extra-courses:read: false","lm:users:extra-students:read: false","lm:users:passwords: true","lm:users:students:read: true","lm:users:students:write: true","lm:users:teachers:list: true","lm:users:teachers:read: false","lm:users:teachers:write: false","lmn:groupmembership: true","lmn:groupmemberships:write: true","lmn:session:trans: true","sidebar:view:/view/dashboard: false","sidebar:view:/view/lm/users/listmanagement: false","sidebar:view:/view/lm/users/print-passwords: true","sidebar:view:/view/lm/users/students-list: false","sidebar:view:/view/lm/users/students: false","sidebar:view:/view/lm/users/teachers-list: false","sidebar:view:/view/lm/users/teachers: false","sidebar:view:/view/lmn/groupmembership: true","sidebar:view:/view/lmn/landingpage: true","sidebar:view:/view/lmn/session: true","sidebar:view:/view/ni/nextcloud: true","sidebar:view:/view/ni/session: true","sidebar:view:/view/ni/websession: true"],"sophomorixDeactivationDate":"19700101000000.0Z","sophomorixCustomMulti3":[],"sophomorixMailQuota":"---:---:","QUOTA*USAGE*BY*SHARE":{"default-school":{"HARD*LIMIT*MiB":0,"HARD*LIMIT":null,"SOFT*LIMIT*MiB":0,"SOFT*LIMIT":null,"USED":null,"USED*MiB":0,"FULL*USER":null},"linuxmuster-global":{"FULL*USER":null,"USED":null,"USED*MiB":0,"SOFT*LIMIT":null,"HARD*LIMIT*MiB":0,"HARD*LIMIT":null,"SOFT*LIMIT_MiB":0}},"sophomorixIntrinsicMulti1":[],"sophomorixTolerationDate":"19700101000000.0Z","DN":"CN=sfrei,OU=Teachers,OU=default-school,OU=SCHOOLS,DC=johanneum,DC=local","mail":"sfrei@johanneum.local","sophomorixCloudQuotaCalculated":"2506 MB","sophomorixAdminClass":"teachers","givenName":"Sebastian","sophomorixExitAdminClass":"attic","sophomorixIntrinsic5":null,"sophomorixIntrinsicMulti2":[],"sophomorixCustom3":null,"sophomorixAdminFile":"teachers.csv","sophomorixCustom4":null,"sAMAccountName":"sfrei","sophomorixQuota":["linuxmuster-global:---:---:new:---:","default-school:---:---:new:---:"],"userAccountControl":"66048","sophomorixStatus":"A","sophomorixCreationDate":"20210920133545.0Z","sophomorixBirthdate":"01.01.1980","sn":"Frei","sophomorixCustomMulti2":[],"displayName":"Sebastian Frei","sophomorixIntrinsicMulti4":[],"sophomorixCustomMulti1":[],"sophomorixSurnameASCII":"Frei","sophomorixMailQuotaCalculated":"306","sophomorixIntrinsicMulti5":[],"sophomorixIntrinsic3":null,"sophomorixCustomMulti4":[],"memberOf":["CN=internet,OU=Management,OU=default-school,OU=SCHOOLS,DC=johanneum,DC=local","CN=webfilter,OU=Management,OU=default-school,OU=SCHOOLS,DC=johanneum,DC=local","CN=intranet,OU=Management,OU=default-school,OU=SCHOOLS,DC=johanneum,DC=local","CN=printing,OU=Management,OU=default-school,OU=SCHOOLS,DC=johanneum,DC=local","CN=teachers,OU=Teachers,OU=default-school,OU=SCHOOLS,DC=johanneum,DC=local","CN=role-teacher,OU=Groups,OU=GLOBAL,DC=johanneum,DC=local","CN=wifi,OU=Management,OU=default-school,OU=SCHOOLS,DC=johanneum,DC=local"],"sophomorixIntrinsic1":null,"sophomorixCustom5":null,"sophomorixSurnameInitial":"F.","sophomorixCustom1":null,"sophomorixFirstnameInitial":"S.","sophomorixExamMode":"---","sophomorixFirstPassword":"Test12345","sophomorixIntrinsicMulti3":[],"sophomorixRole":"teacher","sophomorixUnid":"---","sophomorixSchoolname":"default-school","sophomorixIntrinsic4":null,"sophomorixUserToken":"---"}},"COUNTERS":{"GROUP":0,"ROOM":0,"ALL":1,"COMPUTER":0,"USER":1}}# JSON-end
Installierte Versionen:
linuxmuster-base7 7.0.82-0ubuntu0
linuxmuster-prepare 0.7.6-1ubuntu0
linuxmuster-webui7 1.0.156-1
sophomorix-samba 3.80.0-1
Habt ihr eine Idee an was das liegen kann?
Grüße