Unable to reinstall nextcloud

What type of hardware are you using: Other ARM board
What YunoHost version are you running: 12
How are you able to access your server: The webadmin

Describe your issue

i just migrated to ynh 12.

it went ok but something broke with php7.3-fpm (i’ll try to find the logs and share here). since then i have been trying to update, or reinstall, or restore from backup, or uninstall, my nextcloud, but none of the actions will work.

i’m at the point where i’m happy to just install a new nextcloud and start over (all data was synced to laptops/none lost).

but i can’t do so, due to the remnants of the old/broken install.

do i have to remove the data filepath for it to work? (/home/yunohost.app/nextcloud/data). or do i perhaps have to remove the database file also?

Share relevant logs or error messages

failed nextcloud install: https://paste.yunohost.org/raw/ejagojecek

apt could not complete installation php7.3-fpm, the service would not run.

Setting up php7.3-fpm (7.3.33-25+0~20250707.133+debian12~1.gbp70fb14) ...
Job for php7.3-fpm.service failed because the control process exited with error code.
See "systemctl status php7.3-fpm.service" and "journalctl -xeu php7.3-fpm.service" for details.
invoke-rc.d: initscript php7.3-fpm, action "start" failed.
● php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager
     Loaded: loaded (/lib/systemd/system/php7.3-fpm.service; enabled; preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Sat 2025-08-23 15:32:18 CEST; 40ms ago
       Docs: man:php-fpm7.3(8)
    Process: 205335 ExecStart=/usr/sbin/php-fpm7.3 --nodaemonize --fpm-config /etc/php/7.3/fpm/php-fpm.conf (code=ex
ited, status=78)
    Process: 205336 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/7.3/fpm/po
ol.d/www.conf 73 (code=exited, status=0/SUCCESS)
   Main PID: 205335 (code=exited, status=78)
        CPU: 106ms

unfortunately the migration logs do not appear in under logs in the webadmin, perhaps there are too many newer logs since then.

but basically, php and mysql were broken after the migration.

is it possible to reinstall nextcloud and either connect to the existing db/data, or, if it come to that, ignore them?

i’m currently unable to either install or remove nextcloud.

when i first tried to upgrade nextcloud after the migration, i got an error about upgrading nextcloud apps:

https://paste.yunohost.org/raw/goyoxebavu

but the issue is that after migration, nextcloud wasn’t in a working state (internal server error), and i didn’t know i needed to update nextcloud apps before migrating…

the failed backup restore log: https://paste.yunohost.org/raw/hokebiwiko

but i think my php/mysql was already well broken by this point…

is long dead.

just move it elsewhere because Login is invalid because files already exist for this user

Upgrade also failed because he following apps are not (yet?) compatible with Nextcloud 31. You should make sure to upgrade the app, or disable it, or wait for it to become compatible before running this upgrade : bruteforcesettings

Restore won’t work because of php7.3.

You should have upgraded your apps before running the migration and it’s really dangerous to keep running very outdared software. Nextcloud 22 > 31 is a huge gap.

i could not upgrade my app before running the migration, it would tell me to run the migration first.

i know the nextcloud was old, i avoided upgrading it because every time i upgrade everything breaks and the nextcloud release schedule is far too fast for me.

moving the data out of the way worked.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.