The Basics
- Nextcloud Server version (e.g., 29.x.x):
31.0.8
- Operating system and version (e.g., Ubuntu 24.04):
Debian12
- Web server and version (e.g, Apache 2.4.25):
Apache 2.4.62
- PHP version (e.g, 8.4):
8.4
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
manuell
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
mod_security but currently deactivated
Summary of the issue you are facing:
When i activate preview Images with ‘enable_previews’ => true, my nextcloud works as long as i want to open a picture that is not properly previewed?! I don´t know exactly whats the problem. Logs are not giving me infos to it. When i try to open such a picture my nextcloud is like hanging up. With hangig up here i mean i can navigate throug my nextcloud but nothing will load. Like when i go to Data no folders are visible. After some time it works again, but as soon as i click one of these images it “crashes” again for some time. When i set ‘enable_previews’ => false in config.php, everything works fine so far. I can open every Picture, no problems. I tried some Settings from here:
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#previews
but without success. For example what i tried:
‘enable_previews’ => true,
‘preview_max_x’ => 1024,
‘preview_max_y’ => 1024,
‘enabledPreviewProviders’ => [
‘OC\Preview\BMP’,
‘OC\Preview\GIF’,
‘OC\Preview\JPEG’,
‘OC\Preview\Krita’,
‘OC\Preview\MarkDown’,
‘OC\Preview\MP3’,
‘OC\Preview\OpenDocument’,
‘OC\Preview\PNG’,
‘OC\Preview\TXT’,
‘OC\Preview\XBitmap’,
],
So if anyobody could help me out here to find where is the problem would be lovely, cause i don´t know where to set on anymore.
Configuration
Nextcloud
{
"system": {
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"localhost",
"nextcloud1.lan"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"remember_login_cookie_lifetime": 1296000,
"session_lifetime": 1800,
"session_keepalive": false,
"auto_logout": true,
"memcache.local": "\\OC\\Memcache\\APCu",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 6379,
"timeout": 0,
"read_timeout": 0,
"password": "***REMOVED SENSITIVE VALUE***"
},
"filelocking.enabled": true,
"dbtype": "pgsql",
"version": "31.0.8.1",
"overwrite.cli.url": "http:\/\/localhost",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_smtpsecure": "ssl",
"mail_sendmailmode": "smtp",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_smtpauth": true,
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"maintenance": false,
"loglevel": 3,
"maintenance_window_start": 1,
"default_timezone": "Europe\/Berlin",
"default_language": "de",
"default_locale": "de",
"default_phone_region": "de",
"enable_previews": true,
"preview_max_x": 1024,
"preview_max_y": 1024,
"enabledPreviewProviders": [
"OC\\Preview\\BMP",
"OC\\Preview\\GIF",
"OC\\Preview\\JPEG",
"OC\\Preview\\Krita",
"OC\\Preview\\MarkDown",
"OC\\Preview\\MP3",
"OC\\Preview\\OpenDocument",
"OC\\Preview\\PNG",
"OC\\Preview\\TXT",
"OC\\Preview\\XBitmap"
]
}
}
Apps
- activity: 4.0.0
- app_api: 5.0.2
- appointments: 2.4.5
- bruteforcesettings: 4.0.0
- calendar: 5.5.1
- circles: 31.0.0
- cloud_federation_api: 1.14.0
- collectives: 3.1.1
- comments: 1.21.0
- contacts: 7.2.6
- contactsinteraction: 1.12.0
- dashboard: 7.11.0
- dav: 1.33.0
- federatedfilesharing: 1.21.0
- federation: 1.21.0
- files: 2.3.1
- files_downloadlimit: 4.0.0
- files_pdfviewer: 4.0.0
- files_reminders: 1.4.0
- files_sharing: 1.23.1
- files_trashbin: 1.21.0
- files_versions: 1.24.0
- firstrunwizard: 4.0.0
- forms: 5.1.2
- logreader: 4.0.0
- lookup_server_connector: 1.19.0
- mail: 5.3.1
- nextcloud_announcements: 3.0.0
- notes: 4.12.3
- notifications: 4.0.0
- oauth2: 1.19.1
- password_policy: 3.0.0
- photos: 4.0.0
- privacy: 3.0.0
- profile: 1.0.0
- provisioning_api: 1.21.0
- recommendations: 4.0.0
- related_resources: 2.0.0
- serverinfo: 3.0.0
- settings: 1.14.0
- sharebymail: 1.21.0
- support: 3.0.0
- survey_client: 3.0.0
- systemtags: 1.21.1
- text: 5.0.0
- theming: 2.6.1
- twofactor_backupcodes: 1.20.0
- updatenotification: 1.21.0
- user_status: 1.11.0
- viewer: 4.0.0
- weather_status: 1.11.0
- webhook_listeners: 1.2.0
- workflowengine: 2.13.0
Disabled: - admin_audit: 1.21.0
- encryption: 2.19.0
- files_external: 1.23.0
- suspicious_login: 9.0.1
- twofactor_nextcloud_notification: 5.0.0
- twofactor_totp: 13.0.0-dev.0
- user_ldap: 1.22.0