Data stopped showing up in my dashboards a week ago
I thought it was the Nextcloud sync breaking because I was away, but that seems to be fine. The data's not caught up since I returned from the US, nor has more recent data started appearing.
This morning I pointed the exporter at my InfluxDB v2 instance and recent data doesn't appear there either.
Need to figure out what's going on
Activity
20-Aug-25 10:03
assigned to @btasker
20-Aug-25 10:06
changed the description
20-Aug-25 10:08
OK, have run a packet capture whilst triggering a job.
There are some 400s in there:
But, that's expected and there are also successful writes.
Which sort of suggests that maybe the issue is with the dashboard's queries rather than the writes?
20-Aug-25 10:12
Or not:
20-Aug-25 10:14
Looking at the last write in the payload, it does seem like they're older points
The last seen age is today, and the graphs reflect that:
So, I guess we need to go and have a look in Gadgetbridge's sqlite database
20-Aug-25 11:43
Worth noting that there are currently 2 DBs which should try and write in - my main watch and my travel one.
Looking in Nextcloud, last upload dates are
So, the data is probably right for the Main (and we need to look at why it's not uploaded).
I'd expect there to be some more recent data for the travel watch, though it's probably worth making it upload and then going from there.
20-Aug-25 11:52
OK, manually triggered an export in Gadgetbridge on my travel phone.
It wrote the DB out, which then auto-uploaded into Nextcloud. I'll kick off a job and run a packet capture at the same time.
That ran, but doesn't seem to have resulted in any newer data appearing. Gadgetbridge itself shows activity on the 16th.
Ahh, I appear to have fucked something up:
The Bip 3 pro is my main watch rather than the travel one - I think the job for my travel watch is actually fetching the DB for my main one.
20-Aug-25 12:02
The config definitely seems to be right though:
Code does this
Checking the access logs, it does seem to have fetched the wrong file:
The variables do get used within the code, so it's not like there's a path been left hardcoded.
Oh, no, it's me being a muppet:
Created it from the wrong cron :face_palm:
With that corrected, the data gap is filled in:
So, outstanding
On the second one, we should probably look at whether to just point the syncer directly at long term storage from now on - there's no downsampling going on, we literally just copy the raw data over.
20-Aug-25 12:44
OK, so yeah, on my main phone the mtime of the gadgetbridge export is 10 Aug.
Nextcloud's autoupload didn't seem to pick it up, so I pushed it up manually - will have to keep an eye on that.
I've switched the job to write into long-term storage so that we can check that it all works as expected.
20-Aug-25 12:51
mentioned in commit sysconfigs/bumblebee-kubernetes-charts@5d99e1175687af79d6775f9f4ed00fb96f0382c7
Message
chore: switch to writing directly to long term storage (utilities/gadgetbridge_to_influxdb#19)
20-Aug-25 12:51
That run seems to have worked OK, so I've switched both jobs to writing into long term storage
20-Aug-25 12:54
Closing this as Fixed/Done
Technically, it wasn't actually a bug, but it was the result of infra issues.