1. What is the issue? Please be detailed.
I restored a google drive backup of ODK central from May of 2021. The backup file was approximately 1 GB in size and contained approximately 170 photos associated with a single form's submissions. After restoring the backup I am able to view all the submissions, but when I try to download "all data and media files" it simply returns the CSV with the submissions and no media files. When I click on the photo icon in the submissions table it says
{"message":"Could not find the resource you were looking for.","code":404.1}
3. What have you tried to fix the issue?
I tried changing the digital ocean droplet to 4gb memory as suggested here but that hasn't helped
Sorry to hear of this issue, it's not one that we've seen before.
Do you know what Central version you pulled the backup from? What Central version did you restore to? It should theoretically be possible to restore to newer Central versions but it's not something that we verify.
All submission attachments are stored in a database table named blobs. It would be helpful to know how many rows that restored table has and how much space it takes up. This will give us an idea of whether it was restored correctly. To figure this out:
SSH into your server
Connect to the Central database: docker exec -it central_postgres_1 psql -U odk -W odk
@craigdsouza I think what might be easiest at this stage is if we get access to the Google Drive backup. I will send you an email so we can coordinate that process and update this public topic once we have a resolution.
We've been able to restore the pictures from the backups.
Ordinarily, we'd share the solution, but this issue is quite rare and documenting the solution in the necessary detail for others to follow is onerous.
If you run into this problem, please contact support@getodk.org and we'll be glad to help.