Title: Opsi WebGUI Login Error - "list index out of range" (Ubuntu 24.04, 4.3.x)
Environment Details:
OS: Ubuntu 24.04 LTS (64-bit)
Opsi Components & Versions:
opsi-webgui: 4.3.47.5-1
opsiconfd: 4.3.50.4-1 (amd64)
Affected User: adminuser
Issue Description:
When attempting to log into the opsi WebGUI with the user adminuser, the login fails with a "list index out of range" error (Python index error). This error persists even after:
Upgrading opsi-webgui/opsiconfd to the latest versions (4.3.47.5-1 / 4.3.50.4-1)
Running opsiconfd setup to reinitialize the configuration
Verifying the user's group permissions
Full Error Log Snippet
[7] [2026-03-24 18:58:49.287] [172.16.39.193 ] Version b84c0bf7-a186-45a0-bd33-54ee99ed0cc3 unchanged, cache up-to-date (session.py:1090)
[7] [2026-03-24 18:58:49.287] [172.16.39.193 ] rest_api method name: login (rest.py:241)
[6] [2026-03-24 18:58:49.287] [172.16.39.193 ] Checking if client '172.16.39.193' is blocked (session.py:1617)
[7] [2026-03-24 18:58:49.288] [172.16.39.193 ] ts.range opsiconfd:stats:client:failed_auth:172.16.39.193 1774349809288 1774349929288 aggregation count 120000 (session.py:1630)
[6] [2026-03-24 18:58:49.288] [172.16.39.193 ] Start authentication of client 172.16.39.193 (session.py:1388)
[7] [2026-03-24 18:58:49.290] [172.16.39.193 ] Trying to authenticate by user authentication module <opsiconfd.auth._pam.PAMAuthentication object at 0x762b19d26350> (session.py:1477)
[7] [2026-03-24 18:58:49.290] [172.16.39.193 ] Attempting PAM authentication as user adminuser (service=common-auth)... (_pam.py:65)
[7] [2026-03-24 18:58:49.345] [172.16.39.193 ] Getting groups of user adminuser (_pam.py:84)
[7] [2026-03-24 18:58:49.345] [172.16.39.193 ] Primary group id of user adminuser is 1002 (_pam.py:86)
[7] [2026-03-24 18:58:49.346] [172.16.39.193 ] User adminuser is member of groups: {'adminuser', 'opsifileadmins', 'opsiadmin'} (_pam.py:93)
[6] [2026-03-24 18:58:49.348] [172.16.39.193 ] Updated password hash for user 'adminuser' to algorithm <HashingAlgorithm.ARGON2ID: 'ARGON2ID'> (session.py:1551)
[6] [2026-03-24 18:58:49.348] [172.16.39.193 ] Authentication successful for user 'adminuser', groups {'adminuser', 'opsifileadmins', 'opsiadmin'}, admin group is 'opsiadmin', admin: True, readonly group is '', readonly: False (session.py:1558)
[7] [2026-03-24 18:58:49.351] [172.16.39.193 ] Creating user adminuser with groups {'adminuser', 'opsifileadmins', 'opsiadmin'} (user.py:106)
[3] [2026-03-24 18:58:49.355] [172.16.39.193 ] list index out of range (rest.py:267)
Traceback (most recent call last):
File "opsiconfd/rest.py", line 245, in create_response
File "opsiconfd/rest.py", line 236, in exec_func
File "opsiconfd/application/auth.py", line 58, in login
File "opsiconfd/session.py", line 1322, in authenticate
File "opsiconfd/session.py", line 1568, in _authenticate
File "opsiconfd/session.py", line 1362, in post_user_authenticate
File "opsiconfd/auth/user.py", line 110, in create_user_roles
IndexError: list index out of range
[6] [2026-03-24 18:58:49.357] [172.16.39.193 ] 172.16.39.193:53274 - "POST /auth/login HTTP/1.1" 401 (h11_impl.py:480)
[6] [2026-03-24 18:58:49.357] [172.16.39.193 ] Server-Timing POST /auth/login: session_handling=1.0ms, database=1.3ms, database_result_processing=0.1ms, request_processing=71.0ms, total=71.0ms (statistics.py:267)
list index out of range
list index out of range
- Dateianhänge
-
- ScreenShot_2026-03-24_191057_842.png (40.24 KiB) 3407 mal betrachtet
- j.schneider
- uib-Team
- Beiträge: 2172
- Registriert: 29 Mai 2008, 15:14
Re: list index out of range
Hello,
please try if the problem is fixed with opsiconfd 4.3.50.6.
please try if the problem is fixed with opsiconfd 4.3.50.6.
Code: Alles auswählen
wget https://download.opensuse.org/repositories/home:/uibmz:/opsi:/4.3:/testing/xUbuntu_24.04/amd64/opsiconfd_4.3.50.6-1_amd64.deb
dpkg -i opsiconfd_4.3.50.6-1_amd64.deb
Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.
Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.
uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de
Re: list index out of range
Thank you for the support and guidance!
Following the official instructions has perfectly resolved the list index out of range login error on my OPSI WebGUI.
Everything is now working as expected.
Best regards
Following the official instructions has perfectly resolved the list index out of range login error on my OPSI WebGUI.
Everything is now working as expected.
Best regards