What app is this about, and its version: Nextcloud, v31.x
What YunoHost version are you running: 12.1.39
What type of hardware are you using: Old laptop or computer
MariaDB: 10.11.14
Describe your issue
Hi, I had an issue when trying to upgrade Nextcloud from 31 to 32; I ended up with Nextcloud uninstalled except for /home/yunohost.app/nextcloud/data which seems intact.
(This post was drafted by Claude, please forgive any nonhumanisms
)
The upgrade failed due to incompatible NC apps (that’s fine), then the automatic backup restore failed with:
ERROR 1180 (HY000) at line 324814: Got error 1 “Operation not permitted” during COMMIT
The error always occurs at the same line - an INSERT into oc_reactions table (2 rows with emoji reactions).
What I checked:
- Disk space: plenty available (12% used on /)
- AppArmor: not active (aa-status | grep mysql returns empty)
- MySQL write permissions: sudo -u mysql touch /var/lib/mysql/test_write works
- MySQL error log: empty
- innodb_force_recovery: 0
- Test DB creation/insert/drop: works fine
- SELinux: not installed
What I tried:
yunohost backup restore nextcloud-pre-upgrade1 --apps nextcloud→ same error- Manual import:
mysql nextcloud < db.sql→ same error at same line - Split SQL file to skip the problematic INSERT → works until next table, then encoding errors (separate issue, Latin1 chars in UTF8 dump)
- Import with
--default-character-set=latin1→ same error
Any ideas?
Share relevant logs or error messages
- Backup (success): https://paste.yunohost.org/raw/xuxegapixi
- Upgrade (failure): https://paste.yunohost.org/raw/xukorawogo
- Remove (success): hastebin
- Restore (failure): https://paste.yunohost.org/raw/ewaxutajuy