When upgrading my Plesk to 18.0.37 it would not complete as there was a Grafana error as it could not find the location and tried several mirror locations.
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.
I found a solution on the Plesk website:
https://support.plesk.com/hc/en-us/articles/4404125937298
Log in as root and perform:
echo “151.101.246.217 packages.grafana.com” >> /etc/hosts
Then I performed a hardware restart of my VPS server but it still did not work and complete the update.
It was fixed by opening up the hosts file again at /etc/hosts and inspecting it, it turned out the formatting was wrong as each entry needs its own new line, the echo command had just added the line to the end of the file and not created a new line in the file.
After changing and adding a new line/carriage return and restarting the server the Plesk update completed successfully.