-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Duplicate Key error #263
Comments
I do have the same error. I just intsalled Photonix and added some RAW-Pics for testing purposes to the photos folder. It starts to import 7 out of around 50 pictures but fails generating the thumbnails (black squares). The logs show:
And the Postgres-Logs:
|
Thanks for reporting this. Looks like a race condition when creating |
I have exactly the same issue.
Could the key issue be caused by the '' which is the entry for the source (& common between all of these log snippets)? |
Thanks for these comments. I think I understand this a bit more. I agree @Linecutterx, the |
This is an unfortunate deal breaker for me, in that I can't get more than a few of my photos into photonix :( They come from a Nikon SLR, processed from RAW through the Nikon software & with GPS coordinates added via DigiKam. I occasionally add face tags via DigiKam (which are tagged regions IIRC). They have unique file names. |
Not sure if this fix applies to all the exceptions reported in this bug. I rebuilt the images and tested. I still get this exception
|
I had errors mentioning permissions & promise.py in my case. Deleting the database etc & starting from scratch seems to have fixed those. Did you do that? |
Dear @Linecutterx THank you so much. After wiping out the existing database, it is all working proper. Though it is okay, given that I just faced the scan problem in the beginning. Was this issue uncovered after the full scan (15k photos) and if then a user has to follow this workaround, that'd be frustrating. But I guess this is okay for now. Photnoix is in its early phase of development and so far looks very very promising. 🙏 |
May 25 08:19:38 nc docker-compose[166603]: photonix | IMPORTED /data/photos/Slides/Batch001-005.jpg
May 25 08:19:38 nc docker-compose[166603]: photonix | duplicate key value violates unique constraint "photos_tag_library_id_name_type_source_7da37b6b_uniq"
May 25 08:19:38 nc docker-compose[166603]: photonix | DETAIL: Key (library_id, name, type, source)=(a94928fa-3b6a-469a-9878-c2e7f31d7e1c, Color Slide Film, G, ) already exists.
May 25 08:19:38 nc docker-compose[166603]: photonix |
May 25 08:19:38 nc docker-compose[166603]: photonix | 2021-05-25 13:19:38,237 INFO exited: rescan_photos_periodically (exit status 0; not expected)
May 25 08:19:39 nc docker-compose[166603]: photonix | 2021-05-25 13:19:39,238 INFO gave up: rescan_photos_periodically entered FATAL state, too many start retries too quickly
The text was updated successfully, but these errors were encountered: