swaudit lässt sich nicht installieren

Antworten
holgy58
Beiträge: 68
Registriert: 22 Aug 2023, 10:33

swaudit lässt sich nicht installieren

Beitrag von holgy58 »

Hallo zusammen,
ich habe hier ein Notebook mit Win 10 auf dem seit einiger zeit sich das swaudit nicht mehr aktualisiert, bzw. installieren lässt
Screenshot 2026-05-28 115203.png
Screenshot 2026-05-28 115203.png (5.39 KiB) 518 mal betrachtet
Hier der Log Auszug ...

Code: Alles auswählen

[1] [2026-05-28 11:34:39.732] [swaudit] DEU  -  System default locale
[1] [2026-05-28 11:34:39.732] [swaudit] MS Windows 10.0 (10.0) 64 Bit, Release: 22H2, Edition: PRODUCT_PROFESSIONAL
[1] [2026-05-28 11:34:39.737] [swaudit] opsi service version : 4 (4.3.51.4)
[1] [2026-05-28 11:34:39.737] [swaudit] 
[5] [2026-05-28 11:34:39.766] [swaudit] Imported all functions from file: p:\swaudit\swauditlib_gen.opsiscript
[5] [2026-05-28 11:34:39.787] [swaudit] Imported all functions from file: p:\swaudit\swauditlib_win.opsiscript
[5] [2026-05-28 11:34:39.803] [swaudit] Imported all functions from file: p:\swaudit\swauditlib_lin.opsiscript
[5] [2026-05-28 11:34:39.822] [swaudit] Imported all functions from file: p:\swaudit\swauditlib_mac.opsiscript
[5] [2026-05-28 11:34:39.829] [swaudit] message Running software audit...
[5] [2026-05-28 11:34:39.863] [swaudit] comment: Detect if we run in opsi service mode
[5] [2026-05-28 11:34:39.864] [swaudit] message Collecting Windows OS info ...
[5] [2026-05-28 11:34:39.908] [swaudit] message Collecting 64 Bit products ...
[5] [2026-05-28 11:34:39.913] [swaudit] message Collecting 64 Bit product details ...
[5] [2026-05-28 11:34:43.313] [swaudit] message Collecting 32 Bit product details ...
[5] [2026-05-28 11:34:47.567] [swaudit] PowershellCall: Get-AppxPackage /? (mode: sysnative)
[5] [2026-05-28 11:34:50.710] [swaudit] message Collecting Appx / Msix product details ...(takes a while)
[5] [2026-05-28 11:34:59.172] [swaudit] message Collecting hotfixes ...
[5] [2026-05-28 11:35:00.990] [swaudit] comment: Convert object list to json array ...
[3] [2026-05-28 11:35:01.004] [swaudit] Error at jsonStringListToJsonArray
[3] [2026-05-28 11:35:01.024] [swaudit] Error at jsonStringListToJsonArray
[5] [2026-05-28 11:35:01.026] [swaudit] message Sending results to service ...
[5] [2026-05-28 11:35:01.033] [swaudit] comment: Mask single quotes by double single quotes before sending ....
[5] [2026-05-28 11:35:01.036] [swaudit] Execution of: opsiservicecall_auditSoftwareOnClient_setObsolete
[5] [2026-05-28 11:35:01.059] [swaudit] Execution of: opsiservicecall_auditSoftware_createObjects
[3] [2026-05-28 11:35:01.064] [swaudit] Error: retrieveJSONObject --- opsi service problem ----> {"message":"string indices must be integers, not 'str'","details":null,"class":"TypeError"}
[3] [2026-05-28 11:35:01.064] [swaudit] Received (first 512): {"id":1,"error":{"message":"string indices must be integers, not 'str'","class":"TypeError","details":null},"result":null}
[3] [2026-05-28 11:35:01.064] [swaudit] Error: -> {"message":"string indices must be integers, not 'str'","details":null,"class":"TypeError"}
[2] [2026-05-28 11:35:01.064] [swaudit] Error level set to fatal
[1] [2026-05-28 11:35:01.064] [swaudit] ___________________
[1] [2026-05-28 11:35:01.064] [swaudit] script finished: failed
[1] [2026-05-28 11:35:01.064] [swaudit] 5 errors
[1] [2026-05-28 11:35:01.064] [swaudit] 0 warnings
[1] [2026-05-28 11:35:01.064] [swaudit] Exitcode will be: 1
[1] [2026-05-28 11:35:01.064] [swaudit] 
[1] [2026-05-28 11:35:01.064] [swaudit] handled product: swaudit Version: 4.3.2.3-1
[1] [2026-05-28 11:35:01.064] [swaudit] 
[5] [2026-05-28 11:35:01.064] [swaudit] We do not look for a update script, because the setup script is failed
[5] [2026-05-28 11:35:01.082] [] -------- submitted part of log file ends here, see the rest of log file on client ----------
Hat jemand eine Idee, was das sein kann ...
Danke und Gruß
Holger
Benutzeravatar
n.doerrer
uib-Team
Beiträge: 546
Registriert: 23 Okt 2020, 16:11

Re: swaudit lässt sich nicht installieren

Beitrag von n.doerrer »

Moin,

da kommt wohl irgendwas spannendes in den audit-Daten an, womit der server nicht umgehen kann.
Mit loglevel 7 sieht man vermutlich, was versucht wird, zu übermitteln. Eventuell steht auch im log auf serverseite (/var/log/opsi/opsiconfd/<ip>.log) etwas.


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


holgy58
Beiträge: 68
Registriert: 22 Aug 2023, 10:33

Re: swaudit lässt sich nicht installieren

Beitrag von holgy58 »

Das kommt bei Loglevel 7 raus.

Code: Alles auswählen

[5] [2026-06-03 06:55:12.889] [swaudit] message Running software audit...
[5] [2026-06-03 06:55:12.910] [swaudit] comment: Detect if we run in opsi service mode
[5] [2026-06-03 06:55:12.911] [swaudit] message Collecting Windows OS info ...
[5] [2026-06-03 06:55:12.947] [swaudit] message Collecting 64 Bit products ...
[5] [2026-06-03 06:55:12.950] [swaudit] message Collecting 64 Bit product details ...
[5] [2026-06-03 06:55:16.087] [swaudit] message Collecting 32 Bit product details ...
[5] [2026-06-03 06:55:20.005] [swaudit] PowershellCall: Get-AppxPackage /? (mode: sysnative)
[5] [2026-06-03 06:55:21.050] [swaudit] message Collecting Appx / Msix product details ...(takes a while)
[5] [2026-06-03 06:55:26.249] [swaudit] message Collecting hotfixes ...
[5] [2026-06-03 06:55:27.479] [swaudit] comment: Convert object list to json array ...
[3] [2026-06-03 06:55:27.491] [swaudit] Error at jsonStringListToJsonArray
[3] [2026-06-03 06:55:27.501] [swaudit] Error at jsonStringListToJsonArray
[5] [2026-06-03 06:55:27.502] [swaudit] message Sending results to service ...
[5] [2026-06-03 06:55:27.506] [swaudit] comment: Mask single quotes by double single quotes before sending ....
[5] [2026-06-03 06:55:27.508] [swaudit] Execution of: opsiservicecall_auditSoftwareOnClient_setObsolete
[5] [2026-06-03 06:55:27.526] [swaudit] Execution of: opsiservicecall_auditSoftware_createObjects
[3] [2026-06-03 06:55:27.530] [swaudit] Error: retrieveJSONObject --- opsi service problem ----> {"message":"string indices must be integers, not 'str'","details":null,"class":"TypeError"}
[3] [2026-06-03 06:55:27.530] [swaudit] Received (first 512): {"id":1,"error":{"message":"string indices must be integers, not 'str'","class":"TypeError","details":null},"result":null}
[3] [2026-06-03 06:55:27.530] [swaudit] Error: -> {"message":"string indices must be integers, not 'str'","details":null,"class":"TypeError"}
[2] [2026-06-03 06:55:27.530] [swaudit] Error level set to fatal
[1] [2026-06-03 06:55:27.530] [swaudit] ___________________
[1] [2026-06-03 06:55:27.530] [swaudit] script finished: failed
[1] [2026-06-03 06:55:27.530] [swaudit] 5 errors
[1] [2026-06-03 06:55:27.530] [swaudit] 0 warnings
[1] [2026-06-03 06:55:27.530] [swaudit] Exitcode will be: 1
[1] [2026-06-03 06:55:27.530] [swaudit] 
[1] [2026-06-03 06:55:27.530] [swaudit] handled product: swaudit Version: 4.3.2.3-1
[1] [2026-06-03 06:55:27.530] [swaudit] 
[5] [2
Komischerweise geht die Installation erst seit einiger Zeit nicht mehr.

Die log vom Server

Code: Alles auswählen

[3] [2026-05-28 10:36:28.427] [172.20.30.25   ] string indices must be integers, not 'str'   (jsonrpc.py:448)
Traceback (most recent call last):
  File "opsiconfd/application/jsonrpc.py", line 446, in process_rpcs
  File "opsiconfd/application/jsonrpc.py", line 412, in process_rpc
  File "opsiconfd/application/jsonrpc.py", line 349, in execute_rpc
  File "starlette/concurrency.py", line 32, in run_in_threadpool
  File "anyio/to_thread.py", line 63, in run_sync
  File "anyio/_backends/_asyncio.py", line 2502, in run_sync_in_worker_thread
  File "anyio/_backends/_asyncio.py", line 986, in run
  File "opsiconfd/backend/rpc/__init__.py", line 183, in wrapper
  File "opsiconfd/backend/rpc/obj_audit_software.py", line 42, in auditSoftware_createObjects
  File "opsiconfd/backend/mysql/__init__.py", line 1064, in insert_object
  File "opsiconfd/backend/mysql/__init__.py", line 977, in insert_query
TypeError: string indices must be integers, not 'str'
[3] [2026-05-28 10:37:33.652] [172.20.30.25   ] string indices must be integers, not 'str'   (jsonrpc.py:448)
Traceback (most recent call last):
  File "opsiconfd/application/jsonrpc.py", line 446, in process_rpcs
  File "opsiconfd/application/jsonrpc.py", line 412, in process_rpc
  File "opsiconfd/application/jsonrpc.py", line 349, in execute_rpc
  File "starlette/concurrency.py", line 32, in run_in_threadpool
  File "anyio/to_thread.py", line 63, in run_sync
  File "anyio/_backends/_asyncio.py", line 2502, in run_sync_in_worker_thread
  File "anyio/_backends/_asyncio.py", line 986, in run
  File "opsiconfd/backend/rpc/__init__.py", line 183, in wrapper
  File "opsiconfd/backend/rpc/obj_audit_software.py", line 42, in auditSoftware_createObjects
  File "opsiconfd/backend/mysql/__init__.py", line 1064, in insert_object
  File "opsiconfd/backend/mysql/__init__.py", line 977, in insert_query
TypeError: string indices must be integers, not 'str'
[3] [2026-05-28 10:38:29.730] [172.20.30.25   ] string indices must be integers, not 'str'   (jsonrpc.py:448)
Traceback (most recent call last):
  File "opsiconfd/application/jsonrpc.py", line 446, in process_rpcs
  File "opsiconfd/application/jsonrpc.py", line 412, in process_rpc
  File "opsiconfd/application/jsonrpc.py", line 349, in execute_rpc
  File "starlette/concurrency.py", line 32, in run_in_threadpool
  File "anyio/to_thread.py", line 63, in run_sync
  File "anyio/_backends/_asyncio.py", line 2502, in run_sync_in_worker_thread
  File "anyio/_backends/_asyncio.py", line 986, in run
  File "opsiconfd/backend/rpc/__init__.py", line 183, in wrapper
  File "opsiconfd/backend/rpc/obj_audit_software.py", line 42, in auditSoftware_createObjects
  File "opsiconfd/backend/mysql/__init__.py", line 1064, in insert_object
  File "opsiconfd/backend/mysql/__init__.py", line 977, in insert_query
TypeError: string indices must be integers, not 'str'
[3] [2026-05-28 11:35:01.755] [172.20.30.25   ] string indices must be integers, not 'str'   (jsonrpc.py:448)
Traceback (most recent call last):
  File "opsiconfd/application/jsonrpc.py", line 446, in process_rpcs
  File "opsiconfd/application/jsonrpc.py", line 412, in process_rpc
  File "opsiconfd/application/jsonrpc.py", line 349, in execute_rpc
  File "starlette/concurrency.py", line 32, in run_in_threadpool
  File "anyio/to_thread.py", line 63, in run_sync
  File "anyio/_backends/_asyncio.py", line 2502, in run_sync_in_worker_thread
  File "anyio/_backends/_asyncio.py", line 986, in run
  File "opsiconfd/backend/rpc/__init__.py", line 183, in wrapper
  File "opsiconfd/backend/rpc/obj_audit_software.py", line 42, in auditSoftware_createObjects
  File "opsiconfd/backend/mysql/__init__.py", line 1064, in insert_object
  File "opsiconfd/backend/mysql/__init__.py", line 977, in insert_query
TypeError: string indices must be integers, not 'str'
[3] [2026-05-28 11:49:42.675] [172.20.30.25   ] string indices must be integers, not 'str'   (jsonrpc.py:448)
Traceback (most recent call last):
  File "opsiconfd/application/jsonrpc.py", line 446, in process_rpcs
  File "opsiconfd/application/jsonrpc.py", line 412, in process_rpc
  File "opsiconfd/application/jsonrpc.py", line 349, in execute_rpc
  File "starlette/concurrency.py", line 32, in run_in_threadpool
  File "anyio/to_thread.py", line 63, in run_sync
  File "anyio/_backends/_asyncio.py", line 2502, in run_sync_in_worker_thread
  File "anyio/_backends/_asyncio.py", line 986, in run
  File "opsiconfd/backend/rpc/__init__.py", line 183, in wrapper
  File "opsiconfd/backend/rpc/obj_audit_software.py", line 42, in auditSoftware_createObjects
  File "opsiconfd/backend/mysql/__init__.py", line 1064, in insert_object
  File "opsiconfd/backend/mysql/__init__.py", line 977, in insert_query
TypeError: string indices must be integers, not 'str'
[3] [2026-06-03 06:55:26.307] [172.20.30.25   ] string indices must be integers, not 'str'   (jsonrpc.py:445)
Traceback (most recent call last):
  File "opsiconfd/application/jsonrpc.py", line 443, in process_rpcs
  File "opsiconfd/application/jsonrpc.py", line 409, in process_rpc
  File "opsiconfd/application/jsonrpc.py", line 346, in execute_rpc
  File "starlette/concurrency.py", line 32, in run_in_threadpool
  File "anyio/to_thread.py", line 63, in run_sync
  File "anyio/_backends/_asyncio.py", line 2518, in run_sync_in_worker_thread
  File "anyio/_backends/_asyncio.py", line 1002, in run
  File "opsiconfd/backend/rpc/__init__.py", line 183, in wrapper
  File "opsiconfd/backend/rpc/obj_audit_software.py", line 42, in auditSoftware_createObjects
  File "opsiconfd/backend/mysql/__init__.py", line 1070, in insert_object
  File "opsiconfd/backend/mysql/__init__.py", line 983, in insert_query
TypeError: string indices must be integers, not 'str'
Danke und Gruß
Holger
Benutzeravatar
n.doerrer
uib-Team
Beiträge: 546
Registriert: 23 Okt 2020, 16:11

Re: swaudit lässt sich nicht installieren

Beitrag von n.doerrer »

Das ist ja merkwürdig. Ist der server aktuell?
opsiconfd-Version 4.3.53.9?


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


holgy58
Beiträge: 68
Registriert: 22 Aug 2023, 10:33

Re: swaudit lässt sich nicht installieren

Beitrag von holgy58 »

Ja, ist aktuell.

Komischerweise betrifft das zur Zeit 2 von 240 Clients. Bei den 2 Clients hat es bis lang immer funktioniert.
Screenshot 2026-06-10 122515.png
Screenshot 2026-06-10 122515.png (22 KiB) 361 mal betrachtet
Danke und Gruß
Holger
Antworten