hwaudit and swaudit : failed

Antworten
nockdown
Beiträge: 11
Registriert: 09 Mär 2020, 13:54

hwaudit and swaudit : failed

Beitrag von nockdown »

We are testing new opsi server. Installation of hwaudit and swaudit packages are failed:

Code: Alles auswählen

(112)     [5] [2021-07-15 14:56:21.815] [hwaudit] message Running hardware audit...
(113)     [5] [2021-07-15 14:56:21.839] [hwaudit] Execution of: Files_copy_hwaudit
(114)     [5] [2021-07-15 14:56:21.839] [hwaudit] 
(115)     [5] [2021-07-15 14:56:21.859] [hwaudit] Finished section: Files_copy_hwaudit
(116)     [5] [2021-07-15 14:56:21.859] [hwaudit]   Execution of: shellInAnIcon_hwaudit /TimeOutSeconds $timeout$
(117)     [5] [2021-07-15 14:56:31.809] [hwaudit]   comment: Try to include hwaudit.log file in instlog
(118)     [3] [2021-07-15 14:56:31.814] [hwaudit]   Error: Fatal: hwaudit exit code = -1
(119)     [2] [2021-07-15 14:56:31.814] [hwaudit]   Error level set to fatal
(120)     [1] [2021-07-15 14:56:31.814] [hwaudit] ___________________
(121)     [1] [2021-07-15 14:56:31.814] [hwaudit] script finished: failed
(122)     [1] [2021-07-15 14:56:31.814] [hwaudit] 1 error
(123)     [1] [2021-07-15 14:56:31.814] [hwaudit] 1 warning
(124)     [1] [2021-07-15 14:56:31.814] [hwaudit] 
(125)     [1] [2021-07-15 14:56:31.814] [hwaudit] installed product: hwaudit Version: 4.1.1.6-1
(126)     [1] [2021-07-15 14:56:31.814] [hwaudit] 
(127)     [5] [2021-07-15 14:56:31.814] [hwaudit] We do not look for a update script, because the setup script is failed
(128)     [5] [2021-07-15 14:56:31.878] [] -------- submitted part of log file ends here, see the rest of log file on client ----------

Code: Alles auswählen

(158)     [5] [2021-07-15 14:30:28.151] [swaudit] message Running software audit...
(159)     [5] [2021-07-15 14:30:28.177] [swaudit] comment: detect if we run in opsi service mode
(160)     [5] [2021-07-15 14:30:28.179] [swaudit]       message collecting 64 Bit products ...
(161)     [5] [2021-07-15 14:30:28.182] [swaudit]       message collecting 64 Bit product details ...
(162)     [5] [2021-07-15 14:30:28.959] [swaudit]     message collecting 32 Bit product details ...
(163)     [5] [2021-07-15 14:30:31.298] [swaudit]     message collecting os details ...
(164)     [5] [2021-07-15 14:30:31.349] [swaudit]         message collecting hotfixes ...
(165)     [5] [2021-07-15 14:30:32.437] [swaudit]   comment: convert object list to json array ..
(166)     [5] [2021-07-15 14:30:32.447] [swaudit]   message writing results back to service ...
(167)     [5] [2021-07-15 14:30:32.450] [swaudit]   comment: mask single quotes by double single quotes before sending ....
(168)     [5] [2021-07-15 14:30:32.455] [swaudit]     Execution of: opsiservicecall_auditSoftwareOnClient_setObsolete
(169)     [5] [2021-07-15 14:30:32.455] [swaudit]     
(170)     [5] [2021-07-15 14:30:32.478] [swaudit]     Execution of: opsiservicecall_auditSoftware_createObjects
(171)     [5] [2021-07-15 14:30:32.478] [swaudit]     
(172)     [3] [2021-07-15 14:30:32.695] [swaudit]       Error: retrieveJSONObject --- opsi service problem ----> {"message":"'charmap' codec can't encode characters in position 48-58: character maps to <undefined>","details":null,"class":"UnicodeEncodeError"}
(173)     [3] [2021-07-15 14:30:32.695] [swaudit]       Received (first 512): {"jsonrpc":"2.0","id":1,"result":null,"error":{"message":"'charmap' codec can't encode characters in position 48-58: character maps to <undefined>","class":"UnicodeEncodeError","details":null}}
(174)     [3] [2021-07-15 14:30:32.695] [swaudit]       Error: -> {"message":"'charmap' codec can't encode characters in position 48-58: character maps to <undefined>","details":null,"class":"UnicodeEncodeError"}
(175)     [2] [2021-07-15 14:30:32.720] [swaudit]       Error level set to fatal
(176)     [1] [2021-07-15 14:30:32.721] [swaudit] ___________________
(177)     [1] [2021-07-15 14:30:32.721] [swaudit] script finished: failed
(178)     [1] [2021-07-15 14:30:32.721] [swaudit] 3 errors
(179)     [1] [2021-07-15 14:30:32.721] [swaudit] 0 warnings
Installation of own package is OK. I would like to find the reason of fault of hwaudit and swaudit packages. :?:

Package: opsi-server-full
Version: 4.2.0.54-1
windows client: windows 10 20h2 64bit pro

LOGS
nockdown
Beiträge: 11
Registriert: 09 Mär 2020, 13:54

Re: hwaudit and swaudit : failed

Beitrag von nockdown »

I've checked another Windows workstation with English language UI. Hwaudit and swaudit packages was successfully installed on that workstation.
As I understand, my problem is Russian UI of Windows workstation.
Benutzeravatar
fkalweit
uib-Team
Beiträge: 173
Registriert: 23 Okt 2020, 16:14

Re: hwaudit and swaudit : failed

Beitrag von fkalweit »

Hello,

as a quick fix you can edit

Code: Alles auswählen

/etc/opsi/backends/mysql.conf
Here you have to append "database" with

Code: Alles auswählen

?charset=utf8mb4
And restart opsiconfd.

I am working on a more permanent solution.

Best regards
fkalweit
nockdown
Beiträge: 11
Registriert: 09 Mär 2020, 13:54

Re: hwaudit and swaudit : failed

Beitrag von nockdown »

fkalweit hat geschrieben: 22 Jul 2021, 09:02 Hello,

as a quick fix you can edit

Code: Alles auswählen

/etc/opsi/backends/mysql.conf
Here you have to append "database" with

Code: Alles auswählen

?charset=utf8mb4
And restart opsiconfd.

I am working on a more permanent solution.

Best regards
fkalweit

Hello,

Thank you for reply! My /etc/opsi/backends/mysql.conf looks:

Code: Alles auswählen

# -*- coding: utf-8 -*-

module = 'MySQL'
config = {
    "address": "127.0.0.1",
    "database": "opsi",
    "username": "opsi",
    "password": "opsi",
    "databaseCharset": "utf8",
    "connectionPoolSize": 25,
    "connectionPoolMaxOverflow": 10,
    "connectionPoolTimeout": 30,
    "connectionPoolRecycling": 28000
}
Sorry. Do I need to:
1) add new database?
2) replace "databaseCharset": "utf8" with "databaseCharset": "utf8mb4"
3) add line ?charset=utf8mb4 to the end
Benutzeravatar
fkalweit
uib-Team
Beiträge: 173
Registriert: 23 Okt 2020, 16:14

Re: hwaudit and swaudit : failed

Beitrag von fkalweit »

Hi,

we now have a fix in opsiconfd 4.2.0.187 (experimental).
So you dont have to change anything in the /etc/opsi/backends/mysql.conf

Best regards
fkalweit
nockdown
Beiträge: 11
Registriert: 09 Mär 2020, 13:54

Re: hwaudit and swaudit : failed

Beitrag von nockdown »

fkalweit ,

Thank you!
I 've tried to install OPSI form 4.2:experimental repository. But I've faced new problem. Installation of OPSI client failed. Log file is in the attachment.

Code: Alles auswählen

[6] [2021-07-28 13:24:30.105] []       Starting query if file exists ...
[6] [2021-07-28 13:24:30.105] []     Not found: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientd\opsiclientd.conf":
[6] [2021-07-28 13:24:30.105] []     FileExists ($INST_OpsiclientdConf$)   <<< result false
[6] [2021-07-28 13:24:30.105] []   Then
[6] [2021-07-28 13:24:30.105] []   Else
[6] [2021-07-28 13:24:30.105] []     If
[6] [2021-07-28 13:24:30.105] []         Starting query if file exists ...
[6] [2021-07-28 13:24:30.106] []       Not found: "C:\Program Files (x86)\opsi.org\preloginloader\opsiclientd\opsiclientd.conf":
[6] [2021-07-28 13:24:30.106] []       FileExists ("C:\Program Files (x86)\opsi.org\preloginloader\opsiclientd\opsiclientd.conf")   <<< result false
[6] [2021-07-28 13:24:30.106] []     Then
[6] [2021-07-28 13:24:30.106] []     Else
[6] [2021-07-28 13:24:30.106] []       If
[6] [2021-07-28 13:24:30.106] []           Starting query if file exists ...
[6] [2021-07-28 13:24:30.106] []         Not found: "C:\Program Files (x86)\opsi.org\opsi-client-agent\cfg\locked.cfg":
[6] [2021-07-28 13:24:30.106] []         FileExists ($INST_BaseDir$+"\cfg\locked.cfg")   <<< result false
[6] [2021-07-28 13:24:30.106] []       Then
[6] [2021-07-28 13:24:30.106] []       Else
[6] [2021-07-28 13:24:30.106] []         If
[6] [2021-07-28 13:24:30.107] []             Starting query if file exists ...
[6] [2021-07-28 13:24:30.107] []           Not found: "C:\Program Files (x86)\opsi.org\preloginloader\cfg\locked.cfg":
[6] [2021-07-28 13:24:30.107] []           FileExists ("C:\Program Files (x86)\opsi.org\preloginloader\cfg\locked.cfg")   <<< result false
[6] [2021-07-28 13:24:30.107] []         Then
[6] [2021-07-28 13:24:30.107] []         Else
[3] [2021-07-28 13:24:30.107] []           Error: pckey not found - please reinstall opsi-client-agent
[2] [2021-07-28 13:24:30.107] []           Error level set to fatal
[6] [2021-07-28 13:24:30.107] []           Process aborted
[1] [2021-07-28 13:24:30.107] [] ___________________
[1] [2021-07-28 13:24:30.107] [] script finished: failed
[1] [2021-07-28 13:24:30.107] [] 1 error
[1] [2021-07-28 13:24:30.107] [] 0 warnings
[1] [2021-07-28 13:24:30.107] [] 
log
Antworten