Nextcloud 25 : Multiples Crash

Hi

Nextcloud version (eg, 20.0.5): 25
Operating system and version (eg, Ubuntu 20.04): Docker

The issue you are facing:
Too many crash of Nextcloud, when i want to open a PDF on my instance, all system crash.

Is this the first time you’ve seen this error? (Y/N): yes

Steps to replicate it:

  1. Log into Nextcloud
  2. Select a PDF
  3. Open a PDF

The output of your Nextcloud log in Admin > Logging:

"app":"no app in context","method":"GET","url":"/settings/ajax/checksetup","message":"Deprecated event type for OCP\\IDBConnection::CHECK_MISSING_PRIMARY_KEYS: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0","version":"25.0.0.18","data":[]}
"app":"no app in context","method":"GET","url":"/settings/ajax/checksetup","message":"Deprecated event type for OCP\\IDBConnection::CHECK_MISSING_INDEXES: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0","version":"25.0.0.18","data":[]}
"app":"no app in context","method":"GET","url":"/settings/ajax/checksetup","message":"Deprecated event type for OCP\\IDBConnection::CHECK_MISSING_COLUMNS: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0","version":"25.0.0.18","data":[]}
"app":"no app in context","method":"GET","url":"/core/preview?fileId=204726&c=e900788e40293b35c275d373d4245abe&x=250&y=250&forceIcon=0&a=0","message":"Deprecated event type for OCP\\IPreview:PreviewRequested: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0","version":"25.0.0.18","data":[]}
"app":"no app in context","method":"GET","url":"/core/preview?fileId=206288&c=28002082e0a4c6c1738f04af2e187d4d&x=250&y=250&forceIcon=0&a=0","message":"Deprecated event type for OCP\\IPreview:PreviewRequested: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0","version":"25.0.0.18","data":[]}
"app":"no app in context","method":"GET","url":"/core/preview?fileId=206281&c=091679f4f9c6422bb3221ca14e791bb4&x=250&y=250&forceIcon=0&a=0","message":"Deprecated event type for OCP\\IPreview:PreviewRequested: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0","version":"25.0.0.18","data":[]}
"app":"no app in context","method":"GET","url":"/core/preview?fileId=355411&c=a52a531b3666c3bb1ea569c1ec61cbdf&x=250&y=250&forceIcon=0&a=0","message":"Deprecated event type for OCP\\IPreview:PreviewRequested: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0","version":"25.0.0.18","data":[]}
"app":"no app in context","method":"GET","url":"/settings/ajax/checksetup","message":"Deprecated event type for OCP\\IDBConnection::CHECK_MISSING_PRIMARY_KEYS: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0","version":"25.0.0.18","data":[]}
"app":"no app in context","method":"GET","url":"/settings/ajax/checksetup","message":"Deprecated event type for OCP\\IDBConnection::CHECK_MISSING_INDEXES: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0","version":"25.0.0.18","data":[]}
"app":"no app in context","method":"GET","url":"/settings/ajax/checksetup","message":"Deprecated event type for OCP\\IDBConnection::CHECK_MISSING_COLUMNS: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0","version":"25.0.0.18","data":[]}
"app":"passwords","method":"","url":"--","message":"Passwords runs /config/www/nextcloud/cron.php in global mode","userAgent":"--","version":"25.0.0.18","data":{"app":"passwords"}}
"app":"core","method":"","url":"--","message":"Error while running background job (class: OCA\\Passwords\\Cron\\SynchronizeShares, arguments: )","userAgent":"--","version":"25.0.0.18","exception":{"Exception":"TypeError","Message":"Typed property OC\\AllConfig::$userCache must be an instance of OCP\\Cache\\CappedMemoryCache, OC\\Cache\\CappedMemoryCache used","Code":0,"Trace":[{"file":"/config/www/nextcloud/apps/passwords/lib/Services/ConfigurationService.php","line":190,"function":"setValue","class":"ReflectionProperty","type":"->"},{"file":"/config/www/nextcloud/apps/passwords/lib/Cron/SynchronizeShares.php","line":438,"function":"clearCache","class":"OCA\\Passwords\\Services\\ConfigurationService","type":"->"},{"file":"/config/www/nextcloud/apps/passwords/lib/Cron/SynchronizeShares.php","line":107,"function":"canExecute","class":"OCA\\Passwords\\Cron\\SynchronizeShares","type":"->"},{"file":"/config/www/nextcloud/apps/passwords/lib/Cron/AbstractTimedJob.php","line":74,"function":"runJob","class":"OCA\\Passwords\\Cron\\SynchronizeShares","type":"->"},{"file":"/config/www/nextcloud/lib/private/BackgroundJob/Job.php","line":54,"function":"run","class":"OCA\\Passwords\\Cron\\AbstractTimedJob","type":"->"},{"file":"/config/www/nextcloud/lib/private/BackgroundJob/TimedJob.php","line":60,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/config/www/nextcloud/cron.php","line":152,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/config/www/nextcloud/apps/passwords/lib/Services/ConfigurationService.php","Line":190,"message":"Error while running background job (class: OCA\\Passwords\\Cron\\SynchronizeShares, arguments: )","CustomMessage":"Error while running background job (class: OCA\\Passwords\\Cron\\SynchronizeShares, arguments: )"}}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => '.org',
  ),
  'trusted_proxies' => 
  array (
    0 => '102.169.1.183',
    1 => '127.0.0.1',
    2 => '172.29.0.1',
  ),
  'forwarded-for-headers' => 
  array (
    0 => 'HTTP_X_FORWARDED_FOR',
  ),
  'dbtype' => 'mysql',
  'version' => '25.0.0.18',
  'overwrite.cli.url' => '.org',
  'dbname' => '',
  'dbhost' => '',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '',
  'dbpassword' => '',
  'installed' => true,
  'default_phone_region' => 'FR',
  'maintenance' => false,
  'app_install_overwrite' => 
  array (
    0 => 'ocdownloader',
    1 => 'occweb',
    2 => 'twofactor_totp',
    3 => 'drawio',
    4 => 'bookmarks',
    5 => 'geoblocker',
    6 => 'apporder',
    7 => 'onlyoffice',
    8 => 'passwords',
    9 => 'richdocuments',
  ),
  'theme' => '',
  'loglevel' => 1,
  'updater.release.channel' => 'stable',
);

The output of your Apache/nginx/system log in /var/log/____:


2022/10/21 21:30:50 [error] 436#436: *2474 , server: _, request: "GET /settings/admin/logging HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:05:59 [error] 436#436: *97 , server: _, request: "GET /core/preview?fileId=373952&c=860ffbf67d7cc894e22ed9982cddc6b6&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:05:59 [error] 436#436: *98 , server: _, request: "GET /core/preview?fileId=373085&c=e1d65f039a7833205d9933e2774a2fb3&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:05:59 [error] 437#437: *100 , server: _, request: "GET /core/preview?fileId=370195&c=92acb47640adf34223aa68ba13cc7d72&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:05:59 [error] 437#437: *101 , server: _, request: "GET /core/preview?fileId=365690&c=dc1fcfd9c9a253a52b477d4fdb252627&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:05:59 [error] 437#437: *102 , server: _, request: "GET /core/preview?fileId=373082&c=f60dc1eaf20966978c75f21edf1c0e25&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:05:59 [error] 437#437: *103 , server: _, request: "GET /core/preview?fileId=370198&c=398b93da5871fda02c2c91bf01263b8a&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:05:59 [error] 437#437: *104 , server: _, request: "GET /core/preview?fileId=358548&c=132dab3d84d5a86c0cdd1d4174d509f2&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:05:59 [error] 436#436: *110 , server: _, request: "GET /core/preview?fileId=358509&c=4d697e5199fb32029e677384bb2e241b&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:05:59 [error] 436#436: *111 , server: _, request: "GET /core/preview?fileId=365211&c=de9944cb91ae66b6c89586a854e0f54a&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:05:59 [error] 436#436: *114 , server: _, request: "GET /core/preview?fileId=358628&c=eacf8fffd6f3f9d2427d1c7b3bf34555&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:05:59 [error] 438#438: *112 , server: _, request: "GET /core/preview?fileId=357560&c=0321a7666d03ae5f4e852a3608f278ec&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:05:59 [error] 438#438: *113 , server: _, request: "GET /core/preview?fileId=362790&c=1bf5fa9da6f963ebe7a8a63aa0607ba7&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:06:00 [error] 436#436: *121 , server: _, request: "POST /apps/text/session/close HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:06:02 [error] 436#436: *124 , server: _, request: "GET /core/preview?fileId=353471&c=0618510092d8e34e19ce686f7fcd6d1d&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:06:02 [error] 436#436: *123 , server: _, request: "GET /core/preview?fileId=346633&c=027a7231da6abf490728a677d5c9a85d&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:06:02 [error] 438#438: *129 , server: _, request: "GET /core/preview?fileId=220144&c=2aeb81b5a202e24adac90e285027cf65&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:06:02 [error] 436#436: *128 , server: _, request: "GET /core/preview?fileId=251519&c=e25ba26942b8ece237ef209f8c188c68&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:06:02 [error] 436#436: *130 , server: _, request: "GET /core/preview?fileId=204474&c=8ab509185f572fade7450b9661298bcc&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:06:02 [error] 436#436: *131 , server: _, request: "GET /core/preview?fileId=194521&c=544d99a21c6a2aafbe6aa1674dbefcba&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:06:02 [error] 436#436: *132 , server: _, request: "GET /core/preview?fileId=128315&c=e9724a98eef86ecb2af9158e98c470ef&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:06:02 [error] 436#436: *133 , server: _, request: "GET /core/preview?fileId=219172&c=c31a362e5fd0b7ab30740237dcc54b18&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:06:02 [error] 436#436: *134 , server: _, request: "GET /core/preview?fileId=204562&c=983ee9597c355fd3bfd1a497189fe125&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:06:02 [error] 436#436: *135 , server: _, request: "GET /core/preview?fileId=193636&c=b8bd90009c7fadb72f2af5fb44dad88d&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:06:02 [error] 437#437: *125 , server: _, request: "GET /core/preview?fileId=343050&c=75af732fbaf55bf7916b279491e0b52c&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:06:02 [error] 437#437: *126 , server: _, request: "GET /core/preview?fileId=337920&c=fe923fab6e3f5e68291810b6aa618b10&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:06:02 [error] 437#437: *127 , server: _, request: "GET /core/preview?fileId=224563&c=bd3f02d364a1e6bd0962b9901dc05117&x=250&y=250&forceIcon=0&a=0 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:06:02 [error] 436#436: *149 , server: _, request: "POST /index.php/apps/bookmarks/public/rest/v2/lock HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:06:24 [error] 436#436: *159 , server: _, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:06:54 [error] 436#436: *175 , server: _, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:07:02 [error] 436#436: *181 , server: _, request: "DELETE /index.php/apps/bookmarks/public/rest/v2/lock HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:07:24 [error] 436#436: *191 , server: _, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""
2022/10/21 22:08:02 [error] 436#436: *211 , server: _, request: "POST /index.php/apps/bookmarks/public/rest/v2/lock HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: ""