jonaseberle / github-action-setup-ddev

Set up your GitHub Actions workflow with ddev
GNU General Public License v3.0
29 stars 4 forks source link

Issue starting DDEV with apt depends: libtiff5 (= 4.1.0+git191117-2ubuntu0.20.04.6) but 4.1.0+git191117-2ubuntu0.20.04.5 is to be installed #33

Closed davereid-pfg closed 1 year ago

davereid-pfg commented 2 years ago
2022-11-16T18:06:57.7781616Z dir: /home/runner/work/_actions/jonaseberle/github-action-setup-ddev/v1/lib
2022-11-16T18:06:57.7782071Z 
2022-11-16T18:06:57.7811113Z curl -fsSL https://apt.fury.io/drud/gpg.key | sudo apt-key add -
2022-11-16T18:06:57.8536353Z Warning: apt-key output should not be parsed (stdout is not a terminal)
2022-11-16T18:06:57.8537256Z 
2022-11-16T18:06:58.2527306Z OK
2022-11-16T18:06:58.2527583Z 
2022-11-16T18:06:58.2614869Z echo "deb https://apt.fury.io/drud/ * *" | sudo tee -a /etc/apt/sources.list.d/ddev.list
2022-11-16T18:06:58.2689448Z deb https://apt.fury.io/drud/ * *
2022-11-16T18:06:58.2689997Z 
2022-11-16T18:06:58.2698415Z sudo apt-get update && sudo apt-get install -y ddev && mkcert -install
2022-11-16T18:06:58.3994075Z Get:1 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease [10.5 kB]
2022-11-16T18:06:58.3994784Z 
2022-11-16T18:06:58.4860934Z Get:2 https://apt.fury.io/drud * InRelease
2022-11-16T18:06:58.4861548Z 
2022-11-16T18:06:58.4998951Z Get:3 https://packages.microsoft.com/ubuntu/20.04/prod focal/main arm64 Packages [45.8 kB]
2022-11-16T18:06:58.4999648Z 
2022-11-16T18:06:58.5209992Z Get:4 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 Packages [211 kB]
2022-11-16T18:06:58.5210760Z 
2022-11-16T18:06:58.5265132Z Get:5 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease [23.9 kB]
2022-11-16T18:06:58.5266064Z 
2022-11-16T18:06:58.5913324Z Get:6 https://apt.fury.io/drud */* amd64 Packages [3648 B]
2022-11-16T18:06:58.5913715Z 
2022-11-16T18:06:58.7779584Z Hit:7 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu focal InRelease
2022-11-16T18:06:58.7780184Z 
2022-11-16T18:06:58.9468259Z Get:8 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 Packages [106 kB]
2022-11-16T18:06:58.9468882Z 
2022-11-16T18:06:59.3667968Z Get:9 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main Translation-en [34.6 kB]
2022-11-16T18:06:59.3668590Z 
2022-11-16T18:07:05.5912566Z Hit:10 http://azure.archive.ubuntu.com/ubuntu focal InRelease
2022-11-16T18:07:05.5912995Z 
2022-11-16T18:07:05.5913586Z Get:11 http://azure.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
2022-11-16T18:07:05.5914014Z 
2022-11-16T18:07:05.5972621Z Get:12 http://azure.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
2022-11-16T18:07:05.5973093Z 
2022-11-16T18:07:05.6049123Z Get:13 http://azure.archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]
2022-11-16T18:07:05.6049774Z 
2022-11-16T18:07:05.7974290Z Get:14 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [2225 kB]
2022-11-16T18:07:05.7975052Z 
2022-11-16T18:07:05.8198837Z Get:15 http://azure.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [389 kB]
2022-11-16T18:07:05.8199594Z 
2022-11-16T18:07:05.8261072Z Get:16 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [16.0 kB]
2022-11-16T18:07:05.8261770Z 
2022-11-16T18:07:05.8387767Z Get:17 http://azure.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [1421 kB]
2022-11-16T18:07:05.8388474Z 
2022-11-16T18:07:05.8510187Z Get:18 http://azure.archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [200 kB]
2022-11-16T18:07:05.8510885Z 
2022-11-16T18:07:05.8546056Z Get:19 http://azure.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 c-n-f Metadata [636 B]
2022-11-16T18:07:05.8547037Z 
2022-11-16T18:07:05.8598790Z Get:20 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [997 kB]
2022-11-16T18:07:05.8599529Z 
2022-11-16T18:07:05.8725410Z Get:21 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [231 kB]
2022-11-16T18:07:05.8726110Z 
2022-11-16T18:07:05.8811315Z Get:22 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [23.0 kB]
2022-11-16T18:07:05.8812016Z 
2022-11-16T18:07:05.8847154Z Get:23 http://azure.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [24.5 kB]
2022-11-16T18:07:05.8847857Z 
2022-11-16T18:07:05.9254909Z Get:24 http://azure.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 c-n-f Metadata [592 B]
2022-11-16T18:07:05.9255645Z 
2022-11-16T18:07:06.0302759Z Get:25 http://azure.archive.ubuntu.com/ubuntu focal-security/main amd64 Packages [1847 kB]
2022-11-16T18:07:06.0303530Z 
2022-11-16T18:07:06.0720031Z Get:26 http://azure.archive.ubuntu.com/ubuntu focal-security/main Translation-en [305 kB]
2022-11-16T18:07:06.0720789Z 
2022-11-16T18:07:06.0823436Z Get:27 http://azure.archive.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [11.2 kB]
2022-11-16T18:07:06.0824559Z 
2022-11-16T18:07:06.0886690Z Get:28 http://azure.archive.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [1327 kB]
2022-11-16T18:07:06.0887423Z 
2022-11-16T18:07:06.1230088Z Get:29 http://azure.archive.ubuntu.com/ubuntu focal-security/restricted Translation-en [188 kB]
2022-11-16T18:07:06.1231425Z 
2022-11-16T18:07:06.1264467Z Get:30 http://azure.archive.ubuntu.com/ubuntu focal-security/restricted amd64 c-n-f Metadata [640 B]
2022-11-16T18:07:06.1265324Z 
2022-11-16T18:07:06.1281709Z Get:31 http://azure.archive.ubuntu.com/ubuntu focal-security/universe amd64 Packages [768 kB]
2022-11-16T18:07:06.1282395Z 
2022-11-16T18:07:06.1366862Z Get:32 http://azure.archive.ubuntu.com/ubuntu focal-security/universe Translation-en [148 kB]
2022-11-16T18:07:06.1370612Z 
2022-11-16T18:07:06.1398973Z Get:33 http://azure.archive.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [16.7 kB]
2022-11-16T18:07:06.1399654Z 
2022-11-16T18:07:06.1423656Z Get:34 http://azure.archive.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [22.2 kB]
2022-11-16T18:07:06.1424316Z 
2022-11-16T18:07:06.1439949Z Get:35 http://azure.archive.ubuntu.com/ubuntu focal-security/multiverse Translation-en [5400 B]
2022-11-16T18:07:06.1440616Z 
2022-11-16T18:07:06.1454520Z Get:36 http://azure.archive.ubuntu.com/ubuntu focal-security/multiverse amd64 c-n-f Metadata [516 B]
2022-11-16T18:07:06.1455177Z 
2022-11-16T18:07:11.9075726Z Fetched 10.9 MB in 9s (1194 kB/s)
2022-11-16T18:07:11.9076569Z Reading package lists...
2022-11-16T18:07:12.8606339Z 
2022-11-16T18:07:12.8606638Z 
2022-11-16T18:07:12.9281741Z Reading package lists...
2022-11-16T18:07:12.9450801Z 
2022-11-16T18:07:12.9451028Z 
2022-11-16T18:07:12.9486895Z Building dependency tree...
2022-11-16T18:07:13.1064158Z 
2022-11-16T18:07:13.1065087Z Reading state information...
2022-11-16T18:07:13.1069575Z 
2022-11-16T18:07:13.1069823Z 
2022-11-16T18:07:13.1240896Z You might want to run 'apt --fix-broken install' to correct these.
2022-11-16T18:07:13.1241810Z The following packages have unmet dependencies:
2022-11-16T18:07:13.1242372Z 
2022-11-16T18:07:13.1992434Z  ddev : Depends: libnss3-tools but it is not going to be installed
2022-11-16T18:07:13.1993126Z 
2022-11-16T18:07:13.2000993Z  libtiff-dev : Depends: libtiff5 (= 4.1.0+git191117-2ubuntu0.20.04.6) but 4.1.0+git191117-2ubuntu0.20.04.5 is to be installed
2022-11-16T18:07:13.2001642Z 
2022-11-16T18:07:13.2254428Z E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
rfay commented 2 years ago

Can you please link to the run? No context here on whether it's Ubuntu 18.04, 20.04, or 22.04.

jonaseberle commented 2 years ago

I have just re-triggered our tests and at least in our environments it is not reproducible: https://github.com/jonaseberle/github-action-setup-ddev/actions/runs/3266514537

I would guess something temporary in the various repos that Github runners have configured...

rfay commented 2 years ago

Could easily be a missing apt update as well.

jonaseberle commented 2 years ago

@rfay we have it:

https://github.com/jonaseberle/github-action-setup-ddev/blob/master/lib/main.js#L68

rfay commented 2 years ago

Maybe where this is happening there is no apt update though. We don't actually have any useful info yet.

davereid-pfg commented 2 years ago

I'm just calling the DDEV action with the default Github Action ubuntu-latest runner. I can't link to the run, it's a private repository.

davereid-pfg commented 2 years ago

As per the logs I provided this is on Github Runner with Ubuntu 20.04

davereid-pfg commented 2 years ago

I'm seeing this not happen every time or consistently too. I had a job that has two builds that run in a matrix but uses the exact same workflow job, one DDEV start worked fine, the other failed.

davereid-pfg commented 2 years ago

Here's the top of the logs showing the runner information:

2022-11-16T21:22:05.0277653Z Requested labels: ubuntu-latest
2022-11-16T21:22:05.0277724Z Job defined at: PRIVATE-ORG/PRIVATE-REPO/.github/workflows/ci.yml@refs/heads/2.x
2022-11-16T21:22:05.0277747Z Waiting for a runner to pick up this job...
2022-11-16T21:22:05.2964792Z Job is waiting for a hosted runner to come online.
2022-11-16T21:22:08.6002160Z Job is about to start running on the hosted runner: GitHub Actions 24 (hosted)
2022-11-16T21:22:11.9662172Z Current runner version: '2.299.1'
2022-11-16T21:22:11.9695102Z ##[group]Operating System
2022-11-16T21:22:11.9696211Z Ubuntu
2022-11-16T21:22:11.9696999Z 20.04.5
2022-11-16T21:22:11.9697743Z LTS
2022-11-16T21:22:11.9698547Z ##[endgroup]
2022-11-16T21:22:11.9699375Z ##[group]Runner Image
2022-11-16T21:22:11.9700244Z Image: ubuntu-20.04
2022-11-16T21:22:11.9701042Z Version: 20221114.1
2022-11-16T21:22:11.9702192Z Included Software: https://github.com/actions/runner-images/blob/ubuntu20/20221114.1/images/linux/Ubuntu2004-Readme.md
2022-11-16T21:22:11.9703532Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu20%2F20221114.1
2022-11-16T21:22:11.9704644Z ##[endgroup]
2022-11-16T21:22:11.9705519Z ##[group]Runner Image Provisioner
2022-11-16T21:22:11.9706347Z 2.0.91.1
2022-11-16T21:22:11.9707154Z ##[endgroup]
2022-11-16T21:22:11.9708736Z ##[group]GITHUB_TOKEN Permissions
2022-11-16T21:22:11.9709840Z Contents: read
2022-11-16T21:22:11.9710706Z Metadata: read
2022-11-16T21:22:11.9711651Z ##[endgroup]
2022-11-16T21:22:11.9716012Z Secret source: Actions
2022-11-16T21:22:11.9717074Z Prepare workflow directory
2022-11-16T21:22:12.0562317Z Prepare all required actions
2022-11-16T21:22:12.0747128Z Getting action download info
2022-11-16T21:22:12.4951388Z Download action repository 'webfactory/ssh-agent@v0.7.0' (SHA:836c84ec59a0e7bc0eabc79988384eb567561ee2)
2022-11-16T21:22:12.8034171Z Download action repository 'actions/checkout@v3' (SHA:93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8)
2022-11-16T21:22:13.0164016Z Download action repository 'shivammathur/setup-php@v2' (SHA:1a18b2267f80291a81ca1d33e7c851fe09e7dfc4)
2022-11-16T21:22:13.2242635Z Download action repository 'jonaseberle/github-action-setup-ddev@v1' (SHA:9c54827f6f3b1084358a89b17713649ad705543f)

I checked between the two matrix runs that each succeeded and failed and this part was exactly the same.

davereid-pfg commented 2 years ago

Here's the end of the apt-get for the job that passed:

2022-11-16T21:25:47.0518360Z Fetched 10.8 MB in 2s (4866 kB/s)
2022-11-16T21:25:47.0519441Z Reading package lists...
2022-11-16T21:25:48.3130330Z 
2022-11-16T21:25:48.3130757Z 
2022-11-16T21:25:48.4006801Z Reading package lists...
2022-11-16T21:25:48.4205648Z 
2022-11-16T21:25:48.4205957Z 
2022-11-16T21:25:48.4254839Z Building dependency tree...
2022-11-16T21:25:48.6587672Z 
2022-11-16T21:25:48.6588888Z Reading state information...
2022-11-16T21:25:48.6593024Z 
2022-11-16T21:25:48.6593280Z 
2022-11-16T21:25:48.8808095Z The following additional packages will be installed:
2022-11-16T21:25:48.8809012Z 
2022-11-16T21:25:48.8813366Z   libnss3-tools
2022-11-16T21:25:48.8813945Z 
2022-11-16T21:25:48.8818825Z Suggested packages:
2022-11-16T21:25:48.8819824Z   zsh-completions
2022-11-16T21:25:48.8820315Z 
2022-11-16T21:25:48.9460545Z The following NEW packages will be installed:
2022-11-16T21:25:48.9460976Z 
2022-11-16T21:25:48.9471280Z   ddev libnss3-tools
2022-11-16T21:25:48.9472029Z 
2022-11-16T21:25:48.9801292Z 0 upgraded, 2 newly installed, 0 to remove and 35 not upgraded.
2022-11-16T21:25:48.9802166Z 
2022-11-16T21:25:49.1935827Z Need to get 13.4 MB of archives.
2022-11-16T21:25:49.1936909Z After this operation, 27.8 MB of additional disk space will be used.
2022-11-16T21:25:49.1939065Z Get:1 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 libnss3-tools amd64 2:3.49.1-1ubuntu1.8 [997 kB]
2022-11-16T21:25:49.1940096Z 
2022-11-16T21:25:49.9157832Z Get:2 https://apt.fury.io/drud */* amd64 ddev amd64 1.21.3 [12.4 MB]
2022-11-16T21:25:49.9158814Z 
2022-11-16T21:25:50.9832819Z Fetched 13.4 MB in 1s (9080 kB/s)

And the job that failed:

2022-11-16T21:24:56.8169841Z Fetched 11.0 MB in 2s (5496 kB/s)
2022-11-16T21:24:56.8170643Z Reading package lists...
2022-11-16T21:24:57.8377344Z 
2022-11-16T21:24:57.8377608Z 
2022-11-16T21:24:57.9065579Z Reading package lists...
2022-11-16T21:24:57.9235680Z 
2022-11-16T21:24:57.9235841Z 
2022-11-16T21:24:57.9279292Z Building dependency tree...
2022-11-16T21:24:58.1376985Z 
2022-11-16T21:24:58.1377832Z Reading state information...
2022-11-16T21:24:58.1381024Z 
2022-11-16T21:24:58.1381116Z 
2022-11-16T21:24:58.1595209Z You might want to run 'apt --fix-broken install' to correct these.
2022-11-16T21:24:58.1596773Z The following packages have unmet dependencies:
2022-11-16T21:24:58.1597345Z 
2022-11-16T21:24:58.2383719Z  ddev : Depends: libnss3-tools but it is not going to be installed
2022-11-16T21:24:58.2384830Z 
2022-11-16T21:24:58.2398145Z  libtiff-dev : Depends: libtiff5 (= 4.1.0+git191117-2ubuntu0.20.04.6) but 4.1.0+git191117-2ubuntu0.20.04.5 is to be installed
2022-11-16T21:24:58.2399027Z 
2022-11-16T21:24:58.2734936Z E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

There appears to be 0.2 MB difference in the amount of apt data downloaded but you can see the jobs were run only a minute apart.

davereid-pfg commented 2 years ago

Maybe this was just a temporary blip yesterday with apt data for some reason. I think we're seeing all the builds work correctly today with no changes to our workflows.