utilities/gadgetbridge_to_influxdb#15: Auto Database Export into Nextcloud failed



Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Milestone: v0.4
Created: 28-Aug-23 16:14



Description

When I first set Gadgetbridge up to autoexport (in jira-projects/MISC#34) my phone presented Nextcloud as a network drive, so I selected that (effectively writing backups directly into Nextcloud):

Screenshot_2023-08-28-16-59-45-341_nodomain.freeyourgadget.gadgetbridge.nightly

However, today that broke.

An hourly backup triggered whilst I was in the Co-op - a place where data signals dare not venture. The Nextcloud app couldn't reach my server and so both GB and Nextcloud logged an error.

The problem is, it doesn't seem to have recovered: Gadgetbridge now errors every time a backup is attempted. Nextcloud no longer reports an error, nor does it show any sign of having received an instruction to upload.



Toggle State Changes

Activity


assigned to @btasker

I'm fairly sure that neither Nextcloud or Gadgetbridge are actually to blame here - I suspect MIUI simply isn't routing the attempted write through to NC because of the previous failure.

A reboot will probably fix it, but I don't want similar failures to happen in future.

So, I've created a local dir and configured Gadgetbridge to write into that

Screenshot_2023-08-28-17-01-16-382_nodomain.freeyourgadget.gadgetbridge.nightly

Then, in the Nextcloud app I've added an auto-upload config for the dir, uploading to where it was going before

Screenshot_2023-08-28-17-06-23-410_com.nextcloud.client

There's a very small mistake in the screenshots above - I'd called the DB file Gadgetbridge rather than gadgetbridge. The script was configured to fetch gadgetbridge.

Rather than override EXPORT_FILE I fixed my config.

To do so, though, I first had to delete the Gadgetbridge file from my phone - something in the flow isn't case-sensitive, so when I applied the changes it automatically changed the filename to gadgetbridge (1).