mirror of
https://github.com/photoprism/photoprism.git
synced 2026-03-02 22:57:18 -05:00
Photo previews broken #500
Labels
No labels
ai
android
api
auth
awesome
bug
bug
ci
cli
config
database
declined
deprecated
docker
docs 📚
documents
duplicate
easy
enhancement
enhancement
enhancement
epic
faces
feedback wanted
frontend
hacktoberfest
help wanted
idea
in-progress
incomplete
index
invalid
ios
labels
live
live
low-priority
macos
member-feature
metadata
mobile
nas
needs-analysis
no-coding-required
no-coding-required
observability
performance
places
please-test
plus-feature
priority
pro-feature
question
raspberry-pi
raw
released
released
released
research
resolved
security
sharing
tested
tests
third-party-issue
thumbnails
upgrade
upstream-issue
ux
vector
video
waiting
won't fix
won't fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/photoprism#500
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @totti4ever on GitHub (Nov 14, 2020).
Originally assigned to: @lastzero on GitHub.
This has been mentioned on Gitter, but not really been solved, I suppose. So I'd like to provide anything need to fix this.
So what's happening?

Clicking on them leads also to this broken preview, downloading the original works.
I get heaps of
level=error msg="thumbs: thumbnail not cached"Apparently this happens after updating and thus restarting the the docker image.
So I am on docker, using a mariadb (figured out today that I parametrized mysql instead of mariadb - could that be the problem?) and having the cache in
/tmp/@lastzero commented on GitHub (Nov 14, 2020):
Seems you lost your thumbs. Is the storage volume mounted in
docker-compose.yml? Otherwise, data is lost after restarts. Rendering thumbs dynamically is a "workaround", but very slow. Better to store the thumbs. They are automatically created while indexing.@totti4ever commented on GitHub (Nov 14, 2020):
volume is mounted:
- /tmp/photoprism/cache:/photoprism/storage/cache # cache on SSDNo problems to
lsinto that directory when execing into the container.It is no problem that the storage folder is mounted to another directory, is it?
- "./data/Storage:/photoprism/storage"From what I can see in the container, it is not.
@lastzero commented on GitHub (Nov 14, 2020):
Well, they overlay each other. That's an edge case, don't know what might happen. Probably one will "overwrite" the other.
@totti4ever commented on GitHub (Nov 14, 2020):
From what I can see inside the container, it is not a problem (and I am quite sure I have seen and done this somewhere else, too).
The thumbs are all there in the container's file system!
@lastzero commented on GitHub (Nov 14, 2020):
"thumbnail not cached" means PhotoPrism can't find the thumb(s) for any reason... might also be permissions... hard to guess from where I sit... must have worked at some point in the past?
@totti4ever commented on GitHub (Nov 14, 2020):
Permissions cannot be:
photoprismruns as root and root sees all I quoted above.A simple restart couldn't break it again. I wait for the next time the problem arises ( I guess after updates?).
@lastzero commented on GitHub (Nov 14, 2020):
Yes, probably whenever the container is restarted.
@kushfest commented on GitHub (Nov 16, 2020):
For what it's worth, I'm having the same problem. Everything had been working fine, but it seems something broke and my thumbnails are gone. Same "thumbnail not cached error". I just disabled watchtower for photoprism so I can be in more control of updates and presently re-indexing all my photos...brutal. I checked permissions, everything looked right. Same with the volumes mounted in docker.
@lastzero commented on GitHub (Nov 16, 2020):
Can you pull today's Docker image and reindex? There was a glitch in yesterday's build with volumes that might have caused this, replaced it shortly after we noticed.
@kushfest commented on GitHub (Nov 16, 2020):
I pulled the image at 11:06am pacific today and have been reindexing since. Is that recent enough to be on the new build? I'd love to not reindex again haha.
@lastzero commented on GitHub (Nov 16, 2020):
If the version in Settings at the bottom shows today's date, it's OK.
@lastzero commented on GitHub (Nov 16, 2020):
But also if it's yesterday's build. You see our demo is working, it wasn't with the broken base image.
@kushfest commented on GitHub (Nov 16, 2020):
Seems I just barely missed it haha. Stopped the indexing and just pulled
latest again. Definitely on the new version now. Re-starting the index.
Hoping this is the last time i’ll reindex for a while haha.
@lastzero commented on GitHub (Nov 16, 2020):
Let us know how this goes. There were some major changes in how the indexer handles deleted and moved files as well as duplicates.
@kushfest commented on GitHub (Nov 16, 2020):
Sounds like a minor setback for some major progress! I’ll let you know how
we’re looking when it’s done. Thanks! I’m really enjoying photoprism.
@kushfest commented on GitHub (Nov 16, 2020):
Indexing completed and so far I appear to be good. Thumbnails are back. Still have watchtower off so I can see what happens next time I manually pull the docker image.
@totti4ever commented on GitHub (Nov 17, 2020):
So, after watchtower pulled them latest version tonight (European time, i.e. 3 hours ago), it's broken again.
What can I do to provide more information?
@lastzero commented on GitHub (Nov 17, 2020):
You've mounted storage to /tmp? That gets cleaned up automatically, for example after a reboot. Nothing to do with PhotoPrism.
@totti4ever commented on GitHub (Nov 17, 2020):
oh jeez - thanks for pointing that out. To make it harder to discover, the directories are kept there.
It seem, I should find another path which is mounted to my SSD ;-)
thanks, that should fix it for me!