Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load the preview #88

Closed
FX7 opened this issue Sep 24, 2023 · 4 comments
Closed

Failed to load the preview #88

FX7 opened this issue Sep 24, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@FX7
Copy link

FX7 commented Sep 24, 2023

What is wrong?
When clicking on a thumbnail a loading animation is shown and then the error "Failed to load the preview" is shown.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'select any picture from the starting picture Overview"
  2. Click on 'the picture you want to see in fullscreen"
  3. See error

Expected behavior
The picture in fullscreen.

Screenshots
Screenshot_20230924-081244_1
Screenshot_20230924-081519_1

Device:

  • Model: Pixel 6a
  • Android version: 13

Additional context
No Errors in the Server Side logs. All requests are answered with http 200. Access to the fullscreen Image from the web Interface works as expected.

@FX7 FX7 added the bug Something isn't working label Sep 24, 2023
@Radiokot
Copy link
Owner

Are the square thumbnails displayed on the main screen?

@FX7
Copy link
Author

FX7 commented Sep 24, 2023

Hello @Radiokot and thank you for the very quick response.

Yes, the square thumbnails on the main screen are displayed.

I noticed the error with the PhotoPrism App v1.17 and updated today to the 1.18 version. But the problem remains.

@Radiokot
Copy link
Owner

I think it can be due to the inability to get the preview of the corresponding size from the server, which I haven't faced before. You said you have server logs – do you see requesting XXX/tile_500, XXX/fit_720, XXX/fit_1280, etc. when running the gallery?

@FX7
Copy link
Author

FX7 commented Sep 24, 2023

First a quick description of my setup:
I have the latest photoprism docker image from photoprism/photoprism:latest behind an apache proxy.

When opening the app I got many log entrys like "GET /api/v1/ ..." with a http 200 code answered in the (apache proxy) log files. As descriped before everythink works fine (small square previews of the starting page are all shown correctly).

Then, wenn clicking on one image I got 3 entrys like "GET /api/v1/t/71866bb4cae0294cde5198c7c7e1184dc1669a09/34mwljxd/fit_3840" and all with http 200.

...

Ok, wait! I solved it! I'm sorry, that I bothered you with this. It was an configuration failure on my server side! Just because the "same" action on the web-interface worked, I thought it was a problem with the app. But "the same" action isnt really the same. Clicking on a square preview image on the web interface doesnt open the original image, it just opened another generated preview. Clicking on the square preview in the app opens the original image.

And thats where my server was missconfigured. I moved the location of the original images, but didnt tell the server the correct new location. So all previously generated previews still work (= square images and clicking on them the in web-interface) but viewing the original image (= clicking on square images in the app) didnt work.

Just solved it by telling the photoprism server the correct new location of the original files.

Thanks again for your quick response and of corse for sthe great work with this app!

@FX7 FX7 closed this as completed Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants