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

memories not displaying pictures, nginx error? #1236

Open
droogi opened this issue Jul 1, 2024 · 9 comments
Open

memories not displaying pictures, nginx error? #1236

droogi opened this issue Jul 1, 2024 · 9 comments
Labels
needs triage To be triaged

Comments

@droogi
Copy link

droogi commented Jul 1, 2024

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

  • version: 29.0.2.2
  • versionstring: 29.0.2
  • edition:
  • maintenance: false
  • needsDbUpgrade: false
  • productname: Nextcloud
  • extendedSupport: false

{
"system": {
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"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:

  • activity: 2.21.1
  • calendar: 4.7.6
  • circles: 29.0.0-dev
  • cloud_federation_api: 1.12.0
  • comments: 1.19.0
  • contacts: 6.0.0
  • contactsinteraction: 1.10.0
  • dashboard: 7.9.0
  • dav: 1.30.1
  • deck: 1.13.0
  • external: 5.4.0
  • federatedfilesharing: 1.19.0
  • federation: 1.19.0
  • files: 2.1.0
  • files_accesscontrol: 1.19.1
  • files_automatedtagging: 1.19.0
  • files_downloadlimit: 2.0.0
  • files_external: 1.21.0
  • files_pdfviewer: 2.10.0
  • files_reminders: 1.2.0
  • files_sharing: 1.21.0
  • files_trashbin: 1.19.0
  • files_versions: 1.22.0
  • firstrunwizard: 2.18.0
  • gpxpod: 5.0.18
  • integration_homeassistant: 0.0.5
  • logreader: 2.14.0
  • lookup_server_connector: 1.17.0
  • mail: 3.7.1
  • maps: 1.4.0
  • memories: 7.3.1
  • news: 24.0.0
  • notes: 4.10.0
  • notifications: 2.17.0
  • oauth2: 1.17.0
  • password_policy: 1.19.0
  • phonetrack: 0.8.1
  • photos: 2.5.0
  • previewgenerator: 5.5.0
  • privacy: 1.13.0
  • provisioning_api: 1.19.0
  • qownnotesapi: 24.4.0
  • recognize: 7.0.0
  • recommendations: 2.1.0
  • related_resources: 1.4.0
  • richdocuments: 8.4.3
  • serverinfo: 1.19.0
  • settings: 1.12.0
  • sharebymail: 1.19.0
  • spreed: 19.0.3
  • support: 1.12.0
  • survey_client: 1.17.0
  • systemtags: 1.19.0
  • tables: 0.7.3
  • tasks: 0.16.0
  • text: 3.10.0
  • theming: 2.4.0
  • twofactor_backupcodes: 1.18.0
  • updatenotification: 1.19.1
  • uppush: 1.4.3
  • user_migration: 6.0.0
  • user_status: 1.9.0
  • viewer: 2.3.0
  • weather_status: 1.9.0
  • workflowengine: 2.11.0
    Disabled:
  • admin_audit: 1.19.0
  • apporder: 0.15.0 (installed 0.15.0)
  • bookmarks: 14.2.0 (installed 14.2.0)
  • bruteforcesettings: 2.9.0
  • cms_pico: 1.0.21 (installed 1.0.21)
  • cookbook: 0.11.0 (installed 0.11.0)
  • encryption: 2.17.0
  • files_rightclick: 0.15.1 (installed 1.6.0)
  • keeweb: 0.6.18 (installed 0.6.17)
  • nextcloud_announcements: 1.18.0 (installed 1.13.0)
  • ocr: 6.0.58 (installed 6.0.58)
  • radio: 1.0.3 (installed 1.0.3)
  • suspicious_login: 7.0.0
  • twofactor_totp: 11.0.0-dev
  • user_ldap: 1.20.0

Screenshots

No response

Additional context

  • Any errors in the JS console?
  • Any errors in the Nextcloud server logs?
@droogi droogi added the needs triage To be triaged label Jul 1, 2024
@TtuxX
Copy link

TtuxX commented Jul 3, 2024

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
Copy link

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
Copy link

TtuxX commented Aug 19, 2024

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
Copy link
Author

droogi commented Aug 19, 2024

Worked for me also, thanks a lot

@droogi
Copy link
Author

droogi commented Aug 19, 2024

Can be closed

@pulsejet
Copy link
Owner

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

@droogi
Copy link
Author

droogi commented Oct 1, 2024

Yesterday i updated to nextcould 30.0.0 (via beta channel) in dietpi 9.7.1
I commented (#) both entries in the config file and restarted nginx,

  • memories displays both preview and images as expected.
  • maps (and phonetrack) do not display tiles
    maps works, when add_header Cross-Origin-Embedder-Policy credentialless; is added to location ^~ /nextcloud {

@filiprojek
Copy link

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;

Today I had a problem when installing Collabora office, when the mentioned header blocked opening files. I had to remove it. But as @droogi wrote after updating Nextcloud to version 30, the photos from Memories load without this header.

Also maps work fine for me without this header.

@droogi
Copy link
Author

droogi commented Oct 5, 2024

It is nextcloud office 8.5.1 which blocks memories and maps,
dietpi discussion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage To be triaged
Projects
None yet
Development

No branches or pull requests

5 participants