image_url
stringlengths
113
131
tags
sequence
discussion
list
title
stringlengths
8
254
created_at
stringlengths
24
24
fancy_title
stringlengths
8
396
views
int64
73
422k
null
[]
[ { "code": "", "text": " My name is Michael Lynn. I live and work in Philadelphia, PA on the East Coast of U.S. I joined MongoDB a little over 4 years ago and I’ve worked in various roles include Solutions Architect and Developer Relations.Today, I focus on MongoDB for Startups — a program designed to help Startups by providing access to resources such as MongoDB Atlas, Technical Guidance and access to Marketing and Events. You can read more about it at MongoDB For Startups | MongoDB and here in the community forums at MongoDB for Startups - MongoDB Developer Community Forums.I also work on the MongoDB Podcast with my colleague Nic Raboy - This podcast is a place for developers, founders and data enthusiasts to get the latest, most up to date information about MongoDB features, application development trends and technologies. We’ll be launching the very first episode on in February, 2020. I hope you’ll listen, subscribe, like, follow and review! Watch for more information coming soon!You can find me on twitter, instagram, linkedIn, GitHub and Youtube.Really looking forward to interacting with the community here.Regards,\nMike", "username": "Michael_Lynn" }, { "code": "", "text": "Hello Mike,\nhappy to “see” you again. After hearing a bit about the podcast I am curios on the first launch.\n@Jamie: what about an announcement, read only category in this forum?\nMichael", "username": "michael_hoeller" }, { "code": "", "text": "what about an announcement, read only category in this forum?@michael_hoeller Suggestions are always appreciated, but it is best to keep discussion on topic here (which is nominally @Michael_Lynn’s intro) and post general suggestions in the Site Feedback category for discussion.Thanks for posting What about an announcement category? - #2 by Stennie_X. As noted there, we have several categories for announcements and you can also set your notification preference per category.Regards,\nStennie", "username": "Stennie_X" }, { "code": "", "text": "Hey @Michael_LynnGreat to hear about the Startups opportunity! I have just filled out my application.I am just starting out with a SaaS application for Training center management, focused on the construction industry. I started out as a licensed electrician, with my union hall has my first client.", "username": "Natac13" }, { "code": "", "text": "Sean,Welcome to the community - and hopefully to the program! I will review your application this week. Your story is incredible… inspiring. I’d love to chat with you about that in further depth - perhaps we’ll get you on an episode of The MongoDB Podcast.I’m curious - how did you find the forums? And this channel specifically?Regards,\nMike", "username": "Michael_Lynn" }, { "code": "", "text": "Hey @Michael_Lynn! Glad to see you here on this community and look forward to the podcast and hearing about the Startup Program! Hope all is well in Philly!", "username": "Michael_Grayson" }, { "code": "", "text": "@Michael_LynnI found these forums from seeing all the Slack channels get archived and I was curious why. Then I saw this mentioned in one of the posts by @Stennie_X.\nAnd this channel specifically was just from spending time checking out the new forum site. Very similar to the MongoDB university forums which helped me learn MongoDB in depth to achieve the Develop certificate.I would be happy to answer any further questions you have. And look forward to being apart of this forum community.", "username": "Natac13" }, { "code": "", "text": "Hi Michael, I am a recent partner in Colombia. I am looking for applications already implemented on Mongo to market them here in Colombia and Spain. Do you know if any start up has anything interesting? On the other hand, do you know if someone has connected mongo with AS400?", "username": "Fernando_Elizaga" }, { "code": "", "text": "Hi Michael,Thanks for letting us join the MongoDB for Startups program!!!We are Beeldi, a French startup from Paris developing a smart assistant dedicated to technical building management.We are the 1st solution dedicated to property managers which generates automatically:Excited about all we will be able to accomplish with MongoDB and MongoDbAtlas Services.Regards,Adrien Greiner\nCTO @ Beeldi", "username": "Adrien_Greiner" } ]
🌱 Hello - Michael here from MongoDB for Startups
2020-02-12T08:06:12.500Z
:seedling: Hello - Michael here from MongoDB for Startups
3,456
null
[]
[ { "code": "", "text": "Hi all,\nMy name is Florian and I work as a software developer.\nMy professional work is mainly in the wide field of sap and so also my focus is there.\nMongo dB is a spare time project to tackle myself and to not get lost outside my vomfort zone.\nSo be patient when I ask questions😉\nI know that some might really be for newbies, because I’m really new to nodejs.\nBut I know how to search and hope this kind of question will not be too long around☺️~Florian\nBtw: hello @Jamie", "username": "Florian_Henninger" }, { "code": "", "text": "Hi @Florian_Henninger!! Nice to see a familiar face Welcome! ", "username": "Jamie" } ]
Greetings from franconia
2020-02-20T20:50:22.875Z
Greetings from franconia
1,606
null
[]
[ { "code": "", "text": "Hello everyone,I live at Marseille in France. I love coding open-source tools.\nI use MongoDB at work and I think it’s an awesome DBMS.Best regards,\nSamuel Tallet", "username": "Samuel_Tallet" }, { "code": "", "text": "Welcome @Samuel_Tallet to the community!Yes, MongoDB is awesome. Have a look around and feel free to help others, or ask questions about any MongoDB issues you have in mind. To get familiar with this community, I’d like to encourage you to read this great Getting Started Guide from @Jamie.Cheers,\nMichael", "username": "michael_hoeller" } ]
Hello from France !
2020-02-20T17:32:24.401Z
Hello from France !
1,707
null
[ "containers", "installation" ]
[ { "code": "", "text": "Hello,\ni want to try to run a Localhost database on My Root server, but dont know what i do wrong Only Altas Work but i need a localhost database im not dev and have any Experience i Hope anyone can help me =)", "username": "dustin_rahn" }, { "code": "", "text": "Please follow installation steps documented at https://docs.mongodb.com/manual/installation/", "username": "coderkid" }, { "code": "", "text": "There is also a Docker Image of MongoDBAlso MongoDB University is a incredible resource!\nIt helped me.", "username": "Natac13" }, { "code": "", "text": "This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.", "username": "system" } ]
Need help to create a MongoDB localhost database
2020-02-19T23:15:54.223Z
Need help to create a MongoDB localhost database
1,618
null
[ "python" ]
[ { "code": "", "text": "Hallo,\nHow i can Escaping a String before i use them for inserts / updates.\nIs this possible with PyMongo.", "username": "Niclas_T" }, { "code": "str = \"\"\"hello \"lovely\" world\"\"\"\nprint str\nhello \"lovely\" world\n", "text": "PyMongoDid you try this?", "username": "coderkid" }, { "code": "", "text": "Thats not my problem.\ni have a code like this\ncollection.find({ “type”: var })\nBut now when a user post a bad code like this\nvar = \"{ “$gte”: “” } \"\nhow I can escape the var variable to prevent for bad code injection.", "username": "Niclas_T" }, { "code": ">>> s = \"asdfg${\"\n>>> \"$\" in s or \"{\" in s\nTrue\n>>>\n", "text": "Check the string for dollar characters and/or curly braces and reject that input.", "username": "Joe_Drumgoole" }, { "code": "dicteval", "text": "As long as you’re building up your query as a dict then you don’t need to escape values in your query. Having a quote or a curly brace inside your string is safe - there’s no parser to get confused with your query string, like can happen with a SQL query. In this case, your query is just a dict so the values are safe - providing you don’t run eval on any strings coming from your user!If you’re building your query by concatenating strings together, then you’d need to escape parts of the string - but that’s bad practice and I recommend you avoid it altogether.", "username": "Mark_Smith" }, { "code": "var = \"{ '$gte': '' }\"\ncollection.find({ \"type\": var })\ncollection.find({ \"type\": \"{ '$gte': '' }\" })\n\"type\"\"{ '$gte': '' }\" stringdictdictevaljson.loads", "text": "Just to clarify using the example above:is equivalent to:So we are trying to find documents where \"type\" is equal to the string \"{ '$gte': '' }\" there is no risk of injection here as it is a string and not a dictAs @Mark_Smith mentions, this would only become a problem if you somehow convert the string into a dict. @Mark_Smith mentioned eval, but I would also be careful when using json.loads, or any parser which can convert a string into a Python object", "username": "aaronbassett" } ]
Escaping a string before inserting/updating with PyMongo
2020-02-19T16:41:20.488Z
Escaping a string before inserting/updating with PyMongo
5,358
null
[ "dot-net" ]
[ { "code": "", "text": "Hey, I hope I’m in the right place here.According to DmitryLukyanovs comment here:\nCSHARP-2592: Adding netstandard2.0 support to libraries by jbogard · Pull Request #377 · mongodb/mongo-csharp-driver · GitHub the netstandard2.0 support will be added in the “next” release which should be 2.10.2 and was released a few days ago.However the driver/core/bson library still does not seem to target netstandard2.0 as to be seen on the nuget page itself: NuGet Gallery | MongoDB.Driver 2.19.0I’ve hoped the release would shrink the dependency tree, because for now it brings a lot of them with it. (https://i.imgur.com/e19BUvg.png)Was nuget not updated correctly, am I doing something wrong? Thanks in advance!", "username": "lmoe" }, { "code": "", "text": "Hello @lmoe,I meant the next minor release. The 2.10.2 was a patch release which usually contains only bug fixing changes. Sorry for the confusing.", "username": "Dmitry_Lukyanov" }, { "code": "", "text": "Thinking a few steps ahead should have brought me to the same conclusion, that a bugfix version update would not introduce a new netstandard target.Thank you for clearing this up ", "username": "lmoe" } ]
.NET driver support for netstandard2.0
2020-02-19T16:41:24.207Z
.NET driver support for netstandard2.0
2,048
https://www.mongodb.com/…9_2_1024x444.png
[]
[ { "code": "", "text": "I was under the impression that this should never happen:\n\nimage1492×648 81.1 KB\nPlayername is an indexed field, so having two instances of an indexed field is even weirder than an unindexed field.The value “ahmer#44164” already exists in another document, so mongodb throws an error if i try to set the first playername to “ahmer#44164\", but not if I do it on the second fieldQuerying for the playername “ahmer#44164” yields only one documentSteps to reproduce:I found this question on stackoverflow but it has no explanation.", "username": "botmun" }, { "code": "mongo", "text": "The underlying BSON storage format in MongoDB uses an ordered object representation rather than a dictionary, so technically duplicate fields are allowed (but not commonly used).This is noted in the documentation on field names:BSON documents may have more than one field with the same name. Most MongoDB interfaces, however, represent MongoDB with a structure (e.g. a hash table) that does not support duplicate field names. If you need to manipulate documents that have more than one field with the same name, see the driver documentation for your driver.I would consider creation of duplicate fields when creating/editing a document via an Admin UI an unexpected outcome. The typical mental model is that MongoDB documents are JSON-like with additional field types.Unfortunately Robo3T is not actively maintained and embeds a specific version of the mongo shell rather than using the driver API. It has a growing backlog of bugs and compatibility issues that are not being triaged.I strongly recommend using an actively developed MongoDB admin UI such as MongoDB Compass.For more comparison on BSON vs JSON you might be interested in: Why does MongoDB check for order of keys when matching embedded documents? (Software Engineering StackExchange).Regards,\nStennie", "username": "Stennie_X" }, { "code": "", "text": "Did you verify if one of the field name is “playername” while the other is \"playername \"? The trailing blank at the end does not show in the GUI but it makes the field name differents. That possibility was mentionned in the link you provided. You should connect with the shell and print the document from there.", "username": "steevej" }, { "code": "", "text": "\nimage1006×906 49.2 KB\nIt’s exactly the same. I manually typed the two fields so there aren’t any unicode hijinks going on either.As Stennie pointed out above, Robo3T is not actively maintained, and this bug has been open since Dec 2014", "username": "botmun" } ]
Mongodb allows multiple keys with the same name
2020-02-20T05:37:12.285Z
Mongodb allows multiple keys with the same name
9,558
null
[ "java" ]
[ { "code": " \tpublic static String runFunction() {\n \t\t@SuppressWarnings(\"resource\")\n \t\tMongoClient mongoClient = new MongoClient(\"localhost\");\n \t\t@SuppressWarnings(\"deprecation\")\n \t\tDB db = mongoClient.getDB(\"test\");\n \t\tSystem.out.println(\"Connected\");\n \t CommandResult commandResult1 = db.command(\"db.loadServerScripts()\");\n \t String str = \"getCards(2)\";\n \t CommandResult commandResult2 = db.command(str);\n \t System.out.println(commandResult2.toString());\n \t return commandResult2.toString();\n \t}\n> { \"ok\" : 0.0 , \"errmsg\" : \"no such command: 'getCards(2)'\" , \"code\" : 59 , \"codeName\" : \"CommandNotFound\"}\nmongo", "text": "Hello everyone,I stored some procedures in MongoDB and want to get them using Java code.Here is my code:and I am getting errorWhere as if I use mongo shell it is working over there. Is there is any alternative of this? Kindly help me out.Thanks in advance.", "username": "Nabeel_Raza" }, { "code": "mongodb.loadServerScripts()mongoeval()eval", "text": "Stored JavaScript functions are not the equivalent of server-side stored procedures and cannot be directly invoked from your Java code. These functions are only useful in a JavaScript execution context (for example, the mongo shell or Map/Reduce).The db.loadServerScripts() command in the mongo shell eval()s saved scripts into the current shell session so those functions can be invoked client-side. The server eval command has been deprecated since MongoDB 3.0 and removed as of MongoDB 4.2. It had serious performance and security consequences and should not be used.is there is any alternative of thisYou should write your queries using the Java driver. See the Java driver tutorials for more examples.I strongly recommend you sign up for the free M220: MongoDB for Java Developers course at MongoDB University. The latest session just started this week, so if you join now you can get started with lessons and assignments that will accelerate your learning around the essentials of creating a Java application using MongoDB.Regards,\nStennie", "username": "Stennie_X" }, { "code": "", "text": "This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.", "username": "system" } ]
Alternative of eval() command in Java
2020-02-20T05:22:56.170Z
Alternative of eval() command in Java
6,490
null
[ "compass" ]
[ { "code": "", "text": "I have followed the instructions as is mentioned in lab-1 but unable to connect through compass. Repeatedly getting the message “Server selection timed out after 30000ms”. Ping command worked fine for me & I am not behind any company firewall. I am trying to connect from home from my personal laptop.", "username": "Sai_Pavan_Kumar_91885" }, { "code": "", "text": "Which cluster you are trying to connect? Class or Sandbox\nWhat connect string you usedPlease check this link", "username": "Ramachandra_Tummala" }, { "code": "", "text": "Hi Ramachandra,I am trying to connect to the 1st cluster from compass installed on the desktop, not sandbox. I am following the instructions as is mentioned in the course. May be I will try connecting to 00-01 instead of 00-00.", "username": "Sai_Pavan_Kumar_91885" }, { "code": "", "text": "Hi @Sai_Pavan_Kumar_91885,I hope you found the link shared by @Ramachandra_37567 helpful. Please let me know if you are still having any issue.Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "Thank you @Ramachandra_37567. The reference linked helped. I was able to connect to cluster0-shard-00-01.\n@Shubham_Ranjan. Yes information shared by @Ramachandra_37567 helped.", "username": "Sai_Pavan_Kumar_91885" }, { "code": "", "text": "", "username": "system" } ]
Unable to connect to cluster in Lab-1
2020-02-18T22:21:37.081Z
Unable to connect to cluster in Lab-1
2,004
null
[ "connector-for-bi" ]
[ { "code": "", "text": "Hi All,I am facing issue while trying to get data from my mongoDB server. Not able to login (system will get stuck after tapping on test with provided required server details).can some one suggest how to integrate Mongo db community version with power BI/tableau ?Thanks,\nGourav", "username": "Testing_CreativeClou" }, { "code": "", "text": "can some one suggest how to integrate Mongo db community version with power BI/tableau ?Power BI and Tableau currently do not have direct support for querying MongoDB. You need to setup an intermediary tool like the MongoDB Connector for BI, which provides a read-only SQL to MongoDB translation layer.The MongoDB Connector for BI is compatible with both Community & Enterprise editions of MongoDB, but is licensed as part of a MongoDB Enterprise Advanced subscription or available as an add-on for a dedicated MongoDB Atlas cluster (M10+).You can download a trial version for a self-managed install.Regards,\nStennie", "username": "Stennie_X" }, { "code": "", "text": "Gourav,I am looking for solutions with “Connector for BI”, so could you please share with us your findings.Thanks,-Kay", "username": "coderkid" } ]
MongoDB community version integration with Power BI/Tableau
2020-02-19T04:08:37.149Z
MongoDB community version integration with Power BI/Tableau
3,146
null
[ "configuration" ]
[ { "code": "", "text": "Hi,Since I’ve rebooted my server yesterday I’m getting this error:mongodb’ failed protocol test [HTTP] at [localhost]:27017/ [TCP/IP] – HTTP: Error receiving data – Connection reset by peer‘mongodb’ start: ‘/usr/bin/sudo mongod --dbpath=/var/lib/mongodb’Tried a couple of thing but no luck.Also checked with curl -v localhost:27017 and output below:GET / HTTP/1.1\nHost: localhost:27017\nUser-Agent: curl/7.58.0\nAccept: /Any input or help will be much appreciated.Thanks.", "username": "jtvdw" }, { "code": "localhost:27017monitmongod", "text": "What O/S version are you running and how do you normally start your MongoDB service? Was this a clean reboot or an unexpected/forced restart?The error messages suggest you are trying to connect to localhost:27017 but the MongoDB service isn’t running. If this coincides with rebooting your server, the MongoDB service may not be set to run on startup or has perhaps encountered an error. I would start by checking the MongoDB server logs.mongodb’ failed protocol test [HTTP] at [localhost]:27017/ [TCP/IP]Is this output from monit? It is unusual to do an HTTP check for mongod on the default port since the server uses the MongoDB Wire Protocol, but if the server is accessible the result for an HTTP request should be similar to: “It looks like you are trying to access MongoDB over HTTP on the native driver port.”.Regards,\nStennie", "username": "Stennie_X" }, { "code": "localhost:27017monitmongod", "text": "What O/S version are you running and how do you normally start your MongoDB service? Was this a clean reboot or an unexpected/forced restart?Currently running Ubuntu 18 and it looks like it’s not set to start manually, I took over from the previous person. It was a unexpected/forced restart.The error messages suggest you are trying to connect to localhost:27017 but the MongoDB service isn’t running. If this coincides with rebooting your server, the MongoDB service may not be set to run on startup or has perhaps encountered an error. I would start by checking the MongoDB server logs.Yes, that’s correct but the mongodb service is down, killed the pid and tried starting the service but still fails, should I post the logs here as well?Is this output from monit ? It is unusual to do an HTTP check for mongod on the default port since the server uses the MongoDB Wire Protocol, but if the server is accessible the result for an HTTP request should be similar to: “It looks like you are trying to access MongoDB over HTTP on the native driver port.”.Yes, it’s uning monit Also not sure why it was setup that way, like I mentioned I took over from anoteher guy.What should I change or do to fix this issue.Much appreciated.", "username": "jtvdw" }, { "code": "", "text": "Hi,I followed this link but still no go for me Any help would be appreciated.Thanks.", "username": "jtvdw" }, { "code": "systemctl/var/log/mongodb/mongod.logmongod", "text": "Yes, that’s correct but the mongodb service is down, killed the pid and tried starting the service but still fails, should I post the logs here as well?You could post relevant lines from the logs if it isn’t obvious why the MongoDB process isn’t starting successfully.What command line are you using to start the MongoDB service? If the installation used the official MongoDB packages you should be able to use systemctl: Start MongoDB.The default log file location is /var/log/mongodb/mongod.log. If the mongod process is unable to start successfully, the last log lines should provide some indication of the reason (for example file permissions or integrity problems).Regards,\nStennie", "username": "Stennie_X" }, { "code": "systemctl/var/log/mongodb/mongod.logmongod", "text": "You could post relevant lines from the logs if it isn’t obvious why the MongoDB process isn’t starting successfully.Here is the lst lines of the log file: (Path : cat /var/log/mongodb/mongodb.log)\n2020-02-19T08:47:17.620+0200 I CONTROL [main] ***** SERVER RESTARTED *****\n2020-02-19T08:47:17.629+0200 I CONTROL [initandlisten] MongoDB starting : pid=25072 port=27017 dbpath=/var/lib/mongodb 64-bit host=dis002-truservcomm-jhb1-001\n2020-02-19T08:47:17.629+0200 I CONTROL [initandlisten] db version v3.6.3\n2020-02-19T08:47:17.629+0200 I CONTROL [initandlisten] git version: 9586e557d54ef70f9ca4b43c26892cd55257e1a5\n2020-02-19T08:47:17.629+0200 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.1d 10 Sep 2019\n2020-02-19T08:47:17.629+0200 I CONTROL [initandlisten] allocator: tcmalloc\n2020-02-19T08:47:17.629+0200 I CONTROL [initandlisten] modules: none\n2020-02-19T08:47:17.629+0200 I CONTROL [initandlisten] build environment:\n2020-02-19T08:47:17.629+0200 I CONTROL [initandlisten] distarch: x86_64\n2020-02-19T08:47:17.629+0200 I CONTROL [initandlisten] target_arch: x86_64\n2020-02-19T08:47:17.629+0200 I CONTROL [initandlisten] options: { config: “/etc/mongodb.conf”, net: { bindIp: “127.0.0.1”, port: 27017, unixDomainSocket: { pathPrefix: “/run/mongodb” } }, security: { authorization: “disabled” }, setParameter: { enableLocalhostAuthBypass: “0” }, storage: { dbPath: “/var/lib/mongodb”, journal: { enabled: true } }, systemLog: { destination: “file”, logAppend: true, path: “/var/log/mongodb/mongodb.log” } }\n2020-02-19T08:47:17.629+0200 I STORAGE [initandlisten] exception in initAndListen: IllegalOperation: Attempted to create a lock file on a read-only directory: /var/lib/mongodb, terminating\n2020-02-19T08:47:17.629+0200 I CONTROL [initandlisten] now exiting\n2020-02-19T08:47:17.629+0200 I CONTROL [initandlisten] shutting down with code:100What command line are you using to start the MongoDB service? If the installation used the official MongoDB packages you should be able to use systemctl : Start MongoDB.I’m using this command : sudo service mongodb start (or status) but still fails… This is the output of the command you mentioned:\nuser@server:~$ sudo systemctl start mongodb (Works)\nuser@server:~$ sudo systemctl start mongod\nFailed to start mongod.service: Unit mongod.service not found.The default log file location is /var/log/mongodb/mongod.log . If the mongod process is unable to start successfully, the last log lines should provide some indication of the reason (for example file permissions or integrity problems).Weird, had a look at the log file location but this is the output:\nsudo tail -f /var/log/mongodb/mongod.log\ntail: cannot open ‘/var/log/mongodb/mongod.log’ for reading: No such file or directoryPlease let me know if you need more details as well.Much appreciated.", "username": "jtvdw" }, { "code": "/var/lib/mongodbmongodmongodbsudo chmod -R mongodb:mongodb /var/lib/mongodbservicesystemctlservicesystemdmongodbmongod", "text": "db version v3.6.3You should plan to install the latest minor release (currently 3.6.17) as there have been a lot of improvements and stability fixes. A minor release in the same series (3.6.x) does not introduce any compatibility changes.Attempted to create a lock file on a read-only directory: /var/lib/mongodbYou need to fix the permissions on /var/lib/mongodb to match the user you are running mongod as.For example, assuming mongodb user and group: sudo chmod -R mongodb:mongodb /var/lib/mongodb.I’m using this command : sudo service mongodb start (or status) but still fails…If service works, that’s fine. systemctl is the equivalent of the service command for systemd which is the usual service manager for Ubuntu 18.Given the older server version (3.6.3) and that you are starting the service using mongodb (rather than mongod) I suspect you have installed Ubuntu’s MongoDB package rather than the officially maintained MongoDB package for Ubuntu.There are some differences in default configuration values between the two packages (such as service name and default paths. I’d recommend using the version from MongoDB as it is more actively maintained and in sync with the server documentation, but you can plan that change after you get your service running successfully.Regards,\nStennie", "username": "Stennie_X" }, { "code": "/var/lib/mongodbmongodmongodbsudo chmod -R mongodb:mongodb /var/lib/mongodbservicesystemctlservicesystemd", "text": "You should plan to install the latest minor release (currently 3.6.17) as there have been a lot of improvements and stability fixes. A minor release in the same series (3.6.x) does not introduce any compatibility changes.Okay, I will update mongodb to the latest version.You need to fix the permissions on /var/lib/mongodb to match the user you are running mongod as.For example, assuming mongodb user and group: sudo chmod -R mongodb:mongodb /var/lib/mongodb .I’ve done this now and mongodb service still fails. In the log is only entries from 2019/12 nothing to date.If service works, that’s fine. systemctl is the equivalent of the service command for systemd which is the usual service manager for Ubuntu 18.I’ve ran the “sudo service mongodb start” command, not failing but service still down. Removed the mongodb.lock file as well.I really have a battle with this, but thank for your help so far.Let me know what other details you need from me.Much appreciated.", "username": "jtvdw" }, { "code": "", "text": "I’ve done this now and mongodb service still fails. In the log is only entries from 2019/12 nothing to date.Having a sample of the logs like in the previous post is about the only way to give meaningful help. For example it was very obvious there was/is a permissions error on the data directory.", "username": "chris" }, { "code": "", "text": "Having a sample of the logs like in the previous post is about the only way to give meaningful help. For example it was very obvious there was/is a permissions error on the data directory.2020-02-19T14:01:59.251+0200 I CONTROL [main] ***** SERVER RESTARTED *****\n2020-02-19T14:01:59.259+0200 I CONTROL [initandlisten] MongoDB starting : pid=22521 port=27017 dbpath=/var/lib/mongodb 64-bit host=dis002-truservcomm-jhb1-001\n2020-02-19T14:01:59.259+0200 I CONTROL [initandlisten] db version v3.6.3\n2020-02-19T14:01:59.259+0200 I CONTROL [initandlisten] git version: 9586e557d54ef70f9ca4b43c26892cd55257e1a5\n2020-02-19T14:01:59.259+0200 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.1d 10 Sep 2019\n2020-02-19T14:01:59.259+0200 I CONTROL [initandlisten] allocator: tcmalloc\n2020-02-19T14:01:59.259+0200 I CONTROL [initandlisten] modules: none\n2020-02-19T14:01:59.259+0200 I CONTROL [initandlisten] build environment:\n2020-02-19T14:01:59.259+0200 I CONTROL [initandlisten] distarch: x86_64\n2020-02-19T14:01:59.259+0200 I CONTROL [initandlisten] target_arch: x86_64\n2020-02-19T14:01:59.259+0200 I CONTROL [initandlisten] options: { config: “/etc/mongodb.conf”, net: { bindIp: “127.0.0.1”, port: 27017 }, security: { authorization: “disabled” }, setParameter: { enableLocalhostAuthBypass: “0” }, storage: { dbPath: “/var/lib/mongodb”, journal: { enabled: true } }, systemLog: { destination: “file”, logAppend: true, path: “/var/log/mongodb/mongodb.log” } }\n2020-02-19T14:01:59.259+0200 I STORAGE [initandlisten] exception in initAndListen: Location28596: Unable to determine status of lock file in the data directory /var/lib/mongodb: boost::filesystem::status: Permission denied: “/var/lib/mongodb/mongod.lock”, terminating\n2020-02-19T14:01:59.259+0200 I CONTROL [initandlisten] now exiting\n2020-02-19T14:01:59.259+0200 I CONTROL [initandlisten] shutting down with code:100I tried to upgrade from 3.6.3 to 3.6.17 but I broke it now, this is the error message I got:sudo systemctl status mongodbFeb 19 14:01:59 dis002-truservcomm-jhb1-001 systemd[1]: Starting LSB: An object/document-oriented database…\nFeb 19 14:01:59 dis002-truservcomm-jhb1-001 mongodb[22500]: * Starting database mongodb\nFeb 19 14:02:00 dis002-truservcomm-jhb1-001 mongodb[22500]: …fail!\nFeb 19 14:02:00 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Control process exited, code=exited status=1\nFeb 19 14:02:00 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Failed with result ‘exit-code’.\nFeb 19 14:02:00 dis002-truservcomm-jhb1-001 systemd[1]: Failed to start LSB: An object/document-oriented database.Also if I try to “sudo apt install -y mongodb” I get this:Reading package lists… Done\nBuilding dependency tree\nReading state information… Done\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:The following packages have unmet dependencies:\nmongodb-org-shell : Conflicts: mongodb but 1:3.6.3-0ubuntu1.1 is to be installed\nConflicts: mongodb-clients but 1:3.6.3-0ubuntu1.1 is to be installed\nConflicts: mongodb-server but 1:3.6.3-0ubuntu1.1 is to be installed\nE: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.Any help would be appreciated.Thanks.", "username": "jtvdw" }, { "code": "", "text": "2020-02-19T14:01:59.259+0200 I STORAGE [initandlisten] exception in initAndListen: Location28596: Unable to determine status of lock file in the data directory /var/lib/mongodb: boost::filesystem::status: Permission denied: “/var/lib/mongodb/mongod.lock”, terminatingYou still have a permission issue with the files/folders. Assuming mongodb as the uid/guid make sure you run @Stennie_X’s chown command extra ateention to the -RFor upgrading from ubuntu to mongodb-org-* you cannot simply add the repo and install. You will have to remove the Ubuntu version(s). I’ll see if there is a relevant doc somewhere. Note: Make sure this is not the only copy. You should have a backup or other running healthy replicas.", "username": "chris" }, { "code": "", "text": "You still have a permission issue with the files/folders. Assuming mongodb as the uid/guid make sure you run @Stennie’s chown command extra ateention to the -RI have run it -R but keeps changes back, I’m a user and not root, sudo the whole time, could that be an issue?", "username": "jtvdw" }, { "code": "", "text": "This should be of some help:", "username": "chris" }, { "code": "", "text": "Looks like I fixed the error but still on 3.6.3 but when I try starting the service is still fails:sudo service mongodb status\nmongodb.service - An object/document-oriented database\nLoaded: loaded (/lib/systemd/system/mongodb.service; enabled; vendor preset: enabled)\nActive: failed (Result: exit-code) since Wed 2020-02-19 14:16:52 SAST; 3s ago\nDocs: man:mongod(1)\nProcess: 27493 ExecStart=/usr/bin/mongod --unixSocketPrefix={SOCKETPATH} --config {CONF} $DAEMON_OPTS (code=exited, status=48)\nMain PID: 27493 (code=exited, status=48)Feb 19 14:16:52 dis002-truservcomm-jhb1-001 systemd[1]: Started An object/document-oriented database.\nFeb 19 14:16:52 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Main process exited, code=exited, status=48/n/a\nFeb 19 14:16:52 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Failed with result ‘exit-code’.", "username": "jtvdw" }, { "code": "", "text": "This is the last output of the mongodb directory:drwx------ 2 mongodb mongodb 4096 Feb 19 13:42 journal/\n-rw------- 1 mongodb mongodb 36864 Feb 19 13:41 _mdb_catalog.wt\n-rw------- 1 mongodb mongodb 0 Feb 19 14:16 mongod.lock\n-rw------- 1 mongodb mongodb 36864 Feb 19 13:42 sizeStorer.wt\n-rw------- 1 mongodb mongodb 114 Feb 14 14:42 storage.bson\n-rw------- 1 mongodb mongodb 48 Feb 14 14:42 WiredTiger\n-rw------- 1 mongodb mongodb 4096 Feb 19 13:41 WiredTigerLAS.wt\n-rw------- 1 mongodb mongodb 21 Feb 14 14:42 WiredTiger.lock\n-rw------- 1 mongodb mongodb 1057 Feb 19 13:42 WiredTiger.turtle\n-rw------- 1 mongodb mongodb 217088 Feb 19 13:42 WiredTiger.wt", "username": "jtvdw" }, { "code": "48mongodmongosjournalctl -u mongod", "text": "48 A newly started mongod or mongos could not start listening for incoming connections, due to an error.More is probably in logs or via journalctl -u mongod", "username": "chris" }, { "code": "", "text": "Ran the command with output:sudo journalctl -u mongod\n– Logs begin at Tue 2019-07-16 21:43:12 SAST, end at Wed 2020-02-19 14:27:28 SAST. –\n– No entries –", "username": "jtvdw" }, { "code": "", "text": "Boo. Regular log file ?", "username": "chris" }, { "code": "", "text": "tail -f /var/log/mongodb/mongodb.log\n2020-02-19T14:29:16.596+0200 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.1d 10 Sep 2019\n2020-02-19T14:29:16.596+0200 I CONTROL [initandlisten] allocator: tcmalloc\n2020-02-19T14:29:16.596+0200 I CONTROL [initandlisten] modules: none\n2020-02-19T14:29:16.596+0200 I CONTROL [initandlisten] build environment:\n2020-02-19T14:29:16.596+0200 I CONTROL [initandlisten] distarch: x86_64\n2020-02-19T14:29:16.596+0200 I CONTROL [initandlisten] target_arch: x86_64\n2020-02-19T14:29:16.596+0200 I CONTROL [initandlisten] options: { config: “/etc/mongodb.conf”, net: { bindIp: “127.0.0.1”, port: 27017, unixDomainSocket: { pathPrefix: “/run/mongodb” } }, security: { authorization: “disabled” }, setParameter: { enableLocalhostAuthBypass: “0” }, storage: { dbPath: “/var/lib/mongodb”, journal: { enabled: true } }, systemLog: { destination: “file”, logAppend: true, path: “/var/log/mongodb/mongodb.log” } }\n2020-02-19T14:29:16.596+0200 E STORAGE [initandlisten] Failed to set up listener: SocketException: Address already in use\n2020-02-19T14:29:16.596+0200 I CONTROL [initandlisten] now exiting\n2020-02-19T14:29:16.596+0200 I CONTROL [initandlisten] shutting down with code:48Looks the same as previous log file with error code 48 …", "username": "jtvdw" }, { "code": "", "text": "Ran the command “sudo journalctl -u mongodb” with output below:Feb 19 14:12:46 dis002-truservcomm-jhb1-001 systemd[1]: Started An object/document-oriented database.\nFeb 19 14:12:46 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Main process exited, code=exited, status=100/n/a\nFeb 19 14:12:46 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Failed with result ‘exit-code’.\nFeb 19 14:13:06 dis002-truservcomm-jhb1-001 systemd[1]: Started An object/document-oriented database.\nFeb 19 14:13:06 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Main process exited, code=exited, status=100/n/a\nFeb 19 14:13:06 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Failed with result ‘exit-code’.\nFeb 19 14:14:12 dis002-truservcomm-jhb1-001 systemd[1]: Started An object/document-oriented database.\nFeb 19 14:14:12 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Main process exited, code=exited, status=100/n/a\nFeb 19 14:14:12 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Failed with result ‘exit-code’.\nFeb 19 14:15:49 dis002-truservcomm-jhb1-001 systemd[1]: Started An object/document-oriented database.\nFeb 19 14:15:49 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Main process exited, code=exited, status=100/n/a\nFeb 19 14:15:49 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Failed with result ‘exit-code’.\nFeb 19 14:16:52 dis002-truservcomm-jhb1-001 systemd[1]: Started An object/document-oriented database.\nFeb 19 14:16:52 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Main process exited, code=exited, status=48/n/a\nFeb 19 14:16:52 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Failed with result ‘exit-code’.\nFeb 19 14:21:41 dis002-truservcomm-jhb1-001 systemd[1]: Started An object/document-oriented database.\nFeb 19 14:21:41 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Main process exited, code=exited, status=48/n/a\nFeb 19 14:21:41 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Failed with result ‘exit-code’.\nFeb 19 14:24:21 dis002-truservcomm-jhb1-001 systemd[1]: Started An object/document-oriented database.\nFeb 19 14:24:21 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Main process exited, code=exited, status=48/n/a\nFeb 19 14:24:21 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Failed with result ‘exit-code’.\nFeb 19 14:29:16 dis002-truservcomm-jhb1-001 systemd[1]: Started An object/document-oriented database.\nFeb 19 14:29:16 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Main process exited, code=exited, status=48/n/a\nFeb 19 14:29:16 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Failed with result ‘exit-code’.\nFeb 19 14:37:08 dis002-truservcomm-jhb1-001 systemd[1]: Started An object/document-oriented database.\nFeb 19 14:37:08 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Main process exited, code=exited, status=48/n/a\nFeb 19 14:37:08 dis002-truservcomm-jhb1-001 systemd[1]: mongodb.service: Failed with result ‘exit-code’.", "username": "jtvdw" } ]
HTTP: Error receiving data -- Connection reset by peer
2020-02-14T11:32:49.612Z
HTTP: Error receiving data – Connection reset by peer
18,756
https://www.mongodb.com/…f_2_1024x243.png
[ "stitch" ]
[ { "code": "", "text": "A silly question: ISODate shouldn’t work within a webhook stitch?I get: ISODate is not definedThanks", "username": "Federico_Ettlin" }, { "code": "ISODate()Dateexports = function(payload, response) { \n return {\"foo\": new Date()};\n};\n", "text": "Hi @Federico_Ettlin,ISODate() is only a mongo shell wrapper/helper for the Date object.In Stitch, you could just use the built-in javascript Date. i.e.You may also find the following useful:Regards,\nWan.", "username": "wan" }, { "code": "", "text": "Thank you very much, Wan.", "username": "Federico_Ettlin" } ]
Stitch webhook ISODate
2020-02-18T19:56:50.598Z
Stitch webhook ISODate
2,418
null
[]
[ { "code": "collection.findOneAndUpdate\n(\n {\n foo: {'$in': ['bar']},\n _id: 'someStringId',\n 'baz._id': 'someOtherStringId',\n },\n {$set: {'baz.$.boolean': false}},\n {returnOriginal: false},\n callback\n)\n$in$elemMatchcollection.findOneAndUpdate\n(\n {\n foo: {$elemMatch: {$eq: 'bar'}},\n _id: 'someStringId',\n 'baz._id': 'someOtherStringId',\n },\n {$set: {'baz.$.boolean': false}},\n {returnOriginal: false},\n callback\n)\n", "text": "Hi there,I’m facing a rather interesting issue.The following query does not update the document.After some investigation, it turned out that $in seems to be the root cause of the issue. As I didn’t really needed that (usually there is only one element in the array), I’ve replaced it with $elemMatch - and the document is now updated successfully.I’d like to understand the root cause of the issue, so feel free to chip in if you have a sensible explanation.Please note that the server version is 3.0.15 and I’m using the official NodeJS driver (version 3.3.2).Cheers", "username": "aberenyi" }, { "code": "_idnModified: 0$set$$nModified: 0", "text": "Hey @aberenyiI am just curious on the use case you have where the _id is not sufficient to query the document.And are you getting any error? Or just nModified: 0?{$set: {‘baz.$.boolean’: false}},I do not think $set can use $ in the field position. See the docs\nI believe that is for $ operator is for updating arrays.And maybe the query is too specific if you are receiving nModified: 0 with no error.", "username": "Natac13" }, { "code": "nModified: 0$$set$in$elemMatch", "text": "Hey @Natac13The use case covers finding a document and updating a particular array element within the doc identified by an id.No error whatsoever, just nModified: 0 as you say, so I guess it could be too specific and mongo cannot figure out the array index.$ works fine in $set if there is no $in in the query or it is replaced w/ $elemMatch.", "username": "aberenyi" }, { "code": "_id$$set$in$elemMatch$in$", "text": "The use case covers finding a document and updating a particular array element within the doc identified by an id.Oh I see.Are you passing in string version of the _ids?\nMaybe try to convert to MongoID TypeI do not think Mongo should have no problem finding the _id in an array.$ works fine in $set if there is no $in in the query or it is replaced w/ $elemMatch .Thank you for correcting me. I think it works when you remove the $in as you are no longer targeting to different arrays in the query and the $ is not getting ‘confused’ on which one it should represent.", "username": "Natac13" }, { "code": "foo{ foo : 'bar' }{ foo: { $elemMatch: { $eq: 'bar' } }", "text": "If foo is a field of type array, then this will work too:\n{ foo : 'bar' }\ninstead of\n{ foo: { $elemMatch: { $eq: 'bar' } }", "username": "Prasad_Saya" }, { "code": "_id_id$in$findAndModify", "text": "Are you passing in string version of the _id s?\nMaybe try to convert to MongoID TypeThe _ids are strings in this case, so that should not be an issue.I think it works when you remove the $in as you are no longer targeting to different arrays in the query and the $ is not getting ‘confused’ on which one it should represent.That was the only answer I could come up with that vaguely make sense, however, the query is not that complex, and I think the use case is valid.I usually hate when someone says this, but this exact same query was working fine for at least 12 months, so maybe it’s the server version (the provider upgraded from 2.6 to 3.0 a while back) or the client lib (back in the day I’ve used findAndModify) that’s causing the turmoil.Anyways, thanks for your insight @Natac13.", "username": "aberenyi" } ]
Positional operator issue
2020-02-18T16:41:27.939Z
Positional operator issue
4,067
null
[ "aggregation" ]
[ { "code": " { \"array\" : 112233, \"hgName\" : \"host1\", \"iops\" : 1, \"mbps\" : 0.001464844, \"responseTime\" : 0.06, \"timeStamp\" : NumberLong(\"1572665400110\") }\n { \"array\" : 112233, \"hgName\" : \"host1\", \"iops\" : 1, \"mbps\" : 0.001464844, \"responseTime\" : 0.06, \"timeStamp\" : NumberLong(\"1572666600117\") }\n { \"array\" : 112233, \"hgName\" : \"host2\", \"iops\" : 1, \"mbps\" : 0.001464844, \"responseTime\" : 0.06, \"timeStamp\" : NumberLong(\"1572661800115\") }\n { \"array\" : 112233, \"hgName\" : \"host3\", \"iops\" : 1, \"mbps\" : 0.001464844, \"responseTime\" : 0.06, \"timeStamp\" : NumberLong(\"1572666900103\") }\n { \"array\" : 112233, \"hgName\" : \"host3\", \"iops\" : 1, \"mbps\" : 0.001464844, \"responseTime\" : 0.06, \"timeStamp\" : NumberLong(\"1572667200110\") }\n <--Truncated-->\n db.MyCollections.aggregate([\n { \n $match: {} \n }, {\n $group: {\n _id: \"$hgName\",\n average_IOPS: {\n $avg: \"$iops\"\n },\n \t average_MBps: {\n $avg: \"$mbps\"\n },\n \t Max_MBPS: {$max: \"$mbps\"},\n \t Max_IOPS: {$max: \"$iops\"}\n \t}\n }\n ]);\n { \"_id\" : \"host1\", \"average_IOPS\" : 32.26, \"average_MBps\" : 11.1, \"Max_MBPS\" : 664.8, \"Max_IOPS\" : 1674 }\n { \"_id\" : \"host2\", \"average_IOPS\" : 54.44, \"average_MBps\" : 0.19, \"Max_MBPS\" : 13.96, \"Max_IOPS\" : 3339 }\n { \"_id\" : \"host3\", \"average_IOPS\" : 0.909, \"average_MBps\" : 0.00, \"Max_MBPS\" : 0.002, \"Max_IOPS\" : 1 }\npercentile_95_iopspercentile_95_mbps", "text": "#dataCurrent Query:I managed to get the aggregation done this level for a timeseries data,I need to include a \"percentile (0.95) calculation for iops and mbps \" same as average figures consolidation by host.i.e percentile_95_iops and percentile_95_mbps along with other results.Thanks and Regards\nVipin", "username": "Vipin_Kumar" }, { "code": "", "text": "Hi Vipin,Have you considered storing the time series data in a different schema pattern? Having a document per record is very relational and MongoDB has several great (non-relational) alternatives for more efficiently storing this information. I recommend checking out this blog post:\nhttps://www.mongodb.com/blog/post/time-series-data-and-mongodb-part-2-schema-design-best-practicesStoring the information differently removes the need to aggregate at all. If all the information needed by the application is available within a single document, calculating the 95th percentile is a much simpler (and very client-side) operation.", "username": "Justin" }, { "code": "", "text": "Hi Vipin,Thank you for posting this here. I agree with @Justin that you would benefit from the article he is pointing you at. As to the percentile calculations for mbps and iops…perhaps a more experienced person knows the math tricks needed with that.I did copy your sample data and put it in a collection on my own MongoDB instance, but then I had to look up resources on how to do percentile calculations and I need to study these. Also, my skill with aggregation queries is rusty. I believe I must create separate aggregation queries: one for mbps and one for iops. The reason for separate aggregation queries is because you have to sort the documents in a sort stage prior to an actual calculation for percentile. So there will be one aggregation query for iops which sorts the values in a sort stage. A totally separate aggregation is needed to sort the values for mbps in its own sort stage.I could have spent time experimenting with this, but I had some other things to do. I will try to experiment over this week and do my best, but others with more skill and experience than I could offer really good suggestions to you. I don’t know what you will do with the time series data e.g. the time stamp. It will help you to read that article that @Justin pointed you to.Thanks so muchBob", "username": "Robert_Cochran" }, { "code": "", "text": "FYI Vipin, the requested functionality (calculating percentile via aggregation) is being tracked by SERVER-7463.", "username": "alexbevi" }, { "code": "", "text": "WOW , Mongo Community response is Amazing. Loving it.@Robert_Cochran,Many thanks.\nActually the maths part is easy in my view , but am not able to put it in queries after Step#1/2.\nCan you guide me with this?\nI tried to do it in many ways with group ,@Justin,Excellent Piece of info that will help for some optimizations with my data.\nin my case, this is to generate a summary of many 1000’s of records.\nI have a running version with JSON/Vanilla JS , including percentile but many limitations there.\nThought if all the things I could make use of DB, it would be great.At alexbevi,Great to know this. Tx\nfor many of the time series / Trouble shooting / performance data actually percentile makes a lot of sense than average. So it is a very important one and i will certainly keep a watch on this.Thanks and Regards\nVipin", "username": "Vipin_Kumar" }, { "code": "", "text": "My two cents, you can use the computed pattern. Which is simply keep a rolling percentage as new values are added instead of calculating it every time.Reducing CPU workload by computing and storing intensive calculations is at the core of the Computed pattern", "username": "Ihsan_Mujdeci" } ]
Percentile with group aggregation
2020-02-17T16:40:28.889Z
Percentile with group aggregation
7,099
null
[ "dot-net" ]
[ { "code": " \"ScurvePlanName\": \"PipeTrack\",\n \"ScurvePlanData\": [{\n \"Levels\": \"Mechanical\",\n \"Scope\": null,\n \"StartDate\": null,\n \"EndDate\": null,\n \"Weightage\": {\n \"$numberDouble\": \"20\"\n },\n \"ParentLevels\": \"\",\n \"ActivityId\": null,\n \"IsInternal\": false\n }, {\n \"Levels\": \"Welding\",\n \"Scope\": {\n \"$numberDouble\": \"2000\"\n },\n \"StartDate\": \"898989667687687768768\",\n \"EndDate\": \"898989667687687768768\",\n \"Weightage\": {\n \"$numberDouble\": \"5\"\n },\n \"ParentLevels\": \"Mechanical\",\n \"ActivityId\": {\n \"$numberDouble\": \"5\"\n },\n \"IsInternal\": true\n }]\n}\nvar fdbFiller= Builders<BsonDocument>.Filter.Eq(\"ScurvePlanName\", SCurveName);\n var projection = Builders<BsonDocument>.Projection.Include(\"ScurvePlanData\");\n var cursor = collection.Find<BsonDocument>\n(fdbFiller).Project(projection).ToCursor();\n", "text": "I have the following JSON in MongoDB:I only need objects inside the array which is the value of key “ScurvePlanData”.This is my current code:", "username": "Rajesh_Yadav" }, { "code": "", "text": "that means in need only the array which is side the key “SCurvePlanData”", "username": "Rajesh_Yadav" }, { "code": "{ \"Levels\": \"Mechanical\", Scope: null, ...}\n{ \"Levels\": \"Welding\", Scope: {\"$numberDouble\": \"2000\"}, ...}\n{ \"ScurvePlanData\" : [\n { \"Levels\" : \"Mechanical\", \"Scope\" : null, ... }, \n { \"Levels\" : \"Welding\", \"Scope\" : { \"$numberDouble\" : \"2000\" }, .... }] \n}\nvar pipeline = new BsonDocument[]{\n new BsonDocument{ \n {\"$match\", new BsonDocument{\n {\"ScurvePlanName\", \"PipeTrack\"}\n }}}, \n new BsonDocument{ \n {\"$unwind\", \"$ScurvePlanData\"}\n },\n new BsonDocument{\n {\"$replaceRoot\", new BsonDocument{\n {\"newRoot\", \"$ScurvePlanData\"}\n }}}\n};\nvar docs = collection.Aggregate<BsonDocument>(pipeline).ToList();\nPipelineStageDefinitionBuilder", "text": "Hi @Rajesh_Yadav, welcome to the forum!I only need objects inside the array which is the value of key “ScurvePlanData”.It’s not entire clear from the question, but I assumed that what you’re wanting to return is :Instead of the current result with your snippet example of :If this is the case, you can use MongoDB Aggregation Pipeline to manipulate the document(s). For example:If you have class mapping for the collection, see also the PipelineStageDefinitionBuilder:I’d also recommend to review MongoDB Aggregation Quick Reference to learn more.If this is not what you’re after, please clarify with a desired document output example and also version of MongoDB .NET driver that you’re using.Regards,\nWan.", "username": "wan" }, { "code": "", "text": "This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.", "username": "system" } ]
How to get object from array from mongodb using C#
2020-02-14T17:46:54.001Z
How to get object from array from mongodb using C#
8,655
null
[ "stitch" ]
[ { "code": "", "text": "I would like to know if it’s possible to create an interactive Slack app using MongoDB Stitch. I can show texts and buttons on Slack by slash commands on Stitch. What I cannot figure out is how to add functions to these buttons. For example, I would like to create a form on modal when a user clicks the button, and save user input data to MongoDB Atlas upon submitting the form.My current Slack app is running on localhost:3000 that is responsible for interactions with users. The app communicates with MongoDB Atlas through Express server that is running on localhost:5000.My impression is that I can substitute 5000 and a part of 3000 (slash commands) by Stitch. Is it possible to have full functionalities of 3000 (authentication, creation of modals, reaction to user action etc.) with Stitch?", "username": "Ayumi_Nakamura" }, { "code": "user_idteam_identerprise_idchannel_idtrigger_id", "text": "Hi @Ayumi_Nakamura,\nFirst of all welcome to the forum.My impression is that I can substitute 5000 and a part of 3000 (slash commands) by Stitch.Without knowing more on what these services do, I would say depends on what they’re doing.Having said that, you can try to create Stitch Incoming HTTP Webhook to receive Slack slash commands. The Slack commands would send sent some data in the payload that you could process. You can use some of the fields for authentication.MongoDB Stitch provides several authentication providers, in your case you would probably be interested in Custom Function Authentication. This authentication provider allows you to use a Stitch function to implement your own user authentication logic. i.e. based on user_id, team_id, enterprise_id or channel_id sent by Slack slash command(s).For Slack creation of modals (based on my limited knowledge of Slack apps), the Stitch Webhook(s) just need to be able to compose an initial view mixes it with a trigger_id to create a modal. See also Slack: An Overview of Modals.If you have more questions regarding Slack app development, I would recommend to post on Slack: Support and Community discussions to reach a wider audience with Slack expertise. If you have more questions on how to create web-hook(s) in MongoDB Stitch please include more information on what you’re trying to do, and any relevant error messages.Regards,\nWan.", "username": "wan" }, { "code": "", "text": "Thank you @wan!Slash commands with Stitch incoming HTTP webhook work fine. Just to confirm that I understood your explanation correctly, do I need to create additional webhooks for custom authentication and event subscriptions? 1 for slash commands, 1 for authentication and 1 for listening to slack events?In my local app, URL for slash commands and event subscriptions are the same, and authentication has another. Do I need to separate webhooks for slash commands and event subscriptions in Stitch app?", "username": "Ayumi_Nakamura" }, { "code": "", "text": "Do I need to separate webhooks for slash commands and event subscriptions in Stitch app?If it’s possible, probably preferable to separate them. As I imagined the event subscriptions itself is already containing a few logics (i.e. handling open, update, push, etc).Regards,\nWan.", "username": "wan" } ]
Convert MongoDB + Express Slack app to Stitch app?
2020-02-12T14:00:01.012Z
Convert MongoDB + Express Slack app to Stitch app?
1,822
null
[ "on-premises", "licensing" ]
[ { "code": "", "text": "Hello,For a student project, I am usingMongoDB server version: 4.0.10 locally (local python app which create/update/delete nosql datas in my server). So SSPL license should not applyMongoDB compass community (should be free)I need to graph (charts) => 2/3 charts on a dashboard. According to what I understand and in my context I need to use docker to integrate charts to my MongoDB. Is it free licensing in this case? I can not find any accurate data related to my context.Thanks.", "username": "laurent_cop" }, { "code": "", "text": "Hi there! MongoDB Charts on-premises is included in our Enterprise licensing bundle. The full terms are listed here - note that it does allow for a free trial for non-production usage - please read the terms and consider whether your proposed usage is covered by the trial terms.Charts on-premises does require Docker. For development use you should be able to use Docker Desktop which is available for free (but please check the Docker site for full terms).Alternatively, you could look at using MongoDB Atlas, our cloud-hosted database offering. You can create and use an M0 size database for free, and also activate Charts in the project for free.HTH\nTom", "username": "tomhollander" }, { "code": "", "text": "Hello Tom,\nA widget of chart in compass community edition will be great!\nThe other solution is too complex for my needs.\nThanks for the reply anyway.\nKind regards", "username": "laurent_cop" }, { "code": "", "text": "There are no plans to make Charts available through Compass.\nUsing MongoDB and Charts in Atlas is actually significantly simpler than installing and running it yourself - you should give it a try! Tom", "username": "tomhollander" }, { "code": "", "text": "This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.", "username": "system" } ]
Student project : Charts free licensing
2020-02-16T23:47:11.759Z
Student project : Charts free licensing
4,713
null
[]
[ { "code": "", "text": "Hi Everyone,Just joined the Mongo startup program here. Great to see all the help for bootstrapers, which is really nice in the beginning. I’ve done many startups as the tech person and this time focusing on something that I really love, being effective and helping others do the same. I’m working to make a successful company doing this. Been at this for about 6 months and have a Beta. I’m using the Meteor framework which is really awesome and is getting some fresh investment as well. Mongo is a key part of that and MongoDB Atlas hosted service has been awesome so far. I’m used to painfully analyzing queries and adding indexes and so forth, so when the service emailed me about the optimization analysis it already did, I recall having a “that’s awesome” experience.Looking forward to being part of the community and doing some more awesome stuff with Mongo and Atlas.", "username": "Doron_Gan" }, { "code": "", "text": "Welcome to the community, @Doron_Gan!!", "username": "Jamie" } ]
Hi, I'm Doron from yomez.com - Productivity Startup
2020-02-18T02:55:27.059Z
Hi, I&rsquo;m Doron from yomez.com - Productivity Startup
1,781
null
[]
[ { "code": "", "text": "Is there a way to quickly log out of the site? So far, it looks like I have to click my picture and then click my name under the picture and then click “Log Out”. Hey! 3 clicks to log out, and the action is buried in submenus! There does not seem to be a keyboard shortcut to log out.Can’t this be made faster and more convenient?Thanks so muchBob", "username": "Robert_Cochran" }, { "code": "", "text": "Hello @Robert_Cochran, shift + z two times.", "username": "Alexandre_Araujo" }, { "code": "", "text": "Hi\nyes the quickest way is SHIFT + Z, SHIFT+Z\nMichaelUps. Hello @Alexandre_Araujo after a refresh I saw you answered already ", "username": "michael_hoeller" }, { "code": "", "text": "Hi!@Alexandre_Araujo @michael_hoeller thank you both for your replies, I really appreciate it. ‘SHIFT + Z’ twice is still the equivalent of two clicks on a link…I admit this is new to me…I will try it out and see how it feels.Thanks again so muchBob", "username": "Robert_Cochran" }, { "code": "", "text": "Hello Robert,just click a ? (question mark) on the keyboard on any place (except in an edit field) and you will get a list of keyboard shortcuts. When you are used to use primarily the keyboard also SHIFT+Z (twice) can pay off.\nEspecially the “u” to return to the previous page and the navigation shortcuts e.g. g followed by h for home or u for unread are very handy…Have a nice day,\nMichael", "username": "michael_hoeller" }, { "code": "", "text": "This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.", "username": "system" } ]
Quickly Log Out
2020-02-17T14:55:27.231Z
Quickly Log Out
3,016
null
[ "compass", "security" ]
[ { "code": "", "text": "I have setup a MongoDB server with a self-signed server certificate, and when I use the server validation method in Compass along with the CA certificate, it works well. However, I am still able to connect to the database if I select the “unvalidated” option in Compass, and I don’t want that. I want to reject any client connections that are not validating the server certificate. Is it possible to setup the server to do that?Edit: I have requireTLS setup in the config file, but Compass still lets unvalidated connections through.", "username": "Parag_Goel" }, { "code": "", "text": "That is just how it works(think of your web browser, you’re warned but can override that warning). If you really want to enforce TLS on every connection you need to look at using client certificates.Then the server can reject any connection not using TLS.", "username": "chris" }, { "code": "", "text": "This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.", "username": "system" } ]
How to reject unvalidated SSL client connections from the server?
2020-02-17T21:37:08.205Z
How to reject unvalidated SSL client connections from the server?
2,529
null
[]
[ { "code": "", "text": "I have completed all the lectures and quize of chapter 1 but it is still showing incomplete. It is also showing assignment due whereas I don’t know where that assignment is. Please help with it.", "username": "Eeshita_Raychowdhury_84305" }, { "code": "", "text": "It would be a good idea to share a screenshot", "username": "007_jb" }, { "code": "", "text": "Hi @Eeshita_Raychowdhury_84305,As I can see, you have not completed the Lab 1.3: Determine the Value Type, Part 2.\nScreenshot 2020-02-18 at 2.17.18 PM802×1400 73.8 KB\nHope it helps!Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "", "username": "system" } ]
Unable to complete chapter 1
2020-02-17T20:40:03.381Z
Unable to complete chapter 1
1,266
null
[]
[ { "code": "", "text": "Hi All,I am not able to install the Compass. Even though I am selecting the 1.20.04(Stable Version) and then Platform as Win 64 MSI and then clicking the Download button. Nothing is getting downloaded.Please help.Thanks ANd Regards,\nSubir .", "username": "subir_samantaray" }, { "code": "", "text": "Hi @subir_samantaray,What browser are you using and have you tried any other web browser ?Please use this link for downloading the Compass 1.20.4 stable version (MSI file).Hope it helps!Please feel free to get back to us if you have any other query.Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "Hi,\nI’m having issues to install on mac.\nMessage: no mountable file systemAny idea?Thank you!", "username": "Robelis_21825" }, { "code": "", "text": "Are you sure you downloaded the Mac version?The link provided by @Shubham_Ranjan is for the Windows version.", "username": "steevej" }, { "code": "", "text": "Hi @Robelis_21825,Please use this link to download MongoDB Compass 1.20.5 (Stable) for Mac.Hope it helps!Please let me know if you have any other issue.Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "", "username": "system" } ]
Compass Installation
2020-01-31T05:11:56.075Z
Compass Installation
1,166
null
[]
[ { "code": "", "text": "Just an observation in case anyone else has this issue. The the lesson entitled: \" Lecture: MongoDB Documents: Geospatial Data\" we are to look for the map within the 100 year weather data scheme view. When I first did so, the map didn’t show. I scrolled down the lesson and saw notes relating to setting privacy settings differently. When I went to implement those notes, I clicked “FULL SCREEN” on compass and viola! Without having to follow the privacy setting instructions the map was there–apparently it doesn’t show if you have it minimized along side the course browser window to view and follow the course and compass simultaneously.", "username": "E_82887" }, { "code": "", "text": "Hi @E_82887,Thanks for sharing this with the community. Can you please share the version of Compass that you are using and also would it possible for you to reproduce this error as this was not an expected behaviour ?Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "", "username": "system" } ]
Lecture: MongoDB Documents: Geospatial Data
2020-02-18T01:30:46.727Z
Lecture: MongoDB Documents: Geospatial Data
1,455
null
[ "aggregation", "indexes" ]
[ { "code": "[\n{ $match: level-1-selector},\n{ $unwind: \"$level1Field\" },\n{ $match: level-2-selector},\n{ $unwind: \"$level2Field\" },\n {$match: level-3-selector}\n]\n", "text": "I have a bunch of queries using the aggregation pipeline which now generate alerts on Atlas because the execution scans a lot of documents.I haven’t been able to locate any good documentation for how to optimize indices for aggregations so I was hoping that someone in this forum can help.My pipeline looks more or less like this for a document that has two level of subdocuments (yeah maybe not the best modeling in the world):so my specific question is how to create indices for the 3 different selectors? Does mongo merge the queries into one or should I create three different indices for the different $match-es?", "username": "Per_Bergland" }, { "code": "", "text": "If I remember correctly the lessons from the course M121 of MongoDB university, the indexes can only be used for the level-1-selector.", "username": "steevej" }, { "code": "[\n{ $match: {...level-1-selector,...level-2-selector, ...level-3-selector} },\n{ $unwind: “$level1Field” },\n{ $match: level-2-selector},\n{ $unwind: “$level2Field” },\n{$match: level-3-selector}\n]", "text": "Thanks, so that means I could build a better query by including the sub-selectors in the first match?", "username": "Per_Bergland" }, { "code": "", "text": "If you can do your level-2(and 3)-selector) in the first $match it means they do not need the result of $unwind to do the filtering. Then you probably do not need they other $match stages. In practice you try to reduce the working set as soon as possible as it requires less memory. Even $project-ing in the used fields will help as less memory is used.", "username": "steevej" }, { "code": "{\n \"_id\" : 1,\n \"fld1\" : \"str-1\",\n \"fld2\" : [\n {\n \"a\" : 1,\n \"b\" : [\n {\n \"x\" : 1,\n \"y\" : 2\n },\n {\n \"x\" : 11,\n \"y\" : 22\n }\n ]\n },\n {\n \"a\" : 2,\n \"b\" : [\n {\n \"x\" : 111,\n \"y\" : 222\n }\n ]\n }\n ]\n},\n{\n \"_id\" : 2,\n \"fld1\" : \"str-2\",\n \"fld2\" : [\n {\n \"a\" : 9,\n \"b\" : [\n {\n \"x\" : 91,\n \"y\" : 92\n },\n {\n \"x\" : 911,\n \"y\" : 922\n }\n ]\n }\n ]\n}\n$match+$project$match+$unwind+$match$match+$unwind+$matchdb.nests2.aggregate( [\n { $match: { fld1: \"str-1\" } },\n { $unwind: \"$fld2\" },\n { $match: { \"fld2.a\": 1 } },\n] ).pretty()\n\n{\n \"_id\" : 1,\n \"fld1\" : \"str-1\",\n \"fld2\" : {\n \"a\" : 1,\n \"b\" : [\n {\n \"x\" : 1,\n \"y\" : 2\n },\n {\n \"x\" : 11,\n \"y\" : 22\n }\n ]\n }\n}\n$match$project$addFieldsdb.nests2.aggregate( [\n { $match: { fld1: \"str-1\", \"fld2.a\": 1 } },\n { $addFields: { fld2: {\n $filter: {\n input: \"$fld2\",\n cond: {\n $eq: [ \"$$this.a\", 1 ]\n }\n }\n } } }\n] ).pretty()\n\n{\n \"_id\" : 1,\n \"fld1\" : \"str-1\",\n \"fld2\" : [\n {\n \"a\" : 1,\n \"b\" : [\n {\n \"x\" : 1,\n \"y\" : 2\n },\n {\n \"x\" : 11,\n \"y\" : 22\n }\n ]\n }\n ]\n}\n{ fld1 : 1, \"fld2.a\" : 1 }$matchexplain(){ \"fld2.a\": 1 }$match{ $match: { fld1: \"str-1\", \"fld2.a\": 1, \"fld2.b.y\": 22 } }{ fld1 : 1, \"fld2.a\" : 1, \"fld2.b.y\": 1 }$match$sort", "text": "Lets consider a document structure with arrays with sub-documents as elements. For example, a collection with these two documents:The Query:In an aggregation query, the $match+$project stage filtering and $match+$unwind+$match filtering work differently on a document. But, can produce similar output.The following query is using $match+$unwind+$match filter. Note the output:The following query is using $match (filter on multiple levels) + $project (using $addFields in the example).Indexes:If a compound index is defined on the keys { fld1 : 1, \"fld2.a\" : 1 }, this index is applied on both the queries. But, on the first $match stage only. This can be verified by generating a query plan using explain() on both queries.( [EDIT ADD]: Even if an index is created on the single field { \"fld2.a\": 1 } it will not be used by the query).Same goes as we go down multiple levels down. For example in the following case with $match and the index:{ $match: { fld1: \"str-1\", \"fld2.a\": 1, \"fld2.b.y\": 22 } }\nand the index, { fld1 : 1, \"fld2.a\" : 1, \"fld2.b.y\": 1 }NOTES:In general, indexes on the document fields are best utilized when the aggregation stages that use the index come early in the pipeline (mostly as the first stage as in this case). The stages $match and $sort use the indexes for performance. Also see documentation: Aggregation Pipeline Optimization.Note that creating indexes on arrays (a.k.a. multikey indexes ) on large array fields can affect performance, as the indexes can grow very large.", "username": "Prasad_Saya" } ]
How to optimize indices for aggregate queries
2020-02-17T15:14:24.516Z
How to optimize indices for aggregate queries
2,454
https://www.mongodb.com/…8_2_1023x428.png
[ "monitoring" ]
[ { "code": "", "text": "Hi everyone, I am beginner to mongodb.\nI use mongodb ver 4.0.6 on ubuntu 16.04. I read this article: https://docs.mongodb.com/manual/reference/command/hostInfo/#hostInfo.system.memLimitMB and repeated it. But I did not see any field name “memLimitMB” in output.\nBelow is my result’s screenshot, pls help me. I can not explain it.\n\nimage1557×651 21.2 KB\n", "username": "Vu_Van_Th_ng" }, { "code": "", "text": "Hi @Vu_Van_Th_ng,memLimitMB is starting from 4.0.9 and as you’re using 4.0.6 it’s not visible. ", "username": "viraj_thakrar" }, { "code": "", "text": "Thank you so much for your helping!", "username": "Vu_Van_Th_ng" } ]
Lacked "memLimitMB" field when using db.hostInfo()
2020-02-17T10:35:22.737Z
Lacked &ldquo;memLimitMB&rdquo; field when using db.hostInfo()
2,834
null
[ "security" ]
[ { "code": "", "text": "I’m very new to Mongo, I’ve developed a project running on a digital ocean instance, I’ve enabled remote connections and bind it to 0.0.0.0, so enabling remote connections from app ip’s, I don’t have SSL/TLS installed, I want to know is it safe to access mongo remotely without TLS, is it safe from Man in middle attacks and sniffing?I also received the following email from digital ocean:-\n\"We’ve received a notification from 3rd party security researchers, the Shadowserver Foundation, that your Droplet at <ip_addr> is running a MongoDB instance configured in a way that may be insecure.This configuration may allow attackers to potentially access your MongoDB instance and remove or modify data hosted within it. This note is not to inform you that there has been a data compromise, but rather that your data might be at risk. \"", "username": "s_k" }, { "code": "mongod--auth0.0.0.0mongod2020-02-18T13:53:26.421+1100 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.\n2020-02-18T13:53:26.422+1100 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.\n0.0.0.0", "text": "Hi,The wordings of the email seem to indicate that you’re running the MongoDB server without auth turned on (e.g. the mongod was not supplied a --auth parameter or similar in the config file). If this is accurate, coupled with binding to 0.0.0.0 means that anyone in the internet can go into the server and modify anything in it.If you don’t use auth, you should see something like this in the mongod log:With regard to your specific question:I want to know is it safe to access mongo remotely without TLS, is it safe from Man in middle attacks and sniffing?Auth and TLS are two different things. Without TLS, communication between the client and the server can be “sniffed” (e.g. “in the clear”). Without auth, anyone that can access the server can connect to your server and change things like an admin. Without auth and binding to 0.0.0.0, anyone in the internet can connect to your server and change things like an admin.Generally there are a couple of ways to provide security for the database:For the first option, please see the following for more details:Best regards,\nKevin", "username": "kevinadi" } ]
Is remote access without SSL/TLS safe?
2020-02-17T18:47:04.789Z
Is remote access without SSL/TLS safe?
3,549
null
[ "node-js" ]
[ { "code": "(node:29533) UnhandledPromiseRejectionWarning: TypeError: client.close is not a functionconst db = new KeyMongo(`mongodb+srv://CORRECT_URL.mongodb.net/test?retryWrites=true&w=majority`,{db:\"mongo-test\",collection:\"keyv\"})\ndb.set(\"KEY\",\"VALUE\").catch(console.error())\n", "text": "https://hastebin.com/rubabogumo.cs\n==> My code\n(node:29533) UnhandledPromiseRejectionWarning: TypeError: client.close is not a function\nI get this error if I do", "username": "Jitesh_D" }, { "code": "KeyMongoconnect()KeyMongo async init(callback){\n this.client = new MongoClient(this.uri, {useNewUrlParser: true, useUnifiedTopology: true })\n await this.client.connect(); \n callback.bind(this).call();\n }\n\n async set(key, value){\n let result = await createListing(this, key, value)\n console.log(result.insertedId);\n }\n ....\n\n async function createListing(obj, key, value){\n try {\n insert = await obj.client.db(obj.db).collection(obj.collection).insertOne({\"_id\": key,\"value\":value})\n return insert\n } finally {\n await obj.client.close()\n }\n }\nKeyMongoconst km = new KeyMongo(`MONGODB_URI`, {db:\"dbName\",collection:\"collName\"})\nkm.init(function(){\n km.set(\"Key\",\"Value\").catch(console.error())\n});\n", "text": "Hi @Jitesh_D,You need to call MongoClient.connect() to establish a connection. This method either returns a promise or execute a callback. Depending on how you would like to use KeyMongo class, there are many ways to incorporate connect() in the class.One way is have another async method to initialise KeyMongo . For example:Then you can invoke KeyMongo using:Thank you for providing the code snippet that’s quite useful. If you have further questions, please provide which MongoDB Node.JS driver you are using.Regards,\nWan.", "username": "wan" } ]
Client.Close() is not a function?
2020-02-14T03:44:52.802Z
Client.Close() is not a function?
8,726
null
[ "aggregation", "compass" ]
[ { "code": "", "text": "when setting up an aggregation pipeline stage the $unwind selection defaults to long mode… so for the short mode on a simpler single array field are we to manually back all that out and just enter a field?..attempts at this approach don’t seem to work…or is $unwind: not to be set up in its own stage?..", "username": "James_Bailie" }, { "code": "{ _id: 1, arr: [ \"app\", \"ban\", \"ora\" ] }$unwindarr{\n path: \"$arr\"\n}\n/**\n * path - Path to the array field.\n * includeArrayIndex - Optional name for index.\n * preserveNullAndEmptyArrays - Optional\n * toggle to unwind null and empty values.\n */\n{\n path: path,\n includeArrayIndex: 'string',\n preserveNullAndEmptyArrays: boolean\n}", "text": "Suppose if your collection has document like this: { _id: 1, arr: [ \"app\", \"ban\", \"ora\" ] }. The Compass’s aggregation $unwind pipeline stage for the field arr would be:Edit Add:\nThe default display will have the following content - edit it to your needs (e.g., as above):", "username": "Prasad_Saya" }, { "code": "", "text": "Hi @James_Bailie,What do you mean by “long mode” and “short mode”? The $unwind stage takes an array and creates a document for every element in the array (i.e. start with n documents, and with m documents where m >= n).What are you trying to accomplish? I want to better understand your question before attempting to answer.", "username": "Justin" }, { "code": "", "text": "What do you mean by “long mode” and “short mode”?I think the short and long “modes” are the two syntax versions $unwind can be used with: Field Path Operand and Document Operand with Options.", "username": "Prasad_Saya" }, { "code": "", "text": "so to answer Justin: that is the terminology of the lesson/video course M121 on the aggregation pipeline. we are taught the short mode for command line i.e.:\n{$unwind: “$genres”},at the end of the video the long mode is noted/introduced but only that FYI it exists - and nothing further (the 3 parameters per Prasad’s reply)I am experimenting with the course assignments in doing them both as shell commands, and then over in Compass. The class is pretty much all shell commands.Over in Compass, in the Aggregation tab, when you select stage $unwind - - it presents the long mode…so that was a head scratcher… but Prasad has answered it in providing the syntax to be:\npath: “$arr” i.e. path: <$field name>\n…which maybe was so easy, in retrospect, that it never occurred to me…", "username": "James_Bailie" }, { "code": "$unwind$unwindincludeArrayIndex: true", "text": "Got it. To clarify terminology, there isn’t really a “long mode” and “short mode”. MongoDB University likely wanted to call out that a different exists and needed a term to draw attention to the difference.The distinction here is about what type of operand is provided to the $unwind stage. Check out the documentation page for details:Basically, there is a string operand or document operand. Both do exactly the same thing but may subtly change the output. For example, it can be helpful to keep track of where in the array an element existed after $unwind by using includeArrayIndex: true.I recommend always reading the documentation when working with aggregation stages. Simply reading through the different options often clarifies a lot.I hope that helps!Justin", "username": "Justin" }, { "code": "", "text": "This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.", "username": "system" } ]
Compass, Aggregation & $unwind
2020-02-11T20:05:38.480Z
Compass, Aggregation &amp; $unwind
6,499
null
[ "kafka-connector" ]
[ { "code": "java.lang.IllegalStateException: Queue fullcopy.existing.queue.sizecopy.existing: truemongo-kafka-connect: 1.0.0\nKafka: 2.4.0\nKafka-Connect: 2.4.0\nMongoDB server: 3.6.14\nmongodb-driver-sync: 3.12.1\norg.apache.kafka.connect.errors.ConnectException: java.lang.IllegalStateException: Queue full\n\tat com.mongodb.kafka.connect.source.MongoCopyDataManager.poll(MongoCopyDataManager.java:95)\n\tat com.mongodb.kafka.connect.source.MongoSourceTask.getNextDocument(MongoSourceTask.java:301)\n\tat com.mongodb.kafka.connect.source.MongoSourceTask.poll(MongoSourceTask.java:154)\n\tat org.apache.kafka.connect.runtime.WorkerSourceTask.poll(WorkerSourceTask.java:265)\n\tat org.apache.kafka.connect.runtime.WorkerSourceTask.execute(WorkerSourceTask.java:232)\n\tat org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:177)\n\tat org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:227)\n\tat java.base\\/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)\n\tat java.base\\/java.util.concurrent.FutureTask.run(Unknown Source)\n\tat java.base\\/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\n\tat java.base\\/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\n\tat java.base\\/java.lang.Thread.run(Unknown Source)\nCaused by: java.lang.IllegalStateException: Queue full\n\tat java.base\\/java.util.AbstractQueue.add(Unknown Source)\n\tat java.base\\/java.util.concurrent.ArrayBlockingQueue.add(Unknown Source)\n\tat com.mongodb.client.internal.Java8ForEachHelper.forEach(Java8ForEachHelper.java:30)\n\tat com.mongodb.client.internal.Java8AggregateIterableImpl.forEach(Java8AggregateIterableImpl.java:54)\n\tat com.mongodb.kafka.connect.source.MongoCopyDataManager.copyDataFrom(MongoCopyDataManager.java:123)\n\tat com.mongodb.kafka.connect.source.MongoCopyDataManager.lambda$new$0(MongoCopyDataManager.java:87)\n\t... 5 more\n", "text": "When importing data from mongodb to kafka using the connector, GitHub - mongodb/mongo-kafka: MongoDB Kafka Connector, it throws java.lang.IllegalStateException: Queue full .I use the default setting of copy.existing.queue.size , which is 16000, and copy.existing: true . What value should I set? The collection size to import to kafka is 10G.Environment:Stacktrace:", "username": "Sendoh_Daten" }, { "code": "", "text": "FYI this issue is being discussed (and addressed) at KAFKA-85", "username": "alexbevi" } ]
MongoDB Kafka Source Connector throws java.lang.IllegalStateException: Queue full when using copy.existing: true
2020-02-14T09:43:00.339Z
MongoDB Kafka Source Connector throws java.lang.IllegalStateException: Queue full when using copy.existing: true
2,873
null
[ "atlas" ]
[ { "code": "", "text": "Hey all,on our MongoDB Atlas Sandbox we experienced today a huge amount of open connections (about 80 connections in 10 minutes) of which we don’t know where they come from.Even worse: We cannot close them and not even connect with mongo shell to analyse where they come from.What can we do? Is there any way to force close some connections from the web interface or find out where they originate?Thanks,\nSimon", "username": "Simon_Hartmann" }, { "code": "db.currentOp()\n2019-03-28T09:42:49.795-0700 I NETWORK [listener] connection accepted from 192.168.1.1:62408 #1 (1 connection now open)\n", "text": "Hey @Simon_HartmannWhat tier of Atlas are you using. I remember when I upgraded my cluster from M2 to an M10 I got a shock at the default connections that the 3 nodes are using to communicate to each other (about 30 - 35 connections).\nI have not seen it reach as high as 80. Have you implemented IP whitelisting in the Network access tab to prevent unauthorized connections.With Atlas Free Tier, it doesn’t allow you to run db.currentOp() . So the one other way is to check the MongoDB log files for active connection IP Address.Click Download logs\n\n966×1160 93.7 KB\nHope this has helped.", "username": "Natac13" }, { "code": "", "text": "Hi Sean,thanks for your help. We upgraded to M2 - and the connections went down.However we still cannot see the logs in M2. So for now it seems we cannot explore the real reasons for the high connection count.", "username": "Simon_Hartmann" } ]
Huge amount of open connections - how to close them?
2020-02-12T19:46:12.025Z
Huge amount of open connections - how to close them?
8,028
null
[]
[ { "code": "", "text": "I am stuck at the very beginning -\nCan someone help me out.", "username": "DIPRA_CHAKRABORTY_41962" }, { "code": "mongodb://m001-student:[email protected]:27017/?authSource=admin&replicaSet=mmm&readPreference=primary&appname=MongoDB%20Compass&ssl=true", "text": "Hi @DIPRA_CHAKRABORTY_41962,Please paste this connection string into the text box and click CONNECT for connecting to the class atlas cluster.Hope it helps!Please feel free to get back to us if you have any other query.Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "I am getting this -\n\nimage1920×1080 178 KB\nThanks.", "username": "DIPRA_CHAKRABORTY_41962" }, { "code": "mongodb://m001-student:[email protected]:27017/?authSource=admin&replicaSet=mmm&readPreference=primary&appname=MongoDB%20Compass&ssl=truemongodb://m001-student:[email protected]:27017/?authSource=admin&replicaSet=mmm&readPreference=primary&appname=MongoDB%20Compass&ssl=true", "text": "Hi @DIPRA_CHAKRABORTY_41962,I am able to connect using this connection string.Anyways please try these two connection strings as well :If you are still unable to connect then please refer this post and make sure that the basic tests are passing.Hope it helps!Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "Should I still use “m001-student” as the user and the password proivded in the course as the password?", "username": "Shaun_25249" }, { "code": "", "text": "I am in thank you. Iused the following:mongodb://m001-student:[email protected]:27017/?authSource=admin&replicaSet=mmm&readPreference=primary&appname=MongoDB%20Compass&ssl=true", "username": "Shaun_25249" }, { "code": "", "text": "Hi @Shaun_25249,I’m glad your issue got resolved. Please feel free to get back to us if you have any other query.Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "", "username": "system" } ]
Getting the error in screenshot
2020-02-11T14:48:45.412Z
Getting the error in screenshot
1,306
null
[ "security", "atlas" ]
[ { "code": "", "text": "Hi,\nI have enabled the option of encrypting data at rest under the advanced settings. How do I verify that the data is indeed encrypted at rest or in other words if my services are being audited by a regulatory authority, what is the authoritative proof that data is being encrypted at rest ? Thanks !", "username": "Ashish_Sahni" }, { "code": "", "text": "How are you encrypting the data? KMS or key file?We use a KMS and I look for a very specific message in the mongod.log to confirm I have authenticated with the KMS.Interested to see if there are alternative ways especially as I field a lot of InfoSec questions related to our data infrastructure!", "username": "clivestrong" }, { "code": "", "text": "@clivestrong I’m using KMS", "username": "Ashish_Sahni" }, { "code": "", "text": "MongoDB Atlas leverages encrypted storage volumes by default no matter what.Separately, MongoDB Atlas offers an optional second level of encryption leveraging the MongoDB encrypted storage engine: this means that the files themselves are written to the filesystem encrypted.When using this second optional type of encryption, MongoDB Atlas customers “bring their own key” in the form of either AWS KMS, GCP KMS, or Azure Key Vault. In this paradigm, envelope encryption is used to derive keys at the cluster node and database levels, which enables for online key rotation.To answer the original question, please navigate to Trust Center — MongoDB Cloud Services | MongoDB where you can download and review the MongoDB Atlas Security whitepaper which goes into much more depth on these topics: If you’d like to go deeper and/or need our help in the process of a security review or audit, we can also share, under NDA, our third party compliance attestation reports (SOC-2 Type 2, ISO-270001, PCI-DSS). We also sign BAAs for ePHI workloads.", "username": "Andrew_Davidson" }, { "code": "", "text": "I did not realise the storage volume was encrypted regardless.We use the Townsend AKM. I look for an [initandlisten] mesage relating to the KMIP on start up. This is what we use to acknowledge we have retrieved the key for encryprion/decryption.Clive", "username": "clivestrong" } ]
Audit - Encryption at Rest
2020-02-13T20:12:39.237Z
Audit - Encryption at Rest
3,458
null
[ "stitch" ]
[ { "code": "", "text": "Hello. I’m setting up auto deployment to stitch and it looks like to enable this need to be in the files/ folder and not in any subfolders.├── hosting/\n│ ├── metadata.json\n│ └── files/\n│ └── see…\nhttps://docs.mongodb.com/stitch/deploy/application-schema/Does anyone know a way around this as it’s not a very good way to organise the project files.", "username": "Daniel_Gold" }, { "code": "├── hosting\n│ ├── files\n│ │ ├── index.html\n│ │ ├── x\n│ │ │ └── foobar.html\n│ │ └── y\n│ │ └── baz.js\n│ └── metadata.json\n", "text": "Hi @Daniel_Gold,\nWelcome to the forum!Does anyone know a way around this as it’s not a very good way to organise the project files.Currently this is the structure that is needed for Stitch applications format. The configuration files are grouped into directories based on their component type, in your example that would be for MongoDB Stitch Hosting.I’m setting up auto deployment to stitch and it looks like to enable this need to be in the files/ folder and not in any subfolders.Could you elaborate further what do you mean by this ? You can create sub-directories under the hosting/files directory, i.e:Or are you referring to the Stitch app itself to be a sub-directory of a Git repository ? If so, there’s an open canny request for this Stitch: GitHub automatic deploy from a subdirectory, feel free to upvote or comment the request.Regards,\nWan.", "username": "wan" } ]
Autodeploy to stitch
2020-02-11T20:05:19.562Z
Autodeploy to stitch
2,244
null
[]
[ { "code": "", "text": "Hi!In general, I like the look of the forum, but it is a little confusing for me to figure out how to return to the previous page that I was on. For example, suppose I am on the Welcome page. I see an introduction from someone that I want to reply to. I click on that, write my reply, and post it. What then? Well maybe I want to return to the welcome page again. There seems no link or button or breadcrumb trail I can use to get back there, at both the top and bottom of that page. A breadcrumb trail would be nice…it is hard to say at this point…but I’d like to get back to my previous page, and from there, perhaps look at other parts of the Community Forums.Thanks so muchBob", "username": "Robert_Cochran" }, { "code": "⌘-click", "text": "Hi @Robert_Cochran,Thanks for the feedback. There’s a link to the category for a post below the title (eg “Site Feedback” on this page), but that’s not the same as a generic “back to where you were” or recently visited pages navigation.For my personal workflow I have a habit of opening links for reading in new tabs so I can rely on browser behaviour rather than site-specific UI (although recently visited pages would be handy). For example, ⌘-click a link on macOS.Regards,\nStennie", "username": "Stennie_X" }, { "code": "", "text": "Hi,\nmy personal habit is as with Stennie -> almost every link is opened is a new tap. beside that:\nI just figured out that a click on the MongoDB logo brings you back to the start page. The initial content of the start page can be (kind of) defined in your personal settings. The good thing of the logo is, that it is always visible, so no extra scrolling. One more, you need to click on the leaf in case you are in a submenu…\nMichael", "username": "michael_hoeller" }, { "code": "?≡u", "text": "@Robert_Cochran I discovered that Discourse has some handy keyboard shortcuts for power users.Hit ? when the cursor isn’t in a search/edit box (or choose “Keyboard Shortcuts” from the ≡ menu at the top right of any page) and you should see a reference pop up similar to:\n\ndiscourse-keyboard-shortcuts1746×1754 399 KB\nThe u shortcut takes you back to the previous page.Regards,\nStennie", "username": "Stennie_X" }, { "code": "", "text": "Great find @Stennie_X! Thanks for sharing this.", "username": "Doug_Duncan" }, { "code": "", "text": "@Stennie_X Thank you so much for responding to this, and as with Doug, I think this is a great find. Sorry it took me so long to log back in and acknowledge. The Google user forum is still active and since I get emails when people post to that, it tends to be distracting. I will habitually log in to this community forum once daily to get the latest.Thanks again Stennie!Bob", "username": "Robert_Cochran" }, { "code": "", "text": "This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.", "username": "system" } ]
Easily Return to Previous Page
2020-02-07T01:33:12.714Z
Easily Return to Previous Page
3,109
null
[ "monitoring" ]
[ { "code": "", "text": "This question is based on my interaction with the Metrics section on Atlas.I understand you can perform CRUD operations, and that’s represented in Insert, query, Update, Delete when looking at the Opcounters section.However, I’d like to know what kinds of queries are categorised as “command”.Thanks.", "username": "Opesanya_Adebayo" }, { "code": "", "text": "well I can’t speak for official MongoDB… but in my sql experience… a command is not a query - in general… a command is like: create Index, shard a cluster, etc. more admin stuff…when it comes to queries…the updates/inserts are considered ‘action’ queries in that they actually change the data rather than just present the data i.e. find/group/aggregate/match… so perhaps in a way the action queries can be considered a command but… it’s kind of general agreement on terminology and nothing official - - I suppose if you search the MongoDB manual it will tell you what is considered a command…", "username": "James_Bailie" }, { "code": "", "text": "Hey @Opesanya_AdebayoPerhaps this from the docs can help", "username": "Natac13" } ]
Operation Types on Atlas
2020-02-16T02:19:57.050Z
Operation Types on Atlas
1,780
null
[]
[ { "code": "", "text": "Hi Team,In my system, when I open the app it shows contact devloper for recent update. ", "username": "Subham_15686" }, { "code": "", "text": "Have a look at this post.", "username": "007_jb" }, { "code": "", "text": "Same issue here. Can’t fly without wings.", "username": "Jackson_28348" }, { "code": "", "text": "Did you go through the post in the link?\n", "username": "007_jb" }, { "code": "", "text": "", "username": "system" } ]
Unable to start the mongo compass app
2020-02-11T11:43:20.626Z
Unable to start the mongo compass app
1,390
null
[ "backup" ]
[ { "code": "", "text": "Need the help, can MongoDB 4.2.1 support VMWare Site Recovery Manager. If supports does above Database requires to use enterprise edition.\nAs we are planning to enable DR environment based on production", "username": "sunil_k" }, { "code": "", "text": "The MongoDB server does not currently have any specific awareness or integration for VMware Site Recovery Manager (which I gather uses vMotion or something analogous for live migration of VMs).Production MongoDB deployments normally take advantage of built-in replication for failover and disaster recovery.In theory tools like Site Recovery Manager handle live migration of VMs without requiring awareness or modification by applications running in the VMs. In practice, you should test your configuration in a representative staging/QA environment to make sure your failover/migration process does not have unanticipated side effects.The MongoDB Production Notes include a brief mention of VMware and recommended settings based on aggregate user feedback. However, we do not specifically test VMware products or configurations.You may be able to get more targeted advice in VMware’s Site Recovery Manager forum.Regards,\nStennie", "username": "Stennie_X" } ]
Does MongoDB support VMWare Site Recovery Manager?
2020-02-14T03:45:11.872Z
Does MongoDB support VMWare Site Recovery Manager?
2,343
null
[]
[ { "code": "", "text": "I cannot search for BI, it says “term is too short” ", "username": "coderkid" }, { "code": "connector-for-bi", "text": "@coderkid The minimum search term length is currently 3 characters. Short terms tend to add less relevance to results while greatly increasing the size of the index.However, there are some exceptions and this is a great example. We’re looking into options to improve this.In the interim, adding more terms should provide results, for example:There is also a connector-for-bi tag which hasn’t been used for any discussions (at least as of this moment … you could be the first!).Regards,\nStennie", "username": "Stennie_X" }, { "code": "", "text": "This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.", "username": "system" } ]
I cannot search for BI
2020-02-14T03:44:46.988Z
I cannot search for BI
2,724
null
[ "stitch" ]
[ { "code": "var collection = context.services.get(\"mongodb-atlas\").db(\"FEDEX\").collection(\"empleado\");\nvar retorno = collection.findOne();\nreturn retorno;\nvar collection = context.services.get(\"mongodb-atlas\").db(\"FEDEX\").collection(\"empleado\");\nvar retorno = collection.findOne();\n\nresponse.setHeader(\"Content-Type\", \"application/json\");\nresponse.setBody(JSON.stringify(retorno));\nresponse.setStatusCode(200);\n", "text": "Hello friends!I am working with an Incoming Webhook. When i do this:exports = function(payload, response) {};Returns well but in EJSON format:{\nhoraMarcaje: { ‘$date’: { ‘$numberLong’: ‘1576802718000’ } },\ntipoMarcaje: { ‘$numberInt’: ‘0’ },\nSN: ‘BWXT191960344’,\ntipoLector: ‘huella’\n}I try to solve it this way:exports = function(payload, response) {};But I get this: {}How do I get the function to return a JSON instead of an EJSON?Thanks!", "username": "Federico_Ettlin" }, { "code": "", "text": "I would use https://docs.mongodb.com/stitch/functions/utilities/ to convert the answer.", "username": "steevej" }, { "code": " var dataJson = JSON.stringify(data);\n \n response.setHeader(\"Content-Type\", \"application/json\");\n response.setBody(dataJson);\n response.setStatusCode(200);\n }\n", "text": "I could fix it!\nProblem with promises. I was missing the await in:var data = await collection.findOne();This works perfect:exports = async function(payload, response) {try {\nvar collection = context.services.get(“mongodb-atlas”).db(“FEDEX”).collection(“empleado”);\nvar data = await collection.findOne();catch(error) {\nconsole.error(error);\n}\n};", "username": "Federico_Ettlin" }, { "code": "awaitJSON.stringify", "text": "I don’t think you need to await the JSON.stringify function. Its sync.", "username": "Ihsan_Mujdeci" }, { "code": "", "text": "JSONWhat do you mean? Do you mean you want the date in some other format? Can you show what format you need back?", "username": "Asya_Kamsky" }, { "code": "", "text": "Thanks Asya!The issue was that I didn’t know how to respond with JSON instead of EJSON.But I could fix itThank you!", "username": "Federico_Ettlin" }, { "code": "", "text": "Thanks Ihsan!I could solve it, the problem was that I was missing the “await” in the query:var data = await collection.findOne ();Thank you!", "username": "Federico_Ettlin" } ]
Stitch service EJSON
2020-02-13T19:49:37.790Z
Stitch service EJSON
2,686
null
[ "atlas" ]
[ { "code": "", "text": "I have about 50KB of application data in an atlas cluster. However, the daily AWS data transfer is a few GB every day. How do I figure out why a few KiloBytes is resulting in a few GigaBytes of data transfer every single day ?", "username": "Ashish_Sahni" }, { "code": "", "text": "Hey @Ashish_SahniI was wondering this very same thing when I upgraded my M2 cluster to M10. Plus the some 30 connections.The reason I received was the intercommunication between your nodes which make up your cluster. They are in ‘constant’ contact with each other. Plus Atlas provides monitoring of your cluster which also required data transfer. At the end of the month I believe it was around 2% of the total bill.\nThe documentation mentions this about data transferThe vast majority of Atlas customers spend less than 10% of their budget on data transfer.Hope this helps.", "username": "Natac13" }, { "code": "", "text": "Hi @Ashish_Sahni,There are 3 types of data transfer:Knowing which one of these types you are referring to would help us understand your usage.The \" Atlas AWS Data Transfer (Same Region) \" is for data transfers and traffic between cluster nodes and data transferred between an application located in the same region as your cluster.The traffic between the nodes in your Atlas cluster includes heartbeats and data replication between nodes.The heartbeats occur regularly whenever the cluster is running, but are small in size. Replication involves propagating changes (writes, deletions, index builds, etc.) from the Primary to the Secondaries.Backup type and schedule also affects data transfer. Please refer to this documentation.Kind regards,\nMartin", "username": "Martin" }, { "code": "", "text": "@Natac13 Thanks, I was told the same thing but the math still does not make sense to me.", "username": "Ashish_Sahni" }, { "code": "", "text": "The bulk of the data transfer usage (>99%) is for the ‘Same Region’.A sample for a 72 hour period\n02/12/20\tAtlas AWS Data Transfer (Same Region) (N. Virginia) \t7.477 GBSince, this is a dev server that was just created and is not used frequently ie, application data stored in mongodb is not changing very often - I’m not how 50KB of application data could result in 7+ GB of data transfer usage.Any ideas ?", "username": "Ashish_Sahni" }, { "code": "", "text": "All replica set members exchange heartbeats with each other. Any driver that connects will also communicate to each member to maintain correct state of the replica set. That’s before any writes come to the server. Any write will be replicated to each of the secondaries.Isn’t 7GBs something like 7 cents? Is your worry that this will be a lot higher in production?", "username": "Asya_Kamsky" }, { "code": "", "text": "@Asya_Kamsky @Martin\nMy worry is I don’t understand the math. Why is it so difficult for MongoDB to explain the math ?", "username": "Ashish_Sahni" }, { "code": "", "text": "My worry is I don’t understand the math. Why is it so difficult for MongoDB to explain the math ?Hi Aasish, a typical MongoDB replica set in MongoDB Atlas will push approximately 6.2 to 6.8 GB per day in the form of the heartbeats between replicas that Asya mentioned (which in turn do cost $0.06 to $0.07 per day in in-region data transfer).Note that the heartbeats enable the distributed system to maintain high availability and quorum in order to enable auto-failover. This enables continuous read and write availability in the event of loss of a node or availability zone. MongoDB leverages the RAFT distributed consensus algorithm.", "username": "Andrew_Davidson" } ]
AWS Atlas Data Transfer Usage
2020-02-13T13:42:03.124Z
AWS Atlas Data Transfer Usage
4,467
null
[ "upgrading" ]
[ { "code": "", "text": "Hi all,We have MongoDB 4.0.3 and 4.0.4 installed. and we just recently had an Enterprise License.What to do next?\nDo we have to uninstall our current MongoDb version and install a new one?\nand if ever we want to keep our current version. how to activate our mongodb from community to enterprise.", "username": "Geo_Banaag" }, { "code": "", "text": "What to do next?My recommended first step would be to upgrade from 4.0.3/4.0.4 to the latest 4.0.x release (currently 4.0.16) .You can upgrade to either Community or Enterprise Edition, but I’d choose the latter if you have an active subscription. Minor server releases include security and stability improvements but do not introduce any backward-breaking changes. Your current versions of MongoDB were released in 2018 and there have been a quite a few important improvements in the 12 or so subsequent minor releases.Your Enterprise Advanced subscription also includes access to our global support team, so I would ask questions like this via the Customer Support Portal for more personalised support with SLAs and direct access to our support engineers.Do we have to uninstall our current MongoDb version and install a new one?\nand if ever we want to keep our current version. how to activate our mongodb from community to enterprise.If you are not using an Enterprise storage engine (Encrypted Storage or In-Memory Storage), the data file formats are identical if you want to switch between Community & Enterprise edition server binaries. If you end up using Enterprise storage engines and later want to change to Community edition, you can convert to the standard WiredTiger storage engine (for example, via rolling replica set maintenance) before changing editions.Installing the Enterprise edition server package should uninstall Community edition (and vice-versa) without affecting your data files. However, I’d always recommend taking a backup before any administrative changes in case something doesn’t go to plan.For instructions on upgrading, start with Upgrade MongoDB Community to Enterprise (MongoDB 4.0) and follow the relevant instructions for your deployment type.Regards,\nStennie", "username": "Stennie_X" }, { "code": "", "text": "Thank you for your help Stennie.", "username": "Geo_Banaag" }, { "code": "", "text": "This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.", "username": "system" } ]
Upgrading from Community to Enterprise
2020-02-14T05:52:23.773Z
Upgrading from Community to Enterprise
2,700
null
[]
[ { "code": "", "text": "Hello all,\nI’d love to see a read only announcement category, which can be set to be “tracked” so that all the latest news is no more missed. E.g. a launch of MongoDB Podcasts as mentioned from @Michael_Lynn here:\nRegards,\nMichael", "username": "michael_hoeller" }, { "code": "", "text": "I’d love to see a read only announcement category, which can be set to be “tracked” so that all the latest news is no more missed.@michael_hoeller Announcements are part of the About the Community section which includes subcategories such as:Community AnnouncementsProduct & Driver AnnouncementsIntrosCareersMongoDB Podcasts isn’t live yet, but I expect the launch news would be shared as a Community Announcement.You can set notification preferences for a category by clicking on the at the top right of a category page:\ndiscourse-watch1272×748 72.6 KB\nRegards,\nStennie", "username": "Stennie_X" }, { "code": "", "text": "Thanks for the update, I understood “Community Announcement” in a different way:Community platform announcements and other relevant information from the MongoDB Community team.Good to know that this category is meant to be the place, thanks a lot.\nMichael", "username": "michael_hoeller" }, { "code": "", "text": "@michael_hoeller Categories and descriptions will evolve with the site content, but it is a bit difficult to see what some categories might include without more real posts.In this case “other relevant information” is open to interpretation but my take is that new resources like MongoDB Podcasts would be very relevant .Regards,\nStennie", "username": "Stennie_X" }, { "code": "", "text": "Fair point - I’ll take another stab at the description to make it more inclusive of these types of announcements, as I’d expect them to appear there (in the Community Announcements category) as well.", "username": "Jamie" }, { "code": "", "text": "Hi there,the Feb 20 update of MongoDB Charts is posted in the MongoDB Cloud Category that makes sense. Hello Tom @tomhollander, I love to use Charts!\nHowever, if someone wants to get only an info of the latest news of MDB activities (as in announcements), you would need to “track” many categories if they are posted in “their” categories, I assume that this will lead soon to an overflow of the “new counter”.\nThis actually was the reason why I raised the question, to trigger a brainstorming to find the use case(s).One option could be:\na cross link from an announcement category to the individual posts in their individual categories\nan other option might be:\nto tag the announcements and to track/watch tags.Just some thoughts, it would be great if readers can like this brainstorming to raise attention, or (better) comment which use case work out or further options to avoid cross posting and still get the wanted information.Michael", "username": "michael_hoeller" }, { "code": "charts", "text": "Feb 20 update of MongoDB Charts is posted in the MongoDB Cloud Category@michael_hoeller This announcement is for the February MongoDB Charts on Atlas release, so I moved it to Product & Driver Announcements.We do want to make it easy for someone to subscribe to announcements of interest. For example, charts announcements would be: Topics tagged charts.Regards,\nStennie", "username": "Stennie_X" }, { "code": "charts", "text": "Hello @Stennie_XThanks a lot, this is what I have in mind.We do want to make it easy for someone to subscribe to announcements of interest. For example, charts announcements would be: Topics tagged charts.Just, hope I have not missed anything, when I want to get notified I can subscribe for a category e.g. “Product & Driver Announcements” or a tag e.g “atlas”. This will result in quite a bit of notifications. It would be great to be able toThanks a lot for looking into itMichael", "username": "michael_hoeller" }, { "code": "", "text": "", "username": "Stennie_X" } ]
What about an announcement category?
2020-02-12T08:46:38.774Z
What about an announcement category?
3,562
null
[ "data-modeling" ]
[ { "code": "", "text": "Hello, I’m very familiar with ER models and tools and use it for my living! What’re equivalent tools to create No-SQL models such as for Mongo document hierarchical models for logical and physical.Regards", "username": "Ram_Kup" }, { "code": "", "text": "Do you use any modeling tools for your object hierarchies for your backend code?Those might map closer to MongoDB/document models than traditional RDBMS tools.\nAnother approach would be to use logical modeling. Physical can always map one-to-one.", "username": "Asya_Kamsky" } ]
Data modeling tools for MongoDB
2020-02-12T19:46:10.113Z
Data modeling tools for MongoDB
1,412
null
[]
[ { "code": "", "text": "Greetings, all! I’m Eric Reid, a Consultant with MongoDB Professional Services. I’ve been at MongoDB since late 2017, and travel Everywhere to help make our customers successful. I especially love to help those new to MongoDB get up to speed, and enjoy presenting on such topics at our yearly MongoDB World.Silverback? Yep, my term for the ‘seasoned’ of us (I’ve 40+ years in the industry) who’ve come to know and love all that is MongoDB.Say Hi. Reach out. Ask questions. Share stuff. You’ll be glad you did!", "username": "Eric_Reid" }, { "code": "", "text": "Welcome @Eric_Reid! Glad to have you here. ", "username": "Jamie" }, { "code": "", "text": "travel EverywhereSo, what’s the furthest you’ve been for a customer?", "username": "Asya_Kamsky" }, { "code": "", "text": "Distance-wise, probably San Diego (I know, “Pffffft!!!”). Airline segments-wise, probably Quebec City. Have had potential gigs overseas (New Zealand, Norway, Oman), but as MongoDB PS grows globally, there are usually CEs much closer.I don’t go nearly as far as you do @Asya_Kamsky, nor do I fit in the overhead luggage bin (ask Asya to share that pic with you, folks…)", "username": "Eric_Reid" }, { "code": "", "text": "What, this one???", "username": "Asya_Kamsky" } ]
🌱 The MongoDB Silverback checks in
2020-02-10T15:04:47.053Z
:seedling: The MongoDB Silverback checks in
2,219
null
[ "production", "php" ]
[ { "code": "pecl install mongodb\npecl upgrade mongodb\n", "text": "The PHP team is happy to announce that version 1.7.2 of the mongodb PHP extension is now available on PECL.Release HighlightsThis release fixes compilation issues when compiling with client-side encryption on Alpine Linux. The libmongocrypt dependency has been updated to 1.0.3 to fix this issue.A complete list of resolved issues in this release may be found at: Release Notes - MongoDB JiraDocumentationDocumentation is available on PHP.net:\nPHP: MongoDB - ManualFeedbackWe would appreciate any feedback you might have on the project:\nhttps://jira.mongodb.org/secure/CreateIssue.jspa?pid=12484&issuetype=6InstallationYou can either download and install the source manually, or you can install the extension with:or update with:Windows binaries are available on PECL:\nhttp://pecl.php.net/package/mongodb", "username": "Andreas_Braun" }, { "code": "", "text": "", "username": "system" } ]
MongoDB PHP Extension 1.7.2 released
2020-02-13T12:43:52.791Z
MongoDB PHP Extension 1.7.2 released
2,201
null
[ "java", "connecting" ]
[ { "code": "", "text": "Hi,\nI have a replicaSet that receives two to five thousands of queries per second on each secondary node.\nConnection is made by mongodb java driver, using secondaryPreferred.\nSometimes, I must do a stop/start to resize the EC2, for scale purposes.\nWhenever this happens, the API shows high mongodb latency, several connection timeouts and then resumes to normal.\nThis only happens in these high-throughput scenarios.\nAre there any driver parameters that can solve this problem?", "username": "Felipe_Esteves" }, { "code": "", "text": "Hi Felipe,Welcome to MongoDB Community!Are there any driver parameters that can solve this problem?Yes. Have you tried the “connectTimeoutMS” and “socketTimeoutMS” options in your connection string?Kind regards,\nMartin", "username": "Martin" }, { "code": "&readPreference=secondaryPreferred\n&connectTimeoutMS=1000\n&socketTimeoutMS=500\n&minPoolSize=10\n&maxPoolSize=10\n&maxIdleTimeMS=300000\n&waitQueueMultiple=3\n&readPreferenceTags=....\n", "text": "Hi, Martin!We have several setttings in the string already:I`ve thought about server selection timeout, because what it seems to me is that during the EC2 stop/start, the application doesn’t understand that the node is down. Or maybe some fine tuning in one of these parameters?Thanks,\nkind regards,\nFelipe", "username": "Felipe_Esteves" }, { "code": "", "text": "Hi Felipe,I see. I haven’t tested myself the serverSelectionTimeoutMS option but I think you are correct to believe this option might do the trick.It’s an easy test to perform on a development environment in AWS. I would also add the localThresholdMS option and keep the ones you already have.Let us know how this works for you.Kind regards,\nMartin", "username": "Martin" } ]
Connection timeout during restart
2020-02-07T18:44:29.338Z
Connection timeout during restart
2,936
null
[]
[ { "code": "", "text": "Just wanted to say that I think it’s really cool that as part of the Founders Badge that a tree gets planted in our honor to help Australia recover from the terrible wildfires that affected that country. It’s great to see MongoDB doing something positive to help out there and it’s great to be a part of a community that does these types of things.Thanks!\nMike", "username": "Michael_Grayson" }, { "code": "", "text": "This campaign is near and dear to our hearts and we’ll be sharing more soon about our plans to make the most impact on the recovery effort. ", "username": "Jamie" }, { "code": "", "text": "That’s great to hear @Jamie! Look forward to hearing more about what we can all do to help as a community!", "username": "Michael_Grayson" }, { "code": "", "text": "", "username": "Stennie_X" } ]
Founders Badge - Thanks MongoDB!
2020-02-12T05:46:07.949Z
Founders Badge - Thanks MongoDB!
5,337
null
[ "atlas" ]
[ { "code": "", "text": "Hey Y’all,so I started my webapp using mongodb atlas, and the product requirements for my customer requires a local database so I must switch from cloud to local. does anyone have experience doing this? I am currently using the mern stack (mongodb, express js, react, and node js)", "username": "shant_ahuja" }, { "code": "", "text": "This should be pretty straight forward. Once you decide where the local/on-prem MongoDB will run just get a mongodump from Atlas and mongorestore it into the new cluster. Then change your MongoDB URI in the app and you should be all set.Asya", "username": "Asya_Kamsky" }, { "code": "", "text": "Does live migration work in reverse?", "username": "nchan" }, { "code": "", "text": "im not worried so much about the data because I am still in development, product isn’t deployed yet - just using mock data so I don’t need the old data\nbut yes @nchan that is a good questionand @Asya_Kamsky thank you for your help, I am fairly new to the MERN stack and js/mongo in general so I’ll use this thread if I have any further questions as far as my backend setup goes for my project, but I should be okay. thank you", "username": "shant_ahuja" }, { "code": "", "text": "Does live migration work in reverse?Live migration is currently only supported from a source replica set or sharded cluster to a MongoDB Atlas cluster. There are a lot of moving parts to coordinate for a successful live migration.I suggest creating a feature suggestion on the new MongoDB Feedback site so others can upvote and subscribe to updates.Regards,\nStennie", "username": "Stennie_X" }, { "code": "", "text": "@Stennie_X Thanks! I did not think it would but I was curious, we used it to go on prem to Atlas, it was nice.\nthanks!", "username": "nchan" }, { "code": "", "text": "Live migration doesn’t work for non Atlas targets. I thought mongomirror could help with live migration data from Atlas to on-prem, but it didn’t.", "username": "Anton_Ustyuzhanin" } ]
I want to convert my mongodb from atlas to a local database
2020-01-30T01:21:22.799Z
I want to convert my mongodb from atlas to a local database
6,852
null
[]
[ { "code": "", "text": " Excited to be a part of this awesome community. I am freelance technology consultant, MongoDB Certifed Dev. I am using mongodb since 2015. Recently, I moved out of my full time job and starting my own dev shop where I can offer solutions using MongoDB, Python, PHP, AWS, Docker, Node and other cutting edge tech stacks.Looking forward to connect and discussions.Thanks,\nViraj", "username": "viraj_thakrar" }, { "code": "", "text": "Welcome @viraj_thakrar! Glad to have you here and excited for the discussions ahead.", "username": "Michael_Grayson" }, { "code": "", "text": "Hi Viraj, welcome to the community!", "username": "Jamie" } ]
Hi! I'm Viraj from India
2020-02-12T04:38:03.621Z
Hi! I&rsquo;m Viraj from India
1,959
null
[]
[ { "code": "", "text": "Hey all, I’m joining you from the MongoDB Slack!Fable Tech Labs connects digital teams to users of assistive technology for research and accessibility testing. We use (and love!) MongoDB Atlas and are happy to be part of the MongoDB for Startups program.", "username": "Perry_Trinier" }, { "code": "", "text": "Welcome @Perry_Trinier! Excited to hear how Fable is using MongoDB Atlas and how it is being a part of the MongoDB for Startup Program.", "username": "Michael_Grayson" }, { "code": "", "text": "Hi Perry, Welcome to the forums!", "username": "Jamie" } ]
Hi, it's Perry from Fable
2020-02-12T03:50:01.910Z
Hi, it&rsquo;s Perry from Fable
1,979
null
[]
[ { "code": "", "text": "Hi, its me Shrey Batra from Delhi, India. I work as a Product Developer / Backend Developer @ Innovaccer, India. Mostly I work in building automated workflow products and making it generalized for custom use cases. I have been using MongoDB tech stack for like 3 years now, stating with the community edition and being with Atlas/Stitch/Charts since the beginning. In MongoDb World 2019, I also won the best use of MongoDb Mobile. Feel free to reach out with anything about Mongo or about product development as a whole.P.S let’s also meet in World 2020.", "username": "shrey_batra" }, { "code": "", "text": "Welcome @shrey_batra! Glad to have you join us here!", "username": "Michael_Grayson" }, { "code": "", "text": "Hi @shrey_batra, welcome to the new community forums. Glad to see you here.If I make it to MDBW this year I would love to meet up with you.", "username": "Doug_Duncan" }, { "code": "", "text": "Hey Shrey, welcome to the party Good luck with your talk at MDBW20. If you need a hand reviewing it feel free to shoot me a message.", "username": "alexbevi" }, { "code": "", "text": "Sure @Doug_Duncan, will hope to see you there…", "username": "shrey_batra" }, { "code": "", "text": "Sure @alexbevi, lemme just complete the slides first… Too behind on that…", "username": "shrey_batra" }, { "code": "", "text": "Hi Shrey,Welcome to the community! I look forward to saying hi at World!", "username": "Jamie" } ]
Hi, I'm Shrey from India
2020-02-12T05:02:09.571Z
Hi, I&rsquo;m Shrey from India
2,617
null
[]
[ { "code": "", "text": "I’ve been at HP for 27 years. I’ve worked with Oracle since 2000, and MongoDB for the last few years.\nMy team develops a cloud platform to enable partners to mange and service printers efficiently, and MongoDB plays a foundational role.P.S. I just sold my Slack (Work) stock, so didn’t feel bad leaving to come here to MongoDB Community forums. Thanks,\nDon", "username": "Don_Gathman" }, { "code": "", "text": "Hi Don, welcome to the community!!", "username": "Jamie" } ]
Hiya, I'm Don from HP Inc. Boise Idaho!
2020-02-12T17:55:49.503Z
Hiya, I&rsquo;m Don from HP Inc. Boise Idaho!
1,438
null
[ "data-modeling" ]
[ { "code": "", "text": "Hey Community,I’ve been reading some patterns blogs on the mongo blogs page.\nThese are really high quality posts but are kinda hard to stumble upon.\nCan you please split up your technical blog posts into categories or something?", "username": "Ihsan_Mujdeci" }, { "code": "", "text": "Hi there,Do you mean the “Building with Patterns” series by Daniel Coupal? We could definitely use some better tagging, at the very least.I’ll pass your suggestion along!Thanks!", "username": "Justin" }, { "code": "", "text": "Hi,Yeah I mean that, also you wrote a 2 parter on bucket pattern and pagination.\nI didn’t see that until I followed another post from the slack chat to here and you linked it.Thanks for taking my suggestion seriously.", "username": "Ihsan_Mujdeci" }, { "code": "", "text": "Hi,\nI fully agree, also Asya’s Blogs are more of a gold mine of information - thanks a lot Asya!\nAs with a gold mine you find something with luck, not on purpose. (Ok, the picture is poor but I visualizes the subject) To cluster these quality posts would be great - or make it an educational session check out the down mentioned post and cluster the educational sessions.Michael", "username": "michael_hoeller" }, { "code": "", "text": "I’ve been meaning to update some of those posts for latest versions and have them on the MongoDB blog - I’d hate to send someone to an old technique that can be improved using newer features…", "username": "Asya_Kamsky" }, { "code": "", "text": "Hi Michael,How do you envision clustering the posts together?I hope that all of our posts are quality posts! But it sounds like you have something specific in mind. What comes to mind for me is something like “blog posts to help you figure out schema” or “$group tips for agg pipeline”? Almost like the University courses…?-Sheeri", "username": "Sheeri_Cabral" }, { "code": "", "text": "Hi Sheeri,I have not seen any non quality blog post on the mdb pages. Grouping/clustering is a difficult task. How do I search for answers? There is not one path, and this would be one user… . Some times, you know the tool, sometimes only a subject, sometimes a command or only a message from the logs…\nSince educational session are not a knowledge base, I would envision a structure more by (learning) subject than by tool, command, message or any other detail. This would come close to the ones at the MDB University.\nHowever, the University provides full matured classes. I’d see educational sessions as quick runners peaking on new features in the first row. Beside this there is still quite a bit of best practice, how to’s and specialized blogs (e.g. the ones of the usage of patters for schema design) which could fit well here without hitting the ground of the university (speaking about usage of patterns e.g. class M320).\nThis is only my personal thinking, so it would be great to get more thoughts for brainstorming.?Regards,\nMichael", "username": "michael_hoeller" }, { "code": "", "text": "Absolutely! If we get enough people sharing how they would look for such a thing, we could develop a path or set of paths that would accommodate most cases. (since right now there isn’t even a path!)", "username": "Sheeri_Cabral" } ]
Add a "patterns" page in the MongoDB blog
2020-02-10T23:03:38.299Z
Add a &ldquo;patterns&rdquo; page in the MongoDB blog
4,038
null
[]
[ { "code": "", "text": "Hi all,my name is Michael, I am an Independent IT consultant, certified SCRUM Master, I’ve been working with MongoDB since the 2.4 times and was a part of the MongoDB Masters program and have been chosen to be one of the MongoDB Champions.I am looking back on 20+ years of IT experience. Most of the years I have spent in backend development and operations, jumped on the DevOps train and agile project management.I support engineering teams to design, build and deploy performant and scalable MongoDB applications. I foster the adoption of MongoDB, engage the open source community and provide technical support for business decisions.My path started on mainframes, went thru all phases of the classic software life cycle and various sorts of databases. In 2014 I got the first MongoDB project, since then I always try to get MongoDB projects as DBA or for conceptual MDB work, often including a PoC. Not seldom I end up handing the real stuff over and taking the role of a SCRUM Master for an implementation phase.Fun part: I can not stay in pure coordination tasks, need to constantly try things out and get my hands “dirty” at the console …I am looking forward to share what I can and to learn from everyone.Michael", "username": "michael_hoeller" }, { "code": "", "text": "Hi @michael_hoeller glad to see you around here. I hope you’re doing well.", "username": "Doug_Duncan" }, { "code": "", "text": "Welcome Michael! Glad to have you here. ", "username": "Jamie" }, { "code": "", "text": "Willkommen @michael_hoeller! Haven’t officially welcomed you on your thread, so here we are! ", "username": "Michael_Grayson" } ]
🌟 Moin moin from Michael
2020-02-05T22:04:41.921Z
:star2: Moin moin from Michael
2,347
null
[]
[ { "code": "", "text": "At the Advocate Hub we had educational sessions and challenges on all levels. I liked them and hope that something like this will come back.\nThese sessions have been interesting in many aspects:I am unsure if I am alone with this thought, are there more of you who would like sort education session in this forum?", "username": "michael_hoeller" }, { "code": "", "text": "Hi @michael_hoeller,Forgive me, I wasn’t around for the Advocate Hub. Were these in a webinar format, more like a University course, or something different?Cheers,Jamie", "username": "Jamie" }, { "code": "", "text": "Hello Jamie,\nthere is no single answer, there have been various formats. The base concept was that almost everything was setup as challenge. But about the formats, there have been:@Jamie, if you like to find out the internals I may point you to @Ken_Alger, he was the last Moderator of the Hub. Francesca Krihely, initiated the Advocate Hub (Director, Groth Marketing) she might also can tell you more about the internals.To all readers, would you like something like that? Since there is no polling, could you please leave a reply or a like to get this to some visibility - or non in case I am alone with my suggestion All the best\nMichael", "username": "michael_hoeller" }, { "code": "", "text": "Hi @michael_hoeller, I like the idea of challenges, and it would be interesting to see them in some format here.As for polls, I’m not sure why you can’t do them on an initial post (, but you can create them on a reply. To create the poll, start a reply to a message and then click on the gear icon. One of the options is Build Poll:You will see the poll in the post preview (if you’re showing that) and it will look something like the following (for a simple Yes/No choice", "username": "Doug_Duncan" }, { "code": "", "text": "As for polls, I’m not sure why you can’t do them on an initial post (, but you can create them on a reply.@Doug_Duncan Access to some features (like creating polls) is based on Trust Levels. Established users gain access to more perks & abilities to help contribute to the community.If you have access to build a poll, doing so should be possible both from a new thread and a thread comment.Regards,\nStennie", "username": "Stennie_X" }, { "code": "", "text": "Thanks a lot for the hint, I missed that one!Regards,\nMichael", "username": "michael_hoeller" }, { "code": "", "text": "Hello\nsince we are still a fairly small (beta)group and some may not know what to expect with the mentioned formats, I assume that a poll will not be very representative due to the few number of users.Jennie mentioned, in an other thread, that she is open for ideas. Having this in mind I’d like to keep this thread open and gather your opinion.\nPersonally I’d vote for educational session in general, not caring about the format in a first step. In a second step, about the format: I like to have different sources as mentioned in the above list.\nAs Doug, I also like the idea of challenges.tl;dr\nLet’s get the stone rolling: any thoughts about to have or not to have educational sessions, maybe setup as challenges?Regards,\nMichael", "username": "michael_hoeller" }, { "code": "", "text": "Love the brainstorming here. We’re also working on rolling out a new events management platform (very soon) and this will help us to facilitate virtual events (read: webinars) generated by the community. Still have some logistics to work out on that front, but keep an eye out for an announcement ", "username": "Jamie" }, { "code": "", "text": "@Jamie there are plenty places where MDB announces news. Which one do you have in mind?", "username": "michael_hoeller" }, { "code": "", "text": "Going forward, community-related announcements will appear in the Announcements category here, but we’ll also continue to do cross-publishing (i.e. on Twitter, the mongodb.com blog, etc.)", "username": "Jamie" }, { "code": "", "text": "Well there is slack too, I’d love to see a consolidation Michael", "username": "michael_hoeller" }, { "code": "", "text": "Yes, the Slack workspace will be retired in the next few weeks. The goal is to consolidate all community channels into this forum (Slack, Google Groups, etc.)", "username": "Jamie" }, { "code": "", "text": "This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.", "username": "system" } ]
What about educational sessions?
2020-02-07T21:33:02.304Z
What about educational sessions?
6,381
null
[]
[ { "code": "", "text": "There are two categories that are visible to me, and I’m doubting that I should be seeing:Descriptions state that they are for certain people, and startups especially has mention that it is visible to moderators but not to others, and people should be added there. I am from startup, but I doubt that I’ve been identified to such yet. ", "username": "kerbe" }, { "code": "", "text": "@kerbe Thanks for asking! Those categories are publicly visible so anyone can find out more about the MongoDB for Startups and new MongoDB for Academia programs.Participants in programs such as these will have access to additional private forums for discussion. We’re still adjusting and configuring settings during the forum beta period, so if you are a member of either program we’ll let you know when additional subcategories are ready for use.The descriptions of categories will be adjusted to make it clearer that the public categories are for discussion about the programs. They were originally private categories but we thought it made more sense to increase awareness and have visible starting points.Regards,\nStennie", "username": "Stennie_X" }, { "code": "", "text": "The descriptions of categories will be adjusted to make it clearer that the public categories are for discussion about the programs.That’s good thought, and most likely will boost attendance to those programs greatly. Current descriptions / first posts in those categories indeed tricked me. ", "username": "kerbe" }, { "code": "", "text": "Yesterday, I came across the same issue. Thanks for raising the question @kerbeThe description for MongoDB for Academia tells me:This category is available for participants in the MongoDB for Academia program to collaborate with each other.So one point is archived: attention is raised. But there is not further information. What is the program about? Who is the target audience? At the end I came to the same conclusion as @kerbe : this must be something private. So if this is for discussion about the program(s), may be it could be helpful to describe the program briefly in a sticky post? That could enable interested folks.Regards,\nMichael", "username": "michael_hoeller" }, { "code": "", "text": "Thank you for raising these questions!The MongoDB for Academia program is in an early stage. We don’t have a landing page or participants at the moment, but we’ll have more information on this soon.I’ll take a look at the description and will clear this up ", "username": "Lieke_Boon" }, { "code": "", "text": "This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.", "username": "system" } ]
MongoDB For Academia & MongoDB for Startups categories
2020-02-05T22:59:13.358Z
MongoDB For Academia &amp; MongoDB for Startups categories
3,105
null
[]
[ { "code": "", "text": "After years and years of waiting for some type of working guide to use MongoDB (cloud, not local) on macOS, there still isn’t a complete one.Our application is both mobile and desktop so our users need to be able to connect to their cloud hosted data from any of their devices.This is probably the wrong place for a (feature) request but how about a modern, working, guide to installing and using mongoDB (atlas, stitch etc) on macOS with a GUI? Along with that, how about a modern CocoaPods install that actually works and a guide to go with it?I know this is probably asking a lot… but… how about a macOS sample project?Keep in mind that while there is a Getting Stated Guide, it leverages home-brew and swift package manager (ugh) and the end result is a stripped down macOS project with no GUI.See CocoaPods Support as well.Jay", "username": "Jay" }, { "code": "", "text": "Hi Jay,Thanks for the feedback! We’re currently working on integrating MongoDB Stitch with Realm which will evolve into the MongoDB Realm platform (see the MongoDB Realm Roadmap for more details). MongoDB Realm will include bi-directional sync with MongoDB Atlas with SDKs for mobile, desktop, and cloud applications.We’re aware that developer examples and resources need to be improved and our team is working on a major refresh based on community feedback and modern tooling/workflow. We’ll have sample projects, tutorials, guides, and other resources.Our application is both mobile and desktop so our users need to be able to connect to their cloud hosted data from any of their devices.What languages and MongoDB SDKs are you currently using in your application? I’m guessing the MongoDB Swift driver (since that is the Getting Started guide you referenced) but I’ve noticed you are very active in the Realm community.The MongoDB Swift driver, Stitch Swift SDK, and Realm Swift SDK are currently separate resources and it would definitely make sense to have a consolidated “Getting Started with MongoDB using Swift” guide.macOS with a GUI?Can you elaborate on the sort of GUI usage you are thinking of?Thanks,\nStennie", "username": "Stennie_X" }, { "code": "", "text": "Thank you for the very prompt response. Sorry for the length but I wanted to provide a clear understanding of what our experience is in hopes it would help others.What languages and MongoDB SDKs are you currently using in your application?macOS development in Swift. Swift driver is very important.Can you elaborate on the sort of GUI usage you are thinking of?I’ve worked with a few of your team members in the past and after about 45 emails and a lot of trial an error they were able to get a macOS app to build. However, that app was a stripped down command line app with no user interface - and even at that it had all kinds of compile errors and really didn’t work - but it did build.So the mention of GUI;It was very frustrating for us that once we were able to get the app to build, it was not really functional and wasn’t a base app to build on as development progressed because it has no graphical interface. e.g. If you fire up Xcode and build a new macOS project, right out of the gate you can run it and will see a blank window. While we could spend a LOT of time trying add the GUI components back into the command line app, it just seems backwards. Our suggestion is to start with a standard app (Xcode->New Project->macOS app) and then integrate mongo into it.Also, the use of SPM in this case is well, a bad way to go (IMO). It may be the ‘future’ but for now, if a developer wants to create an app, Cocoapods is a pretty bulletproof, tried and true way to integrate your API into an app.Maybe I am overstating things but try it yourself; walk through your guide and try to build a macOS app which includes MongoDB and provides a GUI.but I’ve noticed you are very active in the Realm community.I am and always try to give back to the developer community.Part of the reason I am mentioning this (macOS getting started) is that we banked on Realm a few years back in the hopes it would become a mature multi-user(tenant), multi-device back end for our product. It has not really progressed that way and lacks basic, industry standard features such as record locking and user presence. In fact one of the realm engineers, in response to a Feature Request to have record/object locking was:Apart from that, I don’t see the real-world benefit of having such a system in placeSo we are looking to move away from Realm to another platform that is better suited and Mongo has many of the features we need. Maybe MongoDB Realm will too? The feature set path is unclear.Jay", "username": "Jay" }, { "code": "", "text": "Hi there!Thank you for reaching out to us.I lead development of MongoSwift and I recall hearing that you were in contact with a couple people at the company about this in the past, which led to my opening the JIRA ticket you linked about CocoaPods.To address a few of the points around that which have come up here:The primary use case we’re focusing on for the driver at this point is server-side Swift development. SwiftPM is used pretty exclusively in that community, which is why we chose to focus our packaging efforts there.\nRegarding homebrew usage when installing, that will go away in our next release, as we’ve now vendored the C driver into the Swift driver and it is built by SwiftPM along with the Swift code.Using the driver directly in a GUI desktop application to talk to a remote server isn’t a use case we’ve had requests for outside of yours; a more common architecture is to have a backend server which sits between your application and the database. Can you elaborate a bit more on your need/desire to have all of the DB interaction occurring directly in the GUI app?Definitely agree with the need for a unified guide to using Swift with our products that better explains which libraries/products support which use cases.", "username": "kmahar" }, { "code": "", "text": "Thank you for the reply.Using the driver directly in a GUI desktop application to talk to a remote server isn’t a use case we’ve had requests for outside of yoursYou don’t have any developers using iPhones that want to have a cloud store of some kind? Or an inventory control app for multiple locations backed by cloud storage that can be access by a companies devices? Or a mobile app where the iPhone stores it’s data (like a multi-device To Do app) by leveraging one of the Mongo products where those To Do’s can also be accessed at the desktop level? (Stitch Atlas etc)?A number of databases offer that kind of functionality, Firebase, Realm, Couchbase, Couchbase Mobile, Google Store, DynamoDB, and a number of others. In fact, Amazon has a simple, REST-based API which can be easily added to an Xcode app as well as a full cocoapods install. (they also have working tutorials and example apps).It seemed like a good match for Mongo products as well… Perhaps not?If not, maybe a clarification of who your target audience is would be in order because this description sounds exactly like what we are after.‘MongoDB’ Exposes the full power of working with documents in MongoDB and the MongoDB query language, directly from your web and mobile application frontend codeIf we’re writing the ‘front end code’ that means that Mongo is the back end where that data is stored. We should be able to access that data from Web or device (that would include iOS/macOS).I am really trying to understand your products as what the documentation and descriptions say seem to differ from what it actually is? Maybe you can clarify for future readers?Jay", "username": "Jay" }, { "code": "", "text": "You don’t have any developers using iPhones that want to have a cloud store of some kind? Or an inventory control app for multiple locations backed by cloud storage that can be access by a companies devices? Or a mobile app where the iPhone stores it’s data (like a multi-device To Do app) by leveraging one of the Mongo products where those To Do’s can also be accessed at the desktop level? (Stitch Atlas etc)?To clarify, I only meant we haven’t had developers wanting to use MongoSwift specifically in those situations. That particular library is designed for developers who want to write a backend server in Swift, using e.g. the Vapor web framework.For the use cases you’re describing with a serverless architecture and the need to e.g. sync data between local and remote storage, MongoDB Stitch, and soon MongoDB Realm, are a better fit.", "username": "kmahar" }, { "code": "", "text": "Thank you. When I mentioned a ‘Swift’ driver, I was referring to being able to use any Mongo solution within Swift on macOS. The MongoSwift product was not really what I was referring to so my statement was unclear.For the use cases you’re describing with a serverless architecture and the need to e.g. sync data between local and remote storage, MongoDB Stitch, and soon MongoDB Realm, are a better fit.Agreed and we are now circling back around to the core issue and the original reason for my post.MongoDB StitchDoesn’t work, and and I mentioned in the original post…guide to installing and using mongoDB (atlas, stitch etc) on macOS with a GUI…is what we’ve been after.Jay", "username": "Jay" }, { "code": "", "text": "7 days with no reply or direction. This is starting to feel like the Realm forums. lol", "username": "Jay" }, { "code": "", "text": "7 days with no reply or directionHi @Jay,Can you clarify any further information you are expecting in this thread?We’ve acknowledged and passed on your feedback, but creating any new resources will require planning, prioritisation, and development.Your use case does fit into the MongoDB Realm roadmap as mentioned earlier in this thread, but that is still under active development and the beta will be available later this year.Per the roadmap, Stitch will be rebranded as MongoDB Realm and the Realm and Stitch SDKs will be replaced with new, merged MongoDB Realm SDK packages. There will be significant effort invested in improving developer experience and creating resources for the new MongoDB Realm platform.Thanks,\nStennie", "username": "Stennie_X" }, { "code": "", "text": "Thanks for the response.There was no expectation of creating new resources or really anything other than clarifying how to get started with MongoDB products. Thank you for passing along feedback.Our goal, as I am sure many others have, was to gain some experience with your products such as Stitch. Stitch leverages Atlas so while working through Stitch it also exposes us to Atlas to some extent\nwhich we felt would help us understand the platform in general and would help us evaluate it for an enterprise solution.Jay", "username": "Jay" }, { "code": "", "text": "", "username": "Stennie_X" } ]
macOS Getting Started Guide
2020-01-30T22:06:00.395Z
macOS Getting Started Guide
2,539
null
[ "atlas" ]
[ { "code": "localLogicalSessionTimeoutMinutes", "text": "I’m interested in setting the “session timeout” in MongoDB Atlas for inactive sessions. How is that done?Is there a risk to changing the “session time out” to shorter length 15 mins, there’s a warning, is that a technical reason?https://docs.mongodb.com/manual/reference/parameters/#logical-session-parameters localLogicalSessionTimeoutMinutes It has a warning only for testing, not for production? There’s a security requirement I’ve been asked to explore to reduce the timeout to 15mins. (Default for Mongo is 30mins)MongoDB Server Parameters — MongoDB Manual(4 kB)", "username": "nchan" }, { "code": "localLogicalSessionTimeoutMinutesmongod", "text": "I’m interested in setting the “session timeout” in MongoDB Atlas for inactive sessions. How is that done?Hi Norman,What are you trying to achieve?The localLogicalSessionTimeoutMinutes parameter needs to be set for each mongod instance in a deployment and is not a parameter currently available in the Atlas UI or API. I believe this is only suggested for testing as there will be unexpected consequences if the value isn’t set consistently in a deployment. This parameter determines when an inactive session is eligible to be cleaned up by the server so is generally a housekeeping parameter rather than a tuneable for performance or privacy.Regards,\nStennie", "username": "Stennie_X" }, { "code": "", "text": "Thanks Stennie for the reply!I guess the mystey is solved, I was wondering where in the Atlas UI it was located I’m trying to achieve > meet a requirement our security team, as thy are asking if we can reduce the time out for inactive sessions to 15 mins, as the default is 30 mins.So as long as the deployment is consistent across all replicas/shards for the timeout then it would be considered SAFE?", "username": "nchan" }, { "code": "end_session()", "text": "Hi @nchan,If you want to end your sessions earlier (rather than waiting for the inactivity timeout) you can explicitly call the client end/close session method. For example in the Python driver: end_session().I’m not sure sure if this feature can be enabled on a per-cluster basis for MongoDB Atlas (nor do I think it would improve security), however if you have a dedicated Atlas cluster you can contact the support team to discuss your requirements.I would generally not recommending enabling features intended for test purposes in a production environment as these will not be as widely used or tested as the default values.Regards,\nStennie", "username": "Stennie_X" }, { "code": "", "text": "Thanks @Stennie_X for the reply, thanks for pointing that out about Atlas. Since Atlas is a managed service ,I do agree it’s best not to diverge for the “standard” setup and have any custom configurations. This feature is available onPrem, with some caveats so I’ll wait to hear back from support.Internally for us it’s a “check box” for security reasons that we meet for a security audit, we can configure things to ensure disconnect from applications/tools. However multiple variables such as different tools, and code bases. So the initiating a disconnect from the database when there’s inactivity helps cover things missed.thanks again for the reply!", "username": "nchan" } ]
Session Timeout configuration in Atlas
2020-02-06T19:18:47.264Z
Session Timeout configuration in Atlas
9,021
null
[ "data-modeling" ]
[ { "code": "const Ticker = {\n symbol: String,\n timestamp: Date,\n trading:{\n week52High: Number,\n week52Low: Number,\n percent_shorted: Number,\n shares_outstanding: Number,\n enterprise_value: Number,\n dividend: Number,\n market_cap: Number,\n price: Number\n },\n name: String,\n about: String,\n timeseries: {\n oneDay: Object,\n oneMonth: Object,\n threeMonths: Object,\n oneYear: Object,\n fiveYears: Object\n },\n quote: {\n fundamental: Object,\n price: Object,\n asset_type: String,\n time: String,\n exchange: String,\n }, \n financials: {\n fcf_over_share: Number,\n fcf: Number,\n eps_margin: Number,\n eps: Number,\n ebitda_margin: Number,\n ebitda: Number,\n revenue_growth_3_yr: Number,\n revenue: Number\n }, \n};\n", "text": "Hello!I’m working on a Node hobby app as a way to learn and experiment with the current state of web dev. Background: I used to do a fair amount of web dev back in the LAMP stack days, but have spent the last 10+ years in business functions.I’ve been through a couple tutorials and have a rudimentary understanding of how MongoDB works. Now it’s time to start building my own app to stretch my legs.I’m going to build a simple stock market web app and so I’ll be gathering, recording, and displaying a lot of timeseries stock price data, as well as quarterly financial statement data.I’ve read several threads about this and know many people recommend using an RDBMS for this, but I want to learn MongoDB so I’m using it anyhoo.I’ve read some helpful posts on the MongoDB blog, including this one, which suggests the following schema:I’m planning to run with that as a starting point and refactor along the way if needed.Before I do, I was wondering if anybody with more experience can anticipate issues or suggest improvements on the above before I jump in.Thanks!\nDon", "username": "Don_Lair" }, { "code": "", "text": "That’s a good start, but so much of schema design in MongoDB comes down to how the collections will be queried. Yes, you want to denormalize as much as possible. Yes, you may well make use of the Bucket Pattern for time series data. Until you actually craft the actual queries, however, you really don’t know if you’ll have contention/locking issues, I/O throughput issues, etc.So yeah - start with what you do know, try it, monitor performance, and refactor as needed.Oh, and MongoDB is good for just about every use case - the days of “RDBMS is better for this” are just about passed…", "username": "Eric_Reid" }, { "code": "", "text": "Thanks Eric, I’ll take a look at the bucket pattern", "username": "Don_Lair" } ]
Schema question from a MongoDB newbie
2020-02-08T21:40:03.898Z
Schema question from a MongoDB newbie
1,993
null
[]
[ { "code": "", "text": "How to set path in MongoDB Compass if you are behind Proxy ?", "username": "Michael_27918" }, { "code": "", "text": "Hey @Michael_27918\nAlthough I do not have a concrete answer for you I though I would include some related material that may help.I found this about proxy connection on the mongodb Jira. It suggests the SSH tunnel feature.I also found this possibly related question.", "username": "Natac13" }, { "code": "", "text": "Hi @Michael_27918,As @natac13 mentioned, you can refer this doc Connect Using SSH to establish connection between compass and your MongoDB host .Let me know if you have any other query. Happy Learning !Thanks,\nShubham Ranjan\nCurriculum Support Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "Is there an Atlas SSH Jumphost I could use to do the M001 course?", "username": "Markus_91578" }, { "code": "", "text": "", "username": "system" } ]
How to set in MongoDB Compass if you are behind Proxy?
2019-07-17T03:33:12.384Z
How to set in MongoDB Compass if you are behind Proxy?
7,502
null
[]
[ { "code": "", "text": "How can we get the same database as in lectures, because for answering Lab’s quiz we need that database?Is there any way to get those database?", "username": "Meet_44425" }, { "code": "", "text": "If I remember correctly it is indicated that you either connect to the shared cluster for some and to your sandbox cluster for others. By telling us which lab or quiz we can provide a more specific answer.", "username": "steevej" }, { "code": "mongo \"mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/test?replicaSet=Cluster0-shard-0\" --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basics", "text": "Hi @Meet_44425,In this course, we use two clusters - class atlas cluster and sandbox cluster (owned by you).Please connect to the class atlas cluster for getting access to the datasets used in the video lecture. Remember, this is a read-only cluster.If you want to import the datasets locally on your machine then please have a look at this post .And as @steevej-1495 mentioned, it would be great if you can share the name of the lab/quiz that you are doing so that we can help you with the cluster name.Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "", "username": "system" } ]
Requesting Database for Lab work
2020-02-08T10:23:43.966Z
Requesting Database for Lab work
1,029
null
[ "security" ]
[ { "code": "", "text": "Is there a way to set user password expiry every 30 days?", "username": "Geo_Banaag" }, { "code": "", "text": "Well, it seems that the feature request was closed.https://jira.mongodb.org/browse/SERVER-3197And i cant find anything in the documentation regarding that functionally", "username": "Mario_Pereira" }, { "code": "", "text": "Alternatives:\nUse x509 and client certificates that expire per your timeframe requirements.EE:\nLDAP\nKerberos", "username": "chris" }, { "code": "", "text": " Hello @Mario_Pereira", "username": "chris" }, { "code": "", "text": "@Geo_BanaagAs @chris noted, there are several ways to achieve credential expiry depending on the MongoDB edition you are using (Community, Enterprise, or Atlas).Password expiration is typically only one aspect of enterprise security requirements which often also include password complexity, password history (to prevent reuse), and account lockout policies.Auth options with expiry and more advanced policies include:MongoDB Atlas also supports temporary database users which will be deleted after an expiry of up to 1 week. That’s probably not suitable for your requirements, but might be of interest for related use cases.Regards,\nStennie", "username": "Stennie_X" }, { "code": "", "text": "This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.", "username": "system" } ]
Set user password expiry every 30 days
2020-02-06T11:58:09.796Z
Set user password expiry every 30 days
5,418
null
[]
[ { "code": "", "text": " Hi everyone! Excited for this new community for MongoDB! Want to introduce myself, my name is Mike Grayson, I’m a Database Engineer at Paychex in Western New York State here in the US. I’ve been a MongoDB Master since 2016 and like to blog and tweet about all things databases, but especially MongoDB You can follow me on twitter here: https://twitter.com/mikegray831\nor connect on linkedin here:\nhttps://www.linkedin.com/in/mikegrayson/Looking forward to the discussions and seeing this great community grow!Thanks,\nMike Grayson", "username": "Michael_Grayson" }, { "code": "", "text": "Welcome to the brand new MongoDB community @Michael_Grayson it’s good to have you here.\nI love your twitter username btw ", "username": "Peter" }, { "code": "", "text": "Great to have you onboard the new community platform Mike.", "username": "Joe_Drumgoole" }, { "code": "", "text": "I love your twitter username btw Yeah, I won’t be winning any awards for creativity on that one ", "username": "Michael_Grayson" }, { "code": "", "text": "Hi Mike,Welcome to the community!!", "username": "Jamie" }, { "code": "", "text": "Hello Michael,seems we all get back \nKeen on your postings.Michale", "username": "michael_hoeller" }, { "code": "", "text": "Hi @Michael_Grayson. Not sure how I missed welcoming you earlier, but better late than never. ", "username": "Doug_Duncan" }, { "code": "", "text": "Thanks @michael_hoeller and @Doug_Duncan! Great to see some more familiar faces on the new community site! ", "username": "Michael_Grayson" }, { "code": "", "text": "Pleasure is on my side, Moss \n, exclamation mark, …", "username": "michael_hoeller" } ]
🌟 Hi All! Introduction for Mike Grayson
2020-01-22T03:55:17.176Z
:star2: Hi All! Introduction for Mike Grayson
2,562
null
[ "upgrading" ]
[ { "code": "", "text": "Hi,I’m having issues upgrading a Debian 9.11 (Stretch) server with MongoDB 3.4.23 to 3.6.17. MongoDB 3.4.23 is from the Jessie repository and 3.6.17 is in the Stretch repositoryThe cluster is a ‘simple’ 3 node cluster, all with mongod running happily and having been upgraded continuously from the 2.2 daysThe upgrade of a secondary appears to go well, until mongod starts, at which point it explodes with an error about DBException::toString(): Location40415: BSON field ‘MinValidDocument.h’ is an unknown field. This happens on any secondary I try to upgrade, and is also reverted reasonably well by just downgrading back to 2.4.23I’ve replicated this in a Vagrant test cluster, with a copy of our database, but am at a loss as to how to proceed to fix this. Any input would be appreciated.CheersKyle2020-02-05T12:04:12.148+0000 I CONTROL [signalProcessingThread] now exiting\n2020-02-05T12:04:12.148+0000 I CONTROL [signalProcessingThread] shutting down with code:0\n2020-02-05T12:04:58.379+0000 I CONTROL [main] ***** SERVER RESTARTED *****\n2020-02-05T12:04:58.393+0000 I CONTROL [initandlisten] MongoDB starting : pid=19342 port=27017 dbpath=/var/lib/mongodb 64-bit host=mongodb-2\n2020-02-05T12:04:58.393+0000 I CONTROL [initandlisten] db version v3.6.17\n2020-02-05T12:04:58.393+0000 I CONTROL [initandlisten] git version: 3d6953c361213c5bfab23e51ab274ce592edafe6\n2020-02-05T12:04:58.393+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.0l 10 Sep 2019\n2020-02-05T12:04:58.393+0000 I CONTROL [initandlisten] allocator: tcmalloc\n2020-02-05T12:04:58.393+0000 I CONTROL [initandlisten] modules: none\n2020-02-05T12:04:58.393+0000 I CONTROL [initandlisten] build environment:\n2020-02-05T12:04:58.393+0000 I CONTROL [initandlisten] distmod: debian92\n2020-02-05T12:04:58.393+0000 I CONTROL [initandlisten] distarch: x86_64\n2020-02-05T12:04:58.393+0000 I CONTROL [initandlisten] target_arch: x86_64\n2020-02-05T12:04:58.393+0000 I CONTROL [initandlisten] options: { config: “/etc/mongod.conf”, net: { bindIp: “192.168.56.102”, port: 27017 }, replication: { replSetName: “linndb” }, storage: { dbPath: “/var/lib/mongodb”, journal: { enabled: true } }, systemLog: { destination: “file”, logAppend: true, path: “/var/log/mongodb/mongod.log” } }\n2020-02-05T12:04:58.394+0000 I - [initandlisten] Detected data files in /var/lib/mongodb created by the ‘mmapv1’ storage engine, so setting the active storage engine to ‘mmapv1’.\n2020-02-05T12:04:58.403+0000 I JOURNAL [initandlisten] journal dir=/var/lib/mongodb/journal\n2020-02-05T12:04:58.403+0000 I JOURNAL [initandlisten] recover : no journal files present, no recovery needed\n2020-02-05T12:04:58.404+0000 I JOURNAL [durability] Durability thread started\n2020-02-05T12:04:58.405+0000 I JOURNAL [journal writer] Journal writer thread started\n2020-02-05T12:04:58.405+0000 I CONTROL [initandlisten]\n2020-02-05T12:04:58.405+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.\n2020-02-05T12:04:58.405+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.\n2020-02-05T12:04:58.405+0000 I CONTROL [initandlisten]\n2020-02-05T12:04:58.913+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory ‘/var/lib/mongodb/diagnostic.data’\n2020-02-05T12:04:58.984+0000 I REPL [initandlisten] Did not find local initialized voted for document at startup.\n2020-02-05T12:04:58.985+0000 I REPL [initandlisten] Did not find local Rollback ID document at startup. Creating one.\n2020-02-05T12:04:58.985+0000 I STORAGE [initandlisten] createCollection: local.system.rollback.id with no UUID.\n2020-02-05T12:04:58.986+0000 I REPL [initandlisten] Initialized the rollback ID to 1\n2020-02-05T12:04:59.032+0000 F REPL [initandlisten] Caught exception during replication recovery: Location40415: BSON field ‘MinValidDocument.h’ is an unknown field.\n2020-02-05T12:04:59.032+0000 F - [initandlisten] terminate() called. An exception is active; attempting to gather more information\n2020-02-05T12:04:59.055+0000 F - [initandlisten] DBException::toString(): Location40415: BSON field ‘MinValidDocument.h’ is an unknown field.\nActual exception type: mongo::error_details::throwExceptionForStatus(mongo::Status const&)::NonspecificAssertionException0x55bb915f6511 0x55bb915f5ef5 0x55bb916ea486 0x55bb916ea4d1 0x55bb90183cba 0x55bb904afadf 0x55bb904b027f 0x55bb8fd81d94 0x55bb8fd83db2 0x55bb8fd07ec9 0x7fae51a382e1 0x55bb8fd6c0da\n----- BEGIN BACKTRACE -----\n{“backtrace”:[{“b”:“55BB8F36B000”,“o”:“228B511”,“s”:\"_ZN5mongo15printStackTraceERSo\"},{“b”:“55BB8F36B000”,“o”:“228AEF5”},{“b”:“55BB8F36B000”,“o”:“237F486”,“s”:\"_ZN10__cxxabiv111__terminateEPFvvE\"},{“b”:“55BB8F36B000”,“o”:“237F4D1”},{“b”:“55BB8F36B000”,“o”:“E18CBA”,“s”:\"_ZN5mongo4repl23ReplicationRecoveryImpl16recoverFromOplogEPNS_16OperationContextE\"},{“b”:“55BB8F36B000”,“o”:“1144ADF”,“s”:\"_ZN5mongo4repl26ReplicationCoordinatorImpl21_startLoadLocalConfigEPNS_16OperationContextE\"},{“b”:“55BB8F36B000”,“o”:“114527F”,“s”:\"_ZN5mongo4repl26ReplicationCoordinatorImpl7startupEPNS_16OperationContextE\"},{“b”:“55BB8F36B000”,“o”:“A16D94”},{“b”:“55BB8F36B000”,“o”:“A18DB2”,“s”:“ZN5mongo11mongoDbMainEiPPcS1”},{“b”:“55BB8F36B000”,“o”:“99CEC9”,“s”:“main”},{“b”:“7FAE51A18000”,“o”:“202E1”,“s”:\"__libc_start_main\"},{“b”:“55BB8F36B000”,“o”:“A010DA”,“s”:\"_start\"}],“processInfo”:{ “mongodbVersion” : “3.6.17”, “gitVersion” : “3d6953c361213c5bfab23e51ab274ce592edafe6”, “compiledModules” : [], “uname” : { “sysname” : “Linux”, “release” : “4.9.0-11-amd64”, “version” : “#1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11)”, “machine” : “x86_64” }, “somap” : [ { “b” : “55BB8F36B000”, “elfType” : 3, “buildId” : “E93AC4BD48D98B49945C22FA72B32037154B506B” }, { “b” : “7FFCC75E2000”, “path” : “linux-vdso.so.1”, “elfType” : 3, “buildId” : “E4710F184535B7465A293C8D84196F236A12D2CF” }, { “b” : “7FAE53001000”, “path” : “/lib/x86_64-linux-gnu/libresolv.so.2”, “elfType” : 3, “buildId” : “EAD5FD817712E63C1212D1EE7D7EE1B9C29F93A7” }, { “b” : “7FAE52B67000”, “path” : “/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1”, “elfType” : 3, “buildId” : “BC8265C9A7EB28F1A9677B7437E4561F383C44D9” }, { “b” : “7FAE528FB000”, “path” : “/usr/lib/x86_64-linux-gnu/libssl.so.1.1”, “elfType” : 3, “buildId” : “4EAE4DD6DA20F6CECBEA6688C8ED8E9987CD800F” }, { “b” : “7FAE526F7000”, “path” : “/lib/x86_64-linux-gnu/libdl.so.2”, “elfType” : 3, “buildId” : “DB2CAEEEC37482A98AB1416D0A9AFE2944930DE9” }, { “b” : “7FAE524EF000”, “path” : “/lib/x86_64-linux-gnu/librt.so.1”, “elfType” : 3, “buildId” : “86B35D63FACD97D22973E99EE9863F7714C4F53A” }, { “b” : “7FAE521EB000”, “path” : “/lib/x86_64-linux-gnu/libm.so.6”, “elfType” : 3, “buildId” : “4E49714C557CE0472C798F39365CA10F9C0E1933” }, { “b” : “7FAE51FD4000”, “path” : “/lib/x86_64-linux-gnu/libgcc_s.so.1”, “elfType” : 3, “buildId” : “51AD5FD294CD6C813BED40717347A53434B80B7A” }, { “b” : “7FAE51DB7000”, “path” : “/lib/x86_64-linux-gnu/libpthread.so.0”, “elfType” : 3, “buildId” : “16D609487BCC4ACBAC29A4EAA2DDA0D2F56211EC” }, { “b” : “7FAE51A18000”, “path” : “/lib/x86_64-linux-gnu/libc.so.6”, “elfType” : 3, “buildId” : “775143E680FF0CD4CD51CCE1CE8CA216E635A1D6” }, { “b” : “7FAE53218000”, “path” : “/lib64/ld-linux-x86-64.so.2”, “elfType” : 3, “buildId” : “606DF9C355103E82140D513BC7A25A635591C153” } ] }}\nmongod(_ZN5mongo15printStackTraceERSo+0x41) [0x55bb915f6511]\nmongod(+0x228AEF5) [0x55bb915f5ef5]\nmongod(_ZN10__cxxabiv111__terminateEPFvvE+0x6) [0x55bb916ea486]\nmongod(+0x237F4D1) [0x55bb916ea4d1]\nmongod(_ZN5mongo4repl23ReplicationRecoveryImpl16recoverFromOplogEPNS_16OperationContextE+0xBDA) [0x55bb90183cba]\nmongod(_ZN5mongo4repl26ReplicationCoordinatorImpl21_startLoadLocalConfigEPNS_16OperationContextE+0x52F) [0x55bb904afadf]\nmongod(_ZN5mongo4repl26ReplicationCoordinatorImpl7startupEPNS_16OperationContextE+0x1DF) [0x55bb904b027f]\nmongod(+0xA16D94) [0x55bb8fd81d94]\nmongod(ZN5mongo11mongoDbMainEiPPcS1+0x872) [0x55bb8fd83db2]\nmongod(main+0x9) [0x55bb8fd07ec9]\nlibc.so.6(__libc_start_main+0xF1) [0x7fae51a382e1]\nmongod(_start+0x2A) [0x55bb8fd6c0da]\n----- END BACKTRACE -----", "username": "Kyle_Gordon" }, { "code": "replset.minvalidmongoddb.getSiblingDB(\"local\").replset.minvalid.update({},{$unset:{h:\"\",op:\"\",ns:\"\",o:\"\"}})\n", "text": "Hi @Kyle_Gordon,The issue is due to stricter checking of the fields in the replset.minvalid collection in 3.6+. While the node is running with a 3.4 mongod binary, you can address this issue by running the following command while connected directly to your secondaries:This should allow the node to startup successfully with a 3.6+ binary.", "username": "alexbevi" }, { "code": "", "text": "Similar, maybe identical, problem at https://stackoverflow.com/questions/59098649/mongodb-sharded-cluster-upgrade-from-3-4-23-to-3-6-12-problem", "username": "Kyle_Gordon" }, { "code": "", "text": "@Kyle_Gordon I would recommend doing what Alex suggested - let us know if that doesn’t resolve your upgrade issue.", "username": "Asya_Kamsky" }, { "code": "", "text": "@alexbevi @Asya_Kamsky That’s super, thank you. I’ve applied it to the Vagrant test cluster and it’s upgraded successfully. I’ll update the development and production clusters next week.In the meantime, is this a setting that can safely be left on the clusters?", "username": "Kyle_Gordon" }, { "code": "replset.minversion", "text": "Yes, you can safely leave the replset.minversion in this state. The issue you experienced is due to stricter checking, so if it passes validation in 3.6 then you will not be able to get your cluster into this state again moving forward.", "username": "alexbevi" } ]
Unable to upgrade from 3.4.23 to 3.6.17 -
2020-02-05T14:25:58.598Z
Unable to upgrade from 3.4.23 to 3.6.17 -
2,703
null
[ "rust" ]
[ { "code": "", "text": "Normally I develop against MongoDB using C# but recently I decided I needed something new to learn and so I looked around and picked up Rust. Having started to get going on it I’ve found my self ready to start my first little hobby project.This has left me looking at Announcing the Official MongoDB Rust Driver | MongoDB Blog and wondering if anyone is using this yet or if there is any further news on the progress of this driver?", "username": "Will_Blackburn" }, { "code": "", "text": "It’s obviously early days for the Rust driver - it was only released in alpha a few weeks ago. The good news is that it’s officially supported, actively developed and due for a stable release in the first half of this year, IIRC.I’m not sure if anybody’s using it in production yet - I suspect it’s a little too soon for that. I have some plans to use it in a couple of small-scale projects myself ", "username": "Mark_Smith" }, { "code": "", "text": "Hi Mark,That is indeed great news, I wasn’t expecting it to have made it to a production release yet, but it’s reassuring to hear it is being pushed onward!It would be interesting to hear how you get on with it in your own projects though Cheers\nWill", "username": "Will_Blackburn" }, { "code": "", "text": "Likewise - Let me know how you get on, and please do give us feedback if you have any requests or problems.", "username": "Mark_Smith" } ]
Rust and MongoDB
2020-02-06T08:40:08.274Z
Rust and MongoDB
2,901
null
[ "production", "golang" ]
[ { "code": "", "text": "The MongoDB Go Driver Team is pleased to announce the release of 1.3.0 of the MongoDB Go Driver.This release contains new functions to construct BSON registries, a new BSON registry that mimics the behavior of the globalsign/mgo/bson library, and new URI options to specify TLS certificates and keys in separate files. For more information please see the release notes.You can obtain the driver source from GitHub under the v1.3.0 tag.General documentation for the MongoDB Go Driver is available on GoDoc and on the MongoDB Documentation site. BSON library documentation is also available on GoDoc. Questions can be asked through the mongo-go-driver Google Group and bug reports should be filed against the Go project in the MongoDB JIRA. Your feedback on the Go driver is greatly appreciated.Thank you,The Go Driver Team", "username": "Divjot_Arora" }, { "code": "", "text": "", "username": "system" } ]
MongoDB Go Driver 1.3.0 released
2020-02-05T16:48:47.366Z
MongoDB Go Driver 1.3.0 released
2,151
null
[]
[ { "code": "", "text": "Hello,Is anyone know how to redo the lab, and how to move to next chapter", "username": "mansoor_25158" }, { "code": "", "text": "Welcome @mansoor_25158You’ll get better responses if you link your thread to the right course and specify which the lab that you’re referring to.", "username": "007_jb" }, { "code": "", "text": "course M001, Lab 1.4", "username": "mansoor_25158" }, { "code": "", "text": "Hi @mansoor_25158,In any lab, you can make at most 3 submissions. And as I can see, you have exhausted the limit for this lab so you can’t make any more submissions.Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "", "username": "system" } ]
Redo the Lab on chapter 1
2020-02-04T15:32:26.220Z
Redo the Lab on chapter 1
1,517
null
[ "production", "php" ]
[ { "code": "pecl install mongodb\npecl upgrade mongodb\n", "text": "The PHP team is happy to announce that version 1.7.1 of the mongodb PHP extension is now available on PECL.Release HighlightsThis release fixes a build issue when compiling against system libraries.A complete list of resolved issues in this release may be found at: Release Notes - MongoDB JiraDocumentationDocumentation is available on PHP.net:\nPHP: MongoDB - ManualFeedbackWe would appreciate any feedback you might have on the project:\nhttps://jira.mongodb.org/secure/CreateIssue.jspa?pid=12484&issuetype=6InstallationYou can either download and install the source manually, or you can install the extension with:or update with:Windows binaries are available on PECL:\nhttp://pecl.php.net/package/mongodbThanksThanks for our community contributors for 1.7.1:", "username": "Andreas_Braun" }, { "code": "", "text": "", "username": "system" } ]
MongoDB PHP extension 1.7.1 released
2020-02-04T18:44:37.145Z
MongoDB PHP extension 1.7.1 released
2,099
https://www.mongodb.com/…f1d16a95a347.png
[ "production", "php" ]
[ { "code": "mongodbMongoDB\\Driver\\ClientEncryptionMongoDB\\Collection::updateOneupdateManyreplaceOnehintMongoDB\\Collection::mapReducemapreducefinalizescopenonAtomicsharded$outcomposer require mongodb/mongodb^1.6.0\nmongodb", "text": "The PHP team is happy to announce that version 1.6.0 of the MongoDB PHP library is now available. This library is a high-level abstraction for the mongodb extension.Release HighlightsThis release introduces classes and options to enable Client-Side Field Level Encryption. With this feature, sensitive data can be automatically encrypted (MongoDB Enterprise Edition only) or explicitly encrypted using the MongoDB\\Driver\\ClientEncryption API.The MongoDB\\Collection::updateOne, updateMany, replaceOne methods now support a hint option to specify the index that should be used for the query. The option is also supported for update operations in bulk writes. This option requires MongoDB 4.2 or later.This release deprecates using a JavaScript instance with scope when calling MongoDB\\Collection::mapReduce for the map, reduce, and finalize options. Use the scope option instead. The nonAtomic and sharded options for the $out Map-Reduce argument are also deprecated.Please note that this is the last minor release series that is compatible with PHP 5. Support for PHP 5 will be dropped in the upcoming 1.8.0 release.A complete list of resolved issues in this release may be found at:\nhttps://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=12483&version=24317DocumentationDocumentation for this library may be found at:FeedbackIf you encounter any bugs or issues with this library, please report them via this form:\nhttps://jira.mongodb.org/secure/CreateIssue.jspa?pid=12483&issuetype=1InstallationThis library may be installed or upgraded with:Installation instructions for the mongodb extension may be found in the PHP.net documentation.", "username": "Andreas_Braun" }, { "code": "", "text": "", "username": "system" } ]
MongoDB PHP Library 1.6.0 released
2020-02-04T18:36:30.959Z
MongoDB PHP Library 1.6.0 released
2,032
null
[ "production", "php" ]
[ { "code": "MongoDB\\Driver\\ClientEncryption--with-mongodb-client-side-encryptionMongoDB\\Driver\\BulkWrite::updatehintMongoDB\\Driver\\ReadConcernReadPreferenceWriteConcernMongoDB\\BSONMongoDB\\Driver\\ReadPreferencegetModeStringgetModeMongoDB\\Driver\\SessiongetTransactionStategetTransactionOptionsMongoDB\\Driver\\ManagerdriverOptionsMongoDB\\Driver\\Manager::__constructwTimeoutMongoDB\\Driver\\WriteConcern::__constructMongoDB\\Driver\\WriteConcern::getWtimeoutMongoDB\\BSON\\Int64wTimeout--with-libbson--with-libmongoc--with-mongodb-system-libspecl install mongodb\npecl upgrade mongodb\n", "text": "The PHP team is happy to announce that version 1.7.0 of the mongodb PHP extension is now available on PECL.Release HighlightsThis release introduces classes and options to enable Client-Side Field Level Encryption. With this feature, sensitive data can be automatically encrypted (MongoDB Enterprise Edition only) or explicitly encrypted using the MongoDB\\Driver\\ClientEncryption API. If the extension is compiled against system libraries, libmongocrypt must be installed for this feature to be enabled. The --with-mongodb-client-side-encryption configure switch can be used to control compilation of encryption features.MongoDB\\Driver\\BulkWrite::update now supports a hint option, which can be used with MongoDB 4.2 or later.MongoDB\\Driver\\ReadConcern, ReadPreference, and WriteConcern instances now support PHP serialization. All classes in the MongoDB\\BSON namespace can now be cloned.The MongoDB\\Driver\\ReadPreference class now exposes the read preference mode as a string through the getModeString method. This is preferred over calling getMode, which will be deprecated in a future release.MongoDB\\Driver\\Session now exposes more detailed transaction information. Instead of only exposing whether a transaction is running, the current state of the transaction can now be obtained using the getTransactionState method. The getTransactionOptions method returns an array of options that the current transaction is using, based on options passed when creating the session object and starting the transaction.When forking a process that is using a MongoDB\\Driver\\Manager instance, the underlying libmongoc client is now reset on the first operation in the child process. This prevents an issue where exiting the child can destroy cursors that the parent process may still be using.Specifying any SSL or TLS option via the driverOptions parameter for MongoDB\\Driver\\Manager::__construct will now implicitly enable TLS, as is done for the corresponding URI options.The wTimeout parameter for MongoDB\\Driver\\WriteConcern::__construct now accepts 64-bit values. On 32-bit systems, MongoDB\\Driver\\WriteConcern::getWtimeout will return a MongoDB\\BSON\\Int64 instance if the WriteConcern object was created with a wTimeout that exceeds the 32-bit range. On 64-bit systems, this method will always return an integer value.The --with-libbson and --with-libmongoc configure switches have been deprecated. The new --with-mongodb-system-libs configure option should be used to enable compiling against system libraries instead of bundled versions of libbson, libmongoc, and libmongocrypt. The extension continues to use bundled libraries by default.This release updates the bundled libbson and libmongoc libraries to 1.16.0. The bundled libmongocrypt library is version 1.0.1.Please note that this is the last minor release series that is compatible with PHP 5. Support for PHP 5 will be dropped in the upcoming 1.8.0 release.A complete list of resolved issues in this release may be found at: Release Notes - MongoDB JiraDocumentationDocumentation is available on PHP.net:\nPHP: MongoDB - ManualFeedbackWe would appreciate any feedback you might have on the project:\nhttps://jira.mongodb.org/secure/CreateIssue.jspa?pid=12484&issuetype=6InstallationYou can either download and install the source manually, or you can install the extension with:or update with:Windows binaries are available on PECL:\nhttp://pecl.php.net/package/mongodb", "username": "Andreas_Braun" }, { "code": "", "text": "", "username": "system" } ]
MongoDB PHP extension 1.7.0 released
2020-02-04T15:08:41.170Z
MongoDB PHP extension 1.7.0 released
4,103
null
[]
[ { "code": "", "text": "Could you help me to get the course syllabus", "username": "Prathibhashree_90960" }, { "code": "", "text": "Hi @Prathibhashree_90960,Did you check the Course Overview page ? It would give you an idea about thing that you would be learning in each chapter.Let me know if you need more detailed information.Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "am getting issue while installing mangodb, when I typed mango --nodb in command prompt. it says mango is not internal/external command.\nI have set the env variable under PATH", "username": "Prathibhashree_90960" }, { "code": "mongo --nodb", "text": "HI @Prathibhashree_90960,mango --nodbThe command is : mongo --nodbHope it helps!Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "Sometimes silly mistakes heals time. Seriously thanks.", "username": "Prathibhashree_90960" }, { "code": "", "text": "When I sign up for Atlas, It didn’t ask me to create a group where I should go and create a group in clusters page. Please guide me", "username": "Prathibhashree_90960" }, { "code": "", "text": "Hi @Prathibhashree_90960,You don’t have to create the groups as the functionalities in Atlas have changed now. Please follow the instructions mentioned in the Lab 2.0: Create an Atlas Sandbox Cluster and you should be good to go.Please let me know if you have any other query.Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "", "username": "system" } ]
Where can I get the sullabus
2020-01-29T04:57:48.183Z
Where can I get the sullabus
1,329
null
[ "production", "c-driver" ]
[ { "code": "", "text": "I’m pleased to announce version 1.16.1 of libbson and libmongoc, the libraries constituting the MongoDB C Driver.Features:Bug fixes:– Kevin Albertson", "username": "Kevin_Albertson" }, { "code": "", "text": "", "username": "system" } ]
Announcing libbson and libmongoc 1.16.1
2020-02-04T02:10:30.206Z
Announcing libbson and libmongoc 1.16.1
2,145
null
[]
[ { "code": "", "text": "Hey there MongoDB Community, my name’s Alex Bevilacqua and I’m a Sr. Technical Services Engineer at MongoDB. I’ve been a team member since 2018, but have been writing about MongoDB at my blog since 2012.I work remotely from my home office in Ajax, which is located east of Toronto. Since joining MongoDB I’ve had an opportunity to present at MDBW19 as well as Toronto.local.Before joining MongoDB on the TSE team I had a career as a software engineer and system architect. I am still an active programmer, specializing in Ruby/Rails, C# and JavaScript.If you’re curious as to what a Technical Services Engineering role is all about, I have a blog post just for you.If you want to get in touch, you can find me around the interwebs on Twitter, LinkedIn or GitHub.", "username": "alexbevi" }, { "code": "", "text": "Welcome @alexbevi, glad to have you here!", "username": "Jamie" } ]
🌱 Howdy MDB Community, I'm Alex
2020-01-30T10:36:31.432Z
:seedling: Howdy MDB Community, I&rsquo;m Alex
1,845
null
[ "atlas" ]
[ { "code": "", "text": "Each datacenter has approximately a dozen servers that connect to an MongoDB Atlas cluster. It would be cumbersome to constantly manage whitelisting each server on the Atlas cluster config side for allowed (whitelisted) connections.I am curious if anyone has input, thoughts, concerns, experience, etc. with having 1 single server be the proxy to MongoDB Atlas so that each datacenter only requires a single IP whitelisted address.", "username": "cory_robinson" }, { "code": "", "text": "For whitelisting the endpoints you can leverage the API to do this automatically when you provision a new server/app that uses it.To actually proxy you’re going to need a TCP proxy, something like HAProxy or Traefik(2.0+)In this environment your server/app will have to resolve each Node in the Atlas cluster to your TCP Proxy(because of replicaset discovery).[Edit] Oh yes, forgot to mention, this get really fun* because you have to inspect TLS Hello to know which host to route to. Go with the API.I think the better way would to be to leverage the API, but either way requires a bit of work.\nWhitelisting via API I have done. TCP Proxy I have experience with, not with Atlas though.*Fun: Razor blades and lemon juice fun.", "username": "chris" } ]
Proxy mongodb connections in datacenter via 1 VM for Atlas IP whitelisting
2020-01-30T22:12:36.561Z
Proxy mongodb connections in datacenter via 1 VM for Atlas IP whitelisting
3,302
null
[]
[ { "code": "", "text": "Hi,When I first try to connect, I build my connection string with several default most-likely because I successfully connect as follow:mongodb://m001-student:[email protected]:27017/adminWhen I did the first lab, I read the doc about it and I tried to pass options like this:mongodb://m001-student:[email protected]:27017/admin?replicaSet=Cluster0-shard-0&ssl=true&readPreference=primaryPreferredI never succeed to log with these options. I tried to remove them one by one, same result. I must have missed something. I want to know what is wrong because there is a lot of options.Thanks", "username": "Denis_Gilbert_55813" }, { "code": "mongodb://m001-student:[email protected]:27017/?authSource=admin&replicaSet=Cluster0-shard-0&readPreference=primaryPreferred&appname=MongoDB%20Compass&ssl=true", "text": "Hi @Denis_Gilbert_55813,In this thread you have mentioned that finally you were able to connect. Please let me know if you are still having any issue.For any other user who might be having similar issue, please use this connection string for connecting to the class atlas cluster from Compass.Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "mongodb://m001-student:[email protected]:27017/?authSource=admin&replicaSet=Cluster0-shard-0&readPreference=primaryPreferred&appname=MongoDB%20Compass&ssl=trueHi,\nI can’t connect with this connection string. I always get the “Server selection timed out after 30000ms” message. What can I do?Thanks", "username": "Jannick_89527" }, { "code": "", "text": "Hi, Yes I were able to connect without options at the end.If I understand, your connection string has the following in optionauthSource=admin\nappname=MongoDB CompassSo if I understand, I cannot pass the authSource in the url ( /admin … ) if I am using the options\nor the appName is mandatory.Please confirm.\nThank You", "username": "Denis_Gilbert_55813" }, { "code": "", "text": "Hi @Jannick_89527,It could be your network/firewall/anti-virus that might be causing this issue. Please have a look at this post for further instructions.Please feel free to get back to us if the issue still persists.Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "mongodb+srv://m001-student:[email protected]/test", "text": "Hi @Denis_Gilbert_55813,You can also use this shorter SRV connection string for connecting to the class atlas cluster.For more information on this you can refer this page.Hope it helps!Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "", "username": "system" } ]
Connection string issue
2020-01-30T05:37:04.683Z
Connection string issue
2,139
null
[]
[ { "code": "", "text": "Hi, I’m a newbie. Can’t get the Compass download to work (clicking button does nothing but it is enabled and depresses).\nscreen shots with details attached. Everything seems A-OK so far (Port is open, Win 10 version is latest, etc.).\nAnyone out there have this problem too?\nThanks!\nMarkI have ", "username": "Mark_Thorne_83392" }, { "code": "", "text": "Hi @Mark_Thorne_83392,What browser are you using and have you tried downloading using any other browser ?Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "Hi\nShubham ,\nYes, I tried Chrome and Edge both.\nAfter my email, I signed up for Atlas (Free Cluster).Will that be compatible?Thanks for replying…Mark", "username": "Mark_Thorne_83392" }, { "code": "", "text": "@Mark_Thorne_83392 have you looked in the Downloads folder? Did you try Firefox? Can you download any other executables (exe only)?It could be a myriad of things… Internet Security settings, browser settings, firewall, anti virus, group policy etc. If this is a work laptop, have a chat with your IT support.Suggest you try the msi and zip options from the drop-down list. If this doesn’t work, then download it from another device and transfer the file across.", "username": "007_jb" }, { "code": "", "text": "Hi @Mark_Thorne_83392,Please use this link for downloading the Compass 1.20.4 version (Zip file).Hope it helps!Please feel free to get back to us if you have any other query.Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "", "username": "system" } ]
Win 10-Compass Download button unresponsive
2020-01-28T12:23:00.747Z
Win 10-Compass Download button unresponsive
1,080
null
[]
[ { "code": "", "text": "Hi I am Chris from Waterloo, ON, Canada, ex-pat from Aoteroa(New Zealand)I’ve been working with MongoDB since 2016, hold DBA and Dev Associate Certification.\nMost of my work with MongoDB is as a DBA.With previous experience with Oracle RDBMS, Postgres, MySql, CouchDB, Cassandra, I can say that Mongodb is a joy to work with in comparison.", "username": "chris" }, { "code": "", "text": "Hi @chris glad to see you around these parts. I’m looking forward to continuing to learn from your knowledge.", "username": "Doug_Duncan" }, { "code": "", "text": "I somehow doubt that @Doug_Duncan. Me learn from you on the other hand, that is more likely.", "username": "chris" }, { "code": "", "text": "Hi @chris, happy to have you here!", "username": "Jamie" }, { "code": "", "text": "Welcome @chris! Glad to have another DBA to interact with here! Looking forward to being in this community with you.", "username": "Michael_Grayson" } ]
🌟 Hello from Chris
2020-01-29T20:23:50.546Z
:star2: Hello from Chris
2,162
null
[]
[ { "code": "Hostname: cluster0-shard-00-00-jxeqq.mongodb.net\n\nUsername: m001-student\n\nPassword: m001-mongodb-basics\n\nReplica Set Name: Cluster0-shard-0\n\nRead Preference: Primary Preferred\n", "text": "V 1.20.4 - The UI is different from the docs on the video here:\nhttps://university.mongodb.com/mercury/M001/2020_January_14/chapter/Chapter_1_Introduction/lesson/594d8f1e8c07c3a9b60bdfb3/lectureconnectData:", "username": "Ezra_16731" }, { "code": "", "text": "Hi @Ezra_16731,Thanks for sharing We are in the process of upgrading the video lectures as well as the instructions mentioned in the course for connecting to the atlas cluster using Compass.Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "2 posts were split to a new topic: Is the server working?", "username": "Shubham_Ranjan" }, { "code": "", "text": "", "username": "Shubham_Ranjan" } ]
How to Connecting to MongoDB Using Compass (1.20.4) (The course lecture using diff ver)
2020-01-21T10:42:27.330Z
How to Connecting to MongoDB Using Compass (1.20.4) (The course lecture using diff ver)
1,461
null
[]
[ { "code": "", "text": "Hi,\nI just started the course and realized that the provided info is completely outdated. Yes there is a mention that compass might be different but this is day & night. I build my connexion string and connect to the cluster.Can we really follow this course with different material ? for example, the video is showing 4 databases, but I can see 12 now. What about the exercise and exam ? Is this going to work ?I should be able to do the course in English but is there a french course ?Thanks to provide some startup hints.Denis", "username": "Denis_Gilbert_55813" }, { "code": "", "text": "Hi @Denis_Gilbert_55813,Yeah, I understand your concerns. Our team is currently in the process of updating the courses to reflect the changes in the UI.Yes, we have added some extra datasets because of the changed requirements. But, you will find all the datasets used in the course lecture available in the cluster as well except the 100YWeather datasets which has been replaced with 100YWeatherSmall dataset.You shall not have any difficulty in doing the labs, quizzes or final exam questions.I should be able to do the course in English but is there a french course ?At the moment, we offer all of our courses in English language only.Please feel free to reach out to us if you have any other query or you find something confusing in the course.Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "", "username": "Shubham_Ranjan" } ]
Outdated course
2020-01-30T04:37:58.973Z
Outdated course
1,334
null
[]
[ { "code": "", "text": "I’m Asya, I work at MongoDB.I’ve been at MongoDB since early 2012 and have had many roles, all technical, all user facing.I’m like TRON, I fight for the user.", "username": "Asya_Kamsky" }, { "code": "", "text": "Here are the things I hope to learn from these community forums:", "username": "Asya_Kamsky" }, { "code": "", "text": "This is a smaller subset of the users, but could there be more details on mongosqld configurationThe mongosqld command man page.There is not a lot of details on the memory options and how they work or recommended ways to plan/adjust accordingly.thank you", "username": "nchan" }, { "code": "", "text": "Thanks @nchan let me also ping our docs team.", "username": "Jamie" } ]
🌱 Hi, I'm Asya, I'm a MongoDB KnowItAll!
2020-01-24T22:41:19.009Z
:seedling: Hi, I&rsquo;m Asya, I&rsquo;m a MongoDB KnowItAll!
1,908
null
[]
[ { "code": "", "text": "Hi All,\nSorry if this is the wrong part to post- I didn’t see a “general”Is there a MongoDB distribution list we can “subscribe” to for new features or updates to MongoDB?For example: (We use MongoDB Atlas)MongoDB Point in Time Recovery is not available in MongoDB 4.2 Atlas. We would like to upgrade but PIT is a requirement for us, so we’ll have to wait. Is there a way to get simple email list we can be a part of latest features/updates?Also any great unofficial MongoDB, news or article email distributions I’d be interested in as well.thank you", "username": "nchan" }, { "code": "", "text": "Hi @nchan,While not an email distribution list, you can follow the Product & Drivers Announcements category in this forum where the relevant MongoDB teams will post update announcements. This will replace the existing Google Groups mailing list that used to serve this function.Cheers,Jamie", "username": "Jamie" }, { "code": "", "text": "This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.", "username": "system" } ]
Are there MongoDB distribution Email lists for latest updates?
2020-01-30T01:21:14.401Z
Are there MongoDB distribution Email lists for latest updates?
2,085
null
[]
[ { "code": "", "text": "I can download and install Compass 1.19.12 (stable), not Community. When I try to open the program from the Applications folder, I get this alert. I’ve tried installing through both Homebrew and Chrome, and I get the same alert message. It also happens if I install Compass 1.20.0-beta.7. ", "username": "Rebecca_02008" }, { "code": "", "text": "Update Your System Preference => Security & Privacy => General =>\nset (Allow App Download from ) the radio button to App Store and Identified Developers.", "username": "isaac_06659" }, { "code": "", "text": "Thanks @isaac_06659.Hi @Rebecca_02008,I hope your issue got resolved. However, if the issue still persists please feel free to get back to us.Happy Learning Thanks,\nShubham Rajan\nCurriculum Support Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "I am having the same issue, although setting that radio button did not work for me. Do you have any other suggestions?", "username": "Patrick_16449" }, { "code": "", "text": "Hi @Patrick_16449,It should work. Can you please share a screenshot of the changes that you made and the error message that you are getting ?Thanks,\nShubham Rajan\nCurriculum Support Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "Sorry for the late reply, I did eventually get it working. I had to find the file in finder and right click it and choose open, once I had done that it opens normally. @Shubham_Ranjan", "username": "Patrick_16449" }, { "code": "", "text": "Hi @Patrick_16449,I’m glad your issue got resolved. Please feel free to get back to us if you have any other query.Thanks,\nShubham Rajan\nCurriculum Support Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "", "username": "system" } ]
Compass won't open on macOS Catalina 10.15
2019-10-09T16:42:05.841Z
Compass won&rsquo;t open on macOS Catalina 10.15
2,438
null
[]
[ { "code": "", "text": "110YWeatherSmall.data, schema analysis is returning an error “An error occurred during schema analysis: write after end”", "username": "Saravana_Kumar_64734" }, { "code": "", "text": "It may be slow internet connection or stale compass session\nTry to restart compass and see\nAre you facing same issue for other DB’s/collections?", "username": "Ramachandra_Tummala" }, { "code": "", "text": "Hi @Saravana_Kumar_64734,Can you please confirm if your issue has been resolved or not ?Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "", "username": "system" } ]
An error occurred during schema analysis: write after end
2020-01-25T05:16:19.481Z
An error occurred during schema analysis: write after end
1,659
null
[]
[ { "code": "", "text": "Hi,I received some very positive feedback regarding the recent MongoDB .local San Francisco 2020 event from members of my local Meetup group.The group members messaged me privately, all saying the same thing, in regards to their favorite session of the day. Everyone loved the Realm session and said it was an incredibly interesting technology.Well done!", "username": "nraboy" }, { "code": "", "text": "Hello! I attended the MongoDB.local event and wanted to share my feedback.The sessions were all amazing. At first I was a little put off with the headphone requirement, but ultimately the headphones did not hinder the learning experience. My favorite session was the talk on Realm: REST-less Mobile apps: why offline-first and sync matters for your app and business. Not only was I impressed by the capabilities of Realm, but the presenter really helped lay out the specific modern day application problems that the framework can solve.As for the venue, I did feel that it was too small. Very hard to move about. Most sessions seemed to be full with standing room only to attend.One last comment was on the food. I thought the food truck idea was good but as with the venue, too crowded. with only 45 minutes to grab lunch before the next session, our group decided to eat offsite instead of trying to figure out how to get in line.Overall an amazing day, and will look forward to the next event!", "username": "chris_mitchell" }, { "code": "", "text": "Hi, I attended MongoDB.local in San Francisco this week and am already looking forward to next years! I had a great time and really enjoyed the sessions. One of my favorite sessions was Aggregation Pipeline Power++ presented by Asya Kamsky. She did a great job at summarizing aggregation pipeline and how it has evolved over the past few years.\nAdditionally, I enjoyed the environment and overall energy of the event.", "username": "Lourdes_ovando" }, { "code": "aggregate", "text": "First off, there wasn’t a session I didn’t like, although there were some things about the REST-less (Realm) talk that I would have loved to’ve seen changes to. I wish the talk included more code to explain how to integrate and potentially a demo to showcase how things worked (with offline access/failure states/etc). As it stands currently, it’s an impressive product that can really speak for itself, but I walked away from the talk feeling like I was advertised to rather than showcased a really cool piece of tech (which it undoubtably is! The “advertising” was effective even if it felt a bit blatent at times)I’d also like to note the same thing that was addressed - the venue felt far too small. Even standing room didn’t feel like enough in some of the sessions.Additionally, the lunch was a clever idea with food trucks, but none of the folks who attended the GraphQL talk (which I personally think was the best! Very informational, even outside of the Mongo uses. Great intro) were realistically able to get lunch. I had to miss out on lunch as a resultOne of the things I think the conference did uniquely well was providing resources for folks to learn how to layout databases in a NoSQL manor. This was huge and is one of the questions I hear the most from folks who use Mongo in any capacity. I’d suggest anyone to go to a .local event just for that and the 1:1 sessions itselfLastly, the last talk of the Pipeline Power++ was amazing! It took me from “I don’t know what aggregate was” to “Wow, I feel like it can do anything I’ll bet I could really sink my teeth into that” and was simple to understand (a rarity when diving in so deep into such concepts)All in all, great environment and a good day. Looking forward to more!", "username": "crutchcorn" }, { "code": "", "text": "Thanks so much for your comments! I’m always worried I’m trying to throw too much information into a 40 minute talk - great to hear you found it useful!P.S. Welcome to the forums!", "username": "Asya_Kamsky" }, { "code": "", "text": "Thanks! I think you told me right after the session that you didn’t know about aggregate before - I was pretty worried about audience members who weren’t already familiar with aggregation at all, so I’m glad to hear I didn’t need to worry! ", "username": "Asya_Kamsky" }, { "code": "", "text": "I think it was a great mixture of “review” and new stuff. I think without the “review” section from your 2017 talk I likely would have been lost, but including it as a quick recap was a fantastic way to bring others up-to-date. (plus, I loved the “PHSHEW” time-lapse sound effects always nice to have some fun while learning)", "username": "crutchcorn" }, { "code": "", "text": "", "username": "Stennie_X" } ]
MongoDB .local San Francisco 2020
2020-01-24T17:23:56.934Z
MongoDB .local San Francisco 2020
2,987
null
[]
[ { "code": "", "text": "I stumbled across MongoDB a few years ago while investigating the abilities of Azure Cosmos and using the MongoDB C# drivers. I quickly realised that Atlas was a better system for my needs and have since used it for nearly all new work I’ve done!Based in Yorkshire, UK and responsible for a Email Archiving system which I’m expecting to convert from SQL to MongoDB Atlas over the next year or so of developmentReally pleased to be talking to anyone about new technologies and coding challenges", "username": "Will_Blackburn" }, { "code": "", "text": "Welcome Will.Sounds like a great challenge you’ve taken upon you. Be sure to keep us informed on how it’s going and ask questions if you’re stuck.", "username": "Peter" }, { "code": "", "text": "Welcome, Will! We’re thrilled to have you here with us.", "username": "Jamie" } ]
Intro: Hi, I'm Will!
2020-01-24T11:40:56.365Z
Intro: Hi, I&rsquo;m Will!
1,421
null
[]
[ { "code": "", "text": "Hi, I have installed the mongoDB compass. When i am trying to connect to the server, it is giving error “Could not connect to MongoDB on the provided host and port” though PORT is reachable.\nPlease help!", "username": "Tushar_35921" }, { "code": " mongo \"mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/video?replicaSet=Cluster0-shard-0\" --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basics\n", "text": "Please try running this command from the terminal / command line:If you are able to connect from the above command, then view this post if it help you: About the Chapter 1: Compass Connection [Solution]Kanika", "username": "kanikasingla" }, { "code": "", "text": "What if one is unable to connect from the command line also?My command line gives this:\n\"\n2019-02-23T15:26:45.428+0100 E QUERY [js] Error: connect failed to replica set Cluster0-shard-0/cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017 :\nconnect@src/mongo/shell/mongo.js:343:13\n@(connect):1:6\nexception: connect failed\n\"", "username": "Toyyib_52111" }, { "code": "~$ telnet cluster0-shard-00-00-jxeqq.mongodb.net 27017Trying 34.195.121.130...Connected to ec2-34-195-121-130.compute-1.amazonaws.com.", "text": "Hi @Toyyib_52111,Please share the command you are using to connect.Also, check if your network is not blocking request.~$ telnet cluster0-shard-00-00-jxeqq.mongodb.net 27017\nTrying 34.195.121.130...\nConnected to ec2-34-195-121-130.compute-1.amazonaws.com.Kanika", "username": "kanikasingla" }, { "code": "", "text": "\nScreenshot (103).png1352×696 30.5 KB\n \nScreenshot (105).png1028×717 22.1 KB\n", "username": "Toyyib_52111" }, { "code": "mongo connection", "text": "Screenshot (105).png1028×717 22.1 KBSeems like the network is unstable. Can you please try running the mongo connection command from another system or with good network?Kanika", "username": "kanikasingla" }, { "code": "", "text": "Thanks.\nbut my command prompt shows me that my shell and server versions are not same what does it mean", "username": "jalpa_46920" }, { "code": "", "text": "Hi @jalpa_46920,You can safely ignore this warning message. Let me know if you are having any other issue.Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "thanks.\nnot at present.", "username": "jalpa_46920" }, { "code": "", "text": "Closing this thread as there are no unresolved issues and the thread is old.", "username": "Shubham_Ranjan" } ]
Unable to connect MongoDB compass
2019-01-30T10:09:52.389Z
Unable to connect MongoDB compass
3,126
null
[]
[ { "code": "", "text": "If you’re new to MongoDB technologies, we suggest getting started with the following resources:MongoDB University (free, self-paced online courses)MongoDB Quick Start Guides (functional tips, with examples, created by our developer relations team)MongoDB Developer Blog (written by our developer relations team)Also, take a peek around the forums to see what kinds of discussions are happening amongst our other users.", "username": "Jamie" }, { "code": "", "text": "", "username": "Jamie" } ]
New to MongoDB? Check out these resources
2020-01-23T18:53:23.760Z
New to MongoDB? Check out these resources
6,160
null
[]
[ { "code": "", "text": "When I followed the instruction and clicked to Video.movies, I only saw “Documents, Aggregations, Explain Plan, Indexes” 4 tab above. I could not find Schema as instructed in the tutorial.", "username": "Guojing_29688" }, { "code": "", "text": "Schema is not available in Community version\nPlease use stable version", "username": "Ramachandra_Tummala" }, { "code": "", "text": "Closing this thread as the issue has been resolved.", "username": "Shubham_Ranjan" } ]
How to find "Schema" in MongoDB Compass community version
2020-01-23T01:13:30.487Z
How to find &ldquo;Schema&rdquo; in MongoDB Compass community version
1,265
null
[]
[ { "code": "", "text": "The answer “decimal number” should be reworded to number since json does not support a precise decimal type. Thank you.", "username": "jacobdmalter" }, { "code": "", "text": "Hi @jacobdmalter,Thanks for your suggestion. We will look into this.Kanika", "username": "kanikasingla" }, { "code": "", "text": "", "username": "system" } ]
[REQUEST] Lecture: Understanding JSON Quiz
2020-01-15T03:56:29.945Z
[REQUEST] Lecture: Understanding JSON Quiz
1,343
null
[]
[ { "code": "", "text": "I’m trying to connect to the MonghDB in chapter 1 - hostname: cluster0-shard-00-00-jxeqq.mongodb.net.I’m unable to connect and I receive this error message:\nself signed certificate in certificate chainDoes anyone know what I can do to get this corrected on my system to allow me to connect?Thank you!", "username": "Victor_48670" }, { "code": "", "text": "Hey Victor. The hostname \" cluster0-shard-00-00-jxeqq.mongodb.net \" is correct. Make sure you didn’t add any period in the end. All The Best.", "username": "vignesh_2708" }, { "code": "", "text": "Thanks for the reply. I didn’t add a period at the end when attempting to connect - I had just added it to the post.", "username": "Victor_48670" }, { "code": "", "text": "@Victor_48670Can I ask what is the command you are running to connect? Or is this with Compass?", "username": "Natac13" }, { "code": "", "text": "@natac13 I’m using Compass to connect.", "username": "Victor_48670" }, { "code": "", "text": "@Victor_48670Can you share s screenshot of the connection screen or the variables you are using to attempt the connection that is failing?Should look like the following:", "username": "Natac13" }, { "code": "", "text": "Definitely. Here you go.\n\nimage.png793×897 28 KB\n", "username": "Victor_48670" }, { "code": "", "text": "Well if the password is correct it looks good to me. So I am not really sure how to fix the issue.I found this post. Which talks about an antivirus blocking files and causing this error.This post says same thing; that an antivirus program is blocking the files and causing the error.Maybe those can help.", "username": "Natac13" }, { "code": "", "text": "Thanks @natac13 for your contribution.Hi @Victor_48670,Please refer this great post by @Kanika and make sure you are not behind a firewall or using a VPN connection. Let me know if the issue still persists.Thanks,\nShubham Ranjan\nCurriculum Support Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "I’m having a problem white connecting.\nError: Server selection timed out after 30000 ms", "username": "Sumanta_02538" }, { "code": "", "text": "Hi @Sumanta_02538,It could be a firewall/network/anti-virus related issue. Please ensure the following :In addition to this please refer this post.Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "", "username": "system" } ]
Unable to connect to MongoDB Chapter 1
2019-08-13T13:45:27.457Z
Unable to connect to MongoDB Chapter 1
3,169
null
[]
[ { "code": "", "text": "I was busy in the last few days and I couldn’t complete the lab assignments on the due date. So can you extend them?", "username": "Shelani_93714" }, { "code": "", "text": "No extension or grace period will be given if you miss deadlinesYou can continue with course or register for next offering", "username": "Ramachandra_Tummala" }, { "code": "", "text": "Hi @Shelani_93714,I hope you found @Ramachandra_37567’s response helpful.You can enrol in another offering of M001 which started on 7th January, 2020.Hope it helps!Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "Hi @Shubham_Ranjan,Yeah. I’ll enroll. Thank you!-Shelani", "username": "Shelani_93714" }, { "code": "", "text": "Closing the thread as the issue has been resolved.", "username": "Shubham_Ranjan" } ]
Extend due dates
2020-01-11T13:59:28.198Z
Extend due dates
1,141
null
[]
[ { "code": "", "text": "HiI cant type any key into the cmd when below screen shown\nany advise?", "username": "Ahmad_34844" }, { "code": "", "text": "It is prompting for password\nJust type the password\nFor security reasons it won’t show what you are typing but accepts if what you typed is correct password\nor you get bad authentication error if you supply wrong password", "username": "Ramachandra_Tummala" }, { "code": "--password", "text": "Concur with @Ramachandra_37567.One alternative is to include the --password option in your connection string. By default this is not included when you copy it from Atlas.", "username": "007_jb" }, { "code": "", "text": "thanks a lot guys =)both worked for me", "username": "Ahmad_34844" }, { "code": "", "text": "Closing this thread as the issue has been resolved.", "username": "Shubham_Ranjan" } ]
Cannot Type Password when Connecting Atlas to Shell
2020-01-11T10:51:08.500Z
Cannot Type Password when Connecting Atlas to Shell
2,430
null
[]
[ { "code": "", "text": "Hello everyone, I have a question.Firstly I must download mongo DB, or only the compass and then connect?", "username": "Dimitris_24796" }, { "code": "", "text": "Hi @Dimitris_24796,Firstly I must download mongo DB,In chapter 1, you are not required to download and setup MongoDB on your system. You will be doing it in chapter 2.or only the compass and then connect?In chapter 1, you just have to download Compass and connect to a mongod instance running remotely in Atlas cluster.Hope it helps!Please feel free to get back to us if you have any other query.Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "", "username": "system" } ]
Compass Configuration
2020-01-10T08:09:48.574Z
Compass Configuration
1,200
null
[]
[ { "code": "", "text": "In Lecture: Documents: Scalar Value Types, he keeps referring to Strings as “Scalar” types. But how does that make any sense? A scalar should be able to scale something. I can multiply a number by 5, but I can’t multiply a number by “apple”.This CSSE answer suggests that strings are not scalar: programming languages - Are Strings Scalar? - Computer Science Stack ExchangeAm I right in thinking that the correct term here is a “Primitive” data type?", "username": "Aaron_Franke_59358" }, { "code": "", "text": "@Aaron_Franke_59358 I think its one of those overloaded / interchangeable terms tbh despite the various definitions. I’ve always considered primitives to be thing like int, char, float, etc… and to an extent String. But in some definitions I’ve seen Scalar used to describe something that is a single value regardless of the data type…", "username": "Mike_67094" }, { "code": "", "text": "strings are not primitives in most languages either (but they are in JS, there is no char type) …In JavaScript, a primitive (primitive value, primitive data type) is data that is not an object and has no methods or properties. There are 7 primitive data types:Whether they are scalar according to your operational definition depends on the language: perl & Python can multiply strings by a number.I do follow the distinction between scalar (1 value) and collections/records/objects (multiple values).", "username": "Javier_72724" }, { "code": "", "text": "You have a misconception of what scalar means. It is not related to something that scales or can be multiplied. There’s a really good answer on stack overflow about Scalar vs Primitive that I think is worth checking out if you find scalar value types confusing.", "username": "Andrew_Knox_45344" }, { "code": "", "text": "String are not scalars. And this chapter should be use “primitive” instead of “scalar” which, by the way, is a term not used on MongoBD documention", "username": "Carlos_21088" }, { "code": "", "text": "", "username": "system" } ]
What exactly does the word "Scalar" mean in this context?
2019-01-13T03:01:21.256Z
What exactly does the word &ldquo;Scalar&rdquo; mean in this context?
3,112
null
[]
[ { "code": "", "text": "Hi,\nI’ve started with the Course, but can’t finished the first steps in Time.\nNow I see this at the Page:\nI still see the checkboxes in this Page, but they are disabled.\nHow can I resume or restart this Lesson to be able to answer the Labs?\nI can still answer the Quiz, but not the Questions in the Labs.", "username": "Samuel_79093" }, { "code": "failed", "text": "Hi @Samuel_79093,I still see the checkboxes in this Page, but they are disabled.\nHow can I resume or restart this Lesson to be able to answer the Labs?Once the deadline for any lab has passed then you cannot make submissions for it and it is automatically marked as failed. You will still have access to the video lectures and you can submit answers for the quizzes which are ungraded.As I can see, you have missed all the labs in chapter 1, so in this case I would recommend you to enroll in the current offering of M001 which started on December 31st, 2019.If you want to know more about the passing grade and related information then please refer this post.Hope it helps!Please feel free to get back to us if you have any query.Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "", "username": "system" } ]
Resume Course - Confused about Ending-Time and Passing it
2020-01-02T15:23:46.641Z
Resume Course - Confused about Ending-Time and Passing it
1,466
null
[]
[ { "code": "", "text": "Hey,I’m attempting the quizz on this section but based on the DB im looking at and the options of answers given i don’t seem to answer the questions correctly. Could the answers given “names” be alternatives also.Thanks.", "username": "John_Okong_o_71766" }, { "code": "", "text": "I am unsure I understand your query. Please elaborate more.Also, I checked you have successfully passed the Lab1.1. Let me know if you still need help.Kanika", "username": "kanikasingla" }, { "code": "", "text": "True,I guess i had a bad mindset starting out. The instructional videos are a bit different with the DBs on compass. But i have figured out the way it “All” works with the minor changes.Thanks.", "username": "John_Okong_o_71766" }, { "code": "", "text": "Compass not work on Fedora (both versions: complete and community).\nSegmentation Fault.", "username": "Sergi_09319" }, { "code": "", "text": "Which version are you using?Note: There is already a JIRA ticket on the same issue: https://jira.mongodb.org/browse/COMPASS-3361", "username": "kanikasingla" }, { "code": "", "text": "Fedora 29 as issue. ", "username": "Sergi_09319" }, { "code": "", "text": "Hallo,I am not able to connect Database through Compass. I have entered the given details in compass and added to favorite, but while click on connect it is showing the below issue,getaddrinfo EAI_AGAIN cluster0-shard-00-00-jxeqq.mongodb.net cluster0-shard-00-00-jxeqq.mongodb.net:27017kindly help me overcome this issue.Thanks.", "username": "Dhilip_52341" }, { "code": "", "text": "Hi @Dhilip_52341,Just to make sure that you have filled in all the parameters correctly I would request you to share the screenshot of the Compass connection screen.In addition to that can you please make sure you are able to ping the cluster?ping cluster0-shard-00-00-jxeqq.mongodb.netAnd also please verify that port 27017 is not blocked by clicking http://portquiz.net:27017 On some occasions, even though the above mentioned tests passes, network is still a problem. So please make sure you are not connected to any vpn and firewall/antivirus is disabled . You can also try to connect from some other network such as your home network .Thanks,\nShubham Ranjan\nCurriculum Support Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "Hi @Shubham_RanjanThank you so much for your reply.\nI have already connected to my Home network and checked. It helps too. I can able to connect to the Database through compass.", "username": "Dhilip_52341" }, { "code": "", "text": "Hallo,I am not able to get the Schema view for 100YWeatherSmall.data. It is keep on loading due to more weight. So, i choose the STOP AND SHOW PARTIAL RESULT, but after that it will be a blank screen, no data reveled.\nKindly help me.", "username": "Dhilip_52341" }, { "code": "", "text": "Is it working for other DBs/collections?\nIs your internet speed fine?\nDid you try to restart compass\nPlease check this link\nAnalyze Schema doesn’t open", "username": "Ramachandra_Tummala" }, { "code": "", "text": "Hi @Dhilip_52341,Please make sure that you have a stable internet connection with high bandwidth. If you are still facing any issue with it then you can import the entire dataset used in M001 course in a locally running mongod instance and connect to it using Compass.For more information please refer this post.Hope it helps!If you have any other query then please feel free to get back to us.Happy Learning Thanks,\nShubham Ranjan\nCurriculum Support Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "Hello @Shubham_RanjanI have referred this, mongorestore.\nBut I am not able to restore the local dump data. I have used this mongorestore --host localhost --gzip, then the below issue i got2019-12-11T11:51:53.658+0530 using default ‘dump’ directory\n2019-12-11T11:51:53.664+0530 preparing collections to restore from\n2019-12-11T11:51:53.671+0530 don’t know what to do with subdirectory “__MACOSX\\dump”, skipping…\n2019-12-11T11:51:53.674+0530 don’t know what to do with file “dump\\dump.DS_Store”, skipping…\n2019-12-11T11:51:53.674+0530 don’t know what to do with subdirectory “dump\\100YWeatherSmall”, skipping…\n2019-12-11T11:51:53.677+0530 don’t know what to do with subdirectory “dump\\citibike”, skipping…\n2019-12-11T11:51:53.684+0530 don’t know what to do with subdirectory “dump\\city”, skipping…\n2019-12-11T11:51:53.686+0530 don’t know what to do with subdirectory “dump\\mflix”, skipping…\n2019-12-11T11:51:53.688+0530 don’t know what to do with subdirectory “dump\\results”, skipping…\n2019-12-11T11:51:53.690+0530 don’t know what to do with subdirectory “dump\\ships”, skipping…\n2019-12-11T11:51:53.697+0530 don’t know what to do with subdirectory “dump\\video”, skipping…\n2019-12-11T11:51:53.699+0530 0 document(s) restored successfully. 0 document(s) failed to restore.Kindly help me.Thanks,\nDhilip.", "username": "Dhilip_52341" }, { "code": "", "text": "Thank you @Ramachandra_37567 for your reply. It might be my internet speed. Because sometimes i can able to view the schema with minimum number of fields.", "username": "Dhilip_52341" }, { "code": "", "text": "Hi @Shubham_RanjanI have imported to Local. Now no issues.\nBut, i think the Dumps you had given is not updated to the present class. It will be really helpful, if you have provide the latest dumps.Thank you,\nDhilip.", "username": "Dhilip_52341" }, { "code": "", "text": "Hi @Dhilip_52341,If I’m not mistaken then the dump contains all the datasets which we have used in our class atlas cluster.Note : Now, we have added some extra datasets in our class atlas cluster but we do not use it in the M001 : MongoDB Basics course.Hope it helps!Thanks,\nShubham Ranjan\nCurriculum Support Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "Hi all, i am new here.\nI unable to see the “connect to host” after i installed Mongo compass.\nMay I know how i can solve this?\nThanks", "username": "ellyn_29456" }, { "code": "", "text": "Hi @ellyn_29456,In the latest version of Compass, the UI has changed.Please refer this post for further instruction.Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "Hi @Shubham_Ranjan\nTq so much", "username": "ellyn_29456" }, { "code": "", "text": "", "username": "system" } ]
M001: MongoDB Basics Chapter 1: Introduction Lab 1.1: Install Compass and Connect
2019-02-05T11:56:26.631Z
M001: MongoDB Basics Chapter 1: Introduction Lab 1.1: Install Compass and Connect
3,445
null
[]
[ { "code": "", "text": "How to connect to the mongodb compass since the interface has changed.Without access to the sample data shown in the videos how can I answer the question so please help.", "username": "Parth_59813" }, { "code": "", "text": "Hi @Parth_59813,Please have a look at this post.We will update the content very soon.Thanks,\nShubham Ranjan\nCurriculum Services Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "", "username": "system" } ]
Changed interface for mongo compass
2019-12-31T14:51:32.870Z
Changed interface for mongo compass
1,309
null
[]
[ { "code": "", "text": "Hi,I am trying to connect to mongodb shell by using below command\nmongo “mongodb://cluster0-shard-00-00-zyvmb.mongodb.net:27017,cluster0-shard-00-01-zyvmb.mongodb.net:27017,cluster0-shard-00-02-zyvmb.mongodb.net:27017/test?replicaSet=Cluster0-shard-0” --ssl --authenticationDatabase admin --username m001-student --password m001-mongodb-basicsBut in return I am getting the below error.I have added my system IP whitelist in security tab and status is Active.2019-01-13T21:27:09.499+0530 E QUERY [js] Error: connect failed to replica set Cluster0-shard-0/cluster0-shard-00-00-zyvmb.mongodb.net:27017,cluster0-shard-00-01-zyvmb.mongodb.net:27017,cluster0-shard-00-02-zyvmb.mongodb.net:27017 :\nconnect@src/mongo/shell/mongo.js:257:13\n@(connect):1:6\nexception: connect failedPlease Suggest.Regards,\nRohit", "username": "Rohit_Kumar_72376" }, { "code": "", "text": "Issue is closed now.Regards,\nRohit", "username": "Rohit_Kumar_72376" }, { "code": "", "text": "So, whats the solution mate?? I’m getting the same error!!", "username": "RajaPraveenRatan_89384" }, { "code": "", "text": "But in return I am getting the below error.I have added my system IP whitelist in security tab and status is Active.Hi @RajaPraveenRatan_89384, have you done this? \nWhat is your connection string?", "username": "007_jb" }, { "code": "", "text": "Yes!!.\nI added my system IP(which is auto deducted public ip) , also 0.0.0.0 as mentioned.\nWill check few more settings and try and post if i’m still stuck.", "username": "RajaPraveenRatan_89384" }, { "code": "", "text": "What is your connection string?Does your connection string include a password? And does it have the word “SRV”?", "username": "007_jb" }, { "code": "", "text": "Hi @RajaPraveenRatan_89384,If you are still facing the same issue then please share your connection string and the password so that I can test if from my end.In addition to this, please make sure that you are able to ping and telnet your cluster.Thanks,\nShubham Ranjan\nCurriculum Support Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "Hi @Shubham_Ranjan,mongo “cluster0-shard-00-00-ivkuj.mongodb.net:27017,cluster0-shard-00-01-ivkuj.mongodb.net:27017,cluster0-shard-00-02-ivkuj.mongodb.net:27017/test?replicaSet=cluster0-shard-0” --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basics", "username": "RajaPraveenRatan_89384" }, { "code": "", "text": "I’m not able to connect to your private cluster either. If you say that you allowed everyone (i.e. 0.0.0.0) then I suspect that the username/password is wrong. Can you create a simple read-only user with username=admin and password=password for testing? You can delete it soon.", "username": "007_jb" }, { "code": "", "text": "username = admin\npassword = m001-adminCan you please try now", "username": "RajaPraveenRatan_89384" }, { "code": "", "text": "\nimage1149×287 21.4 KB\n", "username": "RajaPraveenRatan_89384" }, { "code": "mongo \"cluster0-shard-00-00-ivkuj.mongodb.net:27017,cluster0-shard-00-01-ivkuj.mongodb.net:27017,cluster0-shard-00-02-ivkuj.mongodb.net:27017/test\" --authenticationDatabase admin --ssl --username admin --password m001-admin", "text": "Ok, I’m able to connect. You were using the wrong replica set name in your connection string. Use this:mongo \"cluster0-shard-00-00-ivkuj.mongodb.net:27017,cluster0-shard-00-01-ivkuj.mongodb.net:27017,cluster0-shard-00-02-ivkuj.mongodb.net:27017/test\" --authenticationDatabase admin --ssl --username admin --password m001-adminI think what you did was edit the connection string from the Class Cluster which meant that you missed the replica set part. For next time, you can get the connection string from here (follow the prompts):\n\nimage1194×776 61.4 KB\n", "username": "007_jb" }, { "code": "mongo \"mongodb+srv://cluster0-ivkuj.mongodb.net/test\" -u admin -p m001-admin", "text": "Hi @RajaPraveenRatan_89384,mongo “cluster0-shard-00-00-ivkuj.mongodb.net:27017,cluster0-shard-00-01-ivkuj.mongodb.net:27017,cluster0-shard-00-02-ivkuj.mongodb.net:27017/test?replicaSet=cluster0-shard-0” --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basicsI’m just curious to know from where did you get this connection string ?Alternatively, you can also try to connect using this connection string.Thanks,\nShubham Ranjan\nCurriculum Support Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "@Shubham_Ranjan hubham_Ranjan,Reason:\nWhen I tried to do it the way it is supposed to, I’m not able to get the complete connection string with my cluster nodes for some reason.Btw, I selected the dropdown option ( 3.4 or before for Mongo shell).", "username": "RajaPraveenRatan_89384" }, { "code": "", "text": "Hi @RajaPraveenRatan_89384,Thanks for providing the information. Let me know if you are still facing any issue.Thanks,\nShubham Ranjan\nCurriculum Support Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "", "username": "system" } ]
Connection Failed : Not able to connect to mongo shell
2019-01-13T16:04:44.340Z
Connection Failed : Not able to connect to mongo shell
1,789
null
[]
[ { "code": "", "text": "Not able to see Schema in compass atlas", "username": "pgotety" }, { "code": "", "text": "@PAVAN_KUMAR_GOTETY_09510,\nPlease follow this link:\nhttps://www.mongodb.com/community/forums/t/compass-ui-no-schema-tab/14871/3?u=suresh_58788", "username": "Suresh_58788" }, { "code": "", "text": "Stable version?\nMeaning “Enterprise Server” on the Download page?", "username": "Paul_51881" }, { "code": "", "text": "Where do we find the “stable version”?\nWhat is the process for install? The default? Or do we need to uninstall the previous version first?", "username": "Paul_51881" }, { "code": "", "text": "\nimage.png1366×768 98.1 KB\nHope it is clear", "username": "Ramachandra_Tummala" }, { "code": "", "text": "So what is the different between compass and compass community?is it ok to use compass for personal or profit project with self hosted mongodb server (not using atlas) ?", "username": "Yoga_62606" }, { "code": "", "text": "Hi, if using windows, close the Compass and start with “Run as Administrator”.\nworked for me", "username": "Rishi_Kamal_23638" }, { "code": "", "text": "I installed the stable version but still cannot see the schema…\nScreenshot from 2019-12-24 14-28-591032×608 56.7 KB\n", "username": "Michel_02578" }, { "code": "", "text": "Never mind. I had to click the big green “Analyze” button for the schema to display. ", "username": "Michel_02578" }, { "code": "", "text": "Closing the thread as the issue has been resolved.", "username": "Shubham_Ranjan" } ]
Not able to see Schema in compass atlas
2019-02-24T01:05:43.309Z
Not able to see Schema in compass atlas
2,099
null
[]
[ { "code": "", "text": "Would it possible to get an extension to complete Chapter 1? This is finals week of my college and I am not able to complete it.", "username": "sauravkc" }, { "code": "", "text": "Hi @sauravkc,Unfortunately, we cannot extend the deadlines for any labs if in case you have missed it.This is finals week of my college and I am not able to complete it.In this case I would recommend you to enrol in the next offering of M001. We have one offering which started on December 17th and the Due date of chapter 1 is December 31st in this offering.Hope it helps!If you have any other query then please feel free to get back to us.Happy Learning Thanks,\nShubham Ranjan\nCurriculum Support Engineer", "username": "Shubham_Ranjan" }, { "code": "", "text": "", "username": "system" } ]
Lab 1 extension
2019-12-18T03:14:36.593Z
Lab 1 extension
1,040