LibrePhotos / librephotos

A self-hosted open source photo management service. This is the repository of the backend.
MIT License
6.98k stars 306 forks source link

Only show video, but not image after first scan #384

Open dwebfan opened 3 years ago

dwebfan commented 3 years ago

Before you create an issue make sure that:

When asking general "how to" questions:

When Submitting please remove every thing above this line

🐛 Bug Report

What Operating system and version is LibrePhotos running on:

Ubuntu 20.04

What architecture is LibrePhotos running on:

x64

How is LibrePhotos installed:

Docker compose

If running via Docker or Kubernetes please list version including docker-compose:

v2.0.1

Are you running LibrePhotos on a virtual machine if so please list:

not in VM

How is you picture library mounted on the host (or in the virtual machine):

Local file system (Type), NFS, or SMB SMB mount

Description of issue:

This is the first time I use the app. After scan finished, seems all photos/videos are processed, but from UI, I can only see video, all pictures only have place holder like

image

I check the librephotos/media/thumbnail folders, all thumbnails are created correctly. When I copy the url from dev tool of browser, got 403 forbidden error.

# curl -vv 'http://10.0.1.57:3000/media/square_thumbnails/a6f34751bebff0b6c65bdfc63de912852'
*   Trying 10.0.1.57...
* TCP_NODELAY set
* Connected to 10.0.1.57 (10.0.1.57) port 3000 (#0)
> GET /media/square_thumbnails/a6f34751bebff0b6c65bdfc63de912852 HTTP/1.1
> Host: 10.0.1.57:3000
> User-Agent: curl/7.64.1
> Accept: */*
>
< HTTP/1.1 403 Forbidden
< Server: nginx/1.21.1
< Date: Wed, 03 Nov 2021 18:13:05 GMT
< Content-Type: text/html; charset=utf-8
< Content-Length: 0
< Connection: keep-alive
< Vary: Accept, Origin, Cookie
< Allow: GET, HEAD, OPTIONS
< X-Frame-Options: DENY
< X-Content-Type-Options: nosniff
< Referrer-Policy: same-origin
<
* Connection #0 to host 10.0.1.57 left intact
* Closing connection 0

How can we reproduce it:

  1. Start from scratch
  2. Create new user
  3. Set scan folder
  4. After scan, check the UI

Additional Information:

dwebfan commented 3 years ago

The problem seems happened on Safari browser only