Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-7306

Unrecognized expression '$toDouble' Compass with latest Community MongoDB

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: 1.40.2
    • Component/s: None
    • Environment:
      OS: Windows Compass
      MongoDB 3.6.3 Community on Ubuntu 18
    • Not Needed

      Problem Statement/Rationale

      Installing the latest Compass 1.40.2 I cannot see any of my "indexes" because I get an error "Unrecognized expression '$toDouble'".  I don't think any of my indices have exceeded an int32 yet, but that doesn't seem to matter.  Happens for all tables.

      Please be sure to attach relevant logs with any sensitive data redacted.
      How to retrieve logs for: Compass; Shell

      failed","attr":{"address":"10.10.0.2:27017","serverConnectionId":7,"duration":125,"commandName":"aggregate","failure":"Unrecognized expression '$toDouble'"}}
      {{

      Unknown macro: {"t"}

      ,"s":"E","c":"COMPASS-DATA-SERVICE","id":1001000058,"ctx":"Connection 0","msg":"Failed to perform data service operation","attr":{"op":"collectionStats","message":

      Unknown macro: {"ok"}

      ,"ns":"nettica.devices"}}}}
      {{

      Unknown macro: {"t"}

      ,"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"10.10.0.2:27017","serverConnectionId":4,"duration":134,"commandName":"aggregate"}}}}
      {{

      Unknown macro: {"t"}

      ,"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000181,"ctx":"Connection 0","msg":"Running aggregate","attr":{"ns":"nettica.devices","stages":["$limit"]}}}}
      {{

      Unknown macro: {"t"}

      ,"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"10.10.0.2:27017","serverConnectionId":5,"duration":159,"commandName":"find"}}}}
      {{

      Unknown macro: {"t"}

      ,"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000060,"ctx":"Connection 0","msg":"Running find","attr":{"ns":"nettica.devices"}}}}
      {{

      Unknown macro: {"t"}

      ,"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"10.10.0.2:27017","serverConnectionId":5,"duration":67,"commandName":"aggregate"}}}}
      {{

      Unknown macro: {"t"}

      ,"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000181,"ctx":"Connection 0","msg":"Running aggregate","attr":{"ns":"nettica.devices","stages":["$indexStats","$project"]}}}}
      {{

      Unknown macro: {"t"}

      ,"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000030,"ctx":"Connection 0","msg":"Driver command failed","attr":{"address":"10.10.0.2:27017","serverConnectionId":4,"duration":66,"commandName":"aggregate","failure":"Unrecognized expression '$toDouble'"}}}}
      {{

      Unknown macro: {"t"}

      ,"s":"E","c":"COMPASS-DATA-SERVICE","id":1001000058,"ctx":"Connection 0","msg":"Failed to perform data service operation","attr":{"op":"indexes","message":

      Unknown macro: {"ok"}

      ,"ns":"nettica.devices"}}}}
      {{

      Unknown macro: {"t"}

      ,"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 0","msg":"Driver command succeeded","attr":{"address":"10.10.0.2:27017","serverConnectionId":7,"duration":69,"commandName":"listIndexes"}}}}
      {{

      Unknown macro: {"t"}

      ,"s":"I","c":"COMPASS-AUTO-UPDATES","id":1001000135,"ctx":"AutoUpdateManager","msg":"Checking for updates ..."}}}
      {{

      Unknown macro: {"t"}

      ,"s":"I","c":"COMPASS-AUTO-UPDATES","id":1001000126,"ctx":"AutoUpdateManager","msg":"Update not available"}}}

      Steps to Reproduce

      1. Install Compass 1.40.2.
      2. Connect to a MongoDB 3.6.3 Community DB
      3. Select a database, table, and click on Indexes

      Expected Results

      See the indexes page

      Actual Results

      Unrecognized expression '$toDouble'

      Additional Notes

      I'm not sure when this last worked, but I update fairly regularly.

            Assignee:
            Unassigned Unassigned
            Reporter:
            alan@meshify.app Alan Graham
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: