Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-826

MongoError: Optional module `snappy` not found. Please install it to enable snappy compression

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Won't Do
    • None
    • No version
    • CLI Module
    • None
    • Not Needed

    Description

      Problem Description

      Steps to Reproduce

      MongoDB Enterprise atlas-q8j1bk-shard-0:PRIMARY> db._adminCommand({getCmdLineOpts: 1}).parsed.net.compression
      >>> { "compressors" : "snappy,zstd,zlib" }

       

      mongosh "mongodb+srv://zstd.g3mcy.mongodb.net/?compressors=snappy" --username main_user --password bryanzelle
      >>> MongoError: Optional module `snappy` not found. Please install it to enable snappy compression

      Expected Results

      Expect to connect to the database like what happens if you pass it a value of zlib. 

      mongosh "mongodb+srv://zstd.g3mcy.mongodb.net/?compressors=zlib" --username main_user --password bryanzelle

      >>> 
      Current Mongosh Log ID: 60c2be5ca3e868168fe5f247
      Connecting to: mongodb+srv://zstd.g3mcy.mongodb.net/?compressors=zlib
      Using MongoDB: 4.4.6
      Using Mongosh Beta: 0.14.0

      Enterprise atlas-q8j1bk-shard-0 [primary]>

      Actual Results

      Additional Notes

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bryan.zelle@mongodb.com Bryan Zelle
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: