Hello, my NextCloudPi 1.55.3 instance with Nextcloud 30 went down after performing an apt update
on 12 Apr with several php packages. I had tried the usual tricks of cleaning the opache cache and fixing permission. No luck
This is what logged in dpkg.log
:
2025-04-12 06:38:34 startup archives unpack
2025-04-12 06:38:35 install raspi-firmware:all <none> 1.20220830+ds-1
2025-04-12 06:38:35 status triggers-pending initramfs-tools:all 0.142+deb12u1
2025-04-12 06:38:35 status half-installed raspi-firmware:all 1.20220830+ds-1
2025-04-12 06:38:35 status not-installed raspi-firmware:all <none>
2025-04-12 06:38:35 upgrade libraspberrypi-bin:arm64 0~20220324+gitc4fd1b8-0ubuntu1~22.04.1 1:2+git20231018~131943+3c97f76-1
2025-04-12 06:38:35 status half-configured libraspberrypi-bin:arm64 0~20220324+gitc4fd1b8-0ubuntu1~22.04.1
2025-04-12 06:38:35 status unpacked libraspberrypi-bin:arm64 0~20220324+gitc4fd1b8-0ubuntu1~22.04.1
2025-04-12 06:38:35 status half-installed libraspberrypi-bin:arm64 0~20220324+gitc4fd1b8-0ubuntu1~22.04.1
2025-04-12 06:38:35 status triggers-pending man-db:arm64 2.11.2-2
2025-04-12 06:38:35 status unpacked libraspberrypi-bin:arm64 1:2+git20231018~131943+3c97f76-1
2025-04-12 06:38:35 upgrade libraspberrypi0:arm64 0~20220324+gitc4fd1b8-0ubuntu1~22.04.1 1:2+git20231018~131943+3c97f76-1
2025-04-12 06:38:35 status triggers-pending libc-bin:arm64 2.36-9+deb12u10
2025-04-12 06:38:35 status half-configured libraspberrypi0:arm64 0~20220324+gitc4fd1b8-0ubuntu1~22.04.1
2025-04-12 06:38:35 status unpacked libraspberrypi0:arm64 0~20220324+gitc4fd1b8-0ubuntu1~22.04.1
2025-04-12 06:38:35 status half-installed libraspberrypi0:arm64 0~20220324+gitc4fd1b8-0ubuntu1~22.04.1
2025-04-12 06:38:35 status unpacked libraspberrypi0:arm64 1:2+git20231018~131943+3c97f76-1
2025-04-12 10:06:40 startup archives unpack
2025-04-12 10:06:41 install raspi-firmware:all <none> 1.20220830+ds-1
2025-04-12 10:06:41 status half-installed raspi-firmware:all 1.20220830+ds-1
2025-04-12 10:06:41 status not-installed raspi-firmware:all <none>
2025-04-12 10:06:41 upgrade php8.3-igbinary:arm64 3.2.16-3+0~20241125.52+debian12~1.gbp2adcb2 3.2.16-4+0~20250408.53+debian12~1.gbpef518d
2025-04-12 10:06:41 status half-configured php8.3-igbinary:arm64 3.2.16-3+0~20241125.52+debian12~1.gbp2adcb2
2025-04-12 10:06:41 status unpacked php8.3-igbinary:arm64 3.2.16-3+0~20241125.52+debian12~1.gbp2adcb2
2025-04-12 10:06:41 status half-installed php8.3-igbinary:arm64 3.2.16-3+0~20241125.52+debian12~1.gbp2adcb2
2025-04-12 10:06:41 status unpacked php8.3-igbinary:arm64 3.2.16-4+0~20250408.53+debian12~1.gbpef518d
2025-04-12 10:06:41 upgrade php8.3-redis:arm64 6.1.0-2+0~20241127.62+debian12~1.gbp5ec001 6.2.0-1+0~20250408.63+debian12~1.gbp272b23
2025-04-12 10:06:41 status half-configured php8.3-redis:arm64 6.1.0-2+0~20241127.62+debian12~1.gbp5ec001
2025-04-12 10:06:41 status unpacked php8.3-redis:arm64 6.1.0-2+0~20241127.62+debian12~1.gbp5ec001
2025-04-12 10:06:41 status half-installed php8.3-redis:arm64 6.1.0-2+0~20241127.62+debian12~1.gbp5ec001
2025-04-12 10:06:42 status unpacked php8.3-redis:arm64 6.2.0-1+0~20250408.63+debian12~1.gbp272b23
2025-04-12 10:06:42 upgrade armbian-config:all 25.5.0-trunk.335.0403.191307 25.5.0-trunk.348.0406.220725
2025-04-12 10:06:42 status half-configured armbian-config:all 25.5.0-trunk.335.0403.191307
2025-04-12 10:06:42 status unpacked armbian-config:all 25.5.0-trunk.335.0403.191307
2025-04-12 10:06:42 status half-installed armbian-config:all 25.5.0-trunk.335.0403.191307
2025-04-12 10:06:42 status triggers-pending mailcap:all 3.70+nmu1
2025-04-12 10:06:42 status unpacked armbian-config:all 25.5.0-trunk.348.0406.220725
2025-04-12 10:06:42 upgrade php-common:all 2:95+0~20250309.55+debian12~1.gbp8a282b 2:96+0~20250402.56+debian12~1.gbp84a5b7
2025-04-12 10:06:42 status half-configured php-common:all 2:95+0~20250309.55+debian12~1.gbp8a282b
2025-04-12 10:06:42 status unpacked php-common:all 2:95+0~20250309.55+debian12~1.gbp8a282b
2025-04-12 10:06:42 status half-installed php-common:all 2:95+0~20250309.55+debian12~1.gbp8a282b
2025-04-12 10:06:42 status unpacked php-common:all 2:96+0~20250402.56+debian12~1.gbp84a5b7
2025-04-12 10:06:42 upgrade php8.3:all 8.3.19-1+0~20250313.57+debian12~1.gbpe7e891 8.3.20-1+0~20250411.59+debian12~1.gbpb9c71d
2025-04-12 10:06:42 status half-configured php8.3:all 8.3.19-1+0~20250313.57+debian12~1.gbpe7e891
2025-04-12 10:06:42 status unpacked php8.3:all 8.3.19-1+0~20250313.57+debian12~1.gbpe7e891
2025-04-12 10:06:42 status half-installed php8.3:all 8.3.19-1+0~20250313.57+debian12~1.gbpe7e891
2025-04-12 10:06:42 status unpacked php8.3:all 8.3.20-1+0~20250411.59+debian12~1.gbpb9c71d
I noticed the raspi-firmware
package was failed to install. And following up steps to recover encountered error, too:
$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
debsuryorg-archive-keyring
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
raspi-firmware
Suggested packages:
firmware-brcm80211 firmware-misc-nonfree bluez-firmware
The following NEW packages will be installed:
raspi-firmware
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
Need to get 0 B/4,816 kB of archives.
After this operation, 22.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 51004 files and directories currently installed.)
Preparing to unpack .../raspi-firmware_1.20220830+ds-1_all.deb ...
Unpacking raspi-firmware (1.20220830+ds-1) ...
dpkg: error processing archive /var/cache/apt/archives/raspi-firmware_1.20220830+ds-1_all.deb (--unpack):
trying to overwrite '/etc/kernel/postinst.d/z50-raspi-firmware', which is also in package armbian-bsp-cli-rpi5b-current 24.11.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/raspi-firmware_1.20220830+ds-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
However, it shouldn’t impact php packages from upgrade, right?
Running nc-info
Gathering information...
NextcloudPi version v1.55.3
NextcloudPi image
OS Armbian 25.2.3 bookworm \l . 6.6.63-current-bcm2712 (aarch64)
automount yes
USB devices none
datadir /mnt/ncdata/data
data in SD yes
data filesystem ext2/ext3
data disk usage 237G/908G
rootfs usage 237G/908G
swapfile /dev/zram2
dbdir /var/lib/mysql
Nextcloud check error
HTTPD service up
PHP service up
MariaDB service up
Redis service up
HPB service down
Postfix service up
Internet check ok
Public IPv4 202.117.147.60
Public IPv6 not found
Port 80 closed
Port 443 closed
IP 192.168.199.216
Gateway 192.168.199.1
Interface end0
Certificates none
NAT loopback no
Uptime 17min
Note It’s an internal network instance and I had to use NAT proxy to access. Hence, no public port is expected.
$ php --version
PHP 8.3.19 (cli) (built: Mar 13 2025 17:33:36) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.19, Copyright (c) Zend Technologies
with Zend OPcache v8.3.19, Copyright (c), by Zend Technologies
$ php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
intl
json
ldap
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
random
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
Much appreciate any help to restore its function.