Skip to content

Purge: SQL error is displayed when the photo ID of a file is missing #2540

Closed
@centralhardware

Description

@centralhardware

1. What is not working as documented?

sql error in log

ERRO[2022-07-22T14:46:13Z] files: Error 1052: Column 'photo_uid' in where clause is ambiguous (regenerate photo_taken_at)

2. How can we reproduce it?

Steps to reproduce the behavior:

run purge command

3. What behavior do you expect?

no sql error

4. What could be the cause of your problem?

5. Can you provide us with example files for testing, error logs, or screenshots?

https://gist.github.com/centralhardware/db6dfd610500784a8ea3c9ed9e333a06

6. Which software versions do you use?

(a) PhotoPrism Architecture & Build Number: lastest docker - 220629-5d7448d2-Linux-AMD64

(b) Database Type & Version: Version: '10.7.4-MariaDB-1:10.7.4+maria~focal'

7. On what kind of device is PhotoPrism installed?

8. Do you use a Reverse Proxy, Firewall, VPN, or CDN?

If yes, please specify type and version. You can skip this if you are reporting a completely unrelated issue.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreleasedAvailable in the stable releasetestedChanges have been tested successfully

Type

No type

Projects

Status

Release 🌈

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions