Einloggen in Schulkonsole nach Update nicht mehr möglich

Hallo,

seit dem letzen Update des LML Server, ist eine Anmeldung in der Schulkonsole nicht mehr möglich. der Ajenti Worker stirbt und man bekommt nach ein paar Minuten dann auf Webkonsole die Meldung „Worker timeout“

Das ajenti Log liefert dann folgenden Fehler

2023-06-01 11:59:41,305 ERROR   : disconnect handler error
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/engineio/server.py", line 622, in _trigger_event
    return self.handlers[event](*args)
  File "/usr/local/lib/python3.6/dist-packages/socketio/server.py", line 794, in _handle_eio_disconnect
    self._handle_disconnect(eio_sid, n)
  File "/usr/local/lib/python3.6/dist-packages/socketio/server.py", line 698, in _handle_disconnect
    self._trigger_event('disconnect', namespace, sid)
  File "/usr/local/lib/python3.6/dist-packages/socketio/server.py", line 753, in _trigger_event
    event, *args)
  File "/usr/local/lib/python3.6/dist-packages/socketio/namespace.py", line 18, in trigger_event
    return getattr(self, handler_name)(*args)
  File "/usr/local/lib/python3.6/dist-packages/aj/gate/middleware.py", line 60, in on_disconnect
    self._send_worker_event(sid, 'disconnect')
  File "/usr/local/lib/python3.6/dist-packages/aj/gate/middleware.py", line 47, in _send_worker_event
    'message': message,
  File "/usr/local/lib/python3.6/dist-packages/aj/gate/stream.py", line 78, in send
    self.pipe.put(part)
  File "/usr/local/lib/python3.6/dist-packages/gipc/gipc.py", line 1061, in put
    self._write(struct.pack("!i", len(bindata)) + bindata)
  File "/usr/local/lib/python3.6/dist-packages/gipc/gipc.py", line 1029, in _write
    bytes_written = _write_nonblocking(self._fd, bindata)
  File "/usr/local/lib/python3.6/dist-packages/gevent/os.py", line 131, in nb_write
    result = _write(fd, buf)
BrokenPipeError: [Errno 32] Datenübergabe unterbrochen (broken pipe)

Kann mir jemand dazu helfen oder gibt es hier schon Informationen das es ein generelles Problem gibt?

Schöne Grüße

Dominik

Hallo Dominik,

auf welche Version hast du den upgedatet?

LG

Holger

Hallo Holger,

war keine Versionsänderung, einfach nur ein normales „apt full-upgrade“ Seitdem kommt der Fehler.

Schönen Grüße

Dominik

Hallo Dominik,

die Version wäre trotzdem wichtig.
dpkg -l | grep webui

LG

Holger

Hallo Dominik,

Es gibt in den Logs sehr wahrscheinlich eine andere Fehlermeldung vor die du hier kopieren hast, und das war die Ursache von dem Plugin-Error.
Wenn du das findest, können wir es anschauen, bin aber noch im Ausland und zeitlich begrenzt.

Gruß

Arnaud

Hallo Arnaud, hallo Holger,

entschuldigt die späte Antwort, ich war im Urlaub.

Die Version ist „linuxmuster-webui7 7.1.51“. Hier nochmal das Log mit den Zeilen davor.

2023-06-09 12:11:23,851 INFO    : lmn_websession.__init__.py: lmn_websession loaded
2023-06-09 12:11:23,867 INFO    : lmn_clients.__init__.py: lmn_clients loaded
2023-06-09 12:11:23,869 INFO    : lmn_vdi_administration.__init__.py: lmn_vdi_administration loaded
2023-06-09 12:11:23,873 INFO    : samba_dns.__init__.py: samba_dns loaded
2023-06-09 12:11:23,875 INFO    : Loaded 34 plugins
2023-06-09 12:11:23,875 INFO    : Binding to [0.0.0.0]:443
2023-06-09 12:11:23,898 INFO    : SSL enabled
2023-06-09 12:11:23,909 INFO    : New worker "restricted session" PID 27817, EUID 0, EGID 0
2023-06-09 12:11:23,910 INFO    : Worker 27817 is demoting to UID 65534 / GID 65534...
2023-06-09 12:11:23,910 INFO    : ...done, new EUID 65534 EGID 65534
2023-06-09 12:11:34,313 INFO    : 10.16.1.10 - - [2023-06-09 12:11:34] "GET / HTTP/1.1" 302 162 0.009188
2023-06-09 12:11:34,524 INFO    : 10.16.1.10 - - [2023-06-09 12:11:34] "GET /view/login/normal HTTP/1.1" 200 12111 0.004142
2023-06-09 12:11:34,768 INFO    : 10.16.1.10 - - [2023-06-09 12:11:34] "GET /resources/all.vendor.css HTTP/1.1" 200 17201 0.010696
2023-06-09 12:11:34,985 INFO    : 10.16.1.10 - - [2023-06-09 12:11:34] "GET /resources/all.css HTTP/1.1" 200 29269 0.014881
2023-06-09 12:11:34,995 INFO    : 10.16.1.10 - - [2023-06-09 12:11:34] "GET /resources/core/resources/vendor/fontawesome/css/all.min.css HTTP/1.1" 200 12977 0.017267
2023-06-09 12:11:35,025 INFO    : 10.16.1.10 - - [2023-06-09 12:11:35] "GET /resources/all.js HTTP/1.1" 200 80075 0.039223
2023-06-09 12:11:35,026 INFO    : 10.16.1.10 - - [2023-06-09 12:11:35] "GET /resources/core/resources/vendor/fontawesome/css/v4-shims.css HTTP/1.1" 200 4680 0.025563
2023-06-09 12:11:35,200 INFO    : 10.16.1.10 - - [2023-06-09 12:11:35] "GET /resources/core/resources/vendor/pt-sans/styles/pt_sans.css HTTP/1.1" 200 613 0.195272
2023-06-09 12:11:35,207 INFO    : 10.16.1.10 - - [2023-06-09 12:11:35] "GET /resources/all.vendor.js HTTP/1.1" 200 655459 0.204116
2023-06-09 12:11:35,244 INFO    : 10.16.1.10 - - [2023-06-09 12:11:35] "GET /resources/all.partials.js HTTP/1.1" 200 71608 0.036066
2023-06-09 12:11:35,244 INFO    : 10.16.1.10 - - [2023-06-09 12:11:35] "GET /resources/all.init.js HTTP/1.1" 200 627 0.035817
2023-06-09 12:11:35,650 INFO    : 10.16.1.10 - - [2023-06-09 12:11:35] "GET /resources/lmn_common/resources/img/course_card_colored_darkblue_trans.png HTTP/1.1" 200 9627 0.003204
2023-06-09 12:11:35,652 INFO    : 10.16.1.10 - - [2023-06-09 12:11:35] "GET /resources/lmn_common/resources/img/course_card_colored_orange_trans.png HTTP/1.1" 200 10677 0.002465
2023-06-09 12:11:35,655 INFO    : 10.16.1.10 - - [2023-06-09 12:11:35] "GET /resources/lmn_common/resources/img/course_people_colored_darkblue_trans.png HTTP/1.1" 200 15713 0.002809
2023-06-09 12:11:35,659 INFO    : 10.16.1.10 - - [2023-06-09 12:11:35] "GET /resources/lmn_common/resources/img/course_people_colored_orange_trans.png HTTP/1.1" 200 18046 0.002850
2023-06-09 12:11:35,664 INFO    : 10.16.1.10 - - [2023-06-09 12:11:35] "GET /resources/lmn_common/resources/img/course_class_colored_darkblue_trans.png HTTP/1.1" 200 7415 0.002402
2023-06-09 12:11:35,667 INFO    : 10.16.1.10 - - [2023-06-09 12:11:35] "GET /resources/lmn_common/resources/img/course_class_colored_orange_trans.png HTTP/1.1" 200 8367 0.002388
2023-06-09 12:11:35,876 INFO    : 10.16.1.10 - - [2023-06-09 12:11:35] "GET /resources/all.locale.js?lang=de HTTP/1.1" 200 21065 0.015104
2023-06-09 12:11:35,878 INFO    : 10.16.1.10 - - [2023-06-09 12:11:35] "GET /api/core/identity HTTP/1.1" 200 384 0.012805
2023-06-09 12:11:35,878 INFO    : 10.16.1.10 - - [2023-06-09 12:11:35] "GET /api/core/sidebar HTTP/1.1" 401 142 0.008105
2023-06-09 12:11:35,878 INFO    : 10.16.1.10 - - [2023-06-09 12:11:35] "GET /api/core/sidebar HTTP/1.1" 401 142 0.005708
2023-06-09 12:11:35,881 INFO    : 10.16.1.10 - - [2023-06-09 12:11:35] "GET /socket.io/?EIO=4&transport=polling&t=OYVekeG HTTP/1.1" 200 214 0.000819
2023-06-09 12:11:35,888 INFO    : 10.16.1.10 - - [2023-06-09 12:11:35] "GET /resources/all.locale.js?lang=de HTTP/1.1" 200 21065 0.006050
2023-06-09 12:11:36,092 INFO    : 10.16.1.10 - - [2023-06-09 12:11:36] "GET /api/core/identity HTTP/1.1" 200 384 0.003155
2023-06-09 12:11:36,094 INFO    : 10.16.1.10 - - [2023-06-09 12:11:36] "GET /resources/core/resources/vendor/pt-sans/fonts/pt_sans/regular/PTS55F.woff HTTP/1.1" 200 27391 0.003888
2023-06-09 12:11:36,095 INFO    : 10.16.1.10 - - [2023-06-09 12:11:36] "GET /resources/lmn_common/resources/img/logo-full.png HTTP/1.1" 200 7886 0.004174
2023-06-09 12:11:36,096 INFO    : 10.16.1.10 - - [2023-06-09 12:11:36] "GET /resources/lmn_common/resources/img/logo-text-white.png HTTP/1.1" 200 2050 0.004383
2023-06-09 12:11:36,197 INFO    : 10.16.1.10 - - [2023-06-09 12:11:36] "GET /resources/core/resources/vendor/fontawesome/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 79675 0.008378
2023-06-09 12:11:36,199 INFO    : 10.16.1.10 - - [2023-06-09 12:11:36] "GET /resources/core/resources/vendor/fontawesome/webfonts/fa-regular-400.woff2 HTTP/1.1" 200 13940 0.005221
2023-06-09 12:11:36,306 INFO    : 10.16.1.10 - - [2023-06-09 12:11:36] "POST /socket.io/?EIO=4&transport=polling&t=OYVekmX&sid=QRWk8RbscKAxous4AAAA HTTP/1.1" 200 103 0.001026
2023-06-09 12:11:36,307 INFO    : 10.16.1.10 - - [2023-06-09 12:11:36] "GET /socket.io/?EIO=4&transport=polling&t=OYVekmY&sid=QRWk8RbscKAxous4AAAA HTTP/1.1" 200 157 0.000231
2023-06-09 12:11:36,527 INFO    : 10.16.1.10 - - [2023-06-09 12:11:36] "GET /socket.io/?EIO=4&transport=polling&t=OYVekqT&sid=QRWk8RbscKAxous4AAAA HTTP/1.1" 200 117 0.000231
2023-06-09 12:11:36,531 INFO    : 10.16.1.10 - - [2023-06-09 12:11:36] "GET /api/core/tasks/request-update HTTP/1.1" 401 142 0.001780
2023-06-09 12:11:36,726 INFO    : 10.16.1.10 - - [2023-06-09 12:11:36] "GET /resources/lmn_common/resources/img/favicon.png HTTP/1.1" 200 3709 0.003571
2023-06-09 12:11:36,760 INFO    : 10.16.1.10 - - [2023-06-09 12:11:36] "GET /socket.io/?EIO=4&transport=polling&t=OYVekt_&sid=QRWk8RbscKAxous4AAAA HTTP/1.1" 200 117 0.000221
2023-06-09 12:11:37,818 WARNING : Initializing Kerberos ticket for global-admin
2023-06-09 12:11:38,054 INFO    : Opening a session for user global-admin
2023-06-09 12:11:38,054 INFO    : Opening a new worker gate for session 1, client 10.16.1.10
2023-06-09 12:11:38,064 INFO    : 10.16.1.10 - - [2023-06-09 12:11:38] "POST /api/core/auth HTTP/1.1" 200 3096 0.402814
2023-06-09 12:11:38,066 INFO    : New worker "session 1" PID 27826, EUID 0, EGID 0
2023-06-09 12:11:38,066 INFO    : Authenticating session as global-admin
2023-06-09 12:12:23,317 INFO    : 10.16.1.10 - - [2023-06-09 12:12:23] "GET /socket.io/?EIO=4&transport=polling&t=OYVewFT HTTP/1.1" 200 214 0.002185
2023-06-09 12:12:23,544 ERROR   : message handler error                                                                                                                                                                                                                        Traceback (most recent call last):                                                                                                                                                                                                                                               File "/usr/local/lib/python3.6/dist-packages/engineio/server.py", line 622, in _trigger_event                                                                                                                                                                                    return self.handlers[event](*args)                                                                                                                                                                                                                                           File "/usr/local/lib/python3.6/dist-packages/socketio/server.py", line 776, in _handle_eio_message                                                                                                                                                                               self._handle_connect(eio_sid, pkt.namespace, pkt.data)                                                                                                                                                                                                                       File "/usr/local/lib/python3.6/dist-packages/socketio/server.py", line 669, in _handle_connect                                                                                                                                                                                   'connect', namespace, sid, self.environ[eio_sid])                                                                                                                                                                                                                            File "/usr/local/lib/python3.6/dist-packages/socketio/server.py", line 753, in _trigger_event                                                                                                                                                                                    event, *args)                                                                                                                                                                                                                                                                File "/usr/local/lib/python3.6/dist-packages/socketio/namespace.py", line 18, in trigger_event                                                                                                                                                                                   return getattr(self, handler_name)(*args)                                                                                                                                                                                                                                    File "/usr/local/lib/python3.6/dist-packages/aj/gate/middleware.py", line 56, in on_connect                                                                                                                                                                                      self._send_worker_event(sid, 'connect')                                                                                                                                                                                                                                      File "/usr/local/lib/python3.6/dist-packages/aj/gate/middleware.py", line 47, in _send_worker_event                                                                                                                                                                              'message': message,                                                                                                                                                                                                                                                          File "/usr/local/lib/python3.6/dist-packages/aj/gate/stream.py", line 78, in send                                                                                                                                                                                                self.pipe.put(part)                                                                                                                                                                                                                                                          File "/usr/local/lib/python3.6/dist-packages/gipc/gipc.py", line 1061, in put                                                                                                                                                                                                    self._write(struct.pack("!i", len(bindata)) + bindata)                                                                                                                                                                                                                       File "/usr/local/lib/python3.6/dist-packages/gipc/gipc.py", line 1029, in _write                                                                                                                                                                                                 bytes_written = _write_nonblocking(self._fd, bindata)                                                                                                                                                                                                                        File "/usr/local/lib/python3.6/dist-packages/gevent/os.py", line 131, in nb_write                                                                                                                                                                                                result = _write(fd, buf)                                                                                                                                                                                                                                                   BrokenPipeError: [Errno 32] Datenübergabe unterbrochen (broken pipe)
2023-06-09 12:12:23,549 INFO    : 10.16.1.10 - - [2023-06-09 12:12:23] "POST /socket.io/?EIO=4&transport=polling&t=OYVewJ5&sid=M8JenKprXOmiqEY2AAAC HTTP/1.1" 200 103 0.007437
2023-06-09 12:12:23,981 INFO    : 10.16.1.10 - - [2023-06-09 12:12:23] "GET /socket.io/?EIO=4&transport=polling&t=OYVewJ8&sid=M8JenKprXOmiqEY2AAAC HTTP/1.1" 200 117 0.431191            

