Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 03 2017 05:02
    @scottleibrand banned @Prosulpump_twitter
dar-kod
@dar-kod
It seems I figured it out. <dbname> should be replaced with username but without <> and also password should be without <>.
kskandispersonal
@kskandispersonal
@dar-kod Wow, good job! Any other tips that all of us should be aware of?? I guess you followed Guide to Migrating a Sandbox Heroku Add-on to Atlas?
dar-kod
@dar-kod

Yes, I followed that instruction. But I found also that I have to input

Heroku app -> Settings -> "Config Vars" MONGO_CONNECTION with value:

mongodb+srv://clustername:<password>@heroku-cnjm1bzt.q1dxj.mongodb.net/<dbname>?retryWrites=true&w=majority

<password> and <dbname> have to be replaced with that from cloud.mongodb.com -> "Project settings" -> "Database Access".

kskandispersonal
@kskandispersonal
@dar-kod Thank you!! So glad you were successful in the migration! I assume your Nightscout instance is displaying as usual now, too? Thanks!!!
dar-kod
@dar-kod
Yes, everything is displayed as before migration.
dar-kod
@dar-kod
I have one more question regarding Nightscout Profile Carbs activity / absorption rate: [g/hour]. How to calculate it properly and is it really something important?
philipgo
@philipgo
That is not used by any loop system
dar-kod
@dar-kod
Thank you.
kskandispersonal
@kskandispersonal
@dar-kod Did you do the Test Migration stage? In the instructions, it says to use the mongo shell to test the connection string which they include in the popup Test Migration stage. I used ./mongo mongodb+srv://<username>:<password>@<clustername>.mqupg.azure.mongodb.net/<database>?retryWrites=true&w=majority replacing the <...> with my configuration, but I get 'No matches for <connection string>' . I'm sure I am using the correct parameters. Any idea?
kskandispersonal
@kskandispersonal
I also see my data in cloud.mongodb.com under Clusters for the cluster and database when I login with these credentials.
@dar-kod Sorry, resolved! Missing quotes around the connection string in the the mongo command. Hwr, I guess I am using the wrong username because mongo returns user is not allowed to do action [getLog] on [admin.] Anyway, making progress!
kskandispersonal
@kskandispersonal
Needed to change Database Access - Database User Privileges for <user> to Atlas Admin
gitanO0
@gitanO0
Is this the best place to follow developments with the cessation of mongodb as a free option for nightscout deployment?
dar-kod
@dar-kod
@kskandispersonal, sorry, I was not here to check messages. In cloud.mongodb.com -> "Project settings" -> "Database Access" you will find <dbname> and here you can change <password> if you do not know which one is used and replace them in value.
william-so
@william-so
@kskandispersonal - I think the migrationtool on MongoDB should be granting and migrating to "Built in" roles instead of "Grant specific privileges". At least that did the trick for me.
kskandispersonal
@kskandispersonal
Thanks @dar-kod, @william-so, I resolved this issue as described in my last comment setting user privilege to Atlas Admin. All good now. NS is working perfectly with the migrated DB. Thanks for your support!
william-so
@william-so
@kskandispersonal I'm glad it worked out for you.
kkelebek
@kkelebek
As of 5pm PDT today, my wife's nightscout site on Herokuapp.com is reporting "DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor" and the connection to mongoDB is not starting. I just now upgraded to the latest "master" branch, restarted dynos, and it's still not working. Any ideas?
kkelebek
@kkelebek
And... suddenly it's working again. mLab reports no problems with their DBs (of course).
miki3421
@miki3421
Hi community, i'm in trouble with mongodb atlas. Yesterday I migrated with success from Mlab to MongoAtlas without problems. During the night the cluster stop working and now I'm not able to connect. On the web interface the primary host has a warning and is not accessible. What I can to avoid to lose all the data before terminate the instance?
miki3421
@miki3421
just for your information, cluster backed up online on it's own. it was just matter of wait.
kkelebek
@kkelebek
Is this a good place to ask about the nightscout .js internals? I have installed my own mongodb and my own nightscout using node.js and everything seems to be working fine. I get "Listening on port 80" and no errors upon startup, but when I try connecting to the site, it just resets the connection. I'd like to turn on some internal debugging/logging so I can see what's happening. I searched all through the code and docs, but can't find reference anything. Anyone know?
DolceMarta
@DolceMarta
Hello all. I received an email from Heroku. they are going to discontinue the mlab add-on. How is it impacting Nightscout?
Is it recommended to migrate it to Atlas? Is it working porperly?
Is there any directions from the community?
miki3421
@miki3421
Hello Marta, I've followed this guide Guide to Migrating a Sandbox Heroku Add-on to Atlas and it worked well. fell free to contact me if you need help on that. I think you are Italian like me.
cobalt027
@cobalt027
Marta, I followed this condensed guide: https://wolke.rueth.info/index.php/s/NjjgCF9rdbiWNbX#pdfviewer and it worked for me. Its the same guide that miki linked to, just smaller.
DolceMarta
@DolceMarta
Many thanks to @miki3421 and to @cobalt027 for your kind help and directions. I just completed the migration to Atlas and everything works fine. Thank you. Grazie. Ciao
solomonT1
@solomonT1
Hi all, having some issue with API, completed migration to Atlas but unable to login with API, stating wrong password, is this common? can anybody help to resolve issue?
cameronrenwick
@cameronrenwick
@miki3421 can I jump in here? I was attempting to migrate from sandbox to atlas and had an internet crash. I'm now stuck not looping. I'm trying to learn if my rig needs to be pointed in a different direction or... my old NS site is now read only and I'm not sure what to do. Mlab said I made it to step # 10 in the migration guide... sorry for being so slow on this.. I'm usually low maintenance!
hi @cobalt027 ...I've just gone over your guide and it illustrates where I messed up...I'm going to retry... thanks for taking the time to do the guide!
cobalt027
@cobalt027
I'm happy to help if i can. Also, I did not write the guide. I used it myself and just reposted the link. Someone smarter than I wrote it. That person should stand up and take credit for all their hard work on that!
@solomonT1 from what app are you getting the error? I'm confused as to where your problem lies. perhaps a screenshot to illustrate?
nicoleloop
@nicoleloop
Hmm. I have no idea how to test connectivity. I tried. Downloaded mongo shell on my computer, extracted it, opened it... And a small window appeared briefly on the screen, then it disappeared and I never figured out what it was, where it went, or how to use it once I did happen to locate it. Am I the only noob who feels a little bit abandoned by the devs here? I have yet to even receive any notifications about Any Of This, from Anyone. Thank goodness I just happened to wander onto mlab yesterday...
Jon
@jonprogers
@nicoleloop I guess you're at section D step 7 of these instructions - https://docs.mlab.com/how-to-migrate-sandbox-heroku-addons-to-atlas/?fbclid=IwAR1hhkMok4XqFdu6SXi1uJMhjycO39nwNzrJal-0OZvMSAXseFqoZOPuwlI
If so mongo shell runs in a shell - windows command prompt or powershell, linux terminal etc.
I then ran the following command in the shell (windows powershell) .\mongosh.exe "mongodb+srv://<username>:<password>@<node>/<database>?retryWrites=true&w=majority" - the bit in quotes is the connection string provided in your migration process
you can then enter something like the following commands to check you have a connection
ent = db.getCollection("entries")
ent.countDocuments()
this should return the number of documents in your blood glucose collection and shows you have connectivity...
good luck...
cameronrenwick
@cameronrenwick
anyone have any advice? I did my migration but now get a NS boot error that looks like this
Screen Shot 2020-08-16 at 8.38.50 PM.png
cameronrenwick
@cameronrenwick
I'm convinced that my MONGO_CONNECTION string is incorrect. It should be formatted as: mongodb+srv://<username>:<passord>@<databasename>.sgneg.mongodb.net/<databasename>?retryWrites=true&w=majority correct?
Jon
@jonprogers
@cameronrenwick I think it should be .....//<username>:<password>@<CLUSTERNAME>.sgneg........
@cameronrenwick depending on the instructions you used did you do the connection test (section D step 7 in the ones I followed) this will prove your atlas connection string...
cameronrenwick
@cameronrenwick
thanks @jonprogers ... I did not do the connection test as I used the shortened instruction list... (hindsight is always 20-20) is there a way to confirm cluster name? It appears to be the same as my database name, which may be the problem but I'm just not sure...
cameronrenwick
@cameronrenwick
is there a way to go back to the connection test and running it (after you've migrated?)
Jon
@jonprogers
@cameronrenwick cluster name is displayed on the 'Clusters' screen, there was nothing I can remember to stop the cluster being named the same as the db so you could be fine, I just try never to give two things the same name as I'm easily confused!!
It's OK to do the connection test with mongo shell at any time - I've just rerun mine to check in exactly the same way as I did before.
You can get confirmation of your connection string by clicking the connect button just below the cluster name on the Clusters screen...
cameronrenwick
@cameronrenwick
I've updated the string using the clustername after the @ but still no joy.
Jon
@jonprogers
@cameronrenwick have you confirmed your entire connection string and run the connection test?
@cameronrenwick mine has a node of <5 random chars>.azure.mongodb.net - the one you posted is missing the azure but you may have selected a different hosting option to me...
kskandispersonal
@kskandispersonal
@cameronrenwick See my comment above re: MONGO_CONNECTION ... You might be missing quotes around the connection string in the the mongo command.
cameronrenwick
@cameronrenwick
hey everyone.. so I've got nightscout working now but just need to get CGM to NS. I'm using an xdrip and android. Do I need to change my base URL in xdrip or how does CGM get to NS now?
ArthurusDent
@ArthurusDent
@cameronrenwick Everything you need should be in here: https://androidaps.readthedocs.io/en/latest/EN/Configuration/xdrip.html