Plesk for Linux
kb: technical
Applicable to:
- Plesk for Linux
Symptoms
- The following could be found in
/var/log/plesk/install/autoinstaller3.log
or received as notification via email:
CONFIG_TEXT: 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/1bd6d997144be85b1615c3bbe900db24c836f77d9897fe71632442e24f9a1d76-primary.sqlite.bz2 from plesk-ext-grafana: [Errno 256] No more mirrors to try.
https://packages.grafana.com/oss/rpm/repodata/1bd6d997144be85b1615c3bbe900db24c836f77d9897fe71632442e24f9a1d76-primary.sqlite.bz2: [Errno 14] HTTPS Error 404 - Not Found
Cause
Issues on one of the grafana's repository servers.
https://github.com/grafana/grafana/issues/35273
Resolution
As a temporary workaround:
-
Connect to the server via SSH
- Execute the next command to update the server's hosts file and force the use of a working grafana repository server:
# printf "\n151.101.246.217 packages.grafana.com\n" >> /etc/hosts
Comments
14 comments
This results in: [Errno 14] curl#51 - "Unable to communicate securely with peer: requested domain name does not match the server's certificate."
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.
Hello Scott Goddard,
Could you please provide the next outputs?
and this one, without /etc/hosts modified:
How do I contact the server via SSH ??
Hi, colin
You can follow to the next article:
https://support.plesk.com/hc/en-us/articles/115000172834
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.
Hi Stefan Yakubov
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.
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!
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.
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
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?
Hello, colin
In this case that would require further investigation. Please, consider submitting a ticket:
https://support.plesk.com/hc/en-us/articles/213608509
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
Please sign in to leave a comment.