The Basics
- Nextcloud Server version:
33.0.8 - Operating system and version:
Debian 13.6 - Web server and version:
apache2/2.4.68-1~deb13u1 - Reverse proxy and version:
none - PHP version:
8.4 - Is this the first time you’ve seen this error?:
Yes - When did this problem seem to first start?
When attempting to 'maintenance:repair'
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
- Are you using CloudfIare, mod_security, or similar?:
No
Summary of the issue you are facing:
During an attempted upgrade, I mistakenly removed the entire Nextcloud …/html/ directory. Realising this was a problem I attempted to recover:
- Ensure the Nextcloud database is not damaged.
- Ensure the Nextcloud
…/data/directory is not damaged. - Restore the Nextcloud
…/html/config/directory. - Download the Nextcloud installation archive from https://download.nextcloud.com/server/releases/nextcloud-33.0.8.zip
- Unpack that installation archive to
…/html/.
- Unpack that installation archive to
- Run
… occ maintenance:repaircommand to correct this broken Nextcloud instance.
Nextcloud crashes, complaining (accurately) that a file it wants is not in …/html/3rdparty/.
How can I continue the repair beyond this point; how do I provide Nextcloud the correct contents of …/html/3rdparty/? It does not appear in the installation archive, nor in any backup I have.
I assume there might be many more files Nextcloud expects to find in that directory. How can I get the repair complete without those files; alternatively, how can I find and install those files correctly?
Steps to replicate it (hint: details matter!):
-
Make the mistake of deleting everything within
…/html/. -
Restore the
…/html/config/directory. -
Download and install Nextcloud installation archive
nextcloud-33.0.8.zipinto…/html/. -
Run Nextcloud admin command
… occ maintenance:repair.
Nextcloud crashes with a traceback:
An unhandled exception has been thrown:
PDOException: could not find driver in /srv/nextcloud/html/3rdparty/doctrine/dbal/src/Driver/PDO/PDOConnect.php:28
Stack trace:
…
Configuration
Nextcloud
<?php
$CONFIG = array(
'instanceid' => 'REDACTED',
'passwordsalt' => 'REDACTED',
'secret' => 'REDACTED',
'config_is_read_only' => false,
'installed' => true,
'log_type' => 'syslog',
'logdateformat' => DateTime::ISO8601,
'maintenance' => false,
'maintenance_window_start' => 23,
'trusted_domains' => [
'REDACTED.example.org',
],
'overwrite.cli.url' => 'https://REDACTED.example.org/nextcloud',
'htaccess.RewriteBase' => '/nextcloud',
'mail_from_address' => 'nextcloud',
'mail_domain' => 'REDACTED.example.org',
'mail_send_plaintext_only' => true,
'default_language' => 'en',
'default_locale' => 'en_AU',
'default_phone_region' => 'AU',
'trashbin_retention_obligation' => 'auto, 30',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' => array(
'host' => 'localhost',
'port' => 6379,
'timeout' => 0.0,
'password' => '',
),
);
?>