[Solved] Update fails since NextcloudPi v1.25

Hi Everyone,

any idea why I am not able to update my NextcloudPI? Thanks a lot.

Nextcloud version: 18.0.3.0
Operating system and version: NextcloudPi v1.25.0 (RaspberryPi OS via Berryboot)
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):

The issue you are facing:
Tried updating to NCP V1.31. Fails via GUI and CLI

Is this the first time you’ve seen this error? No

Steps to replicate it:

  1. Via GUI
  2. Via CLI

The output of your Nextcloud log in Admin > Logging:

NextCloudPi v1.25.0 is outdated
update to v1.31.0 through ‘ncp-config’ or type ‘sudo ncp-update’
Last login: Sat Nov 7 10:37:30 2020 from 192.168.1.47
pi@nextcloudpi:~ $ sudo ncp-update
Downloading updates
Performing updates
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Reading package lists… Done
Reading package lists… Done
Building dependency tree
Reading state information… Done
exfat-fuse is already the newest version (1.3.0-1).
exfat-utils is already the newest version (1.3.0-1).
file is already the newest version (1:5.35-4+deb10u1).
haveged is already the newest version (1.9.1-7).
lsb-release is already the newest version (10.2019051400+rpi1).
php-smbclient is already the newest version (0.9.0-3+b1).
php7.3-gmp is already the newest version (7.3.19-1~deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 166 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up dphys-swapfile (20100506-5+rpt1) …
Job for dphys-swapfile.service failed because the control process exited with error code.
See “systemctl status dphys-swapfile.service” and “journalctl -xe” for details.
invoke-rc.d: initscript dphys-swapfile, action “restart” failed.
● dphys-swapfile.service - dphys-swapfile - set up, mount/unmount, and delete a swap file
Loaded: loaded (/lib/systemd/system/dphys-swapfile.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2020-11-07 20:05:57 GMT; 22ms ago
Docs: man:dphys-swapfile(8)
Process: 12109 ExecStart=/sbin/dphys-swapfile setup (code=exited, status=0/SUCCESS)
Process: 12132 ExecStart=/sbin/dphys-swapfile swapon (code=exited, status=255/EXCEPTION)
Main PID: 12132 (code=exited, status=255/EXCEPTION)

Nov 07 20:05:57 nextcloudpi systemd[1]: Starting dphys-swapfile - set up, mount/unmount, and delete a swap file…
Nov 07 20:05:57 nextcloudpi dphys-swapfile[12109]: want /var/swap=100MByte, checking existing: keeping it
Nov 07 20:05:57 nextcloudpi dphys-swapfile[12132]: swapon: /var/swap: swapon failed: Invalid argument
Nov 07 20:05:57 nextcloudpi systemd[1]: dphys-swapfile.service: Main process exited, code=exited, status=255/EXCEPTION
Nov 07 20:05:57 nextcloudpi systemd[1]: dphys-swapfile.service: Failed with result ‘exit-code’.
Nov 07 20:05:57 nextcloudpi systemd[1]: Failed to start dphys-swapfile - set up, mount/unmount, and delete a swap file.
dpkg: error processing package dphys-swapfile (–configure):
installed dphys-swapfile package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
dphys-swapfile
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@nextcloudpi:~ $

Ok. it was the SWAP file. I deactivated it. Working now. Thx!