Open oleole39 opened 1 year ago
I think I got this error too :
- 2024-06-06 13:58:49,274: DEBUG - ++ ynh_app_setting get nextcloud phpversion
- 2024-06-06 13:58:49,275: DEBUG - ++ set +o xtrace
- 2024-06-06 13:58:49,415: DEBUG - + phpversion=8.2
- 2024-06-06 13:58:49,415: DEBUG - + [[ 8.2 != \8\.\2 ]]
- 2024-06-06 13:58:49,416: DEBUG - + cd /var/www/nextcloud
- 2024-06-06 13:58:49,417: DEBUG - ++ filter_boring_occ_warnings
- 2024-06-06 13:58:49,418: DEBUG - + ynh_exec_as nextcloud php8.2 --define apc.enable_cli=1 occ --no-interaction --no-ansi app:enable mail
- 2024-06-06 13:58:49,418: DEBUG - ++ sed -E 's@\s*([0-9]+\/[0-9]+\s+\[(-|>|=)+\]\s+[0-9]+%|\s*Starting ...|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)@@g'
- 2024-06-06 13:58:49,418: DEBUG - + local user=nextcloud
- 2024-06-06 13:58:49,419: DEBUG - + shift 1
- 2024-06-06 13:58:49,419: DEBUG - ++ whoami
- 2024-06-06 13:58:49,421: DEBUG - + [[ nextcloud = root ]]
- 2024-06-06 13:58:49,421: DEBUG - + sudo -u nextcloud php8.2 --define apc.enable_cli=1 occ --no-interaction --no-ansi app:enable mail
- 2024-06-06 13:58:50,385: DEBUG - App "Mail" cannot be installed because the following dependencies are not fulfilled: PHP with a version lower than 8.1 is required.
- 2024-06-06 13:58:50,410: DEBUG - + ynh_exit_properly
in the webUI I got another message :
File /var/www/nextcloud/config/config.php has been manually modified since the installation or last upgrade. So it has been duplicated in [snip]
Removing the application and trying another upgrade. (Does any know if disabling the application is enough in this case ? )
Removing the application and trying another upgrade. (Does any know if disabling the application is enough in this case ? )
At the time it worked, as noted in my message above. What about you?
Yes it worked : disabled, removed, upgrade, reinstalled (and config persisted so worked out of the box!)
Describe the bug
Nextcloud upgrade fails when activated Nextcloud Mail app (or any other app?) is not compatible with the new Nextcloud version, without providing an explicit warning to the YNH admin.
Context
I had the case detailed on that topic of YNH forum, using a VPS hosting YNH 11.2.3, updating from Nextcloud 26.0.2\~ynh3 to Nextcloud 27.0.1\~ynh1. Reading the relatively old issue #372, I wonder whether this is I wonder whether this is only specific to Mail app.
Steps to reproduce
DEBUG - App "Mail" cannot be installed because it is not compatible with this version of the server
.Expected behavior
I can think of 4 main approaches:
ynh_print_warn()
) about the issue in the log.I guess having a configuration option to allow choosing between 3 or 4 would be the ideal way, but I assume that would be more work than 1 or 2.
Regarding the app compatiblity check, below are a few resources:
Logs
https://paste.yunohost.org/raw/uvaziwofij