Download Errors in Job Error Log

A download error might occur for a job if a software source hasn't been synchronized to a management station or the management station setup has an issue.

The job error log shows Failed to download metadata for repo or Cannot download repodata/repomd.xml: All mirrors were tried.

Potential causes

On the management station associated with the instance:

  • A required software source isn't synced.
  • The SELinux or firewalld isn't configured correctly.
  • The Apache httpd service isn't running or in a healthy state.

Check software source sync status

  1. Go to the details page for the instance with the failed job. See Viewing Instance Details.
  2. Click the management station associated with the instance.
  3. Verify the software source associated with the job is synced.
  4. If needed, run an immediate sync job. Syncing Specific Mirrors Immediately

Check the firewall and SELinux settings

  1. Go to the details page for the management station. See Viewing Management Station Details.
  2. Click the Configuration tab. Note the proxy ports, mirror ports, and mirror path.
  3. Connect to the management station using SSH.
  4. Confirm the TCP ports used by the management station are listed in the firewall settings.
    sudo firewall-cmd --list-ports
  5. Confirm the TCP ports used for the management station mirror ports are in the SELinux settings.
    sudo semanage port -l | grep http_port_t
  6. If the ports aren't listed or are incorrect, reconfigure the firewall and SELinux settings or rerun the station-setup.sh script. copy
    sudo /opt/oracle/mgmt_agent/plugins/osmh/stateDir/station-setup.sh

Check the state of httpd

  1. Connect to the instance by using SSH.
  2. Verify the status of the httpd service.
    sudo systemctl status httpd.service

    If the service is in a failed state, examine the /var/log/httpd/error_log.

  3. If the service isn't running, restart it.
    sudo systemctl restart httpd.service