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

lando rebuild -s appserver removed other containers. #151

Closed
awm086 opened this issue Dec 8, 2022 · 1 comment
Closed

lando rebuild -s appserver removed other containers. #151

awm086 opened this issue Dec 8, 2022 · 1 comment

Comments

@awm086
Copy link

awm086 commented Dec 8, 2022

I was trying to rebuild one service to avoid a possible bug that's preventing the database from persisting on rebuilds.
Here are my steps to reproduce
lando infor:

[ { service: 'appserver_nginx',
    urls:
     [ 'https://localhost:53782',
       'http://localhost:53783',
       'http://lp-cms.lndo.site/',
       'https://lp-cms.lndo.site/' ],
    type: 'nginx',
    healthy: true,
    managed: true,
    webroot: 'web',
    config:
     { vhosts: '/Users/aalmustafa/.lando/config/pantheon/drupal9.conf.tpl',
       php: '/Users/aalmustafa/.lando/config/pantheon/php.ini',
       server: '/Users/aalmustafa/.lando/config/pantheon/nginx.conf.tpl' },
    version: '1.16',
    meUser: 'www-data',
    hasCerts: true,
    hostnames: [ 'appserver_nginx.mydrupal.internal' ] },
  { service: 'appserver',
    urls: [],
    type: 'php',
    healthy: true,
    via: 'nginx:1.16',
    served_by: 'appserver_nginx',
    webroot: 'web',
    config:
     { php: '/Users/aalmustafa/.lando/config/pantheon/php.ini',
       server: '/Users/aalmustafa/.lando/config/pantheon/nginx.conf.tpl',
       vhosts: '/Users/aalmustafa/.lando/config/pantheon/drupal9.conf.tpl' },
    version: '8.0',
    meUser: 'www-data',
    hasCerts: false,
    hostnames: [ 'appserver.mydrupal.internal' ] },
  { service: 'database',
    urls: [],
    type: 'pantheon-mariadb',
    healthy: true,
    internal_connection: { host: 'database', port: '3306' },
    external_connection: { host: '127.0.0.1', port: '53781' },
    healthcheck: 'mysql -uroot --silent --execute "SHOW DATABASES;"',
    creds: { database: 'pantheon', password: 'pantheon', user: 'pantheon' },
    config: { database: '.lando/my_custom.cnf' },
    version: '10.4',
    meUser: 'mysql',
    hasCerts: false,
    hostnames: [ 'database.mydrupal.internal' ] },
  { service: 'pma',
    urls: [ 'http://localhost:53780', 'http://pma.lp-cms.lndo.site/' ],
    type: 'phpmyadmin',
    healthy: true,
    backends: [ 'database' ],
    config: {},
    version: '5.1',
    meUser: 'www-data',
    hasCerts: false,
    hostnames: [ 'pma.mydrupal.internal' ] } ]

Then lando rebuild -s appserver:

lando rebuild -s appserver 
? Are you sure you want to rebuild? Yes
Rising anew like a fire phoenix from the ashes! Rebuilding app...
Killing mydrupal_appserver_1 ... done
Going to remove mydrupal_appserver_1
Removing mydrupal_appserver_1 ... done
Pulling appserver ... done
database uses an image, skipping
appserver_nginx uses an image, skipping
appserver uses an image, skipping
pma uses an image, skipping
landoproxyhyperion5000gandalfedition_proxy_1 is up-to-date
Removing orphan container "mydrupal_database_1"
Removing orphan container "mydrupal_pma_1"
Removing orphan container "mydrupal_appserver_nginx_1"
Creating mydrupal_mounter_1 ... done

________             ______       ______  ___     _________
___  __/___  ___________  /__________   |/  /___________  /____
__  /  _  / / /_  ___/_  __ \  __ \_  /|_/ /_  __ \  __  /_  _ \
_  /   / /_/ /_  /   _  /_/ / /_/ /  /  / / / /_/ / /_/ / /  __/
/_/    \__,_/ /_/    /_.___/\____//_/  /_/  \____/\__,_/  \___/

then docker ps:

docker ps
CONTAINER ID   IMAGE                                   COMMAND                  CREATED          STATUS          PORTS                                                                     NAMES
fa9831717a8f   devwithlando/pantheon-appserver:8.0-4   "/lando-entrypoint.s…"   11 minutes ago   Up 10 minutes   9000/tcp                                                                  mydrupal_appserver_1
30920f332ef4   traefik:2.2.0                           "/lando-entrypoint.s…"   20 hours ago     Up 21 minutes   127.0.0.1:80->80/tcp, 127.0.0.1:443->443/tcp, 127.0.0.1:53545->8080/tcp   landoproxyhyperion5000gandalfedition_proxy_1
@awm086 awm086 added the pantheon label Dec 8, 2022
@rtfm-47 rtfm-47 transferred this issue from lando/lando Dec 8, 2022
@ethangeorgi
Copy link
Collaborator

Assuming this issue has been resolved by now, and closing. If the issue persists, please provide more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants