同步失败:
duplicate key value violates unique constraint "idx_uid_once_ph"
[ERROR] 同步失败: duplicate key value violates unique constraint "idx_uid_once_ph"
DETAIL: Key (uid, category_id, file_id)=(1000, afd79b8ef365a402380afe5224531662, 77020) already exists.
Traceback (most recent call last):
File "/app/scheduler.py", line 57, in _do_sync
run_sync()
File "/app/sync/executor.py", line 48, in run_sync
_process_tv(conn, fr, folder, cache, stats)
File "/app/sync/executor.py", line 217, in _process_tv
_restore_tv_from_ugreen(conn, ug, folder, cat_changed=cat_changed)
File "/app/sync/executor.py", line 261, in _restore_tv_from_ugreen
db_sync.upsert_play_history(conn, ug.play_history, folder, "")
File "/app/db/sync.py", line 209, in upsert_play_history
cur.execute(
psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint "idx_uid_once_ph"
DETAIL: Key (uid, category_id, file_id)=(1000, afd79b8ef365a402380afe5224531662, 77020) already exists.
大佬,碰到这个问题怎么解决呀? |