Seite 1 von 1

opsi-client-agent-installer.exe returns 'list index out of range' when no default gateway is present.

Verfasst: 21 Mai 2025, 09:25
von xxaxxelxx
Hey folks,

parameters:
OPSI 4.3.31.27
Windows 11 24H2

The installation routine did copy all the files into the temporary folder and then did start the oca-installation-helper.exe.
It then did return 'list index out of range'. The standard log file did throw an python error in __main__.py. (Unfortunately i can't drop it here, cs. it's impossible to reproduce it).

I did try it multiple times with different versions: same result. After this did run oca-installation-helper.exe with --log-level=debug. The detailed log told me, that the python script was derailed when not finding a standard gateway (we hove no such gateway on our machines for security reasons.) Added a default gw: The error did disappear, all works fine.

As mentioned above, it was impossible to reproduce the error by removing the default gateway and reinstall it again.

To the OPSI guys: Thank you for your product, have a nice day.

Axel

Re: opsi-client-agent-installer.exe returns 'list index out of range' when no default gateway is present.

Verfasst: 21 Mai 2025, 10:23
von n.doerrer
Hi xxaxxelxx and welcome to the forum!

Thank you for reporting this. I will try to reproduce and fix it.

Regards,
Nils

Re: opsi-client-agent-installer.exe returns 'list index out of range' when no default gateway is present.

Verfasst: 21 Mai 2025, 10:30
von xxaxxelxx
did successful reproduce it: ;)
***
[DEBUG 2025-05-21 10:29:14] Config after reading 'C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientd\opsiclientd.conf': interactive=True, client_id=w11-01.radio23.inbbradio.de, service_address=https://192.168.100.191:4447, service_username=adminuser, service_password=******, dns_domain= (config.py:183)
[INFO 2025-05-21 10:29:14] Starting installation (__main__.py:210)
[DEBUG 2025-05-21 10:29:14] opsi-client-agent versions: installed=4.3.10.5-1
, this=None (__main__.py:213)
[INFO 2025-05-21 10:29:14] Obtaining Client object (__main__.py:284)
[INFO 2025-05-21 10:29:14] JSONRPC request to https://192.168.100.191:4447: id='1def1d25-0dff-4235-9b33-cf80bc15dbdf', method=host_getObjects, Content-Type=application/msgpack, Content-Encoding=lz4, timeout=300.0 (opsiservice.py:1552)
[DEBUG 2025-05-21 10:29:14] https://192.168.100.191:4447 "POST /rpc HTTP/1.1" 200 62 (connectionpool.py:544)
[INFO 2025-05-21 10:29:14] Got response status=200, id='1def1d25-0dff-4235-9b33-cf80bc15dbdf', method=host_getObjects, Content-Type=application/msgpack, Content-Encoding=, duration=0.011s (opsiservice.py:1575)
[DEBUG 2025-05-21 10:29:14] Got client objects: [] (backend.py:124)
[DEBUG 2025-05-21 10:29:14] Gateways: {'default': {}} (utils.py:61)
[ERROR 2025-05-21 10:29:14] list index out of range (__main__.py:231)
Traceback (most recent call last):
File "ocainstallationhelper\__main__.py", line 224, in install
File "ocainstallationhelper\__main__.py", line 244, in service_setup
File "ocainstallationhelper\backend.py", line 128, in get_or_create_client
File "ocainstallationhelper\utils.py", line 64, in get_mac_address
IndexError: list index out of range
[ERROR 2025-05-21 10:29:14] list index out of range (__main__.py:284)
Traceback (most recent call last):
File "ocainstallationhelper\__main__.py", line 304, in on_install_button
File "ocainstallationhelper\__main__.py", line 224, in install
File "ocainstallationhelper\__main__.py", line 244, in service_setup
File "ocainstallationhelper\backend.py", line 128, in get_or_create_client
File "ocainstallationhelper\utils.py", line 64, in get_mac_address
IndexError: list index out of range
[INFO 2025-05-21 10:29:14] See logs at: C:\Users\MEISTE~1\AppData\Local\Temp\oca-installation-helper.log (__main__.py:290)
***
adding default gw fixes it.
thank you, nils
viele grüße aus potsdam

Re: opsi-client-agent-installer.exe returns 'list index out of range' when no default gateway is present.

Verfasst: 26 Mai 2025, 10:38
von n.doerrer
Das Problem ist behoben in opsi-client-agent 4.3.12.4-2 (aktuell noch testing).

Re: opsi-client-agent-installer.exe returns 'list index out of range' when no default gateway is present.

Verfasst: 26 Mai 2025, 11:00
von xxaxxelxx
Danke! Ihr seid echt schnell. Wow!
Viele Grüße!

Axel