Open moboter opened 2 years ago
The occ-upgrade command executes the update, once the code of Nextcloud is updated. So it is performing the database table-updates and so on. If occ sees that the version of the code and the version of your database are similar, there is no update.
The updater app is more what you expect from an updater routine, it really checks online if there is a new version online, it gets the code, ...., and finally executes the occ upgrade.
What would you expect from a user point of view? We can add some information in the documentation, in this case it seems more reasonable to improve the output message (Nextcloud is already latest version
) of occ upgrade
:
https://github.com/nextcloud/server/blob/1164c762eb2c120ca0d2d8da83dfe9f925ed652f/core/Command/Upgrade.php#L248
Something like:
No pending update for this setup. Current version 23.0.4. Check updater app for newer versions.
Better ideas?
Possibly something like No pending update for this setup. Current version 23.0.4. Would you like to run the Updater App Yes/No
Am 2022-07-03 19:34, schrieb tflidd:
The occ-upgrade command executes the update, once the code of Nextcloud is updated. So it is performing the database table-updates and so on. If occ sees that the version of the code and the version of your database are similar, there is no update.
The updater app is more what you expect from an updater routine, it really checks online if there is a new version online, it gets the code, ...., and finally executes the occ upgrade.
What would you expect from a user point of view? We can add some information in the documentation, in this case it seems more reasonable to improve the output message (Nextcloud is already latest version) of occ upgrade: https://github.com/nextcloud/server/blob/1164c762eb2c120ca0d2d8da83dfe9f925ed652f/core/Command/Upgrade.php#L248
Something like:
No pending update for this setup. Current version 23.0.4. Check updater app for newer versions.
Better ideas?
-- Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. You are receiving this because you authored the thread.Message ID: @.***>
Links:
[1] https://github.com/nextcloud/documentation/issues/8837#issuecomment-1173141658 [2] https://github.com/notifications/unsubscribe-auth/AU3AQEXFJF3JS6JCZCL3K4TVSHFKXANCNFSM52JOPZKQ
Following the guide https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#command-line-upgrade running this
I guess we can add a link to https://docs.nextcloud.com/server/latest/admin_manual/maintenance/upgrade.html to the occ upgrade command description.
Following the guide https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#command-line-upgrade running this $ sudo -u www-data php ./occ upgrade Nextcloud or one of the apps require upgrade - only a limited number of commands are available You may use your browser or the occ upgrade command to do the upgrade tells me nextcloud is up to date However the webinterface tells me there is an update availabe Running this command
sudo -u www-data php updater/updater.phar resolves the issue) https://help.nextcloud.com/t/update-wird-uber-webupdater-angeboten-aber-nicht-uber-shell/141497