Upgrading from Nextcloud 20 to 21

After the upgrade, these are messages that were presented post-upgrade:

To fix the issues, I entered a terminal session and tried to execute the command below:

[email protected]:/usr/local/www/nextcloud/config # su -m www -c 'php /usr/local/www/nextcloud/occ config:system:set default_phone_region --value="AU"'
An unhandled exception has been thrown:
OC\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)

Oops! What’s going on here?! The fix is in this thread [SOLVED] Apcu Caching gives Error. It required config.php to be manually edited:

[email protected]:/usr/local/www/nextcloud/config # ee config.php

…and the following line:

'memcache.local' => '\OC\Memcache\APCu',

changed to…

'memcache.local' => '\OC\Memcache\Redis',

Once that’s done occ runs successfully.

[email protected]:~ # su -m www -c 'php /usr/local/www/nextcloud/occ maintenance:mode --on'
Maintenance mode enabled
[email protected]:~ # su -m www -c 'php /usr/local/www/nextcloud/occ config:system:set default_phone_region --value="AU"'
Nextcloud is in maintenance mode - no apps have been loaded

System config value default_phone_region set to string AU

[email protected]:~ # su -m www -c 'php /usr/local/www/nextcloud/occ db:add-missing-indices'
Nextcloud is in maintenance mode - no apps have been loaded

Check indices of the share table.
Check indices of the filecache table.
Adding additional size index to the filecache table, this can take some timeā€¦
Filecache table updated successfully.
Check indices of the twofactor_providers table.
Check indices of the login_flow_v2 table.
Check indices of the whats_new table.
Check indices of the cards table.
Check indices of the cards_properties table.
Check indices of the calendarobjects_props table.
Check indices of the schedulingobjects table.
Check indices of the oc_properties table.
[email protected]:~ # su -m www -c 'php /usr/local/www/nextcloud/occ maintenance:mode --off'
Maintenance mode disabled

Refreshing the admin screen, all warnings have disappeared.

Keep Reading

Previous

2 thoughts on “Upgrading from Nextcloud 20 to 21

  1. Did the exact same thing but now Nextcloud web interface is unreachable with tis error below:

    Internal Server Error

    The server encountered an internal error and was unable to complete your request.
    Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
    More details can be found in the server log.

Leave a Reply