Kann NC nicht mehr aufrufen. Error 500

Hallo zusammen.
Ich habe seit längerem eine NC auf meinem vServer laufen. Wird momentan nur von 2 Usern genutzt.

Versionen:
Debian 11, Apache 2.4.54 und MariaDB 10.5
PHP 7.4.30
NC ist Version 24.0.5.1

Wenn ich versuche meine NC im Browser aufzurufen, bekomme ich einen Error 500
Aufgefallen ist mir das ganze am letzten Wochenende.

Die ersten Fehlermeldungen sind im error.log des Apache aber bereits seit dem 17.9. enthalten.

Update wurde laut update.log am 10.09. ausgeführt (angestoßen im Adminbackend Webinterface)

Letzte Einträge in der nextcloud.log sind vom 20.09. Am 17.09. gibt es nur ein paar Einträge von Fotos die ich in der App gesucht habe und eine Fehlermeldung wegen “imagick.so” (da suche ich schon länger den Fehler in meiner Config)

Nun suche ich schon die ganze Zeit nach dem möglichen Fehler, aber ich kann einfach nichts finden.
Eine Datei mit phpinfo(); funktioniert problemlos.

Ein “php occ check” liefert keine Meldungen
Ein “php occ maintenance:repair” habe ich ebenfalls ausgeführt. Meldungen s.u.

Wo kann ich noch weiter nach dem Fehler suchen? Stehe voll auf dem Schlauch.
Wenn Ihr noch weitere Infos haben wollt, einfach sagen.

Vielen Dank bereits im Voraus

J.

php occ status

  - installed: true
  - version: 24.0.5.1
  - versionstring: 24.0.5
  - edition:
  - maintenance: false
  - needsDbUpgrade: false
  - productname: Nextcloud
  - extendedSupport: false
Apache error.log Eintrag:

[Mon Sep 26 22:02:48.504351 2022] [proxy_fcgi:error] [pid 1847229] [client xx.xx.xx.xx:53516] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Class 'PDO' not found in /var/www/xxx/lib/private/DB/Connection.php:155\nStack trace:\n#0 /var/www/xxx/lib/private/AppConfig.php(408): OC\\DB\\Connection->getQueryBuilder()\n#1 /var/www/xxx/lib/private/AppConfig.php(176): OC\\AppConfig->loadConfigValues()\n#2 /var/www/xxx/lib/private/AppConfig.php(367): OC\\AppConfig->getApps()\n#3 /var/www/xxx/lib/private/legacy/OC_App.php(983): OC\\AppConfig->getValues()\n#4 /var/www/xxx/lib/private/Server.php(713): OC_App::getAppVersions()\n#5 /var/www/xxx/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\\Server->OC\\{closure}()\n#6 /var/www/xxx/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\\AppFramework\\Utility\\SimpleContainer->OC\\AppFramework\\Utility\\{closure}()\n#7 /var/www/xxx/lib/private/AppFramework/Utility/SimpleContainer.php(129): Pimple\\Container->offsetGet()\n#8 /var/www/xxx/lib/private/ServerContainer.php(136): OC\\AppFramework\\Utility\\SimpleContainer->query()\n#9 /var/www/xxx/l...', referer: https://xx.xx.de/index.php/apps/photos/service-worker.js
php occ maintenance:repair

 - Repair MySQL collation
     - All tables already have the correct collation -> nothing to do
 - Repair mime types
 - Clean tags and favorites
     - 0 tags of deleted users have been removed.
     - 0 tags for delete files have been removed.
     - 0 tag entries for deleted tags have been removed.
     - 0 tags with no entries have been removed.
 - Repair invalid shares
 - Move .step file of updater to backup location
 - Add move avatar background job
     - Repair step already executed
 - Add preview cleanup background jobs
 - Migrate oauth2_clients table to nextcloud schema
     - Update the oauth2_access_tokens table schema.
     - Update the oauth2_clients table schema.
 - Fix potential broken mount points
     - No mounts updated
 - Repair language codes
 - Install new core bundle components
 - Add log rotate job
 - Clear frontend caches
     - Image cache cleared
     - SCSS cache cleared
     - JS cache cleared
 - Clear every generated avatar on major updates
 - Add preview background cleanup job
 - Queue a one-time job to cleanup old backups of the updater
 - Cleanup invalid photocache files for carddav
 - Add background job to cleanup login flow v2 tokens
 - Remove potentially over exposing share links
     - No need to remove link shares.
 - Clear access cache of projects
 - Reset generated avatar flag
 - Keep legacy encryption enabled
 - Check encryption key format
 - Remove old dashboard app config data
 - Add job to cleanup the bruteforce entries
 - Queue a one-time job to check for user uploaded certificates
 - Repair DAV shares
 - Add background job to set the lookup server share state for users
 - Add token cleanup job
 - Update name of the stored view
 - Upgrading Circles App
 - Fix component of birthday calendars
     - 1 birthday calendars updated.
 - Regenerating birthday calendars to use new icons and fix old birthday events without year
     - Repair step already executed
 - Fix broken values of calendar objects
    0 [->--------------------------]
 - Registering building of calendar search index as background job
     - Repair step already executed
 - Register building of social profile search index as background job
 - Registering background jobs to update cache for webcal calendars
     - Added 0 background jobs to update webcal calendars
 - Registering building of calendar reminder index as background job
     - Repair step already executed
 - Clean up orphan event and contact data
     - 0 events without a calendar have been cleaned up
     - 0 properties without an events have been cleaned up
     - 0 changes without a calendar have been cleaned up
     - 0 cached events without a calendar subscription have been cleaned up
     - 0 changes without a calendar subscription have been cleaned up
     - 0 contacts without an addressbook have been cleaned up
     - 0 properties without a contact have been cleaned up
     - 0 changes without an addressbook have been cleaned up
 - Remove activity entries of private events
     - Removed 0 activity entries
 - Clean up old calendar subscriptions from deleted users that were not cleaned-up
    0 [----->----------------------]
     - 0 calendar subscriptions without an user have been cleaned up
 - Fix the share type of guest shares when migrating from ownCloud
 - Copy the share password into the dedicated column
 - Set existing shares as accepted
 - Restore default tags that are missing
     - Looking up default tags
     - 0 accounts to check found
    0 [--------->------------------]
 - Add a generated message-id to all Mail messages that have none
     - Looking up messages without a message-id
 - Purify and migrate collected mail addresses
    0 [------------->--------------]
 - Insert background jobs for all accounts
    0 [---------------->-----------]
 - Make Mail itinerary extractor executable
 - Create or update provisioned Mail accounts
     - 0 accounts provisioned
 - Repair Broken Threads for all mail accounts
     - Repaired threads, 0 messages updated
 - Update OAuth token expiration times
 - Create help command
 - Invalidate access cache for projects conversation provider
     - Invalidation not required
 - Cache the user display names
 - Switches from default updater server to the customer one if a valid subscription is available
     - Repair step already executed
 - Send an admin notification if monthly report is disabled
 - Add background job to check for backup codes
 - Populating added database structures for workflows
Ausgabe nach apt-get install php7.4-mysql:

php7.4-mysql is already the newest version (1:7.4.30-6+0~20220918.70+debian11~1.gbpcf2025).
tippe oder füge den Code hier ein

Hi Beach,

ich hatte nach dem letzten Serverupdate incl. der PHP-Version das gleiche Problem.

Nachdem ich einige PHP-Module nachinstalliert hatte, lief es wieder.

Versuch mal

apt install php7.4-zip php7.4-gd php7.4-redis php7.4-memcached php7.4-apcu

1 Like

Vielen Dank für den Tipp.
Das nachinstallieren hat zwar nichts gebracht.
Aber habe dann, war ja auch eh an der Zeit, auf PHP8.1 umgestellt und siehe da, es läuft wieder.
:+1: