# Provisioning production fails : no "Release file"

**URL:** https://discourse.roots.io/t/provisioning-production-fails-no-release-file/21678
**Category:** trellis
**Created:** 2021-11-09T19:18:43Z
**Posts:** 27

## Post 1 by @neptunus — 2021-11-09T19:18:43Z

[edit: I removed some stuff that had nothing to do with the issue at hand. Don’t use `<?` tags, folks]  
Hello, I’ve run into problems re-provisioning my server.

```
Failed to update apt cache: W:Updating from such a repository can't be done
securely, and is therefore disabled by default., W:See apt-secure(8) manpage
for repository creation and user configuration details., E:The repository
'http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.5/ubuntu bionic
Release' no longer has a Release file.
fatal: [production_host]: FAILED! => {"changed": false}
```

Seems like Ubuntu Bionic is out of date…  
Now, I’ve looked around to see if there’s any sense in upgrading Ubuntu with ‘do-release-upgrade’ like it suggests, but I have a feeling that doing so would break everything without any hope of repair.  
—  
I’m running trellis-cli 1.0.0 and the recommended ansible 2.9.10

---

## Post 2 by @neptunus — 2021-11-09T22:13:46Z

The culprit seems to be `/trellis/roles/mariadb/defaults/main.yml`. I removed the `[arch=amd64]` tag like in commit `32b1b6fcec8cb9fe14c6ec43cc1fccd3851fac2f` just to see if that did anything but it didn’t.  
—  
Actually, so it turns out that the provisioning problem and the deploy playbook problem were unrelated. Still having issues with that mariadb mirror seemingly standing in the way of provisioning but the other stuff was just… a `<?` tag that should have been a `<?php` tag instead. :man_facepalming:t2:

---

## Post 3 by @techieshark — 2021-11-10T05:39:43Z

Same issue here. I think I provisioned successfully a couple weeks ago, so this seems to be a recent issue.

---

## Post 4 by @cheezman — 2021-11-10T10:26:35Z

Running into the same issue since a few hours ago, I had run a successful provision as recent as yesterday.

Thinking it could be something to do with the DigitalOcean mirror for MariaDB?

---

## Post 5 by @techieshark — 2021-11-10T11:05:06Z

Chatter on MariaDB Zulipchat seems to indicate it may be an upstream issue on MariaDB’s mirrors. [https://mariadb.zulipchat.com/](https://mariadb.zulipchat.com/)

---

## Post 6 by @psymeon — 2021-11-10T11:26:25Z

The way I managed to solve this was replacing `http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.5/ubuntu` with `https://mirror.mva-n.net/mariadb/repo/10.5/ubuntu` in `trellis/roles/mariadb/defaults/main.yml`.

It shouldn’t be considered a long-term solution, but at least it did the trick for the time being.

---

## Post 7 by @schuhwerk — 2021-11-10T12:43:06Z

Same issue. I used `http://ftp.osuosl.org/pub/mariadb/repo/10.5/ubuntu`, which was used before: [Add MariaDB 10.2 PPA · roots/trellis@9d1bdad · GitHub](https://github.com/roots/trellis/commit/9d1bdade43674d84051471fffd427d0ccda1ab92)

---

## Post 8 by @GiulioPecorella — 2021-11-10T14:19:19Z

I tried changing the URL but the provision keeps calling the DigitalOcean link.

---

## Post 9 by @abel-sch — 2021-11-10T15:34:25Z

It seems like the mirror is cached somewhere, change it to any of the proposed mirrors won’t resolve the error for me.

---

## Post 10 by @huub — 2021-11-10T22:30:58Z

This worked for me:

Change the url:

> [@Provisioning production fails : no "Release file"](https://discourse.roots.io/t/provisioning-production-fails-no-release-file/21678/7):
>
> Same issue. I used http://ftp.osuosl.org/pub/mariadb/repo/10.5/ubuntu, which was used before: [Add MariaDB 10.2 PPA · roots/trellis@9d1bdad · GitHub](https://github.com/roots/trellis/commit/9d1bdade43674d84051471fffd427d0ccda1ab92)

SSH into the guest machine:

`$ trellis ssh development`

**In the guest machine:**

List of all repositories (just to check)

`$ grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/*`

Go to directory:  
`$ cd /etc/apt/sources.list.d`

Delete the file:  
`$ sudo rm nyc2_mirrors_digitalocean_com_mariadb_repo_10_5_ubuntu.list`

**From host machine (trellis folder):**  
`$ vagrant provision`

---

## Post 11 by @swalkinshaw — 2021-11-11T01:48:39Z

`apt-get update` should generally clear the sources cache.

Now I’m wondering if we should move from Digitalocean as the default mirror though. I think this is the second time they’ve had issues.

---

## Post 12 by @alwaysblank — 2021-11-11T18:07:26Z

We’ve released a new version of Trellis to address this by changing the mirror of the MariaDB repo: [Release v1.9.1 · roots/trellis · GitHub](https://github.com/roots/trellis/releases/tag/v1.9.1)

---

## Post 13 by @strarsis — 2021-11-12T19:33:17Z

Just encountered this issue.

The PR fixes the `apt` source, however, running the playbook will still terminate with an ansible error as `apt` is apparently updated first (task `Update apt packages` somewhere before task `Add MariaDB PPA` that fixes the `apt` source).

---

## Post 15 by @strarsis — 2021-11-14T13:48:22Z

> [@stillengin](#):
>
> New version: Thats perfect! :+1:

Does reprovisioning fix the issue directly on an existing Trellis system?  
I had to manually remove the sources and then reprovision, as an `apt upate` caused `ansible` to fail before changing the source.

---

## Post 16 by @system — 2021-12-21T19:19:25Z

This topic was automatically closed after 42 days. New replies are no longer allowed.

---

## Post 17 by @ben — 2022-08-14T23:05:45Z



---

## Post 18 by @ben — 2022-08-14T23:10:06Z

I’m not sure if this is a temporary hiccup or not, but this issue resurfaced for me this evening. I was able to get things running by using the Rackspace mirror:

`https://mirror.rackspace.com/mariadb/repo/10.5/ubuntu`

See [🔧 Change MariaDB PPA mirror to Rackspace by retlehs · Pull Request #1422 · roots/trellis · GitHub](https://github.com/roots/trellis/pull/1422)

---

## Post 19 by @Nick_Lewis1 — 2022-08-15T12:32:25Z

Same issue here, so will roll with the solution you’ve given, thanks :slight_smile:

---

## Post 20 by @kim_pp — 2022-09-19T17:30:38Z

I’m having the same issue and the given fix (changing MariaDB mirror to Rackspace and removing the old “.list” file) has worked for me.

But since my mariadb\_ppa link looks like this “[http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.2/ubuntu](http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.2/ubuntu)” and the fix suggests to use “[Index of /mariadb/repo/10.5/ubuntu](https://mirror.rackspace.com/mariadb/repo/10.5/ubuntu)” I was wondering if the version mismatch in the links (“repo/10.2” and “repo/10.5”) could cause any future troubles?

Thanks in advance and also thanks a lot for the fix!

---

## Post 21 by @swalkinshaw — 2022-09-20T18:32:58Z

It could, but you can update the mirror domain while keeping the version number the same.

---

## Post 22 by @josialoos — 2022-10-14T05:49:27Z

picking up on @kim_pp post here, I’m now getting an error on vagrant up … we were currently using this mirror:  
[http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.2/ubuntu](http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.2/ubuntu)

I changed it to:  
[http://mirrors.gigenet.com/mariadb/repo/10.5/ubuntu](http://mirrors.gigenet.com/mariadb/repo/10.5/ubuntu)

did vagrant destroy and then vagrant up

Now I’m getting a new error:

```
TASK [composer : Install configured globally-required packages.] ***************
System info:
  Ansible 2.7.5; Vagrant 2.2.5; Darwin
  Trellis Head
---------------------------------------------------
non-zero return code
Changed current directory to /root/.composer
Do not run Composer as root/super user! See https://getcomposer.org/root for
details
./composer.json has been created
Running composer update hirak/prestissimo
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - hirak/prestissimo[0.1.1, ..., 0.3.1] require ext-curl * -> it is
missing from your system. Install or enable PHP's curl extension.
    - hirak/prestissimo[0.3.2, ..., 0.3.10] require php ^5.3.2 || ^7.0 ->
your php version (8.1.11) does not satisfy that requirement.
    - Root composer.json requires hirak/prestissimo @stable -> satisfiable by
hirak/prestissimo[0.1.1, ..., 0.3.10].

To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php/8.1/cli/php.ini
    - /etc/php/8.1/cli/conf.d/10-opcache.ini
    - /etc/php/8.1/cli/conf.d/10-pdo.ini
    - /etc/php/8.1/cli/conf.d/15-xml.ini
    - /etc/php/8.1/cli/conf.d/20-calendar.ini
    - /etc/php/8.1/cli/conf.d/20-ctype.ini
    - /etc/php/8.1/cli/conf.d/20-dom.ini
    - /etc/php/8.1/cli/conf.d/20-exif.ini
    - /etc/php/8.1/cli/conf.d/20-ffi.ini
    - /etc/php/8.1/cli/conf.d/20-fileinfo.ini
    - /etc/php/8.1/cli/conf.d/20-ftp.ini
    - /etc/php/8.1/cli/conf.d/20-gettext.ini
    - /etc/php/8.1/cli/conf.d/20-iconv.ini
    - /etc/php/8.1/cli/conf.d/20-igbinary.ini
    - /etc/php/8.1/cli/conf.d/20-msgpack.ini
    - /etc/php/8.1/cli/conf.d/20-phar.ini
    - /etc/php/8.1/cli/conf.d/20-posix.ini
    - /etc/php/8.1/cli/conf.d/20-readline.ini
    - /etc/php/8.1/cli/conf.d/20-shmop.ini
    - /etc/php/8.1/cli/conf.d/20-simplexml.ini
    - /etc/php/8.1/cli/conf.d/20-sockets.ini
    - /etc/php/8.1/cli/conf.d/20-sysvmsg.ini
    - /etc/php/8.1/cli/conf.d/20-sysvsem.ini
    - /etc/php/8.1/cli/conf.d/20-sysvshm.ini
    - /etc/php/8.1/cli/conf.d/20-tokenizer.ini
    - /etc/php/8.1/cli/conf.d/20-xdebug.ini
    - /etc/php/8.1/cli/conf.d/20-xmlreader.ini
    - /etc/php/8.1/cli/conf.d/20-xmlwriter.ini
    - /etc/php/8.1/cli/conf.d/20-xsl.ini
    - /etc/php/8.1/cli/conf.d/25-memcached.ini
You can also run `php --ini` in a terminal to see which files are used by PHP
in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-curl` to
temporarily ignore these required extensions.

Installation failed, deleting ./composer.json.
failed: [default] (item={u'name': u'hirak/prestissimo'}) => {"changed": true, "cmd": ["/usr/local/bin/composer", "global", "require", "hirak/prestissimo:@stable", "--no-progress"], "delta": "0:00:00.554042", "end": "2022-10-14 05:35:29.305421", "item": {"name": "hirak/prestissimo"}, "rc": 2, "start": "2022-10-14 05:35:28.751379", "stderr_lines": ["Changed current directory to /root/.composer", "Do not run Composer as root/super user! See https://getcomposer.org/root for details", "./composer.json has been created", "Running composer update hirak/prestissimo", "Loading composer repositories with package information", "Info from https://repo.packagist.org: #StandWithUkraine", "Updating dependencies", "Your requirements could not be resolved to an installable set of packages.", "", " Problem 1", " - hirak/prestissimo[0.1.1, ..., 0.3.1] require ext-curl * -> it is missing from your system. Install or enable PHP's curl extension.", " - hirak/prestissimo[0.3.2, ..., 0.3.10] require php ^5.3.2 || ^7.0 -> your php version (8.1.11) does not satisfy that requirement.", " - Root composer.json requires hirak/prestissimo @stable -> satisfiable by hirak/prestissimo[0.1.1, ..., 0.3.10].", "", "To enable extensions, verify that they are enabled in your .ini files:", " - /etc/php/8.1/cli/php.ini", " - /etc/php/8.1/cli/conf.d/10-opcache.ini", " - /etc/php/8.1/cli/conf.d/10-pdo.ini", " - /etc/php/8.1/cli/conf.d/15-xml.ini", " - /etc/php/8.1/cli/conf.d/20-calendar.ini", " - /etc/php/8.1/cli/conf.d/20-ctype.ini", " - /etc/php/8.1/cli/conf.d/20-dom.ini", " - /etc/php/8.1/cli/conf.d/20-exif.ini", " - /etc/php/8.1/cli/conf.d/20-ffi.ini", " - /etc/php/8.1/cli/conf.d/20-fileinfo.ini", " - /etc/php/8.1/cli/conf.d/20-ftp.ini", " - /etc/php/8.1/cli/conf.d/20-gettext.ini", " - /etc/php/8.1/cli/conf.d/20-iconv.ini", " - /etc/php/8.1/cli/conf.d/20-igbinary.ini", " - /etc/php/8.1/cli/conf.d/20-msgpack.ini", " - /etc/php/8.1/cli/conf.d/20-phar.ini", " - /etc/php/8.1/cli/conf.d/20-posix.ini", " - /etc/php/8.1/cli/conf.d/20-readline.ini", " - /etc/php/8.1/cli/conf.d/20-shmop.ini", " - /etc/php/8.1/cli/conf.d/20-simplexml.ini", " - /etc/php/8.1/cli/conf.d/20-sockets.ini", " - /etc/php/8.1/cli/conf.d/20-sysvmsg.ini", " - /etc/php/8.1/cli/conf.d/20-sysvsem.ini", " - /etc/php/8.1/cli/conf.d/20-sysvshm.ini", " - /etc/php/8.1/cli/conf.d/20-tokenizer.ini", " - /etc/php/8.1/cli/conf.d/20-xdebug.ini", " - /etc/php/8.1/cli/conf.d/20-xmlreader.ini", " - /etc/php/8.1/cli/conf.d/20-xmlwriter.ini", " - /etc/php/8.1/cli/conf.d/20-xsl.ini", " - /etc/php/8.1/cli/conf.d/25-memcached.ini", "You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.", "Alternatively, you can run Composer with `--ignore-platform-req=ext-curl` to temporarily ignore these required extensions.", "", "Installation failed, deleting ./composer.json."], "stdout": "", "stdout_lines": []}
```

I looked for a mirror with mariadb 10.2 for ubuntu 18.04, but there is none … lowest version is 10.3, there is no older one.

any advice?

---

## Post 23 by @swalkinshaw — 2022-10-14T12:46:09Z

That error says you’re missing PHP’s curl extension… It doesn’t seem related to MariaDB?

```
require ext-curl * -> it is
missing from your system. Install or enable PHP's curl extension.
```

I’d suggest opening a new topic if you’re having trouble with that specifically.

---

## Post 24 by @ben — 2022-10-14T14:26:27Z

FWIW, `prestissimo` has not been necessary since Composer v2 was released. I would get rid of that from your project.

---

## Post 25 by @cspicuzza — 2023-02-03T20:19:00Z

I think this applies to this thread?

I was trying to provision a new digital ocean droplet using a completely new trellis build.

I’m using the latest versions of trellis-cli, trellis, and bedrock

```
TASK [mariadb : Add MariaDB PPA] ***********************************************
fatal: [157.230.202.54]: FAILED! => {"changed": false, "msg": "Failed to update apt cache: E:The repository 'https://mirror.rackspace.com/mariadb/repo/10.6/ubuntu kinetic Release' does not have a Release file."}
```

---

## Post 26 by @swalkinshaw — 2023-02-04T21:08:30Z

See [Error when trying to provision a production server - #5 by swalkinshaw](https://discourse.roots.io/t/error-when-trying-to-provision-a-production-server/24649/5)

---

## Post 27 by @swalkinshaw — 2023-02-04T21:08:56Z


