I
Immich2y ago
GNNNNN

immich bulk upload, immediate quit, error found in postgres

I am using the immich cli to upload some photos, but the job immediate quit without uploading anything version: v1.66.1 command I use: immich upload --key xxxxxx --server http://xxx:2283/api --recursive xxxxx --yes Checking connectivity with Immich instance... Server status: OK Checking credentials... Login status: OK Successful authentication for user xxx Indexing local assets... Indexing complete, found 421 local assets Comparing local assets with those on the Immich instance... A total of 1 assets will be uploaded to the server Start uploading... Upload Progress | ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 0% 1/421 Current file then it stops. here is the error I found in postgres: 2023-07-13 17:09:31 2023-07-13 22:09:31.045 UTC [127] ERROR: duplicate key value violates unique constraint "UQ_userid_checksum" 2023-07-13 17:09:31 2023-07-13 22:09:31.045 UTC [127] DETAIL: Key ("ownerId", checksum)=(80281a6d-1a7d-418d-81e4-34f6bd87c43e, \x1f3200f004a6b5bf0efd1e7ba3a90a5f75d2105f) already exists.
2 Replies
Strider
Strider2y ago
Looks like file you trying to import is already in Immich library
GNNNNN
GNNNNNOP2y ago
yes, is there a way to ignore this error? the first import failed, this is my second import. I dont think it's caused by the duplicate photos, I delete some recent added photo, and upload again, it's working now, although I can still see some duplicate key value error in the log during the upload.

Did you find this page helpful?