Upgrade to NxC33 failed (calendar?)

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 32.0.6 -> 33.0.0
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian 13
  • Web server and version (e.g, Apache 2.4.25):
    • Apache 2.4.66
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Apache 2.4.66
  • PHP version (e.g, 8.3):
    • 8.4.13
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • at occ upgrade
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • bare metal
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

upgrading using updater.phar, at occ upgrade, it stops

Steps to replicate it (hint: details matter!):

  1. upgrade to NxC33 using updater.phar

  2. execute occ upgrade

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

{"reqId":"4Gp1Ovdo7xR0w38G0Yv8","level":3,"time":"2026-02-26T16:15:02+01:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","scriptName":"/path/to/NxC/cron.php","message":"Failed opening required '/path/to/NxC/apps/calendar/composer/../vendor/autoload.php' (include_path='/path/to/NxC/3rdparty/pear/archive_tar:/path/to/NxC/3rdparty/pear/console_getopt:/path/to/NxC/3rdparty/pear/pear-core-minimal/src:/path/to/NxC/3rdparty/pear/pear_exception:/path/to/NxC/apps')","userAgent":"--","version":"32.0.6.1","occ_command":["/path/to/NxC/cron.php"],"exception":{"Exception":"Error","Message":"Failed opening required '/path/to/NxC/apps/calendar/composer/../vendor/autoload.php' (include_path='/path/to/NxC/3rdparty/pear/archive_tar:/path/to/NxC/3rdparty/pear/console_getopt:/path/to/NxC/3rdparty/pear/pear-core-minimal/src:/path/to/NxC/3rdparty/pear/pear_exception:/path/to/NxC/apps')","Code":0,"Trace":[{"file":"/path/to/NxC/lib/private/legacy/OC_App.php","line":113,"function":"require_once"},{"file":"/path/to/NxC/lib/private/AppFramework/Bootstrap/Coordinator.php","line":79,"function":"registerAutoloading","class":"OC_App","type":"::"},{"file":"/path/to/NxC/lib/private/AppFramework/Bootstrap/Coordinator.php","line":55,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/path/to/NxC/lib/base.php","line":747,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/path/to/NxC/lib/base.php","line":1286,"function":"init","class":"OC","type":"::"},{"file":"/path/to/NxC/cron.php","line":18,"args":["/path/to/NxC/lib/base.php"],"function":"require_once"}],"File":"/path/to/NxC/apps/calendar/composer/autoload.php","Line":5,"message":"Failed opening required '/path/to/NxC/apps/calendar/composer/../vendor/autoload.php' (include_path='/path/to/NxC/3rdparty/pear/archive_tar:/path/to/NxC/3rdparty/pear/console_getopt:/path/to/NxC/3rdparty/pear/pear-core-minimal/src:/path/to/NxC/3rdparty/pear/pear_exception:/path/to/NxC/apps')","exception":"{\"class\":\"Error\",\"message\":\"Failed opening required '/path/to/NxC/apps/calendar/composer/../vendor/autoload.php' (include_path='/path/to/NxC/3rdparty/pear/archive_tar:/path/to/NxC/3rdparty/pear/console_getopt:/path/to/NxC/3rdparty/pear/pear-core-minimal/src:/path/to/NxC/3rdparty/pear/pear_exception:/path/to/NxC/apps')\",\"code\":0,\"file\":\"/path/to/NxC/apps/calendar/composer/autoload.php:5\",\"trace\":\"#0 /path/to/NxC/lib/private/legacy/OC_App.php(113): require_once()\\n#1 /path/to/NxC/lib/private/AppFramework/Bootstrap/Coordinator.php(79): OC_App::registerAutoloading()\\n#2 /path/to/NxC/lib/private/AppFramework/Bootstrap/Coordinator.php(55): OC\\AppFramework\\Bootstrap\\Coordinator->registerApps()\\n#3 /path/to/NxC/lib/base.php(747): OC\\AppFramework\\Bootstrap\\Coordinator->runInitialRegistration()\\n#4 /path/to/NxC/lib/base.php(1286): OC::init()\\n#5 /path/to/NxC/cron.php(18): require_once('...')\\n#6 {main}\"}","CustomMessage":"Failed opening required '/path/to/NxC/apps/calendar/composer/../vendor/autoload.php' (include_path='/path/to/NxC/3rdparty/pear/archive_tar:/path/to/NxC/3rdparty/pear/console_getopt:/path/to/NxC/3rdparty/pear/pear-core-minimal/src:/path/to/NxC/3rdparty/pear/pear_exception:/path/to/NxC/apps')"}}

Web server / Reverse Proxy

The output of your Apache/nginx/system log in tty:

