Upgrade 31.0.10 > 32.0.1 apps go missing

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.10> 32.0.1
  • Operating system and version (e.g., Ubuntu 24.04):
    • fedora 42
  • Web server and version (e.g, Apache 2.4.25):
    • httpd 2.4.65
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • replace me
  • PHP version (e.g, 8.3):
    • 8.4
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • during upgrade
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • command line
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • self hosted

Summary of the issue you are facing:

I’ve been doing upgrades since owncloud. The last dozen or so upgrades i’ve not had any issue but this upgrade to 32.0.2 disabled and broke these apps: calendar, contacts, cookbook, music, note, tables, tasks. Since caalendar and contacts are my main apps i had to restore from backup as i could not get them to work even after trying to reinstall the apps

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

  1. running 31.0.10

  2. manually upgrade to 32.0.1

  3. apps not working

  4. the logs show Exception: OCP\App\AppPathNotFoundException",“Message”:"Could not find path for

Log entries

Nextcloud

“app”:“no app in context”,“method”:“”,“url”:“nextcloudocc”,“message”:“Could not find path for calendar”,“userAgent”:“–”,“version”:“31.0.10.2”,“exception”:{“Exception”:“OCP\AppCoAppanager.php”,“Line”:707,“message”:“Could not find path for calendar”,“exception”:{},“CustomMessage”:“Could not find path for calendar”}}`

there is one of these for each app. I didn’t include them all because this system is converting the urls as links and won’t let me post them all


{"reqId":"9nWYKAEKrde82rTbope9","level":3,"time":"October 26, 2025 09:26:40","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"/nextcloud/occ","message":"Could not find path for calendar","userAgent":"--","version":"31.0.10.2","exception":{"Exception":"OCP\\App\\AppPathNotFoundException","Message":"Could not find path for calendar","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/App/AppManager.php","line":572,"function":"getAppPath","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Updater.php","line":396,"function":"enableApp","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Updater.php","line":246,"function":"upgradeAppStoreApps","class":"OC\\Updater","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Updater.php","line":100,"function":"doUpgrade","class":"OC\\Updater","type":"->"},{"file":"/var/www/html/nextcloud/core/Command/Upgrade.php","line":193,"function":"upgrade","class":"OC\\Updater","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php","line":326,"function":"execute","class":"OC\\Core\\Command\\Upgrade","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":1078,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":324,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":175,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Console/Application.php","line":187,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/console.php","line":90,"function":"run","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/occ","line":33,"args":["/var/www/html/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/App/AppManager.php","Line":707,"message":"Could not find path for calendar","exception":{},"CustomMessage":"Could not find path for calendar"}}


{"reqId":"9nWYKAEKrde82rTbope9","level":3,"time":"October 26, 2025 09:26:40","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"/nextcloud/occ","message":"Could not find path for contacts","userAgent":"--","version":"31.0.10.2","exception":{"Exception":"OCP\\App\\AppPathNotFoundException","Message":"Could not find path for contacts","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/App/AppManager.php","line":572,"function":"getAppPath","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Updater.php","line":396,"function":"enableApp","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Updater.php","line":246,"function":"upgradeAppStoreApps","class":"OC\\Updater","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Updater.php","line":100,"function":"doUpgrade","class":"OC\\Updater","type":"->"},{"file":"/var/www/html/nextcloud/core/Command/Upgrade.php","line":193,"function":"upgrade","class":"OC\\Updater","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php","line":326,"function":"execute","class":"OC\\Core\\Command\\Upgrade","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":1078,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":324,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":175,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Console/Application.php","line":187,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/console.php","line":90,"function":"run","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/occ","line":33,"args":["/var/www/html/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/App/AppManager.php","Line":707,"message":"Could not find path for contacts","exception":{},"CustomMessage":"Could not find path for contacts"}}


conf file


<?php
$CONFIG = array (
  'instanceid' => 'xxxxxx',
  'passwordsalt' => 'xxxxxx',
  'secret' => 'xxxxxxx',
  'trusted_domains' => 
  array (
    0 => 'xxxxxx',
    1 => 'localhost',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'overwrite.cli.url' => 'xxxxxxx',
  'overwriteprotocol' => 'https',
  'htaccess.RewriteBase' => '/nextcloud',
  'appstoreenabled' => true,
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/nextcloud/apps',
      'url' => '/apps',
      'writable' => true,
    ),
  ),
  'dbtype' => 'mysql',
  'version' => '31.0.10.2',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxxxxx',
  'dbpassword' => 'xxxxxxxx',
  'installed' => true,
  'overwritewebroot' => '/nextcloud',
 <removed mail/smtp settings>
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'forcessl' => true,
  'trashbin_retention_obligation' => 'auto, 15',
  'versions_retention_obligation' => 'auto',
  'allow_user_to_change_display_name' => true,
  'log_type' => 'file',
  'logfile' => '/var/log/nextCloud/nextcloud.log',
  'logfilmode' => 416,
  'loglevel' => '2',
  'debug' => false,
  'logdateformat' => 'F d, Y H:i:s',
  'logtimezone' => 'America/New_York',
  'log_query' => false,
  'log_authfailip' => true,
  'log_rotate_size' => 10485760,
  'log.condition' => 
  array (
    'apps' => 
    array (
      0 => 'admin_audit',
    ),
  ),
  'log_type_audit' => 'file',
  'logfile_audit' => '/var/log/nextCloud/audit.log',
  'maintenance_window_start' => 2,
  'auth.bruteforce.protection.enabled' => false,
  'ratelimit.protection.enabled' => false,
  'remember_login_cookie_lifetime' => 1296000,
  'session_lifetime' => 86400,
  'preview_max_x' => NULL,
  'preview_max_y' => NULL,
  'preview_max_scale_factor' => 10,
  'preview_libreoffice_path' => '/usr/bin/libreoffice',
  'preview_office_cl_parameters' => '',
  'enable_avatars' => true,
  'maintenance' => false,
  'default_phone_region' => 'US',
  'theme' => '',
  'app_install_overwrite' => 
  array (
    0 => 'news',
    1 => 'files_rightclick',
  ),
);

Hi,

exactly same situation here. I upgraded from 31.0.10 to 32.0.1 and all my apps are gone. No calendar, contacts, deck, passwords, NextPod, Mail, Memories, Forms are any more available.

Thanks to proxmox and my nextcloud server installed on an dietpi vm, I made a backup before and restored my backup. Otherwise this is a fatal error.

This is a bad situation for any daily used self hosted groupware solution.

Hope that this will be fixed soon. I waited until the release of 32.0.1 and now the result is, that this update cannot be done.

THX,

Stoneubi

I waited until 32.0.1 was release in hopes of avoiding this type of situation.

I should also note that i first tried upgrading from 31.0.9 to 32.0.1 and it also failed the same way. I restored from backup and then upgraded to 31.0.10 thinking somthing with wrong with .9. turned out not to be the case , something is very wrong with 32.0.1 and there is little to no info in the logs what that might be. So this is a repeatable issue for me and i won’t be trying this upgrade until there workaround or fix.,

Same here. Manually reinstalling the apps solved the problem. No data missing after all fortunately.

Learning: Upgrading to a new major NC Version should be delayed until at least X.0.4 to let pass the “extended public Beta” phase…

1 Like

reinstalling apps didn’t work 100% for me. two of the worked but the rest failed with page not found or not rendering properly. so I had to restore prior version

Reinstalling the apps didn’t work for me either (Notes, Passwords and Music).

Contacts, Calendar etc. OK

ETA: Now fixed

  • Disable, Remove, Install, Enable troublesome Apps
  • sudo -u www-data php /var/www/nextcloud/occ maintenance:repair
  • Wait 5 minutes
  • All OK

I also got “page not found” on a couple of apps. Restarting Apache fixed them for me.

I also manually reinstalled the apps which also solved the problem. And I had the same success with my data still being there.

I hope that the problem doesn’t come up when the update from 32.0.1 to 32.0.2 comes.

I had the same issue. What ultimately helped was simply restarting the PHP FPM process. I assume that some old bytecode was still being cached.

Did /var/www/html/nextcloud/apps still contain a calendar subfolder?

You mentioned doing a manual update. Unless you have your apps paths setup to separate shipped apps from apps installed from the app store (you don’t per your config), you’d have to manually only clear out the shipped apps from your app folder (while leaving app store apps in place) every time you do a manual update. Any chance that got overlooked?

yes the calendar app was still under apps along with all the other disabled apps.

as i said earlier i’ve been running this since it was OC. I’ve not had any issues with the apps auto updating after/during NC upgrade. the update to 31.0.9 to 31.0.10 worked just fine. I read the release notes and there was nothing in there about having to change the apps store path. I think that may have been an issue some 4-5 years ago. So i don’t understand your comment.

I just did an upgrade from 31.0.11 to 32.0.2 and all my apps were missing.

if this is suppose to be the new behavior of upgrades then it should have been in the release notes and it is not.

if this is not the intended behavior then i suggest additional testing be added to the release criteria to prevent this type of regression.

It definitely isn’t. :wink:

First of all, I didn’t have this problem, and I think many others didn’t either, and those without these problems are probably in the vast majority. :wink:

Also, this is where one of Nextcloud’s biggest advantages can become a disadvantage: its flexibility. On the one hand, you can install it on almost anything, from single board computers to huge clustered server systems, with different backend services.

And then there are now hundreds of apps in the App Store that could interfere (and if I had to guess, this was probably what caused the issue here).

It’s simply not possible for the developers to test all possible combinations.

It happened for me updating to 32.0.2. Calendar and Tasks apps vanished completely.

My installation is on a shared, hosted cPanel. Installed via Softaculous…probably quite common.

Softaculous enabled me to restore my backup so I am back to 31.0.8