0
Under review

Thumbnails Not Showing

DyslexicDog 3 weeks ago updated 6 days ago 10

Hi,

I have an issue where my docker installation of Filerun is not showing thumbnails and when clicking on an image to preview, nothing shows. Here is my docker install:

version: '2'
services:
db:
image: mariadb:10.1
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: filerun
MYSQL_PASSWORD: password
MYSQL_DATABASE: filerun_database

volumes:
- ./db:/var/lib/mysql

web:
image: afian/filerun:libreoffice

environment:
FR_DB_HOST: db
FR_DB_PORT: 3306
FR_DB_NAME: filerun_database
FR_DB_USER: filerun
FR_DB_PASS: password
APACHE_RUN_USER: www-data
APACHE_RUN_USER_ID: 33
APACHE_RUN_GROUP: www-data
APACHE_RUN_GROUP_ID: 33

depends_on:
- db

links:
- db:db

ports:
- "8009:80"

volumes:
- ./html:/var/www/html
- /mnt/homes/user-files:/user-files

Here is the troubleshooting:

Debugging is on (1617000875)
Request options:
Array
(
    [skipNotification] => 1
    [caching] => 
    [debug] => 1
)
In use options:
Array
(
    [skipNotification] => 1
    [caching] => 
    [debug] => 1
    [width] => 400
    [height] => 400
    [geometry] => contain
    [pageNo] => 0
    [forceExt] => png
)
Processing: /user-files/Anthony/Drive/Desktop_Photos/5yMgGci.png
As: png
File size: 575367 bytes (562 KB)
File is safe for web.
File is smaller than 3 MB.
Checking image resolution.
Image size is 2880 x 1800
Requested size is 400 x 400
Original image is more than 3 times larger than the requested size.
Creating lock: /user-files/Anthony/Drive/Desktop_Photos/.filerun.thumbnails/5yMgGci.png/575367/400_400_contain[1].png.lock
Resizing using ImageMagick
Running: convert -size '400x400' "/user-files/Anthony/Drive/Desktop_Photos/5yMgGci.png" -verbose -auto-orient -thumbnail '400x400>' -strip -quality 95 "/user-files/Anthony/Drive/Desktop_Photos/.filerun.thumbnails/5yMgGci.png/575367/400_400_contain[1].png" 2>&1
Resized image saved: /user-files/Anthony/Drive/Desktop_Photos/.filerun.thumbnails/5yMgGci.png/575367/400_400_contain[1].png
Removing lock: /user-files/Anthony/Drive/Desktop_Photos/.filerun.thumbnails/5yMgGci.png/575367/400_400_contain[1].png.lock
Caching is off. Removing resized image.

I've made sure my browser cache is cleared, tried a new browser, incognito and restarted Filerun, however, no such luck.

Please advise.

Thanks.

Under review

The thumbnail troubleshooting log shows a successful action. The thumbnail was generated fine. 

I’ve checked and I can see the thumbnail in the hidden folder, but upon viewing the website I cannot see it.

Thumbnails still aren't showing on any device - unsure of next steps.

Do open the browser's development console by pressing F12, look on the Network tab and see for the HTTP requests made for the thumbnails, and see what is the server's response, the response code and the response body.

Looks like a 520 HTTP error is being thrown on every thumbnail...The server logs only have 200 codes, no 520's.

Are you using Cloudflare? Have you checked the PHP and the HTTP server error logs?

I am using CF. Just checked - should have thought of this before....


2021/04/09 08:01:24 [error] 38987#38987: *13474 upstream sent no valid HTTP/1.0 header while reading response header from upstream, client: SERVER IP ADDRESS, server: SERVER_URL.co.uk, request: "GET /t.php?p=%2FROOT%2FHOME%2FDesktop%5FPhotos%2Fl0vlpzN%2Ejpg&s=184486&t=1460883540&noIcon=true HTTP/1.1", upstream: "http://192.168.1.102:8009/t.php?p=%2FROOT%2FHOME%2FDesktop%5FPhotos%2Fl0vlpzN%2Ejpg&s=184486&t=1460883540&noIcon=true", host: "SERVER_URL.co.uk", referrer: "https://SERVER_URL.co.uk/"


Visiting 

http://192.168.1.102:8009/t.php?p=%2FROOT%2FHOME%2FDesktop%5FPhotos%2Fl0vlpzN%2Ejpg&s=184486&t=1460883540&noIcon=true

I get the following:


This software application is registered to a different server hostname.

I'm not 100%, but this appeared around the time I registered the software, I wonder if that's the reason for the above message...I'm going to try to remove the license and see if that helps...