Should the "occ upgrade" command be executed? [Y/n] y
An unhandled exception has been thrown:
Error: Failed opening required '/path/to/NxC/apps/calendar/composer/../vendor/autoload.php' (include_path='/path/to/NxC/3rdparty/pear/archive_tar:/path/to/NxC/3rdparty/pear/console_getopt:/path/to/NxC/3rdparty/pear/pear-core-minimal/src:/path/to/NxC/3rdparty/pear/pear_exception:/path/to/NxC/apps') in /path/to/NxC/apps/calendar/composer/autoload.php:5
Stack trace:
#0 /path/to/NxC/lib/private/legacy/OC_App.php(113): require_once()
#1 /path/to/NxC/lib/private/AppFramework/Bootstrap/Coordinator.php(79): OC_App::registerAutoloading()
#2 /path/to/NxC/lib/private/AppFramework/Bootstrap/Coordinator.php(55): OC\AppFramework\Bootstrap\Coordinator->registerApps()
#3 /path/to/NxC/lib/base.php(747): OC\AppFramework\Bootstrap\Coordinator->runInitialRegistration()
#4 /path/to/NxC/lib/base.php(1286): OC::init()
#5 /path/to/NxC/console.php(32): require_once('...')
#6 /path/to/NxC/occ(33): require_once('...')
#7 {main}
"occ upgrade" failed - return code: 1

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => '**REMOVED**',
  'passwordsalt' => '**REMOVED**',
  'secret' => '**REMOVED**',
  'trusted_domains' =>
  array (
    **REMOVED**
  ),
  'trusted_proxies' =>
  array (
    **REMOVED**
  ),
  'datadirectory' => '/path/to/data-nuage',
  'overwrite.cli.url' => '**REMOVED**/',
  'dbtype' => 'mysql',
  'version' => '32.0.6.1',
  'dbname' => '**REMOVED**',
  'dbhost' => '**REMOVED**',
  'dbtableprefix' => '**REMOVED**',
  'dbuser' => '**REMOVED**',
  'dbpassword' => '**REMOVED**',
  'logtimezone' => 'Europe/Paris',
  'log_type' => 'file',
  'logfile' => '/path/to/logs/nextcloud.log',
  'loglevel' => 3,
  'log_rotate_size' => '10485760',
  'installed' => true,
  'theme' => '',
  'maintenance' => true,
  'mail_from_address' => 'noreply',
  'mail_smtpmode' => 'smtp',
  'mail_domain' => '**REMOVED**',
  'htaccess.RewriteBase' => '/',
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
  ),
  'appstore.experimental.enabled' => true,
  'updater.release.channel' => 'stable',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '**REMOVED**',
  'mail_smtpport' => '587',
  'mail_smtpname' => '**REMOVED**',
  'mail_smtppassword' => '**REMOVED**',
  'mysql.utf8mb4' => true,
  'has_rebuilt_cache' => true,
  'app_install_overwrite' =>
  array (
    0 => 'occweb',
    1 => 'files_ebookreader',
    3 => 'telephoneprovider',
    4 => 'radio',
    5 => 'dicomviewer',
    6 => 'breezedark',
    7 => 'checksum',
    8 => 'emlviewer',
    9 => 'files_retention',
    10 => 'ransomware_detection',
    11 => 'ocsms',
    12 => 'weather',
    13 => 'apporder',
    14 => 'audioplayer',
    15 => 'audioplayer_editor',
    16 => 'files_texteditor',
    17 => 'extract',
    18 => 'passwords',
    19 => 'camerarawpreviews',
    20 => 'gpxpod',
    21 => 'files_markdown',
    22 => 'tasks',
    23 => 'side_menu',
    24 => 'backup',
  ),
  'default_phone_region' => 'FR',
  'maintenance_window_start' => '3',
);

Did you manually install the Calendar app from development or from git/github at some point?

Note that the below is huge list of apps you have force enabled; these will all bypass compatibility checks for upgrades.

nope, i’m too lazy for that, i installed all using the store =)

mhh, most of these are (or were at some point) shown as incompatible, but were functioning after enabling them.
i really tough this was reset at every major upgrade, tho.

I’ll comment out the whole array and retry occ upgrade then
edit: same error, and occ app:disable calendar doesn’t work…

You can temporarily move apps/calendar outside your Nextcloud installation folder. That will have the same effect.

Once you do so, retry the upgrade. And try re-installing it via the app store.

If that does work I’m unsure why you had the problem to start with.

Thanks!

i moved out apps/calendar, then retried occ upgrade, upgrade worked.

moving back calendar to apps folder didn’t directly trigger the issue, but i couldn’t re-enable it. had to remove and reinstall using store.

doing this did NOT made me lose calendar data, btw.

i can’t explain the issue since i haven’t edited any file in calendar app (or maybe a HDD issue?), but it now works.

Thanks again for the help.