Ncp-update-nextcloud fails with free space check

Dear fellow Forum Readers,
i just updated mit ncp to 1.49.0 and then wanted to upgrade nc to 24.
But when i try usind ncp-config / nco-update-nextcloud i get the following:

Running nc-update-nextcloud
Current   Nextcloud version 23.0.2.1
Available Nextcloud version 24.0.3
Download Nextcloud 24.0.3...
Back up current instance...
check free space...
free space check failed. Need 1201322625 Bytes
Maintenance mode already disabled
Error backing up
Clean up...
Done. Press any key...

But there is plenty of space left:

user@nextcloudpi:~$ df -h
Dateisystem                   Größe Benutzt Verf. Verw% Eingehängt auf
udev                           2,9G       0  2,9G    0% /dev
tmpfs                          595M    2,1M  593M    1% /run
/dev/mapper/foxcloud--vg-root  9,3G    1,8G  7,1G   20% /
tmpfs                          3,0G       0  3,0G    0% /dev/shm
tmpfs                          5,0M       0  5,0M    0% /run/lock
/dev/mapper/foxcloud--vg-home   35G     76K   33G    1% /home
/dev/sdb1                      470M     87M  359M   20% /boot
/dev/mapper/foxcloud--vg-tmp   652M     64K  605M    1% /tmp
/dev/mapper/foxcloud--vg-var   3,4G    2,3G  985M   70% /var
/dev/sda1                      1,5T    938G  464G   67% /media/data
tmpfs                          595M       0  595M    0% /run/user/1000

Did i miss something or is the check gone wrong?

Thanks in advance for any hint!

Hmm … I don’t know but Nextcloud is usually installed under /var/www/nextcloud, which looks to me is the volume you have with 2,3Gb used of 3,4Gb total? (Sorry if I’m reading that wrong, I don’t know German :pray:)

If that volume is the one holding the /var/www directory, then that might explain why it complains about not enough space, but I don’t know for sure, is the /var/www directory located there?

Hey ZendaiOwl,
you are right, seems that my /var/ is to small, seems that it was big enough before.
I’ll check that an report back!
Thank you very much!

1 Like

Maybe there are old backups. On normal Nextcloud (sorry i do not use NCP) you find the upgrade backups at /var/www/nextcloud/data/updater-***/backups . Maybe you can delete them.

I am not a friend of different partitions e.g. /home and /var. That makes mostly no sense on private systems.

Thanks for the hint.
After cleaning /var the update worked.
The ncp script did out the backup to the ncp data dir on another disk, so there where no old backups.
but i found a swap file i was not aware of an moved it.

Thanks guys!

2 Likes