Skip to content

Commit dc5062c

Browse files
skjnldsvclaude
andcommitted
fix(occ): clarify occ upgrade only runs migrations, not code replacement
Add important notice to the "Command line upgrade" section explaining that occ upgrade handles database migrations and app upgrades only — it does not download or replace code files. Users must run updater.phar or extract a tarball first. Also explains the "Nextcloud is up to date" false negative that occurs when occ upgrade is run before code files have been replaced. Fixes #8837 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
1 parent c3e729b commit dc5062c

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)