pulsejet / memories

Fast, modern and advanced photo management suite. Runs as a Nextcloud app.
https://memories.gallery
GNU Affero General Public License v3.0
3.06k stars 82 forks source link

memories not displaying pictures, nginx error? #1236

Open droogi opened 2 months ago

droogi commented 2 months ago

Describe the bug

I installed memories and run the index command. When i open memories, there are grey icons for the pictures taken, but no preview. after clicking the image, no picture is loaded. Clicking on last year picture in the first row, the picture is displayed.

video icons are also grey, but the video is displayed when the icon is clicked

in debugger i get an error message: Content-Security-Policy: Die Einstellungen der Seite haben das Laden einer Ressource (font-src) auf chrome-extension://539cfbe6-a0c1-4439-abc8-32a9404f71d9/static/assets/fonts/WorkSans-Black.ttf blockiert, da sie gegen folgende Direktive verstößt: "font-src 'self' data:"

is it a nginx config issue, since external sites (i.e. in maps) are not displayed?

Steps To Reproduce

No response

Platform

`- installed: true

{ "system": { "passwordsalt": "REMOVED SENSITIVE VALUE", "secret": "REMOVED SENSITIVE VALUE", "trusteddomains": [ "localhost", "*" ], "datadirectory": "REMOVED SENSITIVE VALUE", "dbtype": "mysql", "version": "29.0.2.2", "hashingThreads": 4, "memcache.local": "\OC\Memcache\APCu", "filelocking.enabled": true, "memcache.locking": "\OC\Memcache\Redis", "redis": { "host": "REMOVED SENSITIVE VALUE", "port": 0 }, "overwrite.cli.url": "https:\/\/mysite.org\/nextcloud", "dbname": "REMOVED SENSITIVE VALUE", "dbhost": "REMOVED SENSITIVE VALUE", "dbport": "", "dbtableprefix": "oc", "mysql.utf8mb4": true, "dbuser": "REMOVED SENSITIVE VALUE", "dbpassword": "REMOVED SENSITIVE VALUE", "installed": true, "default_language": "de_DE", "default_locale": "de", "default_phone_region": "DE", "share_folder": "\/shared", "instanceid": "REMOVED SENSITIVE VALUE", "maintenance": false, "mail_from_address": "REMOVED SENSITIVE VALUE", "mail_smtpmode": "smtp", "mail_sendmailmode": "smtp", "mail_domain": "REMOVED SENSITIVE VALUE", "mail_smtpauthtype": "LOGIN", "mail_smtpauth": 1, "mail_smtphost": "REMOVED SENSITIVE VALUE", "mail_smtpport": "587", "mail_smtpname": "REMOVED SENSITIVE VALUE", "mail_smtppassword": "REMOVED SENSITIVE VALUE", "mail_smtpsecure": "tls", "theme": "", "filesystem_check_changes": 1, "preview": "false", "loglevel": 0, "app_install_overwrite": [ "deck", "radio", "podcast", "news", "files_texteditor", "ocr" ], "twofactor_enforced": "false", "twofactor_enforced_groups": [ "Poweruser" ], "twofactor_enforced_excluded_groups": [], "updater.release.channel": "stable", "memories.db.triggers.fcu": true, "memories.exiftool": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/exiftool-aarch64-glibc", "memories.vod.path": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/go-vod-aarch64", "enabledPreviewProviders": [ "OC\Preview\Image" ], "memories.gis_type": 1 } } root@DietPi [21:02:10]~ # sudo -u www-data php /var/www/nextcloud/occ app:list Enabled:

Screenshots

No response

Additional context

TtuxX commented 2 months ago

I also have the same behaviour on Nginx but have not touched any configuration recently. I do not see suspect log entries in nextcloud logs

docbender commented 2 weeks ago

I had the same issue behind nginx. Resources were not loading, images were greyed out.

The solution was to add this HTTP COEP header to the web server configuration:

    add_header Cross-Origin-Embedder-Policy credentialless;
TtuxX commented 2 weeks ago

I had the same issue behind nginx. Resources were not loading, images were greyed out.

The solution was to add this HTTP COEP header to the web server configuration:

    add_header Cross-Origin-Embedder-Policy credentialless;

Modified and it worked instantly after reloading Nginx. Thank you sooo much, you're the best! :)

droogi commented 2 weeks ago

Worked for me also, thanks a lot

droogi commented 2 weeks ago

Can be closed

pulsejet commented 2 weeks ago

Never seen this before. This either needs to go to docs or the code itself.