zodern / meteor-up

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

METEOR@2.6.1-beta.1 deploy #1294

Closed Zayco closed 2 years ago

Zayco commented 2 years ago

Hi,

I am not able to deploy projects upgraded from meteor 2.5.6 to 2.6.1. The projects are working locally, but I did have to run meteor reset. Any assistance would be appreciated.

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

Started TaskList: Prepare App Bundle [142.93.103.21] - Prepare Bundle Updating base image Using default tag: latest latest: Pulling from zodern/meteor Digest: sha256:c7d31934c023ec2dffaf1c7bdf31bb366449d14408ae318dc26c5d45ad6ce005 Status: Image is up to date for zodern/meteor:latest Preparing for docker build Creating Dockerfile Finished creating Dockerfile Building image Sending build context to Docker daemon 730.4MB Step 1/28 : FROM zodern/meteor

Executing 5 build triggers

---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> e89da405241e Step 2/28 : RUN mkdir /built_app || true ---> Using cache ---> 6894e0c9957f Step 3/28 : ARG ROOT_URL="https://medusadash.no" ---> Using cache ---> 31e9711eb809 Step 4/28 : ARG MONGO_URL="mongodb://mongodb:27017/MedusaDash" ---> Using cache ---> 5907148c6e0f Step 5/28 : ARG MONGO_OPLOG_URL="mongodb://mongodb/local" ---> Using cache ---> abeaf47c7725 Step 6/28 : ARG VIRTUAL_HOST="medusadash.no" ---> Using cache ---> 7cbab9979f8a Step 7/28 : ARG HTTPS_METHOD="redirect" ---> Using cache ---> d24886a91f9b Step 8/28 : ARG LETSENCRYPT_HOST="medusadash.no" ---> Using cache ---> 94b2026aa760 Step 9/28 : ARG LETSENCRYPT_EMAIL="XXX" ---> Using cache ---> 3215f33ed2d9 Step 10/28 : ARG VIRTUAL_PORT="3000" ---> Using cache ---> df15bae1519e Step 11/28 : ARG HTTP_FORWARDED_COUNT="1" ---> Using cache ---> 3f3556e5bd77 Step 12/28 : USER root ---> Using cache ---> 96fac87910f7 Step 13/28 : RUN apt-get update && apt-get install -y libpangocairo-1.0-0 libx11-xcb1 libxcomposite1 libxcursor1 libxdamage1 libxi6 libxtst6 libnss3 libcups2 libxss1 libxrandr2 libgconf2-4 libasound2 libatk1.0-0 libgtk-3-0 ---> Using cache ---> 76a920f4ad25 Step 14/28 : RUN apt-get install --yes locales ---> Using cache ---> 93b601026ee1 Step 15/28 : RUN sed -i -e 's/# nb_NO.UTF-8 UTF-8/nb_NO.UTF-8 UTF-8/' /etc/locale.gen && locale-gen ---> Using cache ---> 184142423e99 Step 16/28 : ENV LANG nb_NO.UTF-8 ---> Using cache ---> bbea8c890923 Step 17/28 : ENV LANGUAGE nb_NO:no ---> Using cache ---> f4878f9cdd43 Step 18/28 : ENV LC_ALL nb_NO.UTF-8 ---> Using cache ---> 507acf77f565 Step 19/28 : RUN apt-get -y install wget ---> Using cache ---> 164caa33f708 Step 20/28 : RUN apt-get -y install cabextract ---> Using cache ---> e29f945eb314 Step 21/28 : RUN apt-get -y install xfonts-utils ---> Using cache ---> aa5080f7c1ff Step 22/28 : RUN apt-get -y install fontconfig ---> Using cache ---> ff45855b375c Step 23/28 : RUN wget http://ftp.us.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.6_all.deb ---> Using cache ---> 6b9ca30abee7 Step 24/28 : RUN dpkg -i ttf-mscorefonts-installer_3.6_all.deb ---> Using cache ---> 022a3d83c41c Step 25/28 : RUN fc-cache -f -v ---> Using cache ---> 2ec37cb915e5 Step 26/28 : USER app ---> Using cache ---> fdf83a277488 Step 27/28 : COPY ./ /built_app ---> Using cache ---> 6589801b8dd1 Step 28/28 : RUN cd /built_app/programs/server && npm install --unsafe-perm ---> Using cache ---> d150f6bda8d7 Successfully built d150f6bda8d7 Successfully tagged mup-medusadash:build

real 0m48.511s user 0m3.540s sys 0m4.412s Tagged latest Total reclaimed space: 0B [142.93.103.21] - Prepare Bundle: SUCCESS

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

Started TaskList: Start Meteor [142.93.103.21] - Start Meteor using image removing last Image mup-medusadash:latest Volume Removing docker containers. Errors about nonexistent endpoints and containers are normal. MedusaDash Error response from daemon: endpoint MedusaDash not found Error: No such container: MedusaDash-frontend Error response from daemon: endpoint MedusaDash-frontend not found Error: No such container: MedusaDash-nginx-letsencrypt Error response from daemon: endpoint MedusaDash-nginx-letsencrypt not found Error: No such container: MedusaDash-nginx-proxy Error response from daemon: endpoint MedusaDash-nginx-proxy not found Finished removing docker containers ec1e74263f50453078eddf443e8f11945b4a19e8bff3373f7dd0d70585278b4d Ran zodern/meteor [142.93.103.21] - Start Meteor: SUCCESS [142.93.103.21] - Verifying Deployment IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused IP: 172.17.0.5 curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused => Container status: restarted: 1 times {"Bridge":"","SandboxID":"c60a4e160bc671df5410c21ac9aa512e481816ab0b56b48ce1bab6ea60efb48d","HairpinMode":false,"LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"Ports":{"3000/tcp":null},"SandboxKey":"/var/run/docker/netns/c60a4e160bc6","SecondaryIPAddresses":null,"SecondaryIPv6Addresses":null,"EndpointID":"4009aed32f96d004d2468656f90a32f34fa1e2d606bde6abeb8140b88c3f009d","Gateway":"172.17.0.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.0.5","IPPrefixLen":16,"IPv6Gateway":"","MacAddress":"02:42:ac:11:00:05","Networks":{"bridge":{"IPAMConfig":null,"Links":null,"Aliases":null,"NetworkID":"d0ffcfff60c160e01b278015836d819aeefd16a5dc5b705ff35fc498baee6064","EndpointID":"4009aed32f96d004d2468656f90a32f34fa1e2d606bde6abeb8140b88c3f009d","Gateway":"172.17.0.1","IPAddress":"172.17.0.5","IPPrefixLen":16,"IPv6Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"MacAddress":"02:42:ac:11:00:05","DriverOpts":null}}} {"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":568,"ExitCode":0,"Error":"","StartedAt":"2022-02-09T09:02:57.63539759Z","FinishedAt":"2022-02-09T09:02:57.074547043Z"} => Logs: => Setting node version NODE_VERSION=14.19.0 v14.19.0 is already installed. Now using node v14.19.0 (npm v6.14.16) default -> 14.19.0 (-> v14.19.0 *) => Starting meteor app on port 3000 /built_app/programs/server/node_modules/fibers/future.js:313 throw(ex); ^

MongoServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017 at Timeout._onTimeout (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/sdam/topology.js:312:38) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) { reason: TopologyDescription { type: 'ReplicaSetNoPrimary', servers: Map(1) { '127.0.0.1:27017' => ServerDescription { _hostAddress: HostAddress { isIPv6: false, host: '127.0.0.1', port: 27017 }, address: '127.0.0.1:27017', type: 'Unknown', hosts: [], passives: [], arbiters: [], tags: {}, minWireVersion: 0, maxWireVersion: 0, roundTripTime: -1, lastUpdateTime: 62778232000, lastWriteDate: 0, error: MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017 at connectionFailureError (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:381:20) at Socket. (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:301:22) at Object.onceWrapper (events.js:520:26) at Socket.emit (events.js:400:28) at Socket.emit (domain.js:475:12) at emitErrorNT (internal/streams/destroy.js:106:8) at emitErrorCloseNT (internal/streams/destroy.js:74:3) at processTicksAndRejections (internal/process/task_queues.js:82:21) } }, stale: false, compatible: true, heartbeatFrequencyMS: 10000, localThresholdMS: 15, setName: 'meteor', maxSetVersion: 1, maxElectionId: ObjectId { [Symbol(id)]: Buffer(12) [Uint8Array] [ 127, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 9 ] }, commonWireVersion: 7, logicalSessionTimeoutMinutes: undefined } } => Setting node version NODE_VERSION=14.19.0 v14.19.0 is already installed. Now using node v14.19.0 (npm v6.14.16) default -> 14.19.0 (-> v14.19.0 *) => Starting meteor app on port 3000

=> Redeploying previous version of the app

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

[142.93.103.21] x Verifying Deployment: FAILED

          ------------------------------------STDERR------------------------------------
          3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    => Logs:
    => Setting node version
    NODE_VERSION=14.19.0
    v14.19.0 is already installed.
    Now using node v14.19.0 (npm v6.14.16)
    default -> 14.19.0 (-> v14.19.0 *)
    => Starting meteor app on port 3000
    /built_app/programs/server/node_modules/fibers/future.js:313
                                                    throw(ex);
                                                    ^

    MongoServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017
        at Timeout._onTimeout (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/sdam/topology.js:312:38)
        at listOnTimeout (internal/timers.js:557:17)
        at processTimers (internal/timers.js:500:7) {
      reason: TopologyDescription {
        type: 'ReplicaSetNoPrimary',
        servers: Map(1) {
          '127.0.0.1:27017' => ServerDescription {
            _hostAddress: HostAddress { isIPv6: false, host: '127.0.0.1', port: 27017 },
            address: '127.0.0.1:27017',
            type: 'Unknown',
            hosts: [],
            passives: [],
            arbiters: [],
            tags: {},
            minWireVersion: 0,
            maxWireVersion: 0,
            roundTripTime: -1,
            lastUpdateTime: 62778232000,
            lastWriteDate: 0,
            error: MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
                at connectionFailureError (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:381:20)
                at Socket.<anonymous> (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:301:22)
                at Object.onceWrapper (events.js:520:26)
                at Socket.emit (events.js:400:28)
                at Socket.emit (domain.js:475:12)
                at emitErrorNT (internal/streams/destroy.js:106:8)
                at emitErrorCloseNT (internal/streams/destroy.js:74:3)
                at processTicksAndRejections (internal/process/task_queues.js:82:21)
          }
        },
        stale: false,
        compatible: true,
        heartbeatFrequencyMS: 10000,
        localThresholdMS: 15,
        setName: 'meteor',
        maxSetVersion: 1,
        maxElectionId: ObjectId {
          [Symbol(id)]: Buffer(12) [Uint8Array] [
            127, 255, 255, 255, 0,
              0,   0,   0,   0, 0,
              0,   9
          ]
        },
        commonWireVersion: 7,
        logicalSessionTimeoutMinutes: undefined
      }
    }
    => Setting node version
    NODE_VERSION=14.19.0
    v14.19.0 is already installed.
    Now using node v14.19.0 (npm v6.14.16)
    default -> 14.19.0 (-> v14.19.0 *)
    => Starting meteor app on port 3000

    => Redeploying previous version of the app

          ------------------------------------STDOUT------------------------------------
          IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    IP: 172.17.0.5
    => Container status:
    restarted: 1 times {"Bridge":"","SandboxID":"c60a4e160bc671df5410c21ac9aa512e481816ab0b56b48ce1bab6ea60efb48d","HairpinMode":false,"LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"Ports":{"3000/tcp":null},"SandboxKey":"/var/run/docker/netns/c60a4e160bc6","SecondaryIPAddresses":null,"SecondaryIPv6Addresses":null,"EndpointID":"4009aed32f96d004d2468656f90a32f34fa1e2d606bde6abeb8140b88c3f009d","Gateway":"172.17.0.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.0.5","IPPrefixLen":16,"IPv6Gateway":"","MacAddress":"02:42:ac:11:00:05","Networks":{"bridge":{"IPAMConfig":null,"Links":null,"Aliases":null,"NetworkID":"d0ffcfff60c160e01b278015836d819aeefd16a5dc5b705ff35fc498baee6064","EndpointID":"4009aed32f96d004d2468656f90a32f34fa1e2d606bde6abeb8140b88c3f009d","Gateway":"172.17.0.1","IPAddress":"172.17.0.5","IPPrefixLen":16,"IPv6Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"MacAddress":"02:42:ac:11:00:05","DriverOpts":null}}} {"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":568,"ExitCode":0,"Error":"","StartedAt":"2022-02-09T09:02:57.63539759Z","FinishedAt":"2022-02-09T09:02:57.074547043Z"}

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

          ------------------------------------------------------------------------------
guidouil commented 2 years ago

I have the same kind of issue with Meteor 2.6.0 The install of mongodb version 5.0.5 works thought

philipmjohnson commented 2 years ago

I can confirm that I get the same issue when doing a fresh deployment using Meteor 2.6 and Mongo 5.0.

My mup.js:

module.exports = {
  servers: { one: { host: 'radgrad-comp-eng.design', username: 'root', password: '<removed>' } },
  hooks: {
    'post.deploy': { localCommand: 'mup logs' }
  },
  app: {
    name: 'radgrad',
    path: '../',
    servers: { one: {}},
    buildOptions: { serverOnly: true, debug: false, },
    env: {
      ROOT_URL: 'https://radgrad-comp-eng.design',
      MONGO_URL: 'mongodb://mongodb/meteor',
      MONGO_OPLOG_URL: 'mongodb://mongodb/local',
    },
    docker: { image: 'zodern/meteor:latest' },
    enableUploadProgressBar: true,
    deployCheckWaitTime: 900
  },
  mongo: { version: '5.0', servers: { one: {} } },
  proxy: {
    domains: 'radgrad-comp-eng.design',
    ssl: { letsEncryptEmail: 'johnson@hawaii.edu', forceSSL: true }
  }
};

The results of running mup setup:

$ mup setup

Started TaskList: Setup Docker
[radgrad-comp-eng.design] - Setup Docker
[radgrad-comp-eng.design] - Setup Docker: SUCCESS

Started TaskList: Setup Meteor
[radgrad-comp-eng.design] - Setup Environment
[radgrad-comp-eng.design] - Setup Environment: SUCCESS

Started TaskList: Setup Mongo
[radgrad-comp-eng.design] - Setup Environment
[radgrad-comp-eng.design] - Setup Environment: SUCCESS
[radgrad-comp-eng.design] - Copying Mongo Config
[radgrad-comp-eng.design] - Copying Mongo Config: SUCCESS

Started TaskList: Start Mongo
[radgrad-comp-eng.design] - Start Mongo
[radgrad-comp-eng.design] - Start Mongo: SUCCESS

Started TaskList: Setup proxy
[radgrad-comp-eng.design] - Setup Environment
[radgrad-comp-eng.design] - Setup Environment: SUCCESS
[radgrad-comp-eng.design] - Pushing the Startup Script
[radgrad-comp-eng.design] - Pushing the Startup Script: SUCCESS
[radgrad-comp-eng.design] - Pushing Nginx Config Template
[radgrad-comp-eng.design] - Pushing Nginx Config Template: SUCCESS
[radgrad-comp-eng.design] - Pushing Nginx Config
[radgrad-comp-eng.design] - Pushing Nginx Config: SUCCESS
[radgrad-comp-eng.design] - Cleaning Up SSL Certificates
[radgrad-comp-eng.design] - Cleaning Up SSL Certificates: SUCCESS
[radgrad-comp-eng.design] - Configure Nginx Upstream
[radgrad-comp-eng.design] - Configure Nginx Upstream: SUCCESS

Started TaskList: Start proxy
[radgrad-comp-eng.design] - Start proxy
[radgrad-comp-eng.design] - Start proxy: SUCCESS

Next, you should run:
    mup deploy

(Partial) results when running mup deploy:

$ mup deploy
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
[radgrad-comp-eng.design] - Pushing Meteor App Bundle to the Server
[radgrad-comp-eng.design] - Pushing Meteor App Bundle to the Server: SUCCESS

Started TaskList: Prepare App Bundle
[radgrad-comp-eng.design] - Prepare Bundle
[radgrad-comp-eng.design] - Prepare Bundle: SUCCESS

Started TaskList: Configuring App
[radgrad-comp-eng.design] - Pushing the Startup Script
[radgrad-comp-eng.design] - Pushing the Startup Script: SUCCESS
[radgrad-comp-eng.design] - Sending Environment Variables
[radgrad-comp-eng.design] - Sending Environment Variables: SUCCESS

Started TaskList: Start Meteor
[radgrad-comp-eng.design] - Start Meteor
[radgrad-comp-eng.design] - Start Meteor: SUCCESS
[radgrad-comp-eng.design] - Verifying Deployment
[radgrad-comp-eng.design] x Verifying Deployment: FAILED

          ------------------------------------STDERR------------------------------------
          0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    curl: (7) Failed to connect to 172.17.0.5 port 3000: Connection refused
    => Logs:
            passives: [],
            arbiters: [],
            tags: {},
            minWireVersion: 0,
            maxWireVersion: 0,
            roundTripTime: -1,
            lastUpdateTime: 29893828830,
            lastWriteDate: 0,
            error: MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
                at connectionFailureError (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:381:20)
                at Socket.<anonymous> (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:301:22)
                at Object.onceWrapper (events.js:520:26)
                at Socket.emit (events.js:400:28)
                at Socket.emit (domain.js:475:12)
                at emitErrorNT (internal/streams/destroy.js:106:8)
                at emitErrorCloseNT (internal/streams/destroy.js:74:3)
                at processTicksAndRejections (internal/process/task_queues.js:82:21)
          }
        },
        stale: false,
        compatible: true,
        heartbeatFrequencyMS: 10000,
        localThresholdMS: 15,
        setName: 'meteor',
        maxSetVersion: 1,
        maxElectionId: ObjectId {
          [Symbol(id)]: Buffer(12) [Uint8Array] [
            127, 255, 255, 255, 0,
              0,   0,   0,   0, 0,
              0,   1
          ]
        },
        commonWireVersion: 13,
        logicalSessionTimeoutMinutes: undefined
      }
    }
    => Setting node version
    NODE_VERSION=14.18.3
    v14.18.3 is already installed.
    Now using node v14.18.3 (npm v6.14.15)
    default -> 14.18.3 (-> v14.18.3 *)
    => Starting meteor app on port 3000
    /built_app/programs/server/node_modules/fibers/future.js:313
                            throw(ex);
                            ^

    MongoServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017
        at Timeout._onTimeout (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/sdam/topology.js:312:38)
        at listOnTimeout (internal/timers.js:557:17)
        at processTimers (internal/timers.js:500:7) {
      reason: TopologyDescription {
        type: 'ReplicaSetNoPrimary',
        servers: Map(1) {
          '127.0.0.1:27017' => ServerDescription {
            _hostAddress: HostAddress { isIPv6: false, host: '127.0.0.1', port: 27017 },
            address: '127.0.0.1:27017',
            type: 'Unknown',
            hosts: [],
            passives: [],
            arbiters: [],
            tags: {},
            minWireVersion: 0,
            maxWireVersion: 0,
            roundTripTime: -1,
            lastUpdateTime: 29893863620,
            lastWriteDate: 0,
            error: MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
                at connectionFailureError (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:381:20)
                at Socket.<anonymous> (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:301:22)
                at Object.onceWrapper (events.js:520:26)
                at Socket.emit (events.js:400:28)
                at Socket.emit (domain.js:475:12)
                at emitErrorNT (internal/streams/destroy.js:106:8)
                at emitErrorCloseNT (internal/streams/destroy.js:74:3)
                at processTicksAndRejections (internal/process/task_queues.js:82:21)
          }
        },
        stale: false,
        compatible: true,
        heartbeatFrequencyMS: 10000,
        localThresholdMS: 15,
        setName: 'meteor',
        maxSetVersion: 1,
        maxElectionId: ObjectId {
          [Symbol(id)]: Buffer(12) [Uint8Array] [
            127, 255, 255, 255, 0,
              0,   0,   0,   0, 0,
              0,   1
          ]
        },
        commonWireVersion: 13,
        logicalSessionTimeoutMinutes: undefined
      }
    }
    => Setting node version
    NODE_VERSION=14.18.3
    v14.18.3 is already installed.
    Now using node v14.18.3 (npm v6.14.15)
    default -> 14.18.3 (-> v14.18.3 *)
    => Starting meteor app on port 3000

          ------------------------------------STDOUT------------------------------------
          IP: 172.17.0.5
    IP: 172.17.0.5
(etc)
zodern commented 2 years ago

This should be fixed in mup 2.5.6. It seems the latest mongo driver tried using the hostname in the replica set config instead of the one in the MONGO_URL.

guidouil commented 2 years ago

I can confirm it works with mup 1.5.6 and Meteor 2.6 with MongoDB 5.0.5 Thanks a lot to work on sundays Mr @zodern ༼ つ ◕_◕ ༽つ

philipmjohnson commented 2 years ago

Worked for me too! Thanks very much @zodern !

Steps:

$ npm install -g mup 
$ mup setup
$ mup deploy
ayalpani commented 2 years ago

Does not seem to work for me. So I am using mup 1.5.7

$ mup --version
1.5.7

...to install a meteor 2.6 project. I have mongodb server 5.0.6 installed on an Ubuntu server. This is my config:

module.exports = {
    servers: {
      one: {
        host: "xxx",
        username: "xxxx",
        password: "xxx",
      },
    },

    app: {
      name: "xxx",
      path: "../",

      servers: {
        one: {},
      },

      buildOptions: {
        serverOnly: true,
      },

      env: {
        ROOT_URL: "http://xxx",

        // Tried all these combinations:
        //MONGO_URL: "mongodb://localhost/meteor",
        //MONGO_URL: "mongodb://mongodb/meteor",
        MONGO_URL: "mongodb://mongodb:27017/",

        MONGO_OPLOG_URL: "mongodb://mongodb/local",
      },

      docker: {
        image: "zodern/meteor:root",
      },
      enableUploadProgressBar: true,
    },
};

My mongodb server is up and running. This I made sure by logging into my root server and running the mongo shell:

$ mongo 
MongoDB shell version v5.0.6
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("0af5aef0-7178-4f5c-bc19-9e181783ebc7") }
MongoDB server version: 5.0.6

Unfortunately after doing

mup  setup
mup deploy

This is what I get as a result:

$ mup deploy
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
[45.83.105.43] - Pushing Meteor App Bundle to the Server
[45.83.105.43] - Pushing Meteor App Bundle to the Server: SUCCESS

Started TaskList: Prepare App Bundle
[45.83.105.43] - Prepare Bundle
[45.83.105.43] - Prepare Bundle: SUCCESS

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

Started TaskList: Start Meteor
[45.83.105.43] - Start Meteor
[45.83.105.43] - Start Meteor: SUCCESS
[45.83.105.43] - Verifying Deployment
[45.83.105.43] x Verifying Deployment: FAILED

          ------------------------------------STDERR------------------------------------
          n 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:
    => Setting node version
    NODE_VERSION=14.18.3
    v14.18.3 is already installed.
    Now using node v14.18.3 (npm v6.14.15)
    default -> 14.18.3 (-> v14.18.3 *)
    => Starting meteor app on port 3000
    /built_app/programs/server/node_modules/fibers/future.js:313
                            throw(ex);
                            ^

    MongoServerSelectionError: getaddrinfo ENOTFOUND mongodb
        at Timeout._onTimeout (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/sdam/topology.js:312:38)
        at listOnTimeout (internal/timers.js:557:17)
        at processTimers (internal/timers.js:500:7) {
      reason: TopologyDescription {
        type: 'Unknown',
        servers: Map(1) {
          'mongodb:27017' => ServerDescription {
            _hostAddress: HostAddress { isIPv6: false, host: 'mongodb', port: 27017 },
            address: 'mongodb:27017',
            type: 'Unknown',
            hosts: [],
            passives: [],
            arbiters: [],
            tags: {},
            minWireVersion: 0,
            maxWireVersion: 0,
            roundTripTime: -1,
            lastUpdateTime: 10221855570,
            lastWriteDate: 0,
            error: MongoNetworkError: getaddrinfo ENOTFOUND mongodb
                at connectionFailureError (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:381:20)
                at Socket.<anonymous> (/built_app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:301:22)
                at Object.onceWrapper (events.js:520:26)
                at Socket.emit (events.js:400:28)
                at Socket.emit (domain.js:475:12)
                at emitErrorNT (internal/streams/destroy.js:106:8)
                at emitErrorCloseNT (internal/streams/destroy.js:74:3)
                at processTicksAndRejections (internal/process/task_queues.js:82:21)
          }
        },
        stale: false,
        compatible: true,
        heartbeatFrequencyMS: 10000,
        localThresholdMS: 15,
        logicalSessionTimeoutMinutes: undefined
      }
    }
    => Setting node version
    NODE_VERSION=14.18.3
    v14.18.3 is already installed.
    Now using node v14.18.3 (npm v6.14.15)
    default -> 14.18.3 (-> v14.18.3 *)
    => Starting meteor app on port 3000

    => 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
    CONTAINER IP EMPTY
    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":"e752069b74ddc371021dcd71ad3c169495e2f3e1b8e8a87dcf9d4f2259b27361","HairpinMode":false,"LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"Ports":{"3000/tcp":[{"HostIp":"0.0.0.0","HostPort":"80"}]},"SandboxKey":"/var/run/docker/netns/e752069b74dd","SecondaryIPAddresses":null,"SecondaryIPv6Addresses":null,"EndpointID":"d7be0940389c62967163205827ca2627fd73f2d4b3578fb2e060815986a2f7d8","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":"04364a840b28dc3e4c0ded0c2e18517e62f6dce4841f02c00b49690593ce8baf","EndpointID":"d7be0940389c62967163205827ca2627fd73f2d4b3578fb2e060815986a2f7d8","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":763238,"ExitCode":0,"Error":"","StartedAt":"2022-02-17T12:59:19.610840255Z","FinishedAt":"2022-02-17T12:59:19.232867451Z"}

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

          ------------------------------------------------------------------------------

As you can see in my config, I habe tried to access my mongodb instance via:

1. MONGO_URL: "mongodb://localhost/meteor",
2. MONGO_URL: "mongodb://mongodb/meteor",
3. MONGO_URL: "mongodb://mongodb:27017/",

The outcome is always the same. Any ideas what I might get wrong? Thanks!