Articles in this section

Installing Plesk component or updating system packages fails: Could not retrieve mirrorlist, error was 12: Timeout

Plesk for Linux kb: technical
  • Plesk for Linux

Symptoms

  • Unable to install Plesk component, for example, additional PHP version:

    CONFIG_TEXT: Error while downloading packages metainfo: Cannot find a valid baseurl for repo: example/x86_64. Trying again.
    Could not retrieve mirrorlist https://mirror.example.com/yum/el6/x86_64/mirrorlist error was
    12: Timeout on https://mirror.example.com/yum/el6/x86_64/mirrorlist: (28, 'Connection timed out after 30000 milliseconds')

  • /var/log/plesk/install/autoinstaller3.log might contain the following errors:

    CONFIG_TEXT: http://repo.example.com/some/path/repomd.xml: [Errno 12] Timeout on http://repo.name.com/some/path/repomd.xml: (28, 'connect() timed out!')
    Trying other mirror.
    Failed to install plesk-engine@x86_64:
    Error while downloading packages metainfo: Cannot retrieve repository metadata (repomd.xml) for repository: example. Please verify its path and try again. Trying again.

    CONFIG_TEXT: http://repo.example.com/some/path/filelists.xml.gz: [Errno 12] Timeout on http://repo.example.com/some/path/filelists.xml.gz: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
    Trying other mirror.
    NoMoreMirrorsRepoError: failure: repodata/filelists.xml.gz from example: [Errno 256] No more mirrors to try.

Cause

3rd-party repository is enabled but not accessible from the server.

Resolution

  1. Connect to the server via using SSH.

  2. Open repository configuration file, for example:

    # vi /etc/yum.repos.d/example.repo

  3. Disable the repository by setting enabled= to "0":

    CONFIG_TEXT: [example]
    name=Example Repository EL6 - $basearch
    #baseurl=https://repo.example.com/yum/el6/$basearch/
    mirrorlist=https://mirror.example.com/yum/el6/$basearch/mirrorlist
    failovermethod=priority
    enabled=0

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.