All of a suddon, with no changes to a working config.yml, all my builds on all branches are now failing due to a missing mariadb dependency (404). Although I’m not actually using mariadb, but mysql 8.0.3, it’s still failing on it. Here is the error report and my config.yml
#!/bin/bash -eo pipefail
sudo apt-get install mysql-client
mysql -h 127.0.0.1 -u user -ppassw0rd test_db < ~/app-backend/server/src/tools/sql/tables.sql
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
default-mysql-client libaio1 libconfig-inifiles-perl libdbd-mysql-perl
libdbi-perl libjemalloc1 libreadline5 libterm-readkey-perl
mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common
Suggested packages:
libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl
The following NEW packages will be installed:
default-mysql-client libaio1 libconfig-inifiles-perl libdbd-mysql-perl
libdbi-perl libjemalloc1 libreadline5 libterm-readkey-perl
mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common mysql-client
0 upgraded, 12 newly installed, 0 to remove and 3 not upgraded.
Need to get 12.2 MB of archives.
After this operation, 75.4 MB of additional disk space will be used.
Err:1 deb.debian.org/debian stretch/main amd64 mariadb-common all 10.1.38-0+deb9u1
404 Not Found
Fetched 12.2 MB in 0s (53.7 MB/s)
E: Failed to fetch deb.debian.org/debian/pool/main/m/mariadb-10.1/mariadb-common_10.1.38-0+deb9u1_all.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Exited with code 100
version: 2.1 # We must use 2.1 to make use of orbs.
orbs: # specify all orbs you want to use.
aws-code-deploy: circleci/aws-code-deploy@0.0.9
workflows:
deploy_application:
jobs:
- test
# dev deployment job
- deploy-dev:
filters:
branches:
only:
- develop
requires:
- test
# staging deployment job
- deploy-staging:
filters:
branches:
only:
- staging
requires:
- test
# hold job for manual approval
- hold:
type: approval
filters:
branches:
only:
- master
requires:
- test
# production deployment job
- deploy-production:
filters:
branches:
only:
- master
requires:
- test
- hold
jobs:
test:
docker:
# specify the version you desire here
- image: circleci/node:10.15.3
environment:
- image: circleci/postgres:9.6.2-alpine
environment:
POSTGRES_USER: root
POSTGRES_DB: circle-test_test
- image: redis
- image: circleci/mysql:8.0.3
environment:
MYSQL_ROOT_PASSWORD: rootpw
MYSQL_DATABASE: test_db
MYSQL_USER: user
MYSQL_PASSWORD: passw0rd
working_directory: ~/app-backend/server
steps:
- checkout:
path: ~/app-backend
- run:
# Our primary container isn't MYSQL so run a sleep command until it's ready.
name: Waiting for MySQL to be ready
command: |
for i in `seq 1 10`;
do
nc -z 127.0.0.1 3306 && echo Success && exit 0
echo -n .
sleep 1
done
echo Failed waiting for MySQL && exit 1
- run:
name: Install MySQL CLI; Import dummy data; run an example query
command: |
sudo apt-get install mysql-client
mysql -h 127.0.0.1 -u user -ppassw0rd test_db < ~/app-backend/server/src/tools/sql/tables.sql
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
# install local dependencies
- run: npm install
# save dependencies to cache
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
# build the code
- run: npm run build
# run unit tests!
- run: npm run test
# run infastructure tests!
- run: npm run infra-test
- persist_to_workspace:
root: .
paths: dist/
deploy-dev:
machine:
enabled: true
working_directory: ~/app-backend/server
steps:
- checkout
- run: npm install aws-code-deploy -g
- attach_workspace:
at: ~/app-backend/server
- run:
name: Run AWS Deploy
command: aws-code-deploy
environment: