Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D7 recipe with mysql tries to install postgres #42

Closed
garrettw opened this issue Nov 23, 2022 · 1 comment
Closed

D7 recipe with mysql tries to install postgres #42

garrettw opened this issue Nov 23, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@garrettw
Copy link

garrettw commented Nov 23, 2022

PostgreSQL should not be trying to install as I have nothing in my lando file asking for it.

Lando version: 3.1.4

.lando.yml:

name: myapp
recipe: drupal7
config:
  php: '7.3'
  composer_version: '2.4.4'
  via: apache:2.4
  webroot: .
  xdebug: true
  database: mysql:5.7
  config:
    php: .lando/php/php.ini

services:
  appserver:
    ssl: true
    build_as_root:
      - apt-get update
      - apt-get install -y libcurl4-openssl-dev libxml2-dev
      - printf "\n" | pecl install solr-2.5.1
      - docker-php-ext-enable solr
  pma:
    type: phpmyadmin
    hosts:
      - database

proxy:
  pma:
    - pma.myapp.lndo.site

The problematic part of the build output:

Get:1 http:https://security.debian.org/debian-security stretch/updates InRelease [59.1 kB]
Get:2 http:https://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
Get:3 http:https://security.debian.org/debian-security stretch/updates/main amd64 Packages [782 kB]
Ign:4 http:https://deb.debian.org/debian stretch InRelease       
Get:5 http:https://security.debian.org/debian-security buster/updates/main amd64 Packages [397 kB]
Get:6 http:https://deb.debian.org/debian stretch-updates InRelease [93.6 kB]    
Get:7 http:https://deb.debian.org/debian buster InRelease [122 kB]              
Get:8 http:https://deb.debian.org/debian buster-updates InRelease [56.6 kB]          
Get:9 http:https://deb.debian.org/debian stretch Release [118 kB]
Get:10 http:https://deb.debian.org/debian stretch Release.gpg [3177 B]               
Get:11 http:https://deb.debian.org/debian buster/main amd64 Packages [7909 kB]
Get:12 http:https://deb.debian.org/debian buster-updates/main amd64 Packages [8788 B]
Get:13 http:https://deb.debian.org/debian stretch/main amd64 Packages [7080 kB]
Ign:14 http:https://apt.postgresql.org/pub/repos/apt stretch-pgdg InRelease          
Ign:15 http:https://apt.postgresql.org/pub/repos/apt stretch-pgdg Release
Ign:16 http:https://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 Packages
Ign:17 http:https://apt.postgresql.org/pub/repos/apt stretch-pgdg/main all Packages
Ign:16 http:https://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 Packages
Ign:17 http:https://apt.postgresql.org/pub/repos/apt stretch-pgdg/main all Packages
Ign:16 http:https://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 Packages
Ign:17 http:https://apt.postgresql.org/pub/repos/apt stretch-pgdg/main all Packages
Ign:16 http:https://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 Packages
Ign:17 http:https://apt.postgresql.org/pub/repos/apt stretch-pgdg/main all Packages
Ign:16 http:https://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 Packages
Ign:17 http:https://apt.postgresql.org/pub/repos/apt stretch-pgdg/main all Packages
Err:16 http:https://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 Packages
  404  Not Found [IP: 147.75.85.69 80]
Ign:17 http:https://apt.postgresql.org/pub/repos/apt stretch-pgdg/main all Packages
Fetched 16.7 MB in 3s (5271 kB/s)
Reading package lists... Done
W: The repository 'http:https://apt.postgresql.org/pub/repos/apt stretch-pgdg Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http:https://apt.postgresql.org/pub/repos/apt/dists/stretch-pgdg/main/binary-amd64/Packages  404  Not Found [IP: 147.75.85.69 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
ERROR ==> E: Some index files failed to download. They have been ignored, or old ones used instead.
@garrettw garrettw added the bug Something isn't working label Nov 23, 2022
@garrettw garrettw changed the title D7 recipe with mysql tries and fails to install postgres D7 recipe with mysql tries to install postgres Nov 23, 2022
@reynoldsalec
Copy link
Sponsor Member

I'm guessing this was part of the apt-get update in the appserver's build_as_root; Lando's appserver containers are built on Debian images, and I believe Debian comes with Postgres by default.

If someone is in a similar position, I'm guessing you could run an apt remove postgresql or similar as an initial step.

Now I see why Alpine and other lean images are a thing ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants