Skip to content

Ubuntu >= 22.04 is unsupported when using MongoDB >= 6.0.4 #846

Closed
anand-py/crm_application_backend
#4
@gnarea

Description

@gnarea
Error: Download failed for url "https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2304-6.0.11.tgz", Details:
Status Code is 403 (MongoDB's 404)
This means that the requested version-platform combination doesn't exist
Try to use different version 'new MongoMemoryServer({ binary: { version: 'X.Y.Z' } })'
List of available versions can be found here: https://www.mongodb.com/download-center/community/releases/archive
    at RedirectableRequest.<anonymous> (/home/gus/repos/awala-keystore-cloud-js/node_modules/mongodb-memory-server-core/src/util/MongoBinaryDownload.ts:383:17)
    at RedirectableRequest.emit (node:events:512:28)
    at RedirectableRequest.Object.<anonymous>.RedirectableRequest._processResponse (/home/gus/repos/awala-keystore-cloud-js/node_modules/follow-redirects/index.js:397:10)
    at ClientRequest.RedirectableRequest._onNativeResponse (/home/gus/repos/awala-keystore-cloud-js/node_modules/follow-redirects/index.js:90:12)
    at Object.onceWrapper (node:events:627:26)
    at ClientRequest.emit (node:events:512:28)
    at HTTPParser.parserOnIncomingClient (node:_http_client:693:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
    at TLSSocket.socketOnData (node:_http_client:535:22)
    at TLSSocket.emit (node:events:512:28)
    at addChunk (node:internal/streams/readable:343:12)
    at readableAddChunk (node:internal/streams/readable:316:9)
    at TLSSocket.Readable.push (node:internal/streams/readable:253:10)
    at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)

Due to:

https://github.com/nodkz/mongodb-memory-server/blob/9042eb238842fc4f66fea3c1a1c609df27164370/packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts#L564-L570

Would you accept a PR that caps the Ubuntu version at 22.04 when using >= MongoDB 6.0.4? Per https://www.mongodb.com/download-center/community/releases/archive

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions