Skip to main content

Error 404 during download by a Medulla agent

Applies to: Medulla Linux agents
Version: All versions
Environment: On-Premise Medulla server
Category: Installation / Agents

Background

During Medulla installation, agent installation packages are automatically generated based on the configuration defined on the Medulla server.

In some cases, agents may attempt to download their configuration files from an incorrect URL, preventing their installation from completing.


Symptom

The agent installation fails while downloading the startupdate.ini file.

Example logs:

https://agents.medulla-tech.io/downloads/config/startupdate.ini
Résolution de agents.medulla-tech.io (agents.medulla-tech.io)… xx.xx.xx.xx
Connexion à agents.medulla-tech.io (agents.medulla-tech.io)|xx.xx.xx.xx|:443… connecté.
requête HTTP transmise, en attente de la réponse… 404 Not Found
erreur 404 : Not Found.

Cause

Agent packages are generated based on the options defined in the file:

/var/lib/pulse2/clients/.generation_options

When the agents were generated, the option to specify the download URL was left blank.

As a result, the agent attempts to use a URL that does not match the Medulla server infrastructure.


Resolution

1. Check the agent generation options

View the contents of the file:

cat /var/lib/pulse2/clients/.generation_options

2. Add the Medulla server URL

Add the following line, adjusting the hostname to match your environment:

--base-url=http://medulla.mon-domaine.fr/downloads

Example:

echo "--base-url=http://medulla.mon-domaine.fr/downloads" >> /var/lib/pulse2/clients/.generation_options

3. Regenerate the agent packages

Once the change has been made, regenerate the agent installation packages so that the new configuration is incorporated.


Verification

After the correction, the agent should download its files directly from the Medulla server.

Example of expected logs:

http://medulla.mon-domaine.fr/downloads/config/startupdate.ini
Résolution de medulla.mon-domaine.fr (medulla.mon-domaine.fr)… xx.xx.xx.xx
Connexion à medulla.mon-domaine.fr (medulla.mon-domaine.fr)|xx.xx.xx.xx|:80… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 668
Enregistré : 'startupdate.ini'

The download must return an HTTP status code:

200 OK

Why is this parameter important?

The --base-url parameter is used when generating agent packages.

It tells the agents where to retrieve:

  • Configuration files;
  • Update components;
  • The elements needed for their initialization.

Without this parameter, the agent may attempt to use a URL that does not match your infrastructure.


Additional checks

Check for the presence of the parameter

cat /var/lib/pulse2/clients/.generation_options

Verify HTTP access from a client workstation

wget http://medulla.mon-domaine.fr/downloads/config/startupdate.ini

The download must succeed and return:

200 OK

Best practices

After any change to:

  • The server’s DNS name;
  • The reverse proxy;
  • The HTTP/HTTPS configuration;
  • TLS certificates;

It is recommended that you verify the agent generation settings and regenerate the installation packages to ensure that the new agents use the correct download URLs.


Default values

Item Value
Configuration file /var/lib/pulse2/clients/.generation_options
Relevant option --base-url
Example value http://medulla.mon-domaine.fr/downloads
Downloaded file startupdate.ini

Expected result

After adding the option:

--base-url=http://medulla.mon-domaine.fr/downloads

Agents successfully download their configuration files from the client’s Medulla infrastructure, and the installation completes normally.