Ich hoffe das hilft jetzt weiter. Ich bin jetzt auch wieder da. Kann also eure Fragen schneller beantworten.

Schönen Grüße

Dominik

Hallo Dominik,

Da sehe ich leider keine hilfreiche Fehlermeldung.
Betriebsystem auf dem Server ist bionic, oder ?
Funktioniert die LDAP-Anmeldung bei anderen Bereichen ? ( Moodle o.ä )

Ansonstens funktioniert die Anmeldung mit diesem Skript ?

wget https://raw.githubusercontent.com/linuxmuster/linuxmuster-webui7/lmn72/tests/test-smbclient.py
python3  test-smbclient.py

Gruß

Arnaud

Hallo Arnaud,

leider ist das Problem immer noch da und ich konnte es jetzt im Haupthaus nur durch ein Reset und Reimport lösen. Aber da sind es auch nur 20 PCs.

Also, das Arbeiten im Netzwerk geht ohne Probleme, sprich Windows Anmeldung. Mehr wird nicht genutzt. Server ist Bionic. Aber das Skript von dir wirft einen Fehler. Aber wo der herkommt, ist mir ein Rätsel. Denn bis auf apt Updates ist nicht groß was passiert. WebUI geht nach wie vor nicht. Hier mal das Ergebnis des Skriptes.

/usr/local/lib/python3.6/dist-packages/smbprotocol/connection.py:18: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography (40.0) will be the last to support Python 3.6.
  from cryptography.hazmat.backends import (
 This script helps to test some domains to access samba shares, and you can try your own path too. 
 Samba realm used by the Webui --> schule.lan 
 Samba netbios used by the Webui --> ml-7 
 Samba domain used by the Webui --> ml-7.schule.lan 
 Samba domain to try (optional, something like server.linuxmuster.lan): 
 Teacher login: hoefling
 Password:
 Getting Kerberos ticket 
 Setting process uid=3000027 and gid=100 for Kerberos ticket 

 ################################################################################ 

 Trying with host ml-7 ...  Files located at \\ml-7\default-school\teachers\hoefling: 

 D --> transfer

 SUCCESS with host ml-7! 

 ################################################################################ 

 Trying with host schule.lan ...  Files located at \\schule.lan\default-school\teachers\hoefling: 

 D --> transfer

 SUCCESS with host schule.lan! 

 ################################################################################ 

 Trying with host ml-7.schule.lan ...  Files located at \\ml-7.schule.lan\default-school\teachers\hoefling: 

 FAILED with host ml-7.schule.lan! 
 Received unexpected status from the server: An invalid parameter was passed to a service or function. (3221225485) STATUS_IN/usr/local/lib/python3.6/dist-packages/smbprotocol/connection.py:18: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography (40.0) will be the last to support Python 3.6.
  from cryptography.hazmat.backends import (
 This script helps to test some domains to access samba shares, and you can try your own path too. 
 Samba realm used by the Webui --> schule.lan 
 Samba netbios used by the Webui --> ml-7 
 Samba domain used by the Webui --> ml-7.schule.lan 
 Samba domain to try (optional, something like server.linuxmuster.lan): 
 Teacher login: hoefling
 Password:
 Getting Kerberos ticket 
 Setting process uid=3000027 and gid=100 for Kerberos ticket 

 ################################################################################ 

 Trying with host ml-7 ...  Files located at \\ml-7\default-school\teachers\hoefling: 

 D --> transfer

 SUCCESS with host ml-7! 

 ################################################################################ 

 Trying with host schule.lan ...  Files located at \\schule.lan\default-school\teachers\hoefling: 

 D --> transfer

 SUCCESS with host schule.lan! 

 ################################################################################ 

 Trying with host ml-7.schule.lan ...  Files located at \\ml-7.schule.lan\default-school\teachers\hoefling: 

 FAILED with host ml-7.schule.lan! 
 Received unexpected status from the server: An invalid parameter was passed to a service or function. (3221225485) STATUS_INVALID_PARAMETER: 0xc000000d 

 ################################################################################ 

 REPORT: 

 SUCCESS with host ml-7! 
 SUCCESS with host schule.lan! 
 FAILED with host ml-7.schule.lan! VALID_PARAMETER: 0xc000000d 

 ################################################################################ 

 REPORT: 

 SUCCESS with host ml-7! 
 SUCCESS with host schule.lan! 
 FAILED with host ml-7.schule.lan!

Evtl. habt ihr ja noch eine Lösung. Sonst mache ich hier auch alles Platt.

Danke schon mal für die Mühe!

Hallo,

Gibt es besondere Zeichen im Benutzernamen, wie „_“ z.B. ?

Gruß

Arnaud

Hallo Arnaud,

nein. An der Konsole ist es der „global-admin“ für das Testen habe ich meinen Lehrerlogin genommen, da er ja nach einem TeacherLogin verlangt.

Was mich irritiert ist

FAILED with host ml-7.schule.lan! 
 Received unexpected status from the server: An invalid parameter was passed to a service or function. (3221225485) STATUS_INVALID_PARAMETER: 0xc000000d 

Die anderen Abfragen gehen ja durch.

Gruß

Dominik

Hallo,

Wahrscheinlich fehlt einen DNS Eintrag für ml-7.schule.lan, deswegen klappt der Test nicht, aber das ist nicht relevant für das Anmeldenproblem.

Probier bitte mal folgendes:

systemctl stop linuxmuster-webui.service
python3 /usr/local/bin/ajenti-panel --dev --stock-plugins --plugins /usr/lib/linuxmuster-webui/plugins

Damit kannst du live hoffentlich live verfolgen, was schief geht.
Melde dich als Lehrer (nicht admin!), und vielleicht erhalten wir eine klarere Fehlermeldung.

Wenn es erledigt ist, du kannst dieses Modus mit Strg + C beenden und dann wieder die Webui starten:

systemctl start linuxmuster-webui.service

Bin gespannt was raus kommt.

Gruß

Arnaud

Hallo,

also hier mal die Ausgabe (Musste einen Link machen, da zu viel Text):

Gruß

Dominik

Hallo Dominik,

Super, danke! Jetzt sehe was los ist, und kann es korrigieren.
Ich bin erstaunt, dass es bei dir kein GPO gibt, was ist bitte die Ausgabe von:

samba-tool gpo listall

? (du kannst auch die GPO-Werte verfalschen, ich brauche nur eine grobes Bild von der Ausgabe)

Gruß

Arnaud

Hallo Arnaud,

GPO          : {31B2F340-016D-11D2-945F-00C04FB984F8}
display name : Default Domain Policy
path         : \\schule.lan\sysvol\schule.lan\Policies\{31B2F340-016D-11D2-945F-00C04FB984F8}
dn           : CN={31B2F340-016D-11D2-945F-00C04FB984F8},CN=Policies,CN=System,DC=schule,DC=lan
version      : 0
flags        : NONE

GPO          : {6AC1786C-016F-11D2-945F-00C04FB984F8}
display name : Default Domain Controllers Policy
path         : \\schule.lan\sysvol\schule.lan\Policies\{6AC1786C-016F-11D2-945F-00C04FB984F8}
dn           : CN={6AC1786C-016F-11D2-945F-00C04FB984F8},CN=Policies,CN=System,DC=schule,DC=lan
version      : 0
flags        : NONE

Das hier ist die Ausgabe. Die UIDs sind verändert.

Gruß

Dominik

Ok, danke.

Da liegt das Problem, ich bin immer ausgegangen, dass es ein GPO für die Schule gibt, und das ist hier nicht der Fall.

Ein sophomorix-school --gpo-create default-school könnte das Problem sofort beheben, aber ich kenne mich nicht mit allen Auswirkung von diesem Befehl. Ansonstens schaue ich mir kurz den Code der Webui in die 7.1.

Gruß

Arnaud

Das ist hoffentlich jetzt mit der Version 7.1.53 gelöst.

Gruß

Arnaud

Hallo Arnaud,

leider hat nur der Patch mit Version 7.1.53 nicht geholfen. Aber das sophomorix-school --gpo-create default-school ging dann. Ich kann aktuell noch nicht sagen ob ich andere Probleme habe, das teste ich dann morgen.

Auf jeden Fall vielen Dank, für den Support und auch sonst für die LML!

Gruß

Dominik