Plesk install/update fails or notifications about failed component upgrade received : [Errno 256] No more mirrors to try. https://packages.grafana.com/oss

Follow

Comments

14 comments

  • Avatar
    colin (Edited )

    Hi Stefan,

    As you suggest I have tried these commands:

    # sed -i 's/151.101.246.217 packages.grafana.com//g' /etc/hosts
    # printf "\n151.101.246.217 packages.grafana.com\n" >> /etc/hosts

    then 

    # plesk -v
    # dig +noall +answer packages.grafana.com

    Which still brings up the same error.

    I have also tried just the two new commands you mention:

    # sed -i 's/151.101.246.217 packages.grafana.com//g' /etc/hosts
    # printf "\n151.101.246.217 packages.grafana.com\n" >> /etc/hosts

    Which again brings up the same error:

    Reason: 2021-08-02 03:20:35 INFO: pum is called with arguments: ['--list', '--repo-info', '--json']
    2021-08-02 03:20:36 ERROR: failure: repodata/repomd.xml from plesk-ext-grafana: [Errno 256] No more mirrors to try.
    https://packages.grafana.com/oss/rpm/repodata/repomd.xml: [Errno 14] curl#51 - "Unable to communicate securely with peer: requested domain name does not match the server's certificate."
    2021-08-02 03:20:36 ERROR: Exited with returncode 1.

    I know nothing about SSH, so are there other commands maybe that most people would assume I know about that I don't. Is there something else I need to do before or after these commands?

    0
    Comment actions Permalink
  • Avatar
    colin

    Sorry, I still haven't managed to fix the problem. This is the error that keeps being emailed to me. Saying: Please resolve them manually...

    Reason: 2021-07-30 03:40:28 INFO: pum is called with arguments: ['--list', '--repo-info', '--json']
    2021-07-30 03:40:30 ERROR: failure: repodata/repomd.xml from plesk-ext-grafana: [Errno 256] No more mirrors to try.
    https://packages.grafana.com/oss/rpm/repodata/repomd.xml: [Errno 14] curl#51 - "Unable to communicate securely with peer: requested domain name does not match the server's certificate."
    2021-07-30 03:40:30 ERROR: Exited with returncode 1.

    I have tried the SSH commands listed above, but still not worked. Sorry to be a pain!

    0
    Comment actions Permalink
  • Avatar
    colin

    After a day and half I have finally got SSH to work. Sadly it appears the script didn't work. Any ideas of what else to try?

    Here is the error part of the script

    https://packages.grafana.com/oss/rpm/repodata/repomd.xml: [Errno 14] curl#51 - "Unable to communicate securely with peer: requested domain name does not match the server's certificate."
    Trying other mirror.
    Failed to install {'release': '1centos.7.210707.1232', 'version': '1.0.10', 'arch': 'x86_64', 'name': 'libaps'}:
    Error while downloading packages metainfo: failure: repodata/repomd.xml from plesk-ext-grafana: [Errno 256] No more mirrors to try.
    https://packages.grafana.com/oss/rpm/repodata/repomd.xml: [Errno 14] curl#51 - "Unable to communicate securely with peer: requested domain name does not match the server's certificate.". Trying again.
    https://packages.grafana.com/oss/rpm/repodata/repomd.xml: [Errno 14] curl#51 - "Unable to communicate securely with peer: requested domain name does not match the server's certificate."
    Trying other mirror.
    Failed to install {'release': '1centos.7.210707.1232', 'version': '1.0.10', 'arch': 'x86_64', 'name': 'libaps'}:
    Error while downloading packages metainfo: failure: repodata/repomd.xml from plesk-ext-grafana: [Errno 256] No more mirrors to try.
    https://packages.grafana.com/oss/rpm/repodata/repomd.xml: [Errno 14] curl#51 - "Unable to communicate securely with peer: requested domain name does not match the server's certificate.". Trying again.
    https://packages.grafana.com/oss/rpm/repodata/repomd.xml: [Errno 14] curl#51 - "Unable to communicate securely with peer: requested domain name does not match the server's certificate."
    Trying other mirror.
    Failed to install {'release': '1centos.7.210707.1232', 'version': '1.0.10', 'arch': 'x86_64', 'name': 'libaps'}:
    Number of retries is exceeded.
    NoMoreMirrorsRepoError: failure: repodata/repomd.xml from plesk-ext-grafana: [Errno 256] No more mirrors to try.
    https://packages.grafana.com/oss/rpm/repodata/repomd.xml: [Errno 14] curl#51 - "Unable to communicate securely with peer: requested domain name does not match the server's certificate."
    Traceback (most recent call last):
    File "/usr/local/psa/bin/yum_install", line 286, in <module>
    main()
    File "/usr/local/psa/bin/yum_install", line 272, in main
    res = installer.resolve(to_install, to_remove, opts.tries)
    File "/usr/local/psa/bin/yum_install", line 161, in resolve
    self._iremove(to_install, to_remove)
    File "/usr/local/psa/bin/yum_install", line 125, in _iremove
    if self.install(**p):
    File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4871, in install
    pkgs = self.pkgSack.searchNevra(name=nevra_dict['name'],
    File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1075, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
    File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 778, in _getSacks
    self.repos.populateSack(which=repos)
    File "/usr/lib/python2.7/site-packages/yum/repos.py", line 380, in populateSack
    sack._retrieve_async(repo, data)
    File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 184, in _retrieve_async
    if self._check_db_version(repo, mydbtype):
    File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 319, in _check_db_version
    return repo._check_db_version(mdtype)
    File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1515, in _check_db_version
    repoXML = self.repoXML
    File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1701, in <lambda>
    repoXML = property(fget=lambda self: self._getRepoXML(),
    File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1697, in _getRepoXML
    self._loadRepoXML(text=self.ui_id)
    File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1688, in _loadRepoXML
    return self._groupLoadRepoXML(text, self._mdpolicy2mdtypes())
    File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1662, in _groupLoadRepoXML
    if self._commonLoadRepoXML(text):
    File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1482, in _commonLoadRepoXML
    result = self._getFileRepoXML(local, text)
    File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1259, in _getFileRepoXML
    size=102400) # setting max size as 100K
    File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1042, in _getFile
    raise e
    NoMoreMirrorsRepoError: failure: repodata/repomd.xml from plesk-ext-grafana: [Errno 256] No more mirrors to try.
    https://packages.grafana.com/oss/rpm/repodata/repomd.xml: [Errno 14] curl#51 - "Unable to communicate securely with peer: requested domain name does not match the server's certificate."
    Execute command /usr/local/psa/admin/bin/send-error-report install --version 18.0.37
    [2021-07-29 09:19:53.829946] Warning: Failed to attach to cgroup /sys/fs/cgroup/systemd/user/root/tasks, installer might be unexpectedly killed later by the system
    [2021-07-29 09:19:53.857648] Error: The Yum utility failed to install the required packages.
    Attention! Your software might be inoperable.
    Visit https://support.plesk.com/ to search for a solution.

     

     

    0
    Comment actions Permalink
  • Avatar
    Scott Goddard

    This results in: [Errno 14] curl#51 - "Unable to communicate securely with peer: requested domain name does not match the server's certificate."

    0
    Comment actions Permalink
  • Avatar
    colin

    Hi Stefan,

    Something must have been successful as my latest attempt to update Plesk has worked with no errors. Hopefully any future updates work properly first time round.

    Thanks for your help.

    C

    0
    Comment actions Permalink
  • Avatar
    Stefan Yakubov

    Hello Scott Goddard,

    Could you please provide the next outputs?

    # plesk -v

    and this one, without /etc/hosts modified:

    # dig +noall +answer packages.grafana.com

     

    0
    Comment actions Permalink
  • Avatar
    Tristan Savatier (Edited )

    There is an obvious typo in the command you give to add a line in /etc/hosts:

    /n should be \n for new-line!!!

    i.e the command should be:

    echo -en "\n151.101.246.217 packages.grafana.com\n" >> /etc/hosts

    You should fix it.

    0
    Comment actions Permalink
  • Avatar
    Scott Goddard

    Hi Stefan Yakubov

    Product version: Plesk Obsidian 18.0.36.0
         OS version: CentOS 7.9.2009 x86_64
         Build date: 2021/06/04 22:00
           Revision: 6d4a1b52d109da398b83c5edf9aaf4d17d4c72f3
    packages.grafana.com.	2015	IN	CNAME	dualstack.a3.shared.us-eu.fastly.net.
    dualstack.a3.shared.us-eu.fastly.net. 22 IN A	151.101.62.217

     

    0
    Comment actions Permalink
  • Avatar
    Stefan Yakubov

    Hi, colin

    You can follow to the next article:
    https://support.plesk.com/hc/en-us/articles/115000172834

    0
    Comment actions Permalink
  • Avatar
    Robin Labadie

    Works for me with CentOS 7 servers.

    Thanks for the workaround. It's been like a week though, I hope grafana will fix their servers or DNS entries soon.

    0
    Comment actions Permalink
  • Avatar
    colin

    How do I contact the server via SSH ??

    0
    Comment actions Permalink
  • Avatar
    Stefan Yakubov

    Hello, colin

    In this case that would require further investigation. Please, consider submitting a ticket:

    https://support.plesk.com/hc/en-us/articles/213608509

     

    0
    Comment actions Permalink
  • Avatar
    Scott Goddard

    It seems the workaround given appends the change directly onto the last line of the hosts file (without a space, thereby corrupting both the original and new entries) rather than adding it as a seperate line.

    Manually editing the hosts file to add "151.101.246.217 packages.grafana.com" as a seperate line, resolved the issue.

    0
    Comment actions Permalink
  • Avatar
    Stefan Yakubov

    Hello,

    Tristan Savatier, thank you for bringing this to my attention. Even though ">>" normally adds content in a new line, in case there is a file that has its structure malformed, this could cause a described effect.

    I've updated the article.

     

    colin

    Please, remove the entry using the next command:
    # sed -i 's/151.101.246.217 packages.grafana.com//g' /etc/hosts

    And then add it anew using this one:
    # printf "\n151.101.246.217 packages.grafana.com\n" >> /etc/hosts

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request