mirror of
https://github.com/photoprism/photoprism.git
synced 2026-03-02 22:57:18 -05:00
Places: Index locations without internet connection #1247
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#1247
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 @IceBoosteR on GitHub (Dec 10, 2021).
Hey there,
I'm new to Photoprism so I'm not entirely sure if this is a bug or a missing feature, but let me try to explain.
Completely new setup running on docker, totally fresh database.
So I have a bunch of photos in my libary and I was doing an offline scan of my originals (so no internet connection at the time of indexing). After some days, everything was indexed and I was looking into places. Are lot of photos were accuratly placed. No when I look in the map I can drill down into specific places. At some point in time there are like specific places that I want to "visit". Lets say, there are 4 pictures taken at the same place - and I really would like to view them by clicking on the bubbles. However, the only possibility to actually view parts of the pictures is to drill down until I can see every single one. Which is kind of fine, if I would be able to see the picture on full screen. But when I click on a specific picture, the error message "no pictures found" is displayed. And that's kind of why I am opening this ticket to see, if that is a missing feature, or a bug really.
Also some questions related to this:
a) Would an internet connection have helped on preventing the bug
b) Are the results as accurate as with internet connection
Thanks,
IceBoosteR
@lastzero commented on GitHub (Dec 10, 2021):
Yes, it's possible that locations were not properly indexed without internet connection. We've added a few more validations recently and abort setting a location if an error occurs. They could not just be invalid coordinates but also a failed geodata request. You could have disabled lookups completely though via config option.
@lastzero commented on GitHub (Dec 14, 2021):
Since we sadly have very limited time:
Would you be able to test if it works when the server has a network connection while indexing?
@lastzero commented on GitHub (Dec 14, 2021):
We'll add the bug label when it's a confirmed bug 👍
@IceBoosteR commented on GitHub (Dec 22, 2021):
Hi,
will run a complete re-index on my library, will take some days to complete because of the size of the data. What I am wondering is, that the location is about to be correct, it's where the pictures has been taken, but I just can't vie them.
Will report back with the result.
@lastzero commented on GitHub (Dec 22, 2021):
You can also try to run the "photoprism places update" command instead of reindexing completely. It could happen because PhotoPrism uses S2 Cell IDs internally and not latitude / longitude directly. Obviously it should still work, but any more detailed analysis takes time.
@IceBoosteR commented on GitHub (Dec 22, 2021):
Ok first I was smart enough to just add new pictures which I have not indexed yet. Indexing with Internet connection did work and now I can view the pictures as it should.
I think I am unable to execute the command you mentioned. Running it docker, connected via bash
root@2311e39a2142:/photoprism# photoprism places update INFO[2021-12-22T20:18:41Z] Help us make a difference and become a sponsor today! INFO[2021-12-22T20:18:41Z] Visit https://docs.photoprism.app/funding/ to learn more. WARN[2021-12-22T20:18:41Z] migrate: creating 20211121-094727 failed with UNIQUE constraint failed: migrations.id [980.858µs] WARN[2021-12-22T20:18:41Z] migrate: creating 20211124-120008 failed with UNIQUE constraint failed: migrations.id [492.245µs] ERRO[2021-12-22T20:18:43Z] Since running this command puts additional load on our infrastructure, we unfortunately can only offer it to sponsors.@lastzero commented on GitHub (Dec 22, 2021):
Running our latest version? The warnings should be fixed. But yes, this is only available to sponsors just like direct technical support.
@IceBoosteR commented on GitHub (Dec 22, 2021):
root@2311e39a2142:/photoprism# photoprism --version PhotoPrism version 211215-93b26f19-Linux-x86_64Thats the version I am running, watchtower did not find any new updates for this container, so I assume it's the latest one
Alright, so I need to reindex the full database unfortunetely then. And is this behaviour to be taken as a bug? As the coordinates are retrived correctly offline? Its just that the "match" toward opening the correct pisture is missing.
Cheers
@lastzero commented on GitHub (Dec 22, 2021):
Indexing locations without internet connection may be supported when we reach our funding goal. Currently it is not, so it's not a bug technically. That's all I can say or do at 9.52pm while we are out of office for Christmas.
@IceBoosteR commented on GitHub (Dec 29, 2021):
Okay thanks for the info, got you.
(No one pushed you in answering at that time :) )
You can put the ticket in a state how you'd like it for being able to track this feature eventually.
@lastzero commented on GitHub (Dec 29, 2021):
It's not like work is getting less if we wait. Just means doing more work / answering more questions in less time later, which is physically impossible. When possible, we provide quick solutions.