-
Notifications
You must be signed in to change notification settings - Fork 71.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
14.0.5 master could not get Loop data #6138
Comments
@sulkaharo I changed one of the NS instances back to 14.0.5 master again, with the same result. Some Loop data are shown in Loop, as far as I can see this is temp basals and boluses, and the text in the IOB pill. The IOB is outdated. |
That's very curious. Is there anything in Nightscout logs that acts as a hint on what's going on? None of the changes in the update are Loop specific, all unit tests work and I'm seeing data updates to all collections going through as expected. Basically - I have no idea where the issue might be unless I get more data |
Which logs should I look at?
søn. 27. sep. 2020, 20:07 skrev Sulka Haro <[email protected]>:
… That's very curious. Is there anything in Nightscout logs that acts as a
hint on what's going on? None of the changes in the update are Loop
specific, all unit tests work and I'm seeing data updates to all
collections going through as expected.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6138 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APEZWM6MG3HBEWEUBIBAOGLSH55NXANCNFSM4R3UZIFQ>
.
|
The one Nightscout outputs - if you're on Heroku, check Papertrail |
At least there are no new entries in devicestatur collection (mLab) here. Yes, I'm on Heroku. In Papertrail there is this, some problem with the recent change with /pebble possibly? We have set up both NS instances with AUTH_DEFAULT_ROLES: denied, could there be some issue with the tokens? Sep 27 12:02:16 xxxx app/web.1 DENIED: 158.xxx.xxx.63 no-token api:pebble,entries:read |
The /pebble change only changed how the endpoint gets the configured units and did not affect the api permissions. That log at least shows you have some app trying to read the api but it's being denied. If this is Loop, it'll surely cause issues. |
Apparently it does. Edit: And yes, this is Loop (FreeAPS) tryng to upload data to the devicestatus collection in mLab (I guess I'll have to migrate to Atlas soon...) The treatments collection is updated as it should, from Loop. But devicestatus is not. This includes IOB, COB etc, and most noticeable, the predicted BG data. Ill paste a sample below, the last one that got in before going to 14.0.5. I tried changing AUTH_DEFAULT_ROLES to readable and admin, but no difference to be seen. But that would probably not make a difference here anyways.
} |
@sulkaharo Let me know if I can provide any other info or do some tests before I roll back to a working version for the night. |
Can you try just removing AUTH_DEFAULT_ROLES for a sec to see if this is a permission issue? |
Ok wait a second - how did you get that device status record? The _id record on it doesn't look right and trying to insert that would fail |
@sulkaharo Do you mean this bit? "_id": { It is just copied from mLab It looks the same if I find an older one: { |
Removing AUTH_DEFAULT_ROLES do not seem to make a difference in NS or mLab, but I don't think I see the error message in Papertrail any more... The error seems to have gone away when removing AUTH_DEFAULT_ROLES, but I am not quite sure that this is actually related to the issue at hand. It could have been a coincidence, as the same error repeats itself as far back as the Papertrail log is displayed (two days). |
Having the same issue here, just going back to 14.0.2 to see if that fixes it, as that was the version I was on before I updated earlier today. |
@sulkaharo I've downgraded 14.0.2 and it is working again. |
Did you see any errors in the Nightscout log? Looks like some some subtle little change happened that affects only Loop and this is practically impossible for me to debug. Ping @ps2 |
I'll roll back to something that is working now, but let me know if I can test anything tomorrow. |
Right, so if someone can PM me your instance URL in Discord, I can try to take a peek at the data to see if I can find a lead to what's the cause. |
@bjornoleh the WS lines are about websocket connections, ie the Nightscout web app connecting to the backend. Loop uses the REST API, so the interesting lines would be either error stack traces or related to an app accessing /api/v1 URLs |
Same for me. Following.. |
The above linked PR should fix this. @bjornoleh is testing the fix |
(Looks like the reason this wasn't found in testing is, Loop does batch uploads if the uploads have fallen behind. This only happens in situations like updating a production site. AFAIK testing is usually done by updating a site and pointing Loop to the updated site, which causes no downtime to be observed by Loop.) |
This is now fixed in master as part of 14.0.6, please update your site to get the fix |
I changed to 14.0.5 master today for two NS instances fed with Loop data and CGM via Dexcom Bridge. CGM data was displayed, but no new Loop data was shown in the main screen after updating, even after >20 minutes. The Loop pill (FreeAPS) reported the age of the old Loop data
I did not yet check reports.
Reverting to Dev 14.0.3 made Loop data load as usual.
The text was updated successfully, but these errors were encountered: