zodern / meteor-up

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

Verifying Deployment: FAILED Failed to connect to 172.17.0.2 port 3000: Connection refused #1289

Closed willemx closed 2 years ago

willemx commented 2 years ago

I am trying to use mup to deploy my meteor app to an ubuntu 16.04 server but I am running into this connection error. Any suggestions on how to solve this?

Mup version (1.5.5):

Mup config

module.exports = {
  servers: {
    one: {
      host: 'ubuntu64',
      username: 'user',
      pem: '~/.ssh/pem'
    }
  },
  app: {
    name: 'ctrlh',
    path: '../',

    servers: {
      one: {},
    },
    buildOptions: {
      serverOnly: true,
    },
    env: {
      ROOT_URL: 'http://ctrlh.ubuntu64',
      MONGO_URL: 'mongodb://user:pwd@ubuntu64:27017/db?appName=ctrlh',
    },
    docker: {
      image: 'zodern/meteor:root',
      prepareBundle: false,
    },
    deployCheckWaitTime: 120,
    enableUploadProgressBar: true
  },
};

Output of command

Cleaning Up Previous Builds
Building App Bundle Locally
Browserslist: caniuse-lite is outdated. Please run:                         
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating

Started TaskList: Pushing Meteor App
[ubuntu64] - Pushing Meteor App Bundle to the Server
[ubuntu64] - Pushing Meteor App Bundle to the Server: SUCCESS

Started TaskList: Configuring App
[ubuntu64] - Pushing the Startup Script
[ubuntu64] - Pushing the Startup Script: SUCCESS
[ubuntu64] - Sending Environment Variables
[ubuntu64] - Sending Environment Variables: SUCCESS

Started TaskList: Start Meteor
[ubuntu64] - Start Meteor
Removing images
Error: No such image: mup-ctrlh:latest
REPOSITORY      TAG       IMAGE ID       CREATED         SIZE
<none>          <none>    c4edf6c263d3   18 hours ago    447MB
zodern/meteor   root      333e8c65cd2a   12 months ago   447MB
Error: No such image: mup-ctrlh:latest
using bundle
Error: No such image: mup-ctrlh:previous
Error: No such image: mup-ctrlh:previous
Error: No such image: mup-ctrlh:latest
Image zodern/meteor:root
Volume --volume=/opt/ctrlh/current:/bundle
Removing docker containers. Errors about nonexistent endpoints and containers are normal.
ctrlh
Error response from daemon: endpoint ctrlh not found
Error: No such container: ctrlh-frontend
Error response from daemon: endpoint ctrlh-frontend not found
Error: No such container: ctrlh-nginx-letsencrypt
Error response from daemon: endpoint ctrlh-nginx-letsencrypt not found
Error: No such container: ctrlh-nginx-proxy
Error response from daemon: endpoint ctrlh-nginx-proxy not found
Finished removing docker containers
root: Pulling from zodern/meteor
Digest: sha256:bd8726299e544bb00701ade4086d2c93564ee071d0adbf80a1ed0549a082b64a
Status: Image is up to date for zodern/meteor:root
docker.io/zodern/meteor:root
Pulled zodern/meteor:root
61b919156e76a7f31939e827fcea556f2ee8a19a9d009497ff34c43456483644
Ran zodern/meteor:root
[ubuntu64] - Start Meteor: SUCCESS
[ubuntu64] - Verifying Deployment
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
=> Container status:
restarted: 1 times {"Bridge":"","SandboxID":"bb0328a42da8febb0b86838bc7355b4618a4971117402df0bc104036f8e493a3","HairpinMode":false,"LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"Ports":{"3000/tcp":[{"HostIp":"0.0.0.0","HostPort":"80"}]},"SandboxKey":"/var/run/docker/netns/bb0328a42da8","SecondaryIPAddresses":null,"SecondaryIPv6Addresses":null,"EndpointID":"aec70d56c3537fd5a3a765a79331f4295aca283917245a9bba028ab734ed6685","Gateway":"172.17.0.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.0.2","IPPrefixLen":16,"IPv6Gateway":"","MacAddress":"02:42:ac:11:00:02","Networks":{"bridge":{"IPAMConfig":null,"Links":null,"Aliases":null,"NetworkID":"3a445c04c4a6e27a039fb8f9c7d0af53695e69b5c6aa6790ac665e63c7a68c03","EndpointID":"aec70d56c3537fd5a3a765a79331f4295aca283917245a9bba028ab734ed6685","Gateway":"172.17.0.1","IPAddress":"172.17.0.2","IPPrefixLen":16,"IPv6Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"MacAddress":"02:42:ac:11:00:02","DriverOpts":null}}} {"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":17846,"ExitCode":0,"Error":"","StartedAt":"2022-01-05T10:52:13.300394392Z","FinishedAt":"2022-01-05T10:52:12.643002472Z"}
=> Logs:
Found /bundle/bundle.tar.gz
mode of 'bundle.tar.gz' changed from 0755 (rwxr-xr-x) to 0777 (rwxrwxrwx)
=> Extracting bundle
=> Setting node version
NODE_VERSION=14.18.2
Found /bundle/bundle.tar.gz
mode of 'bundle.tar.gz' retained as 0777 (rwxrwxrwx)
=> Extracting bundle
=> Setting node version
NODE_VERSION=14.18.2

=> Redeploying previous version of the app

To see more logs type 'mup logs --tail=200'

[ubuntu64] x Verifying Deployment: FAILED

          ------------------------------------STDERR------------------------------------
          tion refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
    => Logs:
    Found /bundle/bundle.tar.gz
    mode of 'bundle.tar.gz' changed from 0755 (rwxr-xr-x) to 0777 (rwxrwxrwx)
    => Extracting bundle
    => Setting node version
    NODE_VERSION=14.18.2
    Found /bundle/bundle.tar.gz
    mode of 'bundle.tar.gz' retained as 0777 (rwxrwxrwx)
    => Extracting bundle
    => Setting node version
    NODE_VERSION=14.18.2

    => Redeploying previous version of the app

          ------------------------------------STDOUT------------------------------------
          IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    IP: 172.17.0.2
    => Container status:
    restarted: 1 times {"Bridge":"","SandboxID":"bb0328a42da8febb0b86838bc7355b4618a4971117402df0bc104036f8e493a3","HairpinMode":false,"LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"Ports":{"3000/tcp":[{"HostIp":"0.0.0.0","HostPort":"80"}]},"SandboxKey":"/var/run/docker/netns/bb0328a42da8","SecondaryIPAddresses":null,"SecondaryIPv6Addresses":null,"EndpointID":"aec70d56c3537fd5a3a765a79331f4295aca283917245a9bba028ab734ed6685","Gateway":"172.17.0.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.0.2","IPPrefixLen":16,"IPv6Gateway":"","MacAddress":"02:42:ac:11:00:02","Networks":{"bridge":{"IPAMConfig":null,"Links":null,"Aliases":null,"NetworkID":"3a445c04c4a6e27a039fb8f9c7d0af53695e69b5c6aa6790ac665e63c7a68c03","EndpointID":"aec70d56c3537fd5a3a765a79331f4295aca283917245a9bba028ab734ed6685","Gateway":"172.17.0.1","IPAddress":"172.17.0.2","IPPrefixLen":16,"IPv6Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"MacAddress":"02:42:ac:11:00:02","DriverOpts":null}}} {"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":17846,"ExitCode":0,"Error":"","StartedAt":"2022-01-05T10:52:13.300394392Z","FinishedAt":"2022-01-05T10:52:12.643002472Z"}

I also tried with prepareBundle: true, but then mup setup fails like this:

Cleaning Up Previous Builds
Building App Bundle Locally
Browserslist: caniuse-lite is outdated. Please run:                         
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating

Started TaskList: Pushing Meteor App
[ubuntu64] - Pushing Meteor App Bundle to the Server
[ubuntu64] - Pushing Meteor App Bundle to the Server: SUCCESS

Started TaskList: Prepare App Bundle
[ubuntu64] - Prepare Bundle
Updating base image
root: Pulling from zodern/meteor
Digest: sha256:bd8726299e544bb00701ade4086d2c93564ee071d0adbf80a1ed0549a082b64a
Status: Image is up to date for zodern/meteor:root
docker.io/zodern/meteor:root
Preparing for docker build
Creating Dockerfile
Finished creating Dockerfile
Building image
Sending build context to Docker daemon  270.5MB
Step 1/6 : FROM zodern/meteor:root
# Executing 6 build triggers
 ---> Using cache
 ---> Using cache
 ---> Using cache
 ---> Running in 6944129a7e77
NODE_VERSION=14.18.2
The command '/bin/sh -c bash ./scripts/onbuild-node.sh' returned a non-zero code: 3

real    1m26.501s
user    0m1.146s
sys 0m0.870s
[ubuntu64] x Prepare Bundle: FAILED

          ------------------------------------STDERR------------------------------------
          The command '/bin/sh -c bash ./scripts/onbuild-node.sh' returned a non-zero code: 3

    real    1m26.501s
    user    0m1.146s
    sys 0m0.870s

          ------------------------------------STDOUT------------------------------------
          Updating base image
    root: Pulling from zodern/meteor
    Digest: sha256:bd8726299e544bb00701ade4086d2c93564ee071d0adbf80a1ed0549a082b64a
    Status: Image is up to date for zodern/meteor:root
    docker.io/zodern/meteor:root
    Preparing for docker build
    Creating Dockerfile
    Finished creating Dockerfile
    Building image
    Sending build context to Docker daemon  270.5MB
    Step 1/6 : FROM zodern/meteor:root
    # Executing 6 build triggers
     ---> Using cache
     ---> Using cache
     ---> Using cache
     ---> Running in 6944129a7e77
    NODE_VERSION=14.18.2

          ------------------------------------------------------------------------------
jankapunkt commented 2 years ago

what does mup logs --tail=200 reveal?

willemx commented 2 years ago

@jankapunkt : thank you for trying to help, however, I decided to stop using mup.

hasip-timurtas commented 2 years ago

I have the same issue, any suggestion?

ingodahn commented 2 years ago

I have the same problem working from Win11 as well as Ubuntu.

In mup.js I have docker: { image: 'zodern/meteor:latest', }

mup logs --tail=200 says on Win11 => Setting node version NODE_VERSION=14.17.3 v14.17.3 is already installed. Now using node v14.17.3 (npm v6.14.13) default -> 14.17.3 (-> v14.17.3 *) => Starting meteor app on port 3000

and on Ubuntu: []MongoError: not master and slaveOk=false [] at MessageStreammessageHandler (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connectionjs:6:) [] at MessageStreamemit (eventsjs:35:) [] at MessageStreamemit (domainjs:4:) [] at processIncomingData (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_streamjs:44:) [] at MessageStream_write (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_streamjs:4:5) [] at writeOrBuffer (internal/streams/writablejs:35:) [] at MessageStreamWritablewrite (internal/streams/writablejs:33:) [] at Socketondata (internal/streams/readablejs:6:) [] at Socketemit (eventsjs:35:) [] at Socketemit (domainjs:4:) [] at addChunk (internal/streams/readablejs::) [] at readableAddChunk (internal/streams/readablejs:65:) [] at SocketReadablepush (internal/streams/readablejs:4:) [] at TCPonStreamRead (internal/stream_base_commonsjs::3) { [] ok: , [] code: 3435, [] codeName: 'NotMasterNoSlaveOk', [] [Symbol(errorLabels)]: Set() { 'RetryableWriteError' } []} []=> Setting node version []NODE_VERSION=43 []v43 is already installed []Now using node v43 (npm v643) []default -> 43 (-> v43 ) []=> Starting meteor app on port 3 []/built_app/programs/server/node_modules/fibers/futurejs:33 [] throw(ex); [] ^ [] []MongoError: not master and slaveOk=false [] at MessageStreammessageHandler (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connectionjs:6:) [] at MessageStreamemit (eventsjs:35:) [] at MessageStreamemit (domainjs:4:) [] at processIncomingData (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_streamjs:44:) [] at MessageStream_write (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_streamjs:4:5) [] at writeOrBuffer (internal/streams/writablejs:35:) [] at MessageStreamWritablewrite (internal/streams/writablejs:33:) [] at Socketondata (internal/streams/readablejs:6:) [] at Socketemit (eventsjs:35:) [] at Socketemit (domainjs:4:) [] at addChunk (internal/streams/readablejs::) [] at readableAddChunk (internal/streams/readablejs:65:) [] at SocketReadablepush (internal/streams/readablejs:4:) [] at TCPonStreamRead (internal/stream_base_commonsjs::3) { [] ok: , [] code: 3435, [] codeName: 'NotMasterNoSlaveOk', [] [Symbol(errorLabels)]: Set() { 'RetryableWriteError' } []} []=> Setting node version []NODE_VERSION=43 []v43 is already installed []Now using node v43 (npm v643) []default -> 43 (-> v43 ) []=> Starting meteor app on port 3 []/built_app/programs/server/node_modules/fibers/futurejs:33 [] throw(ex); [] ^ [] []MongoError: not master and slaveOk=false [] at MessageStreammessageHandler (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connectionjs:6:) [] at MessageStreamemit (eventsjs:35:) [] at MessageStreamemit (domainjs:4:) [] at processIncomingData (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_streamjs:44:) [] at MessageStream_write (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_streamjs:4:5) [] at writeOrBuffer (internal/streams/writablejs:35:) [] at MessageStreamWritablewrite (internal/streams/writablejs:33:) [] at Socketondata (internal/streams/readablejs:6:) [] at Socketemit (eventsjs:35:) [] at Socketemit (domainjs:4:) [] at addChunk (internal/streams/readablejs::) [] at readableAddChunk (internal/streams/readablejs:65:) [] at SocketReadablepush (internal/streams/readablejs:4:) [] at TCPonStreamRead (internal/stream_base_commonsjs::3) { [] ok: , [] code: 3435, [] codeName: 'NotMasterNoSlaveOk', [] [Symbol(errorLabels)]: Set() { 'RetryableWriteError' } []} []=> Setting node version []NODE_VERSION=43 []v43 is already installed []Now using node v43 (npm v643) []default -> 43 (-> v43 ) []=> Starting meteor app on port 3 []/built_app/programs/server/node_modules/fibers/futurejs:33 [] throw(ex); [] ^ [] []MongoError: not master and slaveOk=false [] at MessageStreammessageHandler (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connectionjs:6:) [] at MessageStreamemit (eventsjs:35:) [] at MessageStreamemit (domainjs:4:) [] at processIncomingData (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_streamjs:44:) [] at MessageStream_write (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_streamjs:4:5) [] at writeOrBuffer (internal/streams/writablejs:35:) [] at MessageStreamWritablewrite (internal/streams/writablejs:33:) [] at Socketondata (internal/streams/readablejs:6:) [] at Socketemit (eventsjs:35:) [] at Socketemit (domainjs:4:) [] at addChunk (internal/streams/readablejs::) [] at readableAddChunk (internal/streams/readablejs:65:) [] at SocketReadablepush (internal/streams/readablejs:4:) [] at TCPonStreamRead (internal/stream_base_commonsjs::3) { [] ok: , [] code: 3435, [] codeName: 'NotMasterNoSlaveOk', [] [Symbol(errorLabels)]: Set() { 'RetryableWriteError' } []} []=> Setting node version []NODE_VERSION=43 []v43 is already installed []Now using node v43 (npm v643) []default -> 43 (-> v43 ) []=> Starting meteor app on port 3 []/built_app/programs/server/node_modules/fibers/futurejs:33 [] throw(ex); [] ^ [] []MongoError: not master and slaveOk=false [] at MessageStreammessageHandler (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connectionjs:6:) [] at MessageStreamemit (eventsjs:35:) [] at MessageStreamemit (domainjs:4:) [] at processIncomingData (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_streamjs:44:) [] at MessageStream_write (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_streamjs:4:5) [] at writeOrBuffer (internal/streams/writablejs:35:) [] at MessageStreamWritablewrite (internal/streams/writablejs:33:) [] at Socketondata (internal/streams/readablejs:6:) [] at Socketemit (eventsjs:35:) [] at Socketemit (domainjs:4:) [] at addChunk (internal/streams/readablejs::) [] at readableAddChunk (internal/streams/readablejs:65:) [] at SocketReadablepush (internal/streams/readablejs:4:) [] at TCPonStreamRead (internal/stream_base_commonsjs::3) { [] ok: , [] code: 3435, [] codeName: 'NotMasterNoSlaveOk', [] [Symbol(errorLabels)]: Set() { 'RetryableWriteError' } []} []=> Setting node version []NODE_VERSION=43 []v43 is already installed []Now using node v43 (npm v643) []default -> 43 (-> v43 ) []=> Starting meteor app on port 3 []/built_app/programs/server/node_modules/fibers/futurejs:33 [] throw(ex); [] ^ [] []MongoError: not master and slaveOk=false [] at MessageStreammessageHandler (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connectionjs:6:) [] at MessageStreamemit (eventsjs:35:) [] at MessageStreamemit (domainjs:4:) [] at processIncomingData (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_streamjs:44:) [] at MessageStream_write (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_streamjs:4:5) [] at writeOrBuffer (internal/streams/writablejs:35:) [] at MessageStreamWritablewrite (internal/streams/writablejs:33:) [] at Socketondata (internal/streams/readablejs:6:) [] at Socketemit (eventsjs:35:) [] at Socketemit (domainjs:4:) [] at addChunk (internal/streams/readablejs::) [] at readableAddChunk (internal/streams/readablejs:65:) [] at SocketReadablepush (internal/streams/readablejs:4:) [] at TCPonStreamRead (internal/stream_base_commonsjs::3) { [] ok: , [] code: 3435, [] codeName: 'NotMasterNoSlaveOk', [] [Symbol(errorLabels)]: Set() { 'RetryableWriteError' } []} []=> Setting node version []NODE_VERSION=43 []v43 is already installed []Now using node v43 (npm v643) []default -> 43 (-> v43 ) []=> Starting meteor app on port 3 []/built_app/programs/server/node_modules/fibers/futurejs:33 [] throw(ex); [] ^ [] []MongoError: not master and slaveOk=false [] at MessageStreammessageHandler (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connectionjs:6:) [] at MessageStreamemit (eventsjs:35:) [] at MessageStreamemit (domainjs:4:) [] at processIncomingData (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_streamjs:44:) [] at MessageStream_write (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/message_streamjs:4:5) [] at writeOrBuffer (internal/streams/writablejs:35:) [] at MessageStreamWritablewrite (internal/streams/writablejs:33:) [] at Socketondata (internal/streams/readablejs:6:) [] at Socketemit (eventsjs:35:) [] at Socketemit (domainjs:4:) [] at addChunk (internal/streams/readablejs::) [] at readableAddChunk (internal/streams/readablejs:65:) [] at SocketReadablepush (internal/streams/readablejs:4:) [] at TCPonStreamRead (internal/stream_base_commonsjs::3) { [] ok: , [] code: 3435, [] codeName: 'NotMasterNoSlaveOk', [] [Symbol(errorLabels)]: Set() { 'RetryableWriteError' } []}

asgaraliyev commented 1 year ago

same issue

JonathanLehner commented 9 months ago

who closed this??

minhna commented 4 months ago

I have the same issue when trying to test this deployment in local machine:

#12 32.65 {
#12 32.65   "npm": "6.14.18",
#12 32.65   "ares": "1.18.1",
#12 32.65   "brotli": "1.0.9",
#12 32.65   "cldr": "40.0",
#12 32.65   "icu": "70.1",
#12 32.65   "llhttp": "2.1.6",
#12 32.65   "modules": "83",
#12 32.65   "napi": "8",
#12 32.65   "nghttp2": "1.42.0",
#12 32.65   "node": "14.21.3",
#12 32.65   "openssl": "1.1.1t",
#12 32.65   "tz": "2022f",
#12 32.65   "unicode": "14.0",
#12 32.65   "uv": "1.42.0",
#12 32.65   "v8": "8.4.371.23-node.88",
#12 32.65   "zlib": "1.2.11"
#12 32.65 }
#12 32.76 added 160 packages from 86 contributors and audited 160 packages in 31.749s
#12 32.82 
#12 32.82 5 packages are looking for funding
#12 32.82   run `npm fund` for details
#12 32.82 
#12 32.82 found 3 moderate severity vulnerabilities
#12 32.82   run `npm audit fix` to fix them, or `npm audit` for details
#12 DONE 32.9s

#13 exporting to image
#13 exporting layers
#13 exporting layers 17.0s done
#13 writing image sha256:f70ec75c6afd93ee9fb9a4cc1d7b6e0b8c757a791d76c1abacad78a786fb4450 done
#13 naming to docker.io/library/mup-ekit-dev:build 0.0s done
#13 DONE 17.0s

real    3m12.976s
user    0m1.711s
sys 0m0.729s
Tagged latest
Deleted Images:
deleted: sha256:ca1c440c2d850fb2db83c048de0d3712470e6ac601ff0c4aabab8e62fbcf4ca2
deleted: sha256:612e69cc50e213a4fe7046d7ef9112dc671cc7078d62fac5257c60f9a766c5d5
deleted: sha256:2a12b333977a75c3015774036efda0e02ac908fd8dc639e366c40782d5a6796a
deleted: sha256:dbd75911d26a22618121d678749ba820194766c1ba9748f506ef3d2e24eb9763
deleted: sha256:41cabfc5d150845c8efd40d8b09272e08a94277aba16e8c61045ba91881157c1
deleted: sha256:e57e73b62a9337bc4cbb6b73250277d7b37dd68d4409b8ad76f2987f0fbc09be
deleted: sha256:25bc9c9d9fbf1af0df856a81531b1e2698a8a6a1277191ad2ddfd4eb6ad2a159
deleted: sha256:cc484d51131c2d7251942e89f224d2ecb2844c703d68b7f2125f37062509b10e
deleted: sha256:12259e0655159e5bb9c9e38ab1b467206d84e09b25546af6f0957161f2767f62

Total reclaimed space: 1.418GB
Total:  0B
[127.0.0.1] - Prepare Bundle: SUCCESS
> Running hook default.reconfig "node ../../scripts/log-deployment.mjs `date` `pwd` reconfig"

Started TaskList: Configuring App
[127.0.0.1] - Pushing the Startup Script
[127.0.0.1] - Pushing the Startup Script: SUCCESS
[127.0.0.1] - Sending Environment Variables
[127.0.0.1] - Sending Environment Variables: SUCCESS

Started TaskList: Start Meteor
[127.0.0.1] - Start Meteor
using image
removing last
Image mup-ekit-dev:latest
Volume
Removing docker containers. Errors about nonexistent endpoints and containers are normal.
ekit-dev
Error response from daemon: endpoint ekit-dev not found
Error response from daemon: No such container: ekit-dev-frontend
Error response from daemon: endpoint ekit-dev-frontend not found
Error response from daemon: No such container: ekit-dev-nginx-letsencrypt
Error response from daemon: endpoint ekit-dev-nginx-letsencrypt not found
Error response from daemon: No such container: ekit-dev-nginx-proxy
Error response from daemon: endpoint ekit-dev-nginx-proxy not found
Finished removing docker containers
9ea2abd3edbd200c391c6e29908068b9e25b7a774aabbc9e2397080b6c56531d
Ran zodern/meteor:latest
[127.0.0.1] - Start Meteor: SUCCESS
[127.0.0.1] - Verifying Deployment
IP: 172.17.0.2
curl: (7) Failed to connect to 172.17.0.2 port 3000 after 0 ms: Connection refused

my mup.js

module.exports = {
  servers: {
    one: {
      // host: '44.229.177.109',
      host: '127.0.0.1',
      username: 'minhna',
      // authenticate from ssh-agent
      pem: '~/.ssh/back2dev',
    },
  },

  app: {
    // TODO: change app name and path
    name: 'ekit-dev',
    path: '../../ekit-app',

    servers: {
      one: {},
    },

    buildOptions: {
      serverOnly: true,
    },

    deployCheckWaitTime: 180,

    env: {
      // TODO: Change to your app's url
      // If you are using ssl, it needs to start with https://
      ROOT_URL: 'http://localhost:2062',
      LOG_LEVEL: 'debug',
      DEBUG: 'app:*',
      TZ: 'Pacific Standard Time',
      MONGO_URL: 'mongodb://localhost/b2d',
      PORT: 2062,
    },

    docker: {
      image: 'zodern/meteor:latest',
      stopAppDuringPrepareBundle: false,
      prepareBundle: true,
      useBuildKit: true,
      bind: '127.0.0.1',
    },

    // Show progress bar while uploading bundle to server
    // You might need to disable it on CI servers
    enableUploadProgressBar: true,
  },