You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-07-12 17:36:44

ljpinho
Member
Registered: 2022-07-12
Posts: 1

GLPI-Agent 1.4 - server error: JSON does not validate

Hello,

Does anyone have any idea about the error at the bottom of this message?

Computer:
      DELL PowerEdge 640 with proxmox 6.3-2 installed

For the glpi-agent I have:
      no-ssl-check = 1                  # Same configuration of my other servers where glpi-agent works without errors

Thank you.

root@srvpm01:~# glpi-agent 
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_ADDRESS = "pt_PT.UTF-8",
        LC_NAME = "pt_PT.UTF-8",
        LC_MONETARY = "pt_PT.UTF-8",
        LC_PAPER = "pt_PT.UTF-8",
        LC_IDENTIFICATION = "pt_PT.UTF-8",
        LC_TELEPHONE = "pt_PT.UTF-8",
        LC_MEASUREMENT = "pt_PT.UTF-8",
        LC_TIME = "pt_PT.UTF-8",
        LC_NUMERIC = "pt_PT.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
[info] target local0: local /tmp
[info] running task Inventory
[info] New inventory from srvpm01-2022-07-12-15-03-43 for local0
[info] Inventory saved in /tmp/srvpm01-2022-07-12-15-03-43.xml
[info] running task RemoteInventory
[info] target server0: server https://suporte.cm---------.pt/marketplace/glpiinventory/
[info] sending contact request to server0
[info] [http client] SSL Client warning: Peer certificate not verified
[info] [http client] SSL Client info: Cert-Issuer: '/C=GB/ST=Greater Manchester/L=Salford/O=Sectigo Limited/CN=Sectigo RSA Domain Validation Secure Server CA', Cert-Subject: '/CN=*.cm----------.pt', Cipher: 'TLS_AES_256_GCM_SHA384'
[info] [http client] SSL server certificate fingerprint: sha256$41af1------------5fd9d0
[info] [http client] You can set it in conf as 'ssl-fingerprint' and disable 'no-ssl-check' option to trust that server certificate
[info] sending prolog request to server0
[info] [http client] SSL Client warning: Peer certificate not verified
[info] [http client] SSL Client info: Cert-Issuer: '/C=GB/ST=Greater Manchester/L=Salford/O=Sectigo Limited/CN=Sectigo RSA Domain Validation Secure Server CA', Cert-Subject: '/CN=*.cm---------.pt', Cipher: 'TLS_AES_256_GCM_SHA384'
[info] [http client] SSL server certificate fingerprint: sha256$41af1-------------5fd9d0
[info] [http client] You can set it in conf as 'ssl-fingerprint' and disable 'no-ssl-check' option to trust that server certificate
[info] running task Inventory
[info] New inventory from srvpm01-2022-07-12-15-03-43 for server0
[info] [http client] SSL Client warning: Peer certificate not verified
[info] [http client] SSL Client info: Cert-Issuer: '/C=GB/ST=Greater Manchester/L=Salford/O=Sectigo Limited/CN=Sectigo RSA Domain Validation Secure Server CA', Cert-Subject: '/CN=*.cm--------.pt', Cipher: 'TLS_AES_256_GCM_SHA384'
[info] [http client] SSL server certificate fingerprint: sha256$41af1----------------5fd9d0
[info] [http client] You can set it in conf as 'ssl-fingerprint' and disable 'no-ssl-check' option to trust that server certificate
[error] [http client] communication error: 500 Internal Server Error, 
[error] [http client] server error: JSON does not validate. Violations:
"FIBRE" does not match to ^(SCSI|HDC|IDE|USB|1394|SATA|SAS|ATAPI)$ at #->properties:content->properties:storages->items[1]:1->properties:interface

Offline

#2 2022-07-15 10:38:01

gbougard
Moderator
From: Montpellier, France
Registered: 2021-07-21
Posts: 534
Website

Re: GLPI-Agent 1.4 - server error: JSON does not validate

Hi ljpinho,

this error occurs as the "FIBRE" interface type is not supported by the inventory format.

You should first open an issue on the glpi github project to report the error. On that issue, you should also share the output of the following command:

glpi-inventory --partial storage

So we can reproduce the case.

As a temporary work-around, you can disable storage inventory on this computer setting in a dedicated cfg file under /etc/glpi-agent/conf.d:

no-category = storage

GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer

Offline

Board footer

Powered by FluxBB