Incident resolution - error deleting a computer
Applies to: Medulla – GLPI
Version: 5.4.6 or later
Environment: On-Premise
Category: Medulla GLPI
Symptom: Failure to delete a computer in the Medulla interface.
1. Problem description
When attempting to delete a computer, the operation fails and the application throws an exception related to network connectivity with the GLPI REST API.
Error trace (application logs):
requests.exceptions.ConnectionError: HTTPConnectionPool(host='HOSTNAME', port=80): Max retries exceeded with url: /apirest.php/initSession (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbcc6471390>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
2. Diagnosis & root cause
The explicit message [Errno -3] Temporary failure in name resolution indicates that the Medulla server is unable to resolve the hostname (FQDN) configured to reach the GLPI API. This is either:
-
A network configuration or DNS server issue on the Medulla server side.
-
An incorrect or outdated URL stored in the Medulla database.
3. Verification procedure
Step 3.1: Permissions in GLPI
-
Ensure that the user configured for the GLPI API has the Super-Admin profile.
-
Verify that this user is assigned to the Root entity with recursive permissions enabled.
Step 3.2: Checking the API URL in the database
Log in to the Medulla MariaDB/MySQL instance and run the following query to retrieve the stored URL:
mysql admin
MariaDB [admin]> SELECT setting_name, setting_value FROM saas_application WHERE setting_name = 'glpi_url_base_api';
Expected result:
+-------------------+-------------------------------------------------+
| setting_name | setting_value |
+-------------------+-------------------------------------------------+
| glpi_url_base_api | https://FQDN/glpi/apirest.php |
+-------------------+-------------------------------------------------+
Carefully verify the FQDN (domain name) segment contained in the setting_value column.
4. Corrective actions
-
Scenario A: DNS resolution failure (no response from
nslookup) -
-
If necessary, temporarily add a manual test entry to
/etc/hosts:Plaintext[GLPI_IP_ADDRESS] [FQDN_GLPI]
-
-
Scenario B: The URL in the database is incorrect
-
Correct the GLPI API address in the
saas_applicationtable using the appropriateUPDATEquery, replacing it with the valid URL.
-