Roots Discourse

MariaDB repo path

I got this error when provision remote server.

TASK [common : Update apt packages] ********************************************
System info:
  Ansible 2.8.11; Darwin
  Trellis 1.4.0: April 2nd, 2020
---------------------------------------------------
E: The repository
'http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.2/ubuntu focal Release'
does not have a Release file.
E: The repository
'http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.2/ubuntu focal Release'
does not have a Release file.

Thanks!

My two cents here: You are using an APT mirror of your cloud provider (which is nice and speed things up), but it appears that it has some issues with the mirrored files. Related discussion:

You could try to use a different APT mirror instead and check whether the issue goes away, you can switch back to the original mirror when the issue has been resolved.

1 Like

Thank you @strarsis. I think the DO mirror is working because

http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.2/ubuntu/

Has the same contents than other official mirrors like:

https://mirror.terrahost.no/mariadb/repo/10.2/ubuntu/

I don’t understand this line:

mariadb_ppa: "deb [arch=amd64] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.5/ubuntu {{ ansible_distribution_release }} main"

here:

Where is defined {{ ansible_distribution_release }} in Trellis?

And why is it resolved to:

'http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.2/ubuntu focal Release'

Seems that there is no “focal” release there:

http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.2/ubuntu/dists/

Ok, I built the droplet with Ubuntu 20.04. Sorry for the noise. :sweat: