Getting error when running 'mup.cmd reconfig': Cannot read property 'master' of undefined

I’m trying to ‘reconfigure’ an old meteor deployment from a few years ago. It uses the Telescope App, is hosted on Digital Ocean, with the database on Compose.Io. Compose required me to upgrade my database, so I have to point the app to the new database.

It’s from so long ago and I’ve since gotten a new computer, so I had to reinstall meteor and npm and all that on my new PC. From what I can tell, the app is still running meteor 1.2.1 (in the app, i checked the /.meteor/release file and it said: METEOR@1.2.1).

I created a “mup.js” file from the info I had in my “mup.json” file and I am trying to run “mup.cmd reconfig” but am getting this error message:

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

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

          ------------------------------------STDERR------------------------------------
          on how Node.js was installed on your system, you
    npm WARN deprecated may need to prefix the preceding commands with `sudo`, or if
    npm WARN deprecated on Windows, run them from an Administrator prompt.)
    npm WARN deprecated
    npm WARN deprecated If you're running the version of npm bundled with
    npm WARN deprecated Node.js 0.10 LTS, be aware that the next version of 0.10 LTS
    npm WARN deprecated will be bundled with a version of npm@2, which has some small
    npm WARN deprecated backwards-incompatible changes made to `npm run-script` and
    npm WARN deprecated semver behavior.
    npm WARN package.json meteor-dev-bundle@0.0.0 No description
    npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
    npm WARN package.json meteor-dev-bundle@0.0.0 No README data
    => Starting meteor app on port:80

    /bundle/bundle/programs/server/node_modules/fibers/future.js:278
                                                    throw(ex);
                                                          ^
    TypeError: Cannot read property 'master' of undefined
        at Object.Future.wait (/bundle/bundle/programs/server/node_modules/fibers/future.js:398:15)
        at new MongoConnection (packages/mongo/mongo_driver.js:213:1)
        at new MongoInternals.RemoteCollectionDriver (packages/mongo/remote_collection_driver.js:4:1)
        at Object.<anonymous> (packages/mongo/remote_collection_driver.js:38:1)
        at Object.defaultRemoteCollectionDriver (packages/underscore/underscore.js:750:1)
        at new Mongo.Collection (packages/mongo/collection.js:102:1)
        at AccountsServer.AccountsCommon (accounts_common.js:23:18)
        at new AccountsServer (accounts_server.js:16:5)
        at Package (globals_server.js:5:12)
        at /bundle/bundle/programs/server/packages/accounts-base.js:1814:4
        - - - - -
        at packages/mongo/mongo_driver.js:183:1
        at runWithEnvironment (packages/meteor/dynamics_nodejs.js:110:1)
    npm WARN deprecated This version of npm lacks support for important features,
    npm WARN deprecated such as scoped packages, offered by the primary npm
    npm WARN deprecated registry. Consider upgrading to at least npm@2, if not the
    npm WARN deprecated latest stable version. To upgrade to npm@2, run:
    npm WARN deprecated
    npm WARN deprecated   npm -g install npm@latest-2
    npm WARN deprecated
    npm WARN deprecated To upgrade to the latest stable version, run:
    npm WARN deprecated
    npm WARN deprecated   npm -g install npm@latest
    npm WARN deprecated
    npm WARN deprecated (Depending on how Node.js was installed on your system, you
    npm WARN deprecated may need to prefix the preceding commands with `sudo`, or if
    npm WARN deprecated on Windows, run them from an Administrator prompt.)
    npm WARN deprecated
    npm WARN deprecated If you're running the version of npm bundled with
    npm WARN deprecated Node.js 0.10 LTS, be aware that the next version of 0.10 LTS
    npm WARN deprecated will be bundled with a version of npm@2, which has some small
    npm WARN deprecated backwards-incompatible changes made to `npm run-script` and
    npm WARN deprecated semver behavior.
    npm WARN package.json meteor-dev-bundle@0.0.0 No description
    npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
    npm WARN package.json meteor-dev-bundle@0.0.0 No README data
    => Starting meteor app on port:80

    /bundle/bundle/programs/server/node_modules/fibers/future.js:278
                                                    throw(ex);
                                                          ^
    TypeError: Cannot read property 'master' of undefined
        at Object.Future.wait (/bundle/bundle/programs/server/node_modules/fibers/future.js:398:15)
        at new MongoConnection (packages/mongo/mongo_driver.js:213:1)
        at new MongoInternals.RemoteCollectionDriver (packages/mongo/remote_collection_driver.js:4:1)
        at Object.<anonymous> (packages/mongo/remote_collection_driver.js:38:1)
        at Object.defaultRemoteCollectionDriver (packages/underscore/underscore.js:750:1)
        at new Mongo.Collection (packages/mongo/collection.js:102:1)
        at AccountsServer.AccountsCommon (accounts_common.js:23:18)
        at new AccountsServer (accounts_server.js:16:5)
        at Package (globals_server.js:5:12)
        at /bundle/bundle/programs/server/packages/accounts-base.js:1814:4
        - - - - -
        at packages/mongo/mongo_driver.js:183:1
        at runWithEnvironment (packages/meteor/dynamics_nodejs.js:110:1)

    => Redeploying previous version of the app


          ------------------------------------STDOUT------------------------------------
          indings": {
                "80/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "80"
                    }
                ]
            },
            "Links": null,
            "PublishAllPorts": false,
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "VolumesFrom": null,
            "Devices": [],
            "NetworkMode": "default",
            "IpcMode": "",
            "PidMode": "",
            "UTSMode": "",
            "CapAdd": null,
            "CapDrop": null,
            "GroupAdd": null,
            "RestartPolicy": {
                "Name": "always",
                "MaximumRetryCount": 0
            },
            "SecurityOpt": null,
            "ReadonlyRootfs": false,
            "Ulimits": null,
            "LogConfig": {
                "Type": "json-file",
                "Config": {
                    "max-file": "10",
                    "max-size": "100m"
                }
            },
            "CgroupParent": "",
            "ConsoleSize": [
                0,
                0
            ],
            "VolumeDriver": ""
        },
        "GraphDriver": {
            "Name": "aufs",
            "Data": null
        },
        "Mounts": [
            {
                "Source": "/opt/OpenSourceHigh/current",
                "Destination": "/bundle",
                "Mode": "",
                "RW": true
            }
        ],
        "Config": {
            "Hostname": "OSHvideosub-OpenSourceHigh",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "80/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "ROOT_URL=http://localhost",
                "PORT=80",
                "ROOT_URL=http://videos.opensourcehigh.com",
                "MONGO_URL=mongodb://flantascience:[PASSWORD]@portal-ssl3666-4.pun-chat-mongo.103302402.composedb.com:33651,portal-ssl1845-25.pun-chat-mongo.103302402.composedb.com:33651/OSHvideos?authSource=admin\u0026ssl=true",
                "MONGO_OPLOG_URL=mongodb://oploguser:[PASSWORD]@aws-us-east-1-portal.34.dblayer.com:33661/local?authSource=admin\u0026ssl=true",
                "MAIL_URL=smtp://postmaster%40opensourcehigh.com:66db5f9740887552268d14dec225bfad@smtp.mailgun.org:25",
                "METEOR_SETTINGS={\"public\":{}}",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "METEORD_DIR=/opt/meteord"
            ],
            "Cmd": null,
            "Image": "kadirahq/meteord",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": [
                "/bin/sh",
                "-c",
                "bash $METEORD_DIR/run_app.sh"
            ],
            "OnBuild": null,
            "Labels": {},
            "StopSignal": "SIGTERM"
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "1c2e22421ed4c5514d07cca1c24380e91070ead7dbf6a7bc4119fcf142fbd980",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "80/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "80"
                    }
                ]
            },
            "SandboxKey": "/var/run/docker/netns/1c2e22421ed4",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "0ce2c54bdc75482ee111524e5743ceaa7c78e9897025e06b324efd712e3c476e",
            "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": {
                    "EndpointID": "0ce2c54bdc75482ee111524e5743ceaa7c78e9897025e06b324efd712e3c476e",
                    "Gateway": "172.17.0.1",
                    "IPAddress": "172.17.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:11:00:02"
                }
            }
        }
    }
    ]
    => Logs:

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


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

Can you connect to Mongo from just your terminal? ie: mongo <MONGO_URL>?
When I have issues like that it is usually because my Mongo_url is incorrect of the mongo replicaset is not setup correctly.

Interesting… when I use the command prompt and enter:

mongo mongodb://flantascience:[PASSWORD]@portal-ssl3666-4.pun-chat-mongo.103302402.composedb.com:33651,portal-ssl1845-25.pun-chat-mongo.103302402.composedb.com:33651/OSHvideos?authSource=admin&ssl=true

it tells me this error:
FailedToParse: Cannot list multiple servers in URL without ‘replicaSet’ option
try ‘mongo --help’ for more information
‘ssl’ is not recognized as an internal or external command,
operable program or batch file.

In latest Mongo version I believe it is required to add &replicaSet=<replica set name> to the Mongo and Oplogger url. It might be slightly different with Compose.io

Generally, I’m able to connect to my mongo server using this command, but it’s not necessarily connecting me to a specific database on that server, just the server as a whole:

mongo --ssl --sslAllowInvalidCertificates portal-ssl3666-4.pun-chat-mongo.103302402.composedb.com:33651/compose -u flantascience -p [PASSWORD] --authenticationDatabase admin