Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

After migrating from mlab to mongodb (atlas) , upload no longer possible #278

Closed
mboterma670G opened this issue Jul 16, 2020 · 10 comments
Closed

Comments

@mboterma670G
Copy link

As MongoDB pulls the plug on the mlab plugin (10-Nov), I've migrated the code to cloud.mongodb.com (atlas).
However it seems that the loader doesn't work anymore. Generating the message;
Uploading to nightscout was unsuccessful. (device status) Internal Server Error.

Your Environment

  • Uploader Version Number: 0.7.1
  • Your Android Phone Model Name (e.g. Samsung J1 Ace): Nokia 1 Plus
  • Android Version Number (e.g. use 4.4 for 4.4.4): 10 (00WW_2_10A_SP02)
  • Network Connection at the time the issue occurred (Wi-Fi, Mobile): Wi-Fi and Mobile
  • (if relevant) Nightscout website version (e.g. 0.8.4 Funnel cake, master / dev branch): Nightscout 13.0.1 Ketchup

Brief Explanation of Issue

occured when moving from heroku mlab plugin to cloud.mongodb.com. as per instruction on "https://docs.mlab.com/how-to-migrate-sandbox-heroku-addons-to-atlas/"

Uploader Error Code

Uploading to nightscout was unsuccessful. (device status) Internal Server Error.

Steps to Reproduce (for bugs)

  1. Follow instructions on: "https://docs.mlab.com/how-to-migrate-sandbox-heroku-addons-to-atlas/"

Severity Score

5 -> Use nightscout to monitor BG while driving my car (mirrored to iWatch), as you get fines driving a car when holding the medtronic 670G in your hands, to check your BG's. And driving without a clear understanding of your BG's is not smart.

@Pogman
Copy link
Collaborator

Pogman commented Jul 16, 2020

@mboterma670G
Copy link
Author

Hi, issue is not connecting Heroku to Atlas, that part is working fine. I can see that the app is populated with data from Atlas.
Also tested the API response from the Atlas instance through SOAPUI. Also that part is working. However for some reason the uploader can't connect to Heroku to upload data.
I followed the instructions from Mongo. [https://docs.mlab.com/how-to-migrate-sandbox-heroku-addons-to-atlas/]

@pazaan
Copy link
Owner

pazaan commented Jul 17, 2020

The Uploader uses the Nightscout API, which is not dependent on whatever version/provider of MongoDB you have backing Nightscout. Are you able to view your data on Nightscout since the transition, and use the API Secret to manually log treatments to Nightscout?
If you can, then we'd need more specific instructions on how to reproduce (I personally am running Nightscout on my own VPS connected to Atlas).

@Pogman
Copy link
Collaborator

Pogman commented Jul 17, 2020

There are reports on the FB page of successful transition for 600 Series uploader users.

Another guide that may help: https://docs.google.com/document/d/1gV7dFeipTI3Fas246N10iAxQC8gETV5PIVfL31AYu_c/edit#heading=h.2xm1e0u2gzdc

@mboterma670G
Copy link
Author

mboterma670G commented Jul 17, 2020

Hi Pazaan, i will verify and update you. Need to reconnect the site back to Atlas.
Also trying to get Nightscout up and running on VPS, but get stucked on the MONGODB_CONNECTION part.
Even thought it is the env, it is being read, but still errosrs

Hi Pogman, seems this one is more specific then the version from Atlas.

Thanks for your fast reply

@mboterma670G
Copy link
Author

mboterma670G commented Jul 17, 2020

Update,

Set the MongoDB connection string again and all works like a charm. No clue why it is working now as I made a copy of the connection string yesterday and it failed. Did the same again today and now it's working.
Also the site is being updated by the uploader.
Great progress!!!!

Next project, get Nightscout running on Ubuntu 18.04 + plesk.

Thanks to both

image
Nightscout uploader

@mboterma670G
Copy link
Author

Not sure why it happened. entering the URL again solved the issue.

@galaviz-lip
Copy link

HI! I know the issue is closed, but now I have exactly the same problem after migrating to Atlas. My cell phone uploader cannot send any data the the DB. I can though upload svg values manually (and see them on the my NS site) using the script by:
https://github.com/cjo20/ns-api-uploader

I am not sure what really happened with the uploader. Any help is certainly appreciated. Thanks!

Repository owner deleted a comment from galaviz-lip Sep 3, 2020
Repository owner deleted a comment from galaviz-lip Sep 3, 2020
@Pogman
Copy link
Collaborator

Pogman commented Sep 3, 2020

The migration to Atlas is transparent to the uploader as the NS server handles the database.

Can you post a screenshot of the uploader log screen?

@galaviz-lip
Copy link

galaviz-lip commented Sep 4, 2020 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants