nightscout / AndroidAPS

Opensource automated insulin delivery system (closed loop)
https://wiki.aaps.app
GNU Affero General Public License v3.0
696 stars 1.71k forks source link

[dev-i] No backfilling of treatment data to Nightscout if server isn't available #2494

Closed swissalpine closed 1 year ago

swissalpine commented 1 year ago

I back up my FC and AAPS data to a Nightscout installation on my NAS. At night I turn it off to save power (from 1 to 6 o'clock). At 6 o'clock xDrip+ syncs all blood glucose data, but AAPS not my treatment data.

image

NSClientV3: websockets deactivated Nightscout: 15.0.0

MilosKozak commented 1 year ago

full sync helps?

swissalpine commented 1 year ago

Thanks for coming back. Yes. After a full sync the missing data (tbr changes) are there ...

MilosKozak commented 1 year ago

i'd need to know error received when server is off. could you provide logs?

swissalpine commented 1 year ago
01:00:17.594 [DefaultDispatcher-worker-2] E/CORE: [LoadStatusWorker.doWorkAndLog():29]: Error: 
java.net.UnknownHostException: Unable to resolve host "---.ddnsfree.com": No address associated with hostname
[...]
01:00:17.598 [RxCachedThreadScheduler-42] D/NSCLIENT: [NSClientV3Plugin$onStart$7.accept():223]: ◄ ERROR Unable to resolve host "---.ddnsfree.com": No address associated with hostname
01:00:17.599 [DefaultDispatcher-worker-2] D/WORKER: [LoggingWorker$doWork$2.invokeSuspend():27]: Worker result FAILURE for class info.nightscout.plugins.sync.nsclientV3.workers.LoadStatusWorker

AndroidAPS._2023-04-1800-52-19.1.zip

O.K.?

MilosKozak commented 1 year ago

that's correct. I'd need log from time when you turned on your NS but data was not uploaded

swissalpine commented 1 year ago

WLAN on at 06:01:45.377, NAS starts at 6:00 ...

06:05:17.011 [RxCachedThreadScheduler-42] D/NSCLIENT: [NSClientV3Plugin$onStart$7.accept():223]: ● RUN Starting next round MAIN_LOOP

AndroidAPS._2023-04-1802-00-13.0.zip

BTW After seeing this logs I disabled open human uploader because it seems to fail every time ... another issue? Login is correct ...

MilosKozak commented 1 year ago

https://github.com/nightscout/AndroidAPS/commit/4c28de0b64fdf588702bd2636d7f4b4c123a872b