-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[BUG] Failed Backup - Duplicate keys #415
Comments
I've seen this error before and interestingly it only happens on Android. I will keep you updated once this is resolved. In the meantime, can you help me nuke the setup and restart and try just to backup from the |
I found the problem. So the So I made a change not to allow to exclude |
This is happening to me on iOS. So far it's only for one .mov clip. Do I make a separate issue? |
@20pins Which version of the app are you on? Was there any action you perform in the album selection? |
Selected only the "Recent" album (all photos). App version 1.22.0 build 42. Server version 1.22.0. |
@20pins Can you help me check if that asset is actually duplicated? (Already uploaded) |
Just took a look and the asset is uploaded. Also, there error is no longer showing in the app. I can find the error in the log's for the server container but not sure where else to look to find supporting information. |
Caught another instance. On my iOS setup it only appears to happen with .mov files. In this case I immediately checked and did see the video already added. The error is exactly the same as @palitu's, including the UQ code. |
Sorry to only just get back to this. I wanted to avoid recent as I think it also includes things like screenshots, which I do not want backed up. Note I excluded |
Here is the full error from postgres... |
Also having this problem while trying to import with the CLI (0.18.0, Server 1.25.0). The image is not duplicated and not uploaded |
@alextran1502 I tried tracing the error when using the CLI and it seems like that some of my files create this conflict when the ctime mtime and birthtime of the files are so close together or simply just by chance add to the same rounded asset id. E.g. for one file it was |
@baswag Thank you for the report. We are implementing a method to check for deduplication of upload files. Once that feature works, we will clean up the upload method to not check for those values in a file that lead to potential collisions like in your case. |
Describe the bug
When attempting to backups files, ~10% (350) failed with the reason being:
QueryFailedError: duplicate key value violates unique constraint "UQ_b599ab0bd9574958acb0b30a90e
note, there maybe a typo in the GUID above!
See attached screenshot.
Task List
Please complete the task list below. We need this information to help us reproduce the bug or point out problems in your setup. You are not providing enough info may delay our effort to help you.
docker-compose
file..env
file.To Reproduce
I am not too sure. All i know is that i started to upload default backups (
recent
on android), then i changed i excludedrecent
and enabledcamera
folder. This got the backups into a 'funky' state, where it was showing negative numbers for the number of files backed up. After exiting the app, killing it and restarting, it started backing up as expected, but it started giving the failed backup error for duplicate keys (all of which were exactly the same)Expected behavior
No failed backups.
Screenshots
If applicable, add screenshots to help explain your problem.
System
12
1.19.0
1.18.0 Build 27
Additional context
Brand new install.
.env
The text was updated successfully, but these errors were encountered: