Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not download version other than default (Error: connect ECONNREFUSED 127.0.0.1:443) #600

Closed
Pipo93 opened this issue Jan 20, 2022 · 19 comments

Comments

@Pipo93
Copy link

Pipo93 commented Jan 20, 2022

Versions

  • NodeJS: v14.16.0
  • mongodb-memory-server-*: 8.2.0
  • mongodb(the binary version): 4.2.10 (but any other than 5.0.3 as well)
  • mongodb(the js package): 3.5.5
  • mongoose: 5.9.6
  • system: MacOS (Big Sur 11.6)

package: mongodb-memory-server

What is the Problem?

When running our jest tests, we try to set a specific version 4.2.10 to use the same version as on our infrastructure. After upgrading the mongodb-memory-server package to version 8.2.0 we run into issues and binaries are not downloaded. Error Error: connect ECONNREFUSED 127.0.0.1:443 is thrown.

Code Example

package.json config:

{
...
"config": {
    "mongodbMemoryServer": {
      "debug": 1,
      "version": "4.2.10",
      "downloadDir": "../../common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries"
    }
  }
}

Code:

  const mongod = new MongoMemoryServer();

  await mongod.start();

  const mongodConnectionUri = await mongod.getUri();

Debug Output

Debug Output
Running "run:jest" (run) task
2022-01-20T10:30:09.659Z MongoMS:ResolveConfig Debug Mode Enabled, through package.json
2022-01-20T10:30:09.875Z MongoMS:MongoMemoryServer Mongo[unknown]: start: Called .start() method
2022-01-20T10:30:09.875Z MongoMS:MongoMemoryServer Mongo[unknown]: _startUpInstance: Called MongoMemoryServer._startUpInstance() method
2022-01-20T10:30:09.875Z MongoMS:MongoMemoryServer Mongo[unknown]: getStartOptions: forceSamePort: true
2022-01-20T10:30:09.879Z MongoMS:MongoMemoryServer Mongo[unknown]: _startUpInstance: Creating new MongoDB instance with options: {
  instance: {
    port: 63716,
    dbName: '',
    ip: '127.0.0.1',
    storageEngine: 'ephemeralForTest',
    replSet: undefined,
    dbPath: '/var/folders/94/3vjl21z903qgj1q61hb7dn5w0000gp/T/mongo-mem--37228-QqvjoQcXRJUO',
    tmpDir: {
      name: '/var/folders/94/3vjl21z903qgj1q61hb7dn5w0000gp/T/mongo-mem--37228-QqvjoQcXRJUO',
      removeCallback: [Function: _cleanupCallback]
    },
    args: undefined,
    auth: undefined
  },
  binary: {
    downloadDir: '/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries'
  },
  spawn: undefined
}
2022-01-20T10:30:09.881Z MongoMS:MongoInstance create: Called .create() method
2022-01-20T10:30:09.881Z MongoMS:MongoInstance Mongo[63716]: start
2022-01-20T10:30:09.881Z MongoMS:MongoBinary getPath
2022-01-20T10:30:09.881Z MongoMS:DryMongoBinary generateOptions
2022-01-20T10:30:09.881Z MongoMS:DryMongoBinary generateDownloadPath: Generating Download Path, preferGlobal: "true"
2022-01-20T10:30:09.882Z MongoMS:DryMongoBinary generatePaths {
  version: '4.2.10',
  downloadDir: '/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries',
  os: { os: 'darwin' },
  arch: 'x64',
  systemBinary: ''
}
2022-01-20T10:30:09.882Z MongoMS:DryMongoBinary getBinaryName
2022-01-20T10:30:09.882Z MongoMS:DryMongoBinary combineBinaryName
2022-01-20T10:30:09.882Z MongoMS:DryMongoBinary generatePaths: resolveConfigValue is not empty
2022-01-20T10:30:09.882Z MongoMS:DryMongoBinary combineBinaryName
2022-01-20T10:30:09.882Z MongoMS:DryMongoBinary combineBinaryName
2022-01-20T10:30:09.882Z MongoMS:DryMongoBinary generateDownloadPath: Paths: {
  legacyHomeCache: '/Users/pipo93/.cache/mongodb-binaries/mongod-x64-darwin-4.2.10',
  modulesCache: '',
  relative: '/Users/pipo93/projects/monorepo/apps/application/mongodb-binaries/mongod-x64-darwin-4.2.10',
  resolveConfig: '/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries/mongod-x64-darwin-4.2.10'
} 
2022-01-20T10:30:09.884Z MongoMS:DryMongoBinary generateDownloadPath: no existing binary for version "4.2.10" was found
2022-01-20T10:30:09.884Z MongoMS:DryMongoBinary generateDownloadPath: using resolveConfig (DOWNLOAD_DIR) "/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries/mongod-x64-darwin-4.2.10"
2022-01-20T10:30:09.884Z MongoMS:MongoBinary getPath: MongoBinary options: {
  "version": "4.2.10",
  "downloadDir": "/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries",
  "os": {
    "os": "darwin"
  },
  "arch": "x64",
  "systemBinary": "",
  "platform": "darwin",
  "checkMD5": false
}
2022-01-20T10:30:09.884Z MongoMS:DryMongoBinary locateBinary: Trying to locate Binary for version "4.2.10"
2022-01-20T10:30:09.884Z MongoMS:DryMongoBinary generateOptions
2022-01-20T10:30:09.884Z MongoMS:DryMongoBinary generateDownloadPath: Generating Download Path, preferGlobal: "true"
2022-01-20T10:30:09.884Z MongoMS:DryMongoBinary generatePaths {
  version: '4.2.10',
  downloadDir: '/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries',
  os: { os: 'darwin' },
  arch: 'x64',
  systemBinary: ''
}
2022-01-20T10:30:09.884Z MongoMS:DryMongoBinary getBinaryName
2022-01-20T10:30:09.884Z MongoMS:DryMongoBinary combineBinaryName
2022-01-20T10:30:09.884Z MongoMS:DryMongoBinary generatePaths: resolveConfigValue is not empty
2022-01-20T10:30:09.884Z MongoMS:DryMongoBinary combineBinaryName
2022-01-20T10:30:09.884Z MongoMS:DryMongoBinary combineBinaryName
2022-01-20T10:30:09.885Z MongoMS:DryMongoBinary generateDownloadPath: Paths: {
  legacyHomeCache: '/Users/pipo93/.cache/mongodb-binaries/mongod-x64-darwin-4.2.10',
  modulesCache: '',
  relative: '/Users/pipo93/projects/monorepo/apps/application/mongodb-binaries/mongod-x64-darwin-4.2.10',
  resolveConfig: '/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries/mongod-x64-darwin-4.2.10'
} 
2022-01-20T10:30:09.885Z MongoMS:DryMongoBinary generateDownloadPath: no existing binary for version "4.2.10" was found
2022-01-20T10:30:09.885Z MongoMS:DryMongoBinary generateDownloadPath: using resolveConfig (DOWNLOAD_DIR) "/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries/mongod-x64-darwin-4.2.10"
2022-01-20T10:30:09.885Z MongoMS:DryMongoBinary locateBinary: running generateDownloadPath
2022-01-20T10:30:09.885Z MongoMS:DryMongoBinary generateDownloadPath: Generating Download Path, preferGlobal: "true"
2022-01-20T10:30:09.885Z MongoMS:DryMongoBinary generatePaths {
  version: '4.2.10',
  downloadDir: '/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries',
  os: { os: 'darwin' },
  arch: 'x64',
  systemBinary: ''
}
2022-01-20T10:30:09.885Z MongoMS:DryMongoBinary getBinaryName
2022-01-20T10:30:09.885Z MongoMS:DryMongoBinary combineBinaryName
2022-01-20T10:30:09.885Z MongoMS:DryMongoBinary generatePaths: resolveConfigValue is not empty
2022-01-20T10:30:09.885Z MongoMS:DryMongoBinary combineBinaryName
2022-01-20T10:30:09.885Z MongoMS:DryMongoBinary combineBinaryName
2022-01-20T10:30:09.885Z MongoMS:DryMongoBinary generateDownloadPath: Paths: {
  legacyHomeCache: '/Users/pipo93/.cache/mongodb-binaries/mongod-x64-darwin-4.2.10',
  modulesCache: '',
  relative: '/Users/pipo93/projects/monorepo/apps/application/mongodb-binaries/mongod-x64-darwin-4.2.10',
  resolveConfig: '/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries/mongod-x64-darwin-4.2.10'
} 
2022-01-20T10:30:09.885Z MongoMS:DryMongoBinary generateDownloadPath: no existing binary for version "4.2.10" was found
2022-01-20T10:30:09.885Z MongoMS:DryMongoBinary generateDownloadPath: using resolveConfig (DOWNLOAD_DIR) "/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries/mongod-x64-darwin-4.2.10"
2022-01-20T10:30:09.885Z MongoMS:DryMongoBinary locateBinary: could not find a existing binary
2022-01-20T10:30:09.885Z MongoMS:MongoBinary getPath: "RUNTIME_DOWNLOAD" is "true", trying to download
2022-01-20T10:30:09.885Z MongoMS:MongoBinary download
2022-01-20T10:30:09.886Z MongoMS:MongoBinary download: Waiting to acquire Download lock for file "/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.2.10.lock"
2022-01-20T10:30:09.886Z MongoMS:LockFile lock: Locking file "/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.2.10.lock"
2022-01-20T10:30:09.886Z MongoMS:LockFile checkLock: for file "/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.2.10.lock" with uuid: "undefined"
2022-01-20T10:30:09.886Z MongoMS:LockFile createLock: trying to create a lock file for "/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.2.10.lock"
2022-01-20T10:30:09.887Z MongoMS:LockFile createLock: Lock File Created for file "/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.2.10.lock"
2022-01-20T10:30:09.887Z MongoMS:MongoBinary download: Download lock acquired
2022-01-20T10:30:09.887Z MongoMS:MongoBinary download: Adding version 4.2.10 to cache
2022-01-20T10:30:09.887Z MongoMS:MongoBinaryDownload getMongodPath
2022-01-20T10:30:09.888Z MongoMS:DryMongoBinary generateOptions
2022-01-20T10:30:09.888Z MongoMS:DryMongoBinary generateDownloadPath: Generating Download Path, preferGlobal: "true"
2022-01-20T10:30:09.888Z MongoMS:DryMongoBinary generatePaths {
  version: '4.2.10',
  downloadDir: '/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries',
  os: { os: 'darwin' },
  arch: 'x64',
  systemBinary: ''
}
2022-01-20T10:30:09.888Z MongoMS:DryMongoBinary getBinaryName
2022-01-20T10:30:09.888Z MongoMS:DryMongoBinary combineBinaryName
2022-01-20T10:30:09.888Z MongoMS:DryMongoBinary generatePaths: resolveConfigValue is not empty
2022-01-20T10:30:09.888Z MongoMS:DryMongoBinary combineBinaryName
2022-01-20T10:30:09.888Z MongoMS:DryMongoBinary combineBinaryName
2022-01-20T10:30:09.888Z MongoMS:DryMongoBinary generateDownloadPath: Paths: {
  legacyHomeCache: '/Users/pipo93/.cache/mongodb-binaries/mongod-x64-darwin-4.2.10',
  modulesCache: '',
  relative: '/Users/pipo93/projects/monorepo/apps/application/mongodb-binaries/mongod-x64-darwin-4.2.10',
  resolveConfig: '/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries/mongod-x64-darwin-4.2.10'
} 
2022-01-20T10:30:09.888Z MongoMS:DryMongoBinary generateDownloadPath: no existing binary for version "4.2.10" was found
2022-01-20T10:30:09.888Z MongoMS:DryMongoBinary generateDownloadPath: using resolveConfig (DOWNLOAD_DIR) "/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries/mongod-x64-darwin-4.2.10"
2022-01-20T10:30:09.888Z MongoMS:DryMongoBinary getBinaryName
2022-01-20T10:30:09.888Z MongoMS:DryMongoBinary combineBinaryName
2022-01-20T10:30:09.888Z MongoMS:MongoBinaryDownload startDownload
2022-01-20T10:30:09.889Z MongoMS:MongoBinaryDownloadUrl Using "mongodb-macos-x86_64-4.2.10.tgz" as the Archive String
2022-01-20T10:30:09.889Z MongoMS:MongoBinaryDownloadUrl Using "https://fastdl.mongodb.org" as the mirror
2022-01-20T10:30:09.889Z MongoMS:MongoBinaryDownload download
2022-01-20T10:30:09.889Z MongoMS:MongoBinaryDownload download: Downloading: "https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-4.2.10.tgz"
2022-01-20T10:30:09.889Z MongoMS:MongoBinaryDownload httpDownload
2022-01-20T10:30:09.890Z MongoMS:MongoBinaryDownload httpDownload: trying to download "https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-4.2.10.tgz"
Couldnt download "https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-4.2.10.tgz"! connect ECONNREFUSED 127.0.0.1:443
2022-01-20T10:30:09.904Z MongoMS:MongoBinary download: Removing Download lock
2022-01-20T10:30:09.904Z MongoMS:LockFile unlock: Unlocking file "/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.2.10.lock"
2022-01-20T10:30:09.904Z MongoMS:LockFile checkLock: for file "/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.2.10.lock" with uuid: "ed7af13a-0b49-4983-a528-5743d4fe15ea"
2022-01-20T10:30:09.905Z MongoMS:LockFile checkLock: Lock File Already exists, and is for *this* process, with uuid: "ed7af13a-0b49-4983-a528-5743d4fe15ea"
2022-01-20T10:30:09.905Z MongoMS:LockFile unlock: Lock Status was "availableInstance" for file "/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.2.10.lock"
2022-01-20T10:30:09.905Z MongoMS:LockFile unlockCleanup: for file "/Users/pipo93/projects/monorepo/common/temp/node_modules/.cache/mongodb-memory-server/mongodb-binaries/4.2.10.lock"
2022-01-20T10:30:09.905Z MongoMS:MongoBinary download: Download lock removed
2022-01-20T10:30:09.905Z MongoMS:MongoMemoryServer Mongo[unknown]: stop: Called .stop() method
2022-01-20T10:30:09.905Z MongoMS:MongoMemoryServer Mongo[unknown]: stop: "instanceInfo" is not defined (never ran?)
Error: connect ECONNREFUSED 127.0.0.1:443
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16)
Warning: non-zero exit code 1 Use --force to continue.

Aborted due to warnings.

Do you know why it happenes?

no

@Pipo93 Pipo93 added the bug label Jan 20, 2022
@hasezoey
Copy link
Collaborator

hasezoey commented Jan 20, 2022

i can help much with this, because i dont know macos, and also #483 (mongodb still has not resolved the issue)

but from what i can tell, https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-4.2.10.tgz is a valid link to be downloaded

do you maybe have some kind of firewall or custom dns or proxy activated that would redirect from the mentioned link to 127.0.0.1:443?

@hasezoey hasezoey added Module: Version-String Generation This problem is because of the Version-String Generation (MongoBinaryDownloadUrl) Needs More Information and removed Module: Version-String Generation This problem is because of the Version-String Generation (MongoBinaryDownloadUrl) labels Jan 20, 2022
@Pipo93
Copy link
Author

Pipo93 commented Jan 20, 2022

@hasezoey yes, downloading works well when opening the link in the browser. Even without Firewall this issue occurs. It also happens on Linux System for one of my colleagues.

It is working when using version mongodb-memory-server at version 6.9.3. So my guess was that it might be connected to a change done within this repository.

@hasezoey
Copy link
Collaborator

hasezoey commented Jan 20, 2022

It is working when using version mongodb-memory-server at version 6.9.3. So my guess was that it might be connected to a change done within this repository.

the only change that is related to that is that since then instead of using http module, https is now used

From what i can tell, this is not really a problem related to this package, because something external is redirecting to localhost instead of actual ip

Example things that could cause this:

  • firewall rules
  • weird proxy rules
  • dns blocking (like using pihole), this can be debugged with using dig fastdl.mongodb.org (in linux it is commonly in the package bind)

@AmitAmitSari
Copy link

For some reason, https is not using the url you pass to get.
Calling like so works:

httpOptions.host = "fastdl.mongodb.org";
httpOptions.path = "/win32/mongodb-win32-x86_64-2012plus-4.2.18.zip";
https.get(httpOptions, (response) => {

@hasezoey
Copy link
Collaborator

hasezoey commented Jan 25, 2022

For some reason, https is not using the url you pass to get.

what url and how did you try to set it?

also, the url gets generated in:

async getDownloadUrl(): Promise<string> {
const downloadUrl = resolveConfig(ResolveConfigVariables.DOWNLOAD_URL);
if (downloadUrl) {
log(`Using "${downloadUrl}" as the Download-URL`);
const url = new URL(downloadUrl); // check if this is an valid url
return url.toString();
}
const archive = await this.getArchiveName();
log(`Using "${archive}" as the Archive String`);
const mirror =
resolveConfig(ResolveConfigVariables.DOWNLOAD_MIRROR) ?? 'https://fastdl.mongodb.org';
log(`Using "${mirror}" as the mirror`);
const url = new URL(mirror);
// ensure that the "mirror" path ends with "/"
if (!url.pathname.endsWith('/')) {
url.pathname = url.pathname + '/';
}
// no extra "/" between "pathname" and "platfrom", because of the "if" statement above to ensure "url.pathname" to end with "/"
url.pathname = `${url.pathname}${this.platform}/${archive}`;
return url.toString();
}

and later then converted to a WhatWG URL object


PS:
i remembered that there is also the config option MONGOMS_USE_HTTP, could you check that this is set to true (or not set at all)?

also mabye check if npm_config_strict_ssl (environment variable) is set to true

@AmitAmitSari
Copy link

AmitAmitSari commented Jan 25, 2022

I just set MONGOMS_VERSION: '4.2.17'
MONGOMS_USE_HTTP is not set.

image

However, if I patch my local MongoBinaryDownload like so:

            log('httpDownload');
            const downloadUrl = this.assignDownloadingURL(url);
            return new Promise((resolve, reject) => {
                httpOptions.host = "fastdl.mongodb.org";
                httpOptions.path = "/win32/mongodb-win32-x86_64-2012plus-4.2.17.zip";
                log(`httpDownload: trying to download "${downloadUrl}"`);
                log(`httpDownload: httpOptions "${JSON.stringify(httpOptions)}"`);
                https_1.default
                    .get(httpOptions, (response) => { // notice the different call to https.get
                    if (response.statusCode != 200) {

image

@hasezoey
Copy link
Collaborator

However, if I patch my local MongoBinaryDownload like so:

could you provide what the following would output?:

log(`httpDownload: urlobj "${require('util').inspect(url)}"`);

also, is your nodejs version really 14.16.0?

@AmitAmitSari
Copy link

Sure,
Yes, process.version is v14.16.0
image

@hasezoey
Copy link
Collaborator

thanks for providing, but this makes me more clueless, i have no idea why it refuses to download with a URL object, instead of a POJO "url object"

@AmitAmitSari
Copy link

Of course!
I have no idea as well, but this definitely seems to be the issue. Is it not reproducible on your side?

http.get(url.toString(), (response) => {})

also worked for me.

@hasezoey
Copy link
Collaborator

Is it not reproducible on your side?

it is not, and that is why i am confused

@Pipo93
Copy link
Author

Pipo93 commented Feb 17, 2022

Somehow, the issue seems to be resolved and downloading works again on my machine. I'll close this issue.

@Pipo93 Pipo93 closed this as completed Feb 17, 2022
@aviadsteps
Copy link

Still going on for me

@hasezoey
Copy link
Collaborator

@aviadsteps if you still have this problem, please provide necessary information to debug it, like system information and debug information, Enable Debug Mode

@pdfowler
Copy link

I've been running into this in a handful of contexts, initially a few weeks ago when migrating my repos into a monorepo setup and using an ubuntu1804 image with semaphore CI. I've long had some issues with CI setup, and was able to wrk around it by being more explicit with my env variables.

Part of that involved changing my image version from v4.2.9 (where it had been for a long time) to the v4.2-latest which helped get my CI up and running. This broke the setup on my Mac and took me about an hour to work around. I think what finally resolved it was changing my config from the "latest" to a specific build (finally settled on v4.2.17).

Logs from last FAILED run

  MongoMS:ResolveConfig Debug Mode Enabled, through Environment Variable +0ms
  MongoMS:ResolveConfig findPackageJson: Found package.json at "/Users/pdfowler/shiftsmart/heracles/packages/api/package.json" +1ms
  MongoMS:ResolveConfig findPackageJson: Found package.json at "/Users/pdfowler/shiftsmart/heracles/package.json" +1ms
  MongoMS:ResolveConfig Debug Mode Enabled, through package.json +0ms
[07:47:05.153]	info	[channels.utils:23] 	Twilio Conversations IPM SID [test] - Channel Utils 
[07:47:06.056]	error	[scheduler:19] 	Initializing `isReady` Promise 


  "Invites" Service E2E tests
  MongoMS:MongoMemoryServer create: Called .create() method +0ms
  MongoMS:MongoMemoryServer Mongo[unknown]: start: Called .start() method +1ms
  MongoMS:MongoMemoryServer Mongo[unknown]: _startUpInstance: Called MongoMemoryServer._startUpInstance() method +0ms
  MongoMS:MongoMemoryServer Mongo[unknown]: getStartOptions: forceSamePort: false +0ms
  MongoMS:MongoMemoryServer Mongo[unknown]: _startUpInstance: Creating new MongoDB instance with options: {
  instance: {
    port: 58002,
    dbName: '74c15f02-816a-4703-b476-1e39b29b3251',
    ip: '127.0.0.1',
    storageEngine: 'ephemeralForTest',
    replSet: undefined,
    dbPath: '/var/folders/_y/yrvpytr97sxdj6lzrb7f5csh0000gq/T/mongo-mem--99924-F7Qkp7ojiSJU',
    tmpDir: {
      name: '/var/folders/_y/yrvpytr97sxdj6lzrb7f5csh0000gq/T/mongo-mem--99924-F7Qkp7ojiSJU',
      removeCallback: [Function: _cleanupCallback]
    },
    args: undefined,
    auth: undefined
  },
  binary: undefined,
  spawn: undefined
} +6ms
  MongoMS:MongoInstance create: Called .create() method +0ms
  MongoMS:MongoInstance Mongo[58002]: start +0ms
  MongoMS:MongoBinary getPath +0ms
  MongoMS:DryMongoBinary generateOptions +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Generating Download Path, preferGlobal: "true" +0ms
  MongoMS:DryMongoBinary generatePaths {
  version: 'v4.2-latest',
  downloadDir: '',
  os: { os: 'darwin' },
  arch: 'x64',
  systemBinary: ''
} +0ms
  MongoMS:DryMongoBinary getBinaryName +1ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Paths: {
  legacyHomeCache: '/Users/pdfowler/.cache/mongodb-binaries/mongod-x64-darwin-v4.2-latest',
  modulesCache: '/Users/pdfowler/shiftsmart/heracles/packages/api/node_modules/.cache/mongodb-memory-server/mongod-x64-darwin-v4.2-latest',
  relative: '/Users/pdfowler/shiftsmart/heracles/packages/api/mongodb-binaries/mongod-x64-darwin-v4.2-latest',
  resolveConfig: ''
}  +0ms
  MongoMS:DryMongoBinary generateDownloadPath: no existing binary for version "v4.2-latest" was found +1ms
  MongoMS:DryMongoBinary generateDownloadPath: using global (preferGlobal) "/Users/pdfowler/.cache/mongodb-binaries/mongod-x64-darwin-v4.2-latest" +1ms
  MongoMS:MongoBinary getPath: MongoBinary options: {
  "version": "v4.2-latest",
  "downloadDir": "/Users/pdfowler/.cache/mongodb-binaries",
  "os": {
    "os": "darwin"
  },
  "arch": "x64",
  "systemBinary": "",
  "platform": "darwin",
  "checkMD5": false
} +3ms
  MongoMS:DryMongoBinary locateBinary: Trying to locate Binary for version "v4.2-latest" +0ms
  MongoMS:DryMongoBinary generateOptions +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Generating Download Path, preferGlobal: "true" +0ms
  MongoMS:DryMongoBinary generatePaths {
  version: 'v4.2-latest',
  downloadDir: '/Users/pdfowler/.cache/mongodb-binaries',
  os: { os: 'darwin' },
  arch: 'x64',
  systemBinary: ''
} +0ms
  MongoMS:DryMongoBinary getBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary generatePaths: resolveConfigValue is not empty +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Paths: {
  legacyHomeCache: '/Users/pdfowler/.cache/mongodb-binaries/mongod-x64-darwin-v4.2-latest',
  modulesCache: '/Users/pdfowler/shiftsmart/heracles/packages/api/node_modules/.cache/mongodb-memory-server/mongod-x64-darwin-v4.2-latest',
  relative: '/Users/pdfowler/shiftsmart/heracles/packages/api/mongodb-binaries/mongod-x64-darwin-v4.2-latest',
  resolveConfig: '/Users/pdfowler/.cache/mongodb-binaries/mongod-x64-darwin-v4.2-latest'
}  +0ms
  MongoMS:DryMongoBinary generateDownloadPath: no existing binary for version "v4.2-latest" was found +1ms
  MongoMS:DryMongoBinary generateDownloadPath: using resolveConfig (DOWNLOAD_DIR) "/Users/pdfowler/.cache/mongodb-binaries/mongod-x64-darwin-v4.2-latest" +0ms
  MongoMS:DryMongoBinary locateBinary: running generateDownloadPath +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Generating Download Path, preferGlobal: "true" +0ms
  MongoMS:DryMongoBinary generatePaths {
  version: 'v4.2-latest',
  downloadDir: '/Users/pdfowler/.cache/mongodb-binaries',
  os: { os: 'darwin' },
  arch: 'x64',
  systemBinary: ''
} +0ms
  MongoMS:DryMongoBinary getBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary generatePaths: resolveConfigValue is not empty +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Paths: {
  legacyHomeCache: '/Users/pdfowler/.cache/mongodb-binaries/mongod-x64-darwin-v4.2-latest',
  modulesCache: '/Users/pdfowler/shiftsmart/heracles/packages/api/node_modules/.cache/mongodb-memory-server/mongod-x64-darwin-v4.2-latest',
  relative: '/Users/pdfowler/shiftsmart/heracles/packages/api/mongodb-binaries/mongod-x64-darwin-v4.2-latest',
  resolveConfig: '/Users/pdfowler/.cache/mongodb-binaries/mongod-x64-darwin-v4.2-latest'
}  +0ms
  MongoMS:DryMongoBinary generateDownloadPath: no existing binary for version "v4.2-latest" was found +1ms
  MongoMS:DryMongoBinary generateDownloadPath: using resolveConfig (DOWNLOAD_DIR) "/Users/pdfowler/.cache/mongodb-binaries/mongod-x64-darwin-v4.2-latest" +0ms
  MongoMS:DryMongoBinary locateBinary: could not find a existing binary +0ms
  MongoMS:MongoBinary getPath: "RUNTIME_DOWNLOAD" is "true", trying to download +2ms
  MongoMS:MongoBinary download +0ms
  MongoMS:MongoBinary download: Waiting to acquire Download lock for file "/Users/pdfowler/.cache/mongodb-binaries/v4.2-latest.lock" +0ms
  MongoMS:LockFile lock: Locking file "/Users/pdfowler/.cache/mongodb-binaries/v4.2-latest.lock" +0ms
  MongoMS:LockFile checkLock: for file "/Users/pdfowler/.cache/mongodb-binaries/v4.2-latest.lock" with uuid: "undefined" +0ms
  MongoMS:LockFile createLock: trying to create a lock file for "/Users/pdfowler/.cache/mongodb-binaries/v4.2-latest.lock" +0ms
  MongoMS:LockFile createLock: Lock File Created for file "/Users/pdfowler/.cache/mongodb-binaries/v4.2-latest.lock" +4ms
  MongoMS:MongoBinary download: Download lock acquired +5ms
  MongoMS:MongoBinary download: Adding version v4.2-latest to cache +0ms
  MongoMS:MongoBinaryDownload getMongodPath +0ms
  MongoMS:DryMongoBinary generateOptions +5ms
  MongoMS:DryMongoBinary generateDownloadPath: Generating Download Path, preferGlobal: "true" +0ms
  MongoMS:DryMongoBinary generatePaths {
  version: 'v4.2-latest',
  downloadDir: '/Users/pdfowler/.cache/mongodb-binaries',
  os: { os: 'darwin' },
  arch: 'x64',
  systemBinary: ''
} +0ms
  MongoMS:DryMongoBinary getBinaryName +1ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary generatePaths: resolveConfigValue is not empty +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Paths: {
  legacyHomeCache: '/Users/pdfowler/.cache/mongodb-binaries/mongod-x64-darwin-v4.2-latest',
  modulesCache: '/Users/pdfowler/shiftsmart/heracles/packages/api/node_modules/.cache/mongodb-memory-server/mongod-x64-darwin-v4.2-latest',
  relative: '/Users/pdfowler/shiftsmart/heracles/packages/api/mongodb-binaries/mongod-x64-darwin-v4.2-latest',
  resolveConfig: '/Users/pdfowler/.cache/mongodb-binaries/mongod-x64-darwin-v4.2-latest'
}  +0ms
  MongoMS:DryMongoBinary generateDownloadPath: no existing binary for version "v4.2-latest" was found +0ms
  MongoMS:DryMongoBinary generateDownloadPath: using resolveConfig (DOWNLOAD_DIR) "/Users/pdfowler/.cache/mongodb-binaries/mongod-x64-darwin-v4.2-latest" +0ms
  MongoMS:DryMongoBinary getBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:MongoBinaryDownload startDownload +2ms
  MongoMS:MongoBinaryDownloadUrl Using "mongodb-macos-x86_64-v4.2-latest.tgz" as the Archive String +0ms
  MongoMS:MongoBinaryDownloadUrl Using "https://fastdl.mongodb.org" as the mirror +0ms
  MongoMS:MongoBinaryDownload download +1ms
  MongoMS:MongoBinaryDownload download: Downloading: "https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-v4.2-latest.tgz" +0ms
  MongoMS:MongoBinaryDownload httpDownload +1ms
  MongoMS:MongoBinaryDownload httpDownload: trying to download "https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-v4.2-latest.tgz" +0ms
Couldnt download "https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-v4.2-latest.tgz"! connect ECONNREFUSED 127.0.0.1:443
  MongoMS:MongoBinary download: Removing Download lock +24ms
  MongoMS:LockFile unlock: Unlocking file "/Users/pdfowler/.cache/mongodb-binaries/v4.2-latest.lock" +25ms
  MongoMS:LockFile checkLock: for file "/Users/pdfowler/.cache/mongodb-binaries/v4.2-latest.lock" with uuid: "8ba363f1-9ac3-443a-991f-82ae82848ee1" +0ms
  MongoMS:LockFile checkLock: Lock File Already exists, and is for *this* process, with uuid: "8ba363f1-9ac3-443a-991f-82ae82848ee1" +1ms
  MongoMS:LockFile unlock: Lock Status was "availableInstance" for file "/Users/pdfowler/.cache/mongodb-binaries/v4.2-latest.lock" +0ms
  MongoMS:LockFile unlockCleanup: for file "/Users/pdfowler/.cache/mongodb-binaries/v4.2-latest.lock" +1ms
  MongoMS:MongoBinary download: Download lock removed +3ms
  MongoMS:MongoMemoryServer Mongo[unknown]: stop: Called .stop() method +40ms
  MongoMS:MongoMemoryServer Mongo[unknown]: stop: "instanceInfo" is not defined (never ran?) +1ms
[07:47:14.445]	error	[utils.mongodb:55:MongoInMem.init] 	Failed to setup MongoDB Memory Server connect ECONNREFUSED 127.0.0.1:443 
			{
			  "errno": -61,
			  "code": "ECONNREFUSED",
			  "syscall": "connect",
			  "address": "127.0.0.1",
			  "port": 443,
			  "stack": "Error: connect ECONNREFUSED 127.0.0.1:443\n    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16)"
			}

From last SUCCESSFUL run

$ cross-env NODE_ENV=test mocha --config=./test/.mocharc.js 'test/**/*.e2e.test.ts' -g @slow -i --timeout=120s
  MongoMS:ResolveConfig Debug Mode Enabled, through Environment Variable +0ms
  MongoMS:ResolveConfig findPackageJson: Found package.json at "/Users/pdfowler/shiftsmart/heracles/packages/api/package.json" +1ms
  MongoMS:ResolveConfig findPackageJson: Found package.json at "/Users/pdfowler/shiftsmart/heracles/package.json" +1ms
  MongoMS:ResolveConfig Debug Mode Enabled, through package.json +0ms
[07:57:23.162]	info	[channels.utils:23] 	Twilio Conversations IPM SID [test] - Channel Utils 
[07:57:24.291]	error	[scheduler:19] 	Initializing `isReady` Promise 


  "Invites" Service E2E tests
  MongoMS:MongoMemoryServer create: Called .create() method +0ms
  MongoMS:MongoMemoryServer Mongo[unknown]: start: Called .start() method +1ms
  MongoMS:MongoMemoryServer Mongo[unknown]: _startUpInstance: Called MongoMemoryServer._startUpInstance() method +0ms
  MongoMS:MongoMemoryServer Mongo[unknown]: getStartOptions: forceSamePort: false +0ms
  MongoMS:MongoMemoryServer Mongo[unknown]: _startUpInstance: Creating new MongoDB instance with options: {
  instance: {
    port: 60614,
    dbName: '7a04518d-5399-4967-8f5d-0557ceeef1e0',
    ip: '127.0.0.1',
    storageEngine: 'ephemeralForTest',
    replSet: undefined,
    dbPath: '/var/folders/_y/yrvpytr97sxdj6lzrb7f5csh0000gq/T/mongo-mem--780-Dp5YdbScA1by',
    tmpDir: {
      name: '/var/folders/_y/yrvpytr97sxdj6lzrb7f5csh0000gq/T/mongo-mem--780-Dp5YdbScA1by',
      removeCallback: [Function: _cleanupCallback]
    },
    args: undefined,
    auth: undefined
  },
  binary: undefined,
  spawn: undefined
} +5ms
  MongoMS:MongoInstance create: Called .create() method +0ms
  MongoMS:MongoInstance Mongo[60614]: start +0ms
  MongoMS:MongoBinary getPath +0ms
  MongoMS:DryMongoBinary generateOptions +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Generating Download Path, preferGlobal: "true" +0ms
  MongoMS:DryMongoBinary generatePaths {
  version: '4.2.17',
  downloadDir: '',
  os: { os: 'darwin' },
  arch: 'x64',
  systemBinary: ''
} +1ms
  MongoMS:DryMongoBinary getBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +1ms
  MongoMS:DryMongoBinary generateDownloadPath: Paths: {
  legacyHomeCache: '/Users/pdfowler/.cache/mongodb-binaries/mongod-x64-darwin-4.2.17',
  modulesCache: '/Users/pdfowler/shiftsmart/heracles/packages/api/node_modules/.cache/mongodb-memory-server/mongod-x64-darwin-4.2.17',
  relative: '/Users/pdfowler/shiftsmart/heracles/packages/api/mongodb-binaries/mongod-x64-darwin-4.2.17',
  resolveConfig: ''
}  +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Found binary in legacyHomeCache: "/Users/pdfowler/.cache/mongodb-binaries/mongod-x64-darwin-4.2.17" +0ms
  MongoMS:MongoBinary getPath: MongoBinary options: {
  "version": "4.2.17",
  "downloadDir": "/Users/pdfowler/.cache/mongodb-binaries",
  "os": {
    "os": "darwin"
  },
  "arch": "x64",
  "systemBinary": "",
  "platform": "darwin",
  "checkMD5": false
} +2ms
  MongoMS:DryMongoBinary locateBinary: Trying to locate Binary for version "4.2.17" +0ms
  MongoMS:DryMongoBinary generateOptions +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Generating Download Path, preferGlobal: "true" +1ms
  MongoMS:DryMongoBinary generatePaths {
  version: '4.2.17',
  downloadDir: '/Users/pdfowler/.cache/mongodb-binaries',
  os: { os: 'darwin' },
  arch: 'x64',
  systemBinary: ''
} +0ms
  MongoMS:DryMongoBinary getBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary generatePaths: resolveConfigValue is not empty +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Paths: {
  legacyHomeCache: '/Users/pdfowler/.cache/mongodb-binaries/mongod-x64-darwin-4.2.17',
  modulesCache: '/Users/pdfowler/shiftsmart/heracles/packages/api/node_modules/.cache/mongodb-memory-server/mongod-x64-darwin-4.2.17',
  relative: '/Users/pdfowler/shiftsmart/heracles/packages/api/mongodb-binaries/mongod-x64-darwin-4.2.17',
  resolveConfig: '/Users/pdfowler/.cache/mongodb-binaries/mongod-x64-darwin-4.2.17'
}  +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Found binary in resolveConfig (DOWNLOAD_DIR): "/Users/pdfowler/.cache/mongodb-binaries/mongod-x64-darwin-4.2.17" +0ms
  MongoMS:DryMongoBinary locateBinary: running generateDownloadPath +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Generating Download Path, preferGlobal: "true" +0ms
  MongoMS:DryMongoBinary generatePaths {
  version: '4.2.17',
  downloadDir: '/Users/pdfowler/.cache/mongodb-binaries',
  os: { os: 'darwin' },
  arch: 'x64',
  systemBinary: ''
} +0ms
  MongoMS:DryMongoBinary getBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +1ms
  MongoMS:DryMongoBinary generatePaths: resolveConfigValue is not empty +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Paths: {
  legacyHomeCache: '/Users/pdfowler/.cache/mongodb-binaries/mongod-x64-darwin-4.2.17',
  modulesCache: '/Users/pdfowler/shiftsmart/heracles/packages/api/node_modules/.cache/mongodb-memory-server/mongod-x64-darwin-4.2.17',
  relative: '/Users/pdfowler/shiftsmart/heracles/packages/api/mongodb-binaries/mongod-x64-darwin-4.2.17',
  resolveConfig: '/Users/pdfowler/.cache/mongodb-binaries/mongod-x64-darwin-4.2.17'
}  +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Found binary in resolveConfig (DOWNLOAD_DIR): "/Users/pdfowler/.cache/mongodb-binaries/mongod-x64-darwin-4.2.17" +0ms
  MongoMS:DryMongoBinary locateBinary: found binary at "/Users/pdfowler/.cache/mongodb-binaries/mongod-x64-darwin-4.2.17" +0ms
  MongoMS:MongoBinary getPath: Mongod binary path: "/Users/pdfowler/.cache/mongodb-binaries/mongod-x64-darwin-4.2.17" +2ms
  MongoMS:MongoInstance Mongo[60614]: start: Starting Processes +5ms
  MongoMS:MongoInstance Mongo[60614]: _launchMongod: Launching Mongod Process +1ms
  MongoMS:MongoInstance Mongo[60614]: prepareCommandArgs +0ms
  MongoMS:MongoInstance Mongo[60614]: prepareCommandArgs: final argument array:["--port","60614","--dbpath","/var/folders/_y/yrvpytr97sxdj6lzrb7f5csh0000gq/T/mongo-mem--780-Dp5YdbScA1by","--storageEngine","ephemeralForTest","--bind_ip","127.0.0.1","--noauth"] +0ms
  MongoMS:MongoInstance Mongo[60614]: _launchKiller: Launching Killer Process (parent: 780, child: 804) +29ms
  MongoMS:MongoInstance Mongo[60614]: stdoutHandler: ""2022-04-12T07:57:32.876+0000 I  CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"" +79ms
  MongoMS:MongoInstance Mongo[60614]: stdoutHandler: ""2022-04-12T07:57:32.885+0000 W  ASIO     [main] No TransportLayer configured during NetworkInterface startup"" +7ms
  MongoMS:MongoInstance Mongo[60614]: stdoutHandler: ""2022-04-12T07:57:32.886+0000 I  CONTROL  [initandlisten] MongoDB starting : pid=804 port=60614 dbpath=/var/folders/_y/yrvpytr97sxdj6lzrb7f5csh0000gq/T/mongo-mem--780-Dp5YdbScA1by 64-bit host=crysknife.local"" +1ms
  MongoMS:MongoInstance Mongo[60614]: stdoutHandler: ""2022-04-12T07:57:32.886+0000 I  CONTROL  [initandlisten] db version v4.2.17
  MongoMS:MongoInstance 2022-04-12T07:57:32.886+0000 I  CONTROL  [initandlisten] git version: be089838c55d33b6f6039c4219896ee4a3cd704f
  MongoMS:MongoInstance 2022-04-12T07:57:32.886+0000 I  CONTROL  [initandlisten] allocator: system
  MongoMS:MongoInstance 2022-04-12T07:57:32.886+0000 I  CONTROL  [initandlisten] modules: none
  MongoMS:MongoInstance 2022-04-12T07:57:32.886+0000 I  CONTROL  [initandlisten] build environment:
  MongoMS:MongoInstance 2022-04-12T07:57:32.886+0000 I  CONTROL  [initandlisten]     distarch: x86_64
  MongoMS:MongoInstance 2022-04-12T07:57:32.886+0000 I  CONTROL  [initandlisten]     target_arch: x86_64"" +0ms
  MongoMS:MongoInstance Mongo[60614]: stdoutHandler: ""2022-04-12T07:57:32.886+0000 I  CONTROL  [initandlisten] options: { net: { bindIp: "127.0.0.1", port: 60614 }, security: { authorization: "disabled" }, storage: { dbPath: "/var/folders/_y/yrvpytr97sxdj6lzrb7f5csh0000gq/T/mongo-mem--780-Dp5YdbScA1by", engine: "ephemeralForTest" } }"" +0ms
  MongoMS:MongoInstance Mongo[60614]: stdoutHandler: ""2022-04-12T07:57:32.888+0000 I  CONTROL  [initandlisten]"" +3ms
  MongoMS:MongoInstance Mongo[60614]: stdoutHandler: ""2022-04-12T07:57:32.888+0000 I  CONTROL  [initandlisten] ** NOTE: The ephemeralForTest storage engine is for testing only. 
  MongoMS:MongoInstance 2022-04-12T07:57:32.889+0000 I  CONTROL  [initandlisten] **       Do not use in production.
  MongoMS:MongoInstance 2022-04-12T07:57:32.889+0000 I  CONTROL  [initandlisten]"" +0ms
  MongoMS:MongoInstance Mongo[60614]: stdoutHandler: ""2022-04-12T07:57:32.889+0000 I  STORAGE  [initandlisten] createCollection: admin.system.version with provided UUID: 8914ca52-5144-4beb-93ed-a10f939df0d3 and options: { uuid: UUID("8914ca52-5144-4beb-93ed-a10f939df0d3") }"" +0ms
  MongoMS:MongoInstance Mongo[60614]: stdoutHandler: ""2022-04-12T07:57:32.890+0000 I  INDEX    [initandlisten] index build: done building index _id_ on ns admin.system.version"" +1ms
  MongoMS:MongoInstance Mongo[60614]: stdoutHandler: ""2022-04-12T07:57:32.890+0000 I  COMMAND  [initandlisten] setting featureCompatibilityVersion to 4.2"" +0ms
  MongoMS:MongoInstance Mongo[60614]: stdoutHandler: ""2022-04-12T07:57:32.890+0000 I  STORAGE  [initandlisten] Flow Control is enabled on this deployment."" +0ms
  MongoMS:MongoInstance Mongo[60614]: stdoutHandler: ""2022-04-12T07:57:32.891+0000 I  STORAGE  [initandlisten] createCollection: local.startup_log with generated UUID: aac6b02e-cf19-4e23-8e0c-0100873b0f27 and options: { capped: true, size: 10485760 }"" +1ms
  MongoMS:MongoInstance Mongo[60614]: stdoutHandler: ""2022-04-12T07:57:32.891+0000 I  INDEX    [initandlisten] index build: done building index _id_ on ns local.startup_log
  MongoMS:MongoInstance 2022-04-12T07:57:32.891+0000 I  FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/var/folders/_y/yrvpytr97sxdj6lzrb7f5csh0000gq/T/mongo-mem--780-Dp5YdbScA1by/diagnostic.data'"" +0ms
  MongoMS:MongoInstance Mongo[60614]: stdoutHandler: ""2022-04-12T07:57:32.895+0000 I  NETWORK  [listener] Listening on /tmp/mongodb-60614.sock"" +4ms
  MongoMS:MongoInstance Mongo[60614]: stdoutHandler: ""2022-04-12T07:57:32.895+0000 I  CONTROL  [LogicalSessionCacheReap] Sessions collection is not set up; waiting until next sessions reap interval: config.system.sessions does not exist
  MongoMS:MongoInstance 2022-04-12T07:57:32.895+0000 I  NETWORK  [listener] Listening on 127.0.0.1
  MongoMS:MongoInstance 2022-04-12T07:57:32.895+0000 I  STORAGE  [LogicalSessionCacheRefresh] createCollection: config.system.sessions with provided UUID: 4d351a6c-b935-4f22-aa13-92b5a67f1529 and options: { uuid: UUID("4d351a6c-b935-4f22-aa13-92b5a67f1529") }
  MongoMS:MongoInstance 2022-04-12T07:57:32.895+0000 I  NETWORK  [listener] waiting for connections on port 60614
  MongoMS:MongoInstance 2022-04-12T07:57:32.895+0000 I  INDEX    [LogicalSessionCacheRefresh] index build: done building index _id_ on ns config.system.sessions"" +1ms
  MongoMS:MongoInstance Mongo[60614]: constructor: Instance is ready! +0ms
  MongoMS:MongoInstance Mongo[60614]: start: Processes Started +1ms
  MongoMS:MongoMemoryServer Mongo[unknown]: _startUpInstance: Instance Started, createAuth: "false" +136ms
  MongoMS:MongoMemoryServer Mongo[60614]: start: Instance fully Started +0ms
  MongoMS:MongoMemoryServer Mongo[60614]: getUri: running undefined undefined +0ms
[07:57:32.903]	info	[test.utils.setupE2E:49:runServer] 	Initializing Full App 
[07:57:37.112]	info	[services/twilioNotifications:19] 	Twilio Notification SID [test] - Worker: IS0591f088cdd6bd17d7c760c9f0953437 
[07:57:37.116]	info	[services/twilioNotifications:24] 	Twilio Notification SID [test] - Employer: IS376114552ebc4774fb5180a1924a06a2 
[07:57:38.842]	info	[twilioConversations:53] 	Twilio Conversations SID [test] - IS37a260dae3744a5ea4a821c91fece566 
[07:57:39.872]	info	[services/stripeWebhook:16] 	Stripe Key in mode: test 
[07:57:39.977]	info	[services/stripeFileUpload:12] 	Stripe Key in mode: test 
[07:57:42.937]	info	[utils/services.autoload:46] 	------------------------------------------ 
[07:57:42.939]	info	[utils/services.autoload:47] 	Loading services... 
    1) "before all" hook in ""Invites" Service E2E tests"
[07:58:03.228]	warn	[test.utils.setupE2E:86:stopTestServer] 	Not really stopping the server ... 

  MongoMS:MongoInstance Mongo[60614]: stdoutHandler: ""2022-04-12T07:57:32.896+0000 I  INDEX    [LogicalSessionCacheRefresh] index build: starting on config.system.sessions properties: { v: 2, key: { lastUse: 1 }, name: "lsidTTLIndex", ns: "config.system.sessions", expireAfterSeconds: 1800 } using method: Hybrid
  MongoMS:MongoInstance 2022-04-12T07:57:32.896+0000 I  INDEX    [LogicalSessionCacheRefresh] build may temporarily use up to 200 megabytes of RAM
  MongoMS:MongoInstance 2022-04-12T07:57:32.896+0000 I  INDEX    [LogicalSessionCacheRefresh] index build: collection scan done. scanned 0 total records in 0 seconds
  MongoMS:MongoInstance 2022-04-12T07:57:32.896+0000 I  INDEX    [LogicalSessionCacheRefresh] index build: inserted 0 keys from external sorter into index in 0 seconds
  MongoMS:MongoInstance 2022-04-12T07:57:32.896+0000 I  INDEX    [LogicalSessionCacheRefresh] index build: done building index lsidTTLIndex on ns config.system.sessions
  MongoMS:MongoInstance 2022-04-12T07:58:03.229+0000 I  NETWORK  [listener] connection accepted from 127.0.0.1:60761 #1 (1 connection now open)
  MongoMS:MongoInstance 2022-04-12T07:58:03.233+0000 I  NETWORK  [conn1] end connection 127.0.0.1:60761 (0 connections now open)
  MongoMS:MongoInstance 2022-04-12T07:58:03.233+0000 I  NETWORK  [listener] connection accepted from 127.0.0.1:60762 #2 (1 connection now open)"" +30s

@hasezoey
Copy link
Collaborator

@pdfowler thanks for your input

Part of that involved changing my image version from v4.2.9 (where it had been for a long time) to the v4.2-latest which helped get my CI up and running. This broke the setup on my Mac and took me about an hour to work around. I think what finally resolved it was changing my config from the "latest" to a specific build (finally settled on v4.2.17).

sorry this happened, but this package currently does not apply any formatting conversions for the mongodb download url (meaning it is literally the same as in mongodb's archive name), which can be seen for linux, windows and osx, though the mac one is outdated and not fixed since beginning ~2020 and these links are also listed at Config-Options: VERSION

i have also made a issue to track a dedicated guide for this, see #630

Logs from last FAILED run

your error there is Couldnt download "https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-v4.2-latest.tgz"! connect ECONNREFUSED 127.0.0.1:443, which somehow happens when using a mac, though i still dont know why it redirected to 127.0.0.1(localhost), instead of a 403 http error (name: forbidden), but this in general means the version combination does not exist to be downloaded also see the macos tracking issue #483

@pdfowler
Copy link

which somehow happens when using a mac, though i still dont know why it redirected to 127.0.0.1(localhost), instead of a 403 http error (name: forbidden)

Fwiw, I was seeing the same error on my Ubuntu 18 ci image

@hasezoey
Copy link
Collaborator

Fwiw, I was seeing the same error on my Ubuntu 18 ci image

thanks for that information, but sadly this still does does not resolve on why this happenes

@pavlonadolynskyi
Copy link

pls see my answer here #615 (comment)

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

No branches or pull requests

6 participants