Nextcloud - Upgrade from 29 to 30 in error and backup too

What type of hardware are you using: Virtual machine
What YunoHost version are you running: 12.0.9.1
What app is this about: Nextcloud

Describe your issue

I was doing my updates, as every other days, when the upgrade of Nextcloud, from 29 to 30 crashed.

Logs talks about an error from the database dump.
ERROR 1180 (HY000) at line 265744: Got error 1 "Operation not permitted" during COMMIT

It came at the update, and ever since, on backup restoration.
Another error pop-up when I try to make a fresh install (Which make sense, since I did not manually et properly uninstalled the app first.) :
2025-01-13 22:31:45,357: DEBUG - + sudo -u nextcloud env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi maintenance:install --database mysql --database-name nextcloud --database-user nextcloud --database-pass ********** --admin-user admin --admin-pass ********** --data-dir /home/yunohost.app/nextcloud/data
2025-01-13 22:31:48,193: DEBUG - Login is invalid because files already exist for this user

As of now, I still have access to my users hard data (on the HOME folder), but every other datas, such as Password app data or Carnet should be stored in the Database…

I usually find my way through problems, but not today. Hope someone can help me solve this one.

Share relevant logs or error messages

Update : https://paste.yunohost.org/raw/osahirolam
Backup restoration : https://paste.yunohost.org/raw/ubozunimad
Fresh install : https://paste.yunohost.org/raw/ecexulabun

Hi Yohmm, welcome to the forums!

2025-01-02 23:15:04,507: WARNING - PHP Notice:  fwrite(): Write of 338 bytes failed with errno=28 No space left on device in /var/www/nextcloud/lib/private/Log/File.php on line 87
2025-01-02 23:15:04,514: DEBUG - 
2025-01-02 23:15:04,514: WARNING - In Config.php line 311:
2025-01-02 23:15:04,522: DEBUG - 
2025-01-02 23:15:04,522: WARNING -   /var/www/nextcloud/config/ does not have enough space for writing the confi
2025-01-02 23:15:04,528: WARNING -   g file! Not writing it back!
2025-01-02 23:15:04,534: DEBUG - 
2025-01-02 23:15:04,535: DEBUG - 
2025-01-02 23:15:04,535: WARNING - maintenance:mode [--on] [--off]
2025-01-02 23:15:04,541: DEBUG - 
2025-01-02 23:15:04,541: WARNING - PHP Notice:  fwrite(): Write of 336 bytes failed with errno=28 No space left on device in /var/www/nextcloud/lib/private/Log/File.php on line 87
2025-01-02 23:15:04,548: DEBUG - + ynh_exit_properly

So you should be somewhat OK with looking around? Could you have a look how much space is available on your system?

(When pasting code, try enclosing the block in three backticks ` to have it formatted)

Thanks for the backtick advice.

Unfortunately, ever since the update failed, my /var/www/nextcloud folder does not exist anymore. Only a backup folder (wich I will copy on another disk).

sudo df /var/www -h
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
/dev/sda6 15G 13G 1,4G 91% /

sudo du -h --max-depth=1
77M /var/www/wetty
55M /var/www/aeneria
417M /var/www/calibreweb
4,0K /var/www/firefly-iii
4,0K /var/www/shellinabox
1,1M /var/www/spftoolbox
90M /var/www/vaultwarden
152K /var/www/.well-known
8,0K /var/www/html
688M /var/www/nextcloud__tmp_upgrade
1,3G /var/www

I am going to adress the free space available problem first, and see if the backup can be brought back, but I somehow doubt it (not the free space error when trying to restore the backup).

Well, it took me a while, but indeed, giving more space to the primary partition made it…

Thanks for your assist.

(I feel a bit clumsy at this so simple solution.)

1 Like

Nice to read you got it solved!

Don’t be :wink: It… wasn’t the first and probably won’t be the last time someone runs into this problem (don’t ask me how I know).

Off-topic: I see calibreweb in your list, are you happy with it? Is your complete library on this disk, or is it only cache/db/thumbnails with the books elsewhere?

I mostly use it as a database and sharing base (to get my books on my reader whenever I need it).

It is a bit of a hassle to add multiple books on it, and it often don’t send metadata correctly to my reader.

It still is a nice app to have and use.

I don’t particularly use the webreader fonction though.

And thanks again for your help.

1 Like

Thanks for your insight :slight_smile:

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