Skip to content

Import: Improve logs when another job is running simultaneously #1810

Closed
@spaibs

Description

What does not work as expected?

After importing > 200 pictures, those errors occur:

photoprism-photoprism-1 | time="2021-12-13T20:09:36Z" level=warning msg="metadata: open /photoprism/import/DSC_0820.JPG: no such file or directory in DSC_0820.JPG (parse jpeg)"

photoprism-photoprism-1 | time="2021-12-13T20:09:36Z" level=info msg="media: DSC_0820.JPG was taken at 2016-11-27 13:30:24 +0000 UTC (meta)"

photoprism-photoprism-1 | time="2021-12-13T20:09:36Z" level=info msg="import: moving main jpg file DSC_0820.JPG to 2016/11/20161127_133024_EEEEEEEE.jpg"

photoprism-photoprism-1 | time="2021-12-13T20:09:36Z" level=error msg="open /photoprism/import/DSC_0820.JPG: no such file or directory"

photoprism-photoprism-1 | time="2021-12-13T20:09:36Z" level=error msg="open /photoprism/import/DSC_0820.JPG: no such file or directory"

photoprism-photoprism-1 | time="2021-12-13T20:09:36Z" level=error msg="import: failed copying file to 2016/11/20161127_133024_EEEEEEEE.jpg (open /photoprism/import/DSC_0820.JPG: no such file or directory)"

photoprism-photoprism-1 | time="2021-12-13T20:09:36Z" level=error msg="import: media: 20161127_133024_EEEEEEEE.jpg not found in 2016/11/20161127_133024_EEEEEEEE.jpg"
`

The images will be imported somehow, but errors shouldn't be shown

How can we reproduce it?

Steps to reproduce the behavior:

  1. Add 200 images into import-folder
  2. docker-compose exec photoprism photoprism import
  3. Wait for > 200 images
  4. See error

What behavior do you expect?

No error messages should be shown.

What version you are using?

211210-2cb90e7e-Linux-x86_64

Metadata

Assignees

Labels

bugSomething isn't workingreleasedAvailable in the stable release

Type

No type

Projects

  • Status

    Release 🌈

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions