My YunoHost server
Hardware: Raspberry Pi 4 at home
YunoHost version: 11.2.12
I have access to my server : Through SSH & through the webadmin (if needed also direct access via keyboard / screen)
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes
If yes, please explain: I was trying to expand the storage by adding one new SSD. Since I needed to enter maintaince mode, I was asked to have php8.0 (current version is 7. 4.33). I installed it from CLI with sudo apt install php8.0
If your request is related to an app, specify its name and version: Nextcloud v28.0.6~ynh1
Description of my issue
Hi all.
First of all, thanks for Yunohost, that’s such a cool project that helped me a lot into being more confident with self hosting. Keep it up!
I encountered an error while trying to reinstall Nextcloud app in my yunohost server. I previously used several months Nextcloud, having some users in it and something like 80GB of media and other stuff.
I was trying to expand the storage by adding one new SSD. Since I needed to enter maintaince mode, I followed the instructions in the Yunohost docs and I was prompted to an error that basically said that I was required to have php8.0 (current version is 7. 4.33). I installed it from CLI with sudo apt install php8.0
.
If I remember correctly, I may have also removed the php7.4 package with sudo apt remove php7.4
.
After that step, the Nextcloud instance started to not work anymore, thus I decided to reinstall it the Nextcloud app, having all the backups just in case.
When I uninstalled the app, I did not delete all the user data (basically I didn’t tick the option that the interface provides).
Now I’m not able to reinstall the app anymore, because the installation process always fails. At this link you can find the logs for that failed installation process.
This lines seem to be pretty informative about the situation
...
2024-05-29 23:04:45,414: DEBUG - + sudo -u nextcloud php8.2 --define apc.enable_cli=1 occ --no-interaction --no-ansi maintenance:install --database mysql --database-name nextcloud --database-user nextcloud --database-pass 9b0ee0336d340ca8c630345d --admin-user admin --admin-pass ********** --data-dir /home/yunohost.app/nextcloud/data
2024-05-29 23:04:47,041: DEBUG - Username is invalid because files already exist for this user
2024-05-29 23:04:47,074: DEBUG - + ynh_die '--message=Unable to install nextcloud'
2024-05-29 23:04:47,122: DEBUG - + ynh_exit_properly
2024-05-29 23:04:47,123: DEBUG - + [[ install =~ ^install$|^upgrade$|^restore$ ]]
2024-05-29 23:04:47,123: WARNING - Unable to install nextcloud
2024-05-29 23:04:48,632: ERROR - Unable to install nextcloud: An error occurred inside the app installation script
and I cannot understand how to overcome the issue.
What suggestions do you have? How can I deal with it?
Thanks to you all!