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

Update mongo compass v1.29.4 dropped an existing database unfortunately

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: 1.29.4
    • Component/s: Data
    • None
    • Environment:
      Windows 10 64 bit
    • Not Needed
    • Hide

      Kindly verify the logs.
      {{}}
      {{

      {"t":\{"$date":"2021-11-15T06:08:39.600Z"}

      ,"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000030,"ctx":"Connection 5","msg":"Driver command failed","attr":{"address":"xx.xxx.xx.xxx:27017","serverConnectionId":1,"duration":91,"commandName":"listDatabases","failure":"not authorized on admin to execute command

      { listDatabases: 1, nameOnly: true }

      "}}}}
      {{

      {"t":\{"$date":"2021-11-15T06:08:39.600Z"}

      ,"s":"W","c":"COMPASS-DATA-SERVICE","id":1001000098,"ctx":"Connection 5","msg":"Failed to run listDatabases","attr":{"message":"not authorized on admin to execute command

      { listDatabases: 1, nameOnly: true }

      "}}}}
      {{

      {"t":\{"$date":"2021-11-15T06:08:39.600Z"}

      ,"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000033,"ctx":"Connection 5","msg":"Running listDatabases","attr":{"nameOnly":true,"result":

      {"databasesCount":1}

      }}}}
      {{

      {"t":\{"$date":"2021-11-15T06:08:39.662Z"}

      ,"s":"I","c":"MONGOSH-SP","id":1000000037,"ctx":"connect","msg":"Connection attempt finished"}}}
      {{

      {"t":\{"$date":"2021-11-15T06:08:39.663Z"}

      ,"s":"D2","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 5","msg":"Driver command succeeded","attr":{"address":"xx.xxx.xx.xxx:27017","serverConnectionId":1,"duration":62,"commandName":"dbStats"}}}}
      {{

      {"t":\{"$date":"2021-11-15T06:08:39.666Z"}

      ,"s":"I","c":"MONGOSH","id":1000000010,"ctx":"shell-api","msg":"Initialized context","attr":{"method":"setCtx","arguments":{}}}}}
      {{

      {"t":\{"$date":"2021-11-15T06:08:39.678Z"}

      ,"s":"D2","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 5","msg":"Driver command succeeded","attr":{"address":"xx.xxx.xx.xxx:27017","serverConnectionId":3,"duration":76,"commandName":"listCollections"}}}}
      {{

      {"t":\{"$date":"2021-11-15T06:08:39.679Z"}

      ,"s":"D2","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 5","msg":"Driver command succeeded","attr":{"address":"xx.xxx.xx.xxx:27017","serverConnectionId":2,"duration":77,"commandName":"connectionStatus"}}}}
      {{

      {"t":\{"$date":"2021-11-15T06:08:39.680Z"}

      ,"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000032,"ctx":"Connection 5","msg":"Running listCollections","attr":{"db":"sample_database","nameOnly":false,"result":

      {"collectionsCount":4}

      }}}}
      {{

      {"t":\{"$date":"2021-11-15T06:08:39.952Z"}

      ,"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt)

      {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }

      \n })()"}}}}
      {{

      {"t":\{"$date":"2021-11-15T06:08:40.940Z"}

      ,"s":"I","c":"MONGOSH","id":1000000004,"ctx":"connect","msg":"Connecting to server","attr":{"session_id":"","userId":"<compass user>","connectionUri":"<mongodb uri><ip address>9:27017/sample_database?authSource=sample_database&readPreference=primary&appname=MongoDB+Compass&directConnection=true&ssl=false","is_atlas":false,"is_localhost":false,"is_do":false,"server_version":"3.2.22","node_version":"v14.16.0","mongosh_version":"1.1.2","server_os":"linux","server_arch":"x86_64","is_enterprise":false,"auth_type":"DEFAULT","is_data_lake":false,"dl_version":null,"atlas_version":null,"is_genuine":true,"non_genuine_server_name":"mongodb","fcv":null,"api_version":null,"api_strict":null,"api_deprecation_errors":null}}}}
      {{

      {"t":\{"$date":"2021-11-15T06:08:47.441Z"}

      ,"s":"D2","c":"COMPASS-DATA-SERVICE","id":1001000022,"ctx":"Connection 5","msg":"Server heartbeat succeeded","attr":{"connectionId":"xx.xxx.xx.xxx:27017","duration":103}}}}
      {{

      {"t":\{"$date":"2021-11-15T06:08:53.811Z"}

      ,"s":"D2","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 5","msg":"Driver command succeeded","attr":{"address":"xx.xxx.xx.xxx:27017","serverConnectionId":2,"duration":110,"commandName":"dropDatabase"}}}}
      {{

      {"t":\{"$date":"2021-11-15T06:08:53.812Z"}

      ,"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000040,"ctx":"Connection 5","msg":"Running dropDatabase","attr":{"db":"sample_database","result":true}}}}
      {{

      {"t":\{"$date":"2021-11-15T06:08:53.826Z"}

      ,"s":"W","c":"COMPASS-CRUD-UI","id":1001000072,"ctx":"Documents","msg":"Trying to refresh documents but dataService is disconnected"}}}

      Show
      Kindly verify the logs. {{}} {{ {"t":\{"$date":"2021-11-15T06:08:39.600Z"} ,"s":"D1","c":"COMPASS-DATA-SERVICE","id":1001000030,"ctx":"Connection 5","msg":"Driver command failed","attr":{"address":"xx.xxx.xx.xxx:27017","serverConnectionId":1,"duration":91,"commandName":"listDatabases","failure":"not authorized on admin to execute command { listDatabases: 1, nameOnly: true } "}}}} {{ {"t":\{"$date":"2021-11-15T06:08:39.600Z"} ,"s":"W","c":"COMPASS-DATA-SERVICE","id":1001000098,"ctx":"Connection 5","msg":"Failed to run listDatabases","attr":{"message":"not authorized on admin to execute command { listDatabases: 1, nameOnly: true } "}}}} {{ {"t":\{"$date":"2021-11-15T06:08:39.600Z"} ,"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000033,"ctx":"Connection 5","msg":"Running listDatabases","attr":{"nameOnly":true,"result": {"databasesCount":1} }}}} {{ {"t":\{"$date":"2021-11-15T06:08:39.662Z"} ,"s":"I","c":"MONGOSH-SP","id":1000000037,"ctx":"connect","msg":"Connection attempt finished"}}} {{ {"t":\{"$date":"2021-11-15T06:08:39.663Z"} ,"s":"D2","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 5","msg":"Driver command succeeded","attr":{"address":"xx.xxx.xx.xxx:27017","serverConnectionId":1,"duration":62,"commandName":"dbStats"}}}} {{ {"t":\{"$date":"2021-11-15T06:08:39.666Z"} ,"s":"I","c":"MONGOSH","id":1000000010,"ctx":"shell-api","msg":"Initialized context","attr":{"method":"setCtx","arguments":{}}}}} {{ {"t":\{"$date":"2021-11-15T06:08:39.678Z"} ,"s":"D2","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 5","msg":"Driver command succeeded","attr":{"address":"xx.xxx.xx.xxx:27017","serverConnectionId":3,"duration":76,"commandName":"listCollections"}}}} {{ {"t":\{"$date":"2021-11-15T06:08:39.679Z"} ,"s":"D2","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 5","msg":"Driver command succeeded","attr":{"address":"xx.xxx.xx.xxx:27017","serverConnectionId":2,"duration":77,"commandName":"connectionStatus"}}}} {{ {"t":\{"$date":"2021-11-15T06:08:39.680Z"} ,"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000032,"ctx":"Connection 5","msg":"Running listCollections","attr":{"db":"sample_database","nameOnly":false,"result": {"collectionsCount":4} }}}} {{ {"t":\{"$date":"2021-11-15T06:08:39.952Z"} ,"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n } \n })()"}}}} {{ {"t":\{"$date":"2021-11-15T06:08:40.940Z"} ,"s":"I","c":"MONGOSH","id":1000000004,"ctx":"connect","msg":"Connecting to server","attr":{"session_id":"","userId":"<compass user>","connectionUri":"<mongodb uri><ip address>9:27017/sample_database?authSource=sample_database&readPreference=primary&appname=MongoDB+Compass&directConnection=true&ssl=false","is_atlas":false,"is_localhost":false,"is_do":false,"server_version":"3.2.22","node_version":"v14.16.0","mongosh_version":"1.1.2","server_os":"linux","server_arch":"x86_64","is_enterprise":false,"auth_type":"DEFAULT","is_data_lake":false,"dl_version":null,"atlas_version":null,"is_genuine":true,"non_genuine_server_name":"mongodb","fcv":null,"api_version":null,"api_strict":null,"api_deprecation_errors":null}}}} {{ {"t":\{"$date":"2021-11-15T06:08:47.441Z"} ,"s":"D2","c":"COMPASS-DATA-SERVICE","id":1001000022,"ctx":"Connection 5","msg":"Server heartbeat succeeded","attr":{"connectionId":"xx.xxx.xx.xxx:27017","duration":103}}}} {{ {"t":\{"$date":"2021-11-15T06:08:53.811Z"} ,"s":"D2","c":"COMPASS-DATA-SERVICE","id":1001000029,"ctx":"Connection 5","msg":"Driver command succeeded","attr":{"address":"xx.xxx.xx.xxx:27017","serverConnectionId":2,"duration":110,"commandName":"dropDatabase"}}}} {{ {"t":\{"$date":"2021-11-15T06:08:53.812Z"} ,"s":"I","c":"COMPASS-DATA-SERVICE","id":1001000040,"ctx":"Connection 5","msg":"Running dropDatabase","attr":{"db":"sample_database","result":true}}}} {{ {"t":\{"$date":"2021-11-15T06:08:53.826Z"} ,"s":"W","c":"COMPASS-CRUD-UI","id":1001000072,"ctx":"Documents","msg":"Trying to refresh documents but dataService is disconnected"}}}

      Problem Statement/Rationale

      What is going wrong? What action would you like the Engineering team to take?

      Steps to Reproduce

      How could an engineer replicate the issue you’re reporting?

      Expected Results

      What do you expect to happen?

      Actual Results

      What do you observe is happening?

      Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            rhys.howell@mongodb.com Rhys Howell
            Reporter:
            techibyte007@gmail.com techi byte
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: