zodern / meteor-up

Production Quality Meteor Deployment to Anywhere
http://meteor-up.com/
MIT License
1.27k stars 280 forks source link

1.2.8 => 1.3.3 update causes NGINX error #737

Closed sunlee-newyork closed 5 years ago

sunlee-newyork commented 7 years ago

After updating mup from 1.2.8 to 1.3.3, I am encountering an NGINX error at mup setup:

Started TaskList: Setup Docker
[my_host] - Setup Docker
[my_host] x Setup Docker: FAILED

    -----------------------------------STDERR-----------------------------------
    6.04.2.1~) | nginx-light (<< 1.10.3-0ubuntu0.16.04.2.1~) | nginx-extras (<< 1.10.3-0ubuntu0.16.04.2.1~); however:
      Package nginx-core is not configured yet.
      Package nginx-full is not installed.
      Package nginx-light is not installed.
      Package nginx-extras is not installed.

    dpkg: error processing package nginx (--configure):
     dependency problems - leaving unconfigured
    Errors were encountered while processing:
     nginx-core
     nginx
    debconf: unable to initialize frontend: Dialog
    debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
    debconf: falling back to frontend: Readline
    debconf: unable to initialize frontend: Readline
    debconf: (This frontend requires a controlling tty.)
    debconf: falling back to frontend: Teletype
    dpkg-preconfigure: unable to re-open stdin:
    No apport report written because the error message indicates its a followup error from a previous failure.
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    -----------------------------------STDOUT-----------------------------------
    tras is not installed.
     nginx depends on nginx-core (<< 1.10.3-0ubuntu0.16.04.2.1~) | nginx-full (<< 1.10.3-0ubuntu0.16.04.2.1~) | nginx-light (<< 1.10.3-0ubuntu0.16.04.2.1~) | nginx-extras (<< 1.10.3-0ubuntu0.16.04.2.1~); however:
      Package nginx-core is not configured yet.
      Package nginx-full is not installed.
      Package nginx-light is not installed.
      Package nginx-extras is not installed.

    dpkg: error processing package nginx (--configure):
     dependency problems - leaving unconfigured
    Setting up wget (1.17.1-1ubuntu1.2) ...
    Setting up liblxc1 (2.0.8-0ubuntu1~16.04.2) ...
    Setting up lxc-common (2.0.8-0ubuntu1~16.04.2) ...
    Setting up python3-lxc (2.0.8-0ubuntu1~16.04.2) ...
    Setting up lxc1 (2.0.8-0ubuntu1~16.04.2) ...
    Setting up lxc dnsmasq configuration.
    Setting up lxc-templates (2.0.8-0ubuntu1~16.04.2) ...
    Setting up lxc (2.0.8-0ubuntu1~16.04.2) ...
    Processing triggers for libc-bin (2.23-0ubuntu9) ...
    Errors were encountered while processing:
     nginx-core
     nginx
    ----------------------------------------------------------------------------

This is my current mup.json file:

module.exports = {
  servers: {
    one: {
      host: 'my_host,
      username: 'my_username'
    }
  },
  meteor: {
    name: 'my_app',
    path: '/Users/path_to_repo',
    servers: {
      one: {}
    },
    buildOptions: {
      serverOnly: true,
      debug: false
    },
    env: {
      ENV: 'my_env',
      NODE_ENV: 'my_env',
      ROOT_URL: 'my_root_url',
      MONGO_URL: 'my_external_mongo_server_url,
      MAIL_URL: 'my_smtp_url'
    },
    docker: {
      image: 'abernix/meteord:base'
    },
    deployCheckWaitTime: 120,
    enableUploadProgressBar: true,
    ssl: {
      port: 443,
      autogenerate: {
        email: 'my_ssl_email',
        domains: 'my_ssl_domain'
      }
    }
  }
};
zodern commented 5 years ago

SSH onto the server and run wget -qO- https://get.docker.com/ | sudo sh to fix it.