Skip to content

Commit 750d035

Browse files
authored
Merge pull request #14848 from nextcloud/fix/occ-upgrade-misleading-8837
fix(occ): clarify occ upgrade only runs migrations, not code replacement
2 parents c3e729b + dc5062c commit 750d035

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

admin_manual/occ_system.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,21 @@ Command line upgrade
893893
These commands are available after downloading an upgraded package or tarball,
894894
and before completing the upgrade.
895895

896+
.. important::
897+
``occ upgrade`` only runs the **migration phase**: database schema updates and
898+
app upgrades. It does **not** download or replace Nextcloud's code files.
899+
900+
Before running ``occ upgrade`` you must first replace the code using one of:
901+
902+
* The built-in updater: ``sudo -E -u www-data php /var/www/nextcloud/updater/updater.phar``
903+
* A manually extracted tarball (see :doc:`../maintenance/manual_upgrade`)
904+
905+
If ``occ upgrade`` reports *"Nextcloud is up to date"* when you expect an upgrade
906+
to run, the code files have not been replaced yet — run the updater or extract
907+
the new tarball first.
908+
909+
See :doc:`../maintenance/upgrade` for the full upgrade process.
910+
896911
When performing an upgrade, use ``occ upgrade`` instead of the web-based
897912
upgrader to avoid PHP timeout limits (the web interface enforces a 3600-second
898913
limit). On large installations this may not be sufficient, leaving the system

0 commit comments

Comments
 (0)