nextcloudpi
nextcloudpi copied to clipboard
nc-update is failing to update
The 'nc-update' process seem to be broken. Updater can't read shadow file, can't create user, and fails to install rpcbind. This is happening in a freshly deployed container with a new volume. Tested with containers 1.46.9 and 1.47.1. Today I see there's an update to 1.47.2, but cannot update.
Main difference for me is that I'm using podman and not docker. I can't imagine that should be the cause of this problem though, the shadow file is a symlink from /etc/shadow to /data/etc/shadow, which is getting permission denied during the install.
FYI - this is my first issue submission ever, don't beat me up too bad if I didn't provide the right info! :)
System information:
OS: AlmaLinux 8.5
podman version: 3.4.2
podman-composer version 1.0.3
Running as rootless container
SELinux: enabled and enforcing
Error snippet:
Setting up rpcbind (1.2.5-9) ...
useradd: cannot open /etc/shadow
adduser: `/usr/sbin/useradd -d /run/rpcbind -g nogroup -s /usr/sbin/nologin -u 105 _rpc' returned error code 1. Exiting.
dpkg: error processing package rpcbind (--configure):
installed rpcbind package post-installation script subprocess returned error exit status 1
Nextcloud Instance Info:
NextCloudPi version | v1.47.1
-- | --
NextCloudPi image | NextCloudPi_docker_03-01-22
OS | Debian GNU/Linux 11. 4.18.0-348.23.1.el8_5.x86_64 (x86_64)
automount | no
USB devices | none
datadir | /data/nextcloud/data
data in SD | yes
data filesystem | xfs
data disk usage | 4.7G/91G
rootfs usage | 4.7G/91G
swapfile | /dev/dm-1
dbdir | /data/database
Nextcloud check | ok
Nextcloud version | 24.0.0.12
HTTPD service | up
PHP service | up
MariaDB service | up
Redis service | up
HPB service | up
Postfix service | up
internet check | no
port check 80 | closed *** continer port 80 is bound to host port 10080 ***
port check 443 | closed *** container port 443 is bound to host port 10443 ***
IP | 10.89.0.2
gateway | 10.89.0.1
interface | eth0
certificates | none
NAT loopback | no
uptime | 19:57
Container inspect
$ podman container inspect nextcloudpi
[
{
"Id": "f2048cffee02d25b61d83e7062d91c8d30d6570a33c23f92ee941ffdae055402",
"Created": "2022-05-12T15:04:53.197300469-06:00",
"Path": "/run-parts.sh",
"Args": [
"nextpod.***removed***.tld"
],
"State": {
"OciVersion": "1.0.2-dev",
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 148605,
"ConmonPid": 148593,
"ExitCode": 0,
"Error": "",
"StartedAt": "2022-05-12T15:04:53.871815995-06:00",
"FinishedAt": "0001-01-01T00:00:00Z",
"Healthcheck": {
"Status": "",
"FailingStreak": 0,
"Log": null
}
},
"Image": "aa1f120b1e92e66b38a51bd3eb541e5c93c93f413b796c72cbd8ebc9d224341c",
"ImageName": "docker.io/ownyourbits/nextcloudpi:v1.47.1",
"Rootfs": "",
"Pod": "",
"ResolvConfPath": "/run/user/1000/containers/overlay-containers/f2048cffee02d25b61d83e7062d91c8d30d6570a33c23f92ee941ffdae055402/userdata/resolv.conf",
"HostnamePath": "/run/user/1000/containers/overlay-containers/f2048cffee02d25b61d83e7062d91c8d30d6570a33c23f92ee941ffdae055402/userdata/hostname",
"HostsPath": "/run/user/1000/containers/overlay-containers/f2048cffee02d25b61d83e7062d91c8d30d6570a33c23f92ee941ffdae055402/userdata/hosts",
"StaticDir": "/home/nextpod/.local/share/containers/storage/overlay-containers/f2048cffee02d25b61d83e7062d91c8d30d6570a33c23f92ee941ffdae055402/userdata",
"OCIConfigPath": "/home/nextpod/.local/share/containers/storage/overlay-containers/f2048cffee02d25b61d83e7062d91c8d30d6570a33c23f92ee941ffdae055402/userdata/config.json",
"OCIRuntime": "runc",
"ConmonPidFile": "/run/user/1000/containers/overlay-containers/f2048cffee02d25b61d83e7062d91c8d30d6570a33c23f92ee941ffdae055402/userdata/conmon.pid",
"PidFile": "/run/user/1000/containers/overlay-containers/f2048cffee02d25b61d83e7062d91c8d30d6570a33c23f92ee941ffdae055402/userdata/pidfile",
"Name": "nextcloudpi",
"RestartCount": 0,
"Driver": "overlay",
"MountLabel": "system_u:object_r:container_file_t:s0:c433,c857",
"ProcessLabel": "system_u:system_r:container_t:s0:c433,c857",
"AppArmorProfile": "",
"EffectiveCaps": [
"CAP_CHOWN",
"CAP_DAC_OVERRIDE",
"CAP_FOWNER",
"CAP_FSETID",
"CAP_KILL",
"CAP_NET_BIND_SERVICE",
"CAP_NET_RAW",
"CAP_SETFCAP",
"CAP_SETGID",
"CAP_SETPCAP",
"CAP_SETUID",
"CAP_SYS_CHROOT"
],
"BoundingCaps": [
"CAP_CHOWN",
"CAP_DAC_OVERRIDE",
"CAP_FOWNER",
"CAP_FSETID",
"CAP_KILL",
"CAP_NET_BIND_SERVICE",
"CAP_NET_RAW",
"CAP_SETFCAP",
"CAP_SETGID",
"CAP_SETPCAP",
"CAP_SETUID",
"CAP_SYS_CHROOT"
],
"ExecIDs": [],
"GraphDriver": {
"Name": "overlay",
"Data": {
"LowerDir": "/home/nextpod/.local/share/containers/storage/overlay/cf69fc7ea9ea5ce836b0f5eefc45b860b54f9c7fd15ea0c44d195b11398056a5/diff:/home/nextpod/.local/share/containers/storage/overlay/81b93b048f653a7a337be5e7a6ec7f69a99faeb1a40740cecb9a8950d749a749/diff:/home/nextpod/.local/share/containers/storage/overlay/06d1ad71b9d999683ebc1321d264be9edcbbbde5a2c8b8de49d72a82cd6606f6/diff:/home/nextpod/.local/share/containers/storage/overlay/1d5052923ca0de16484b00628456e1d782cf756e4f0c0905b3f73bac63d060b9/diff:/home/nextpod/.local/share/containers/storage/overlay/a66143c0fa225434a9153ff720d4ab1e581b5ae6ad972207e3eb721fa04e9588/diff:/home/nextpod/.local/share/containers/storage/overlay/105c044779f8002f3571df0e9337dbad0a0d501a29e4760a352da4732950ac1f/diff:/home/nextpod/.local/share/containers/storage/overlay/738b35dfaed17e0d80039ef1c2700155ea6aca17ea232cbc28c3a471970e0963/diff:/home/nextpod/.local/share/containers/storage/overlay/0b88fac4d31326066d03fc8b46f5a946a0e9f470b2f147251dc0d9ba26cae298/diff:/home/nextpod/.local/share/containers/storage/overlay/2ce67683ff16ef615ccd950b212b5d498dbac8e0e23dd2135bd1e46b5cb16412/diff:/home/nextpod/.local/share/containers/storage/overlay/60901d5c84cc8508914232b41663b37dd8660e66f3cf6096f20870440b500e7c/diff:/home/nextpod/.local/share/containers/storage/overlay/4263899cbc7077e706a1ba870b8f7150def717d66a38f328cef6a1250688c89c/diff:/home/nextpod/.local/share/containers/storage/overlay/6a44c85631aabcdcbb87d89bce11f4387839905b8f660d91b0a69dae0af1942b/diff:/home/nextpod/.local/share/containers/storage/overlay/3e46779fae8d02be2071a946579c562d02c4111b239f2fa0ba84d4dd38700031/diff:/home/nextpod/.local/share/containers/storage/overlay/400e4618694be1d8e42e22b1f16729c47f131d1247c395ea74b06b1d37a7f477/diff:/home/nextpod/.local/share/containers/storage/overlay/ab111b3819c36df77379cd1ba309c189d41095dc7c7335b637e0a8794b14e640/diff:/home/nextpod/.local/share/containers/storage/overlay/be61b46f901d076f130659a0e3b3131423482ac06e49e8b1a3c2a5f124efb5b1/diff:/home/nextpod/.local/share/containers/storage/overlay/54a2e41924b060a9a8e5fa441b09d95a49422286725343a837ee87243b2ee2e2/diff:/home/nextpod/.local/share/containers/storage/overlay/24e500e62b7ab837eeca9e8366c103790e2c6b64270724ca4cfedb4360d43273/diff:/home/nextpod/.local/share/containers/storage/overlay/9b077bf173926d8b609f84dc8b16c9277c05b72357402c4979fd74da6ab3f5da/diff:/home/nextpod/.local/share/containers/storage/overlay/c6e112e83a3353d039e5a81d1050b1b6bceb989fe57881dc44e7df4439ef8942/diff:/home/nextpod/.local/share/containers/storage/overlay/b6b72b1278e7631052a87db35b6f1b8d731fffc418872aa39d5702cd00eafed9/diff:/home/nextpod/.local/share/containers/storage/overlay/ee227c4a4f3960fd028ea65dfb6c36da6a1b36edfa189708acdb46b24ca325a1/diff:/home/nextpod/.local/share/containers/storage/overlay/a2d0490d9da0f555be09ba2ba6c2a7bd3ad9844090f64cc5a1cdcc5f57954430/diff:/home/nextpod/.local/share/containers/storage/overlay/9daca82995d97de0844cd4c4628f04c3ce14d06fa8335d88d0b649d574a43f4a/diff:/home/nextpod/.local/share/containers/storage/overlay/1401df2b50d5de5a743b7bac3238ef3b7ce905ae39f54707b0ebb8eda3ab10bc/diff",
"MergedDir": "/home/nextpod/.local/share/containers/storage/overlay/eff67f733a237d2f686448c8f798e49bc82f49f0461e637bfef3340c50e39bcb/merged",
"UpperDir": "/home/nextpod/.local/share/containers/storage/overlay/eff67f733a237d2f686448c8f798e49bc82f49f0461e637bfef3340c50e39bcb/diff",
"WorkDir": "/home/nextpod/.local/share/containers/storage/overlay/eff67f733a237d2f686448c8f798e49bc82f49f0461e637bfef3340c50e39bcb/work"
}
},
"Mounts": [
{
"Type": "volume",
"Name": "nextpod_ncp_data",
"Source": "/home/nextpod/.local/share/containers/storage/volumes/nextpod_ncp_data/_data",
"Destination": "/data",
"Driver": "local",
"Mode": "Z",
"Options": [
"nosuid",
"nodev",
"rbind"
],
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/usr/share/zoneinfo/***removed***",
"Destination": "/etc/localtime",
"Driver": "",
"Mode": "",
"Options": [
"rbind"
],
"RW": false,
"Propagation": "rprivate"
}
],
"Dependencies": [],
"NetworkSettings": {
"EndpointID": "",
"Gateway": "",
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "",
"Bridge": "",
"SandboxID": "",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {
"443/tcp": [
{
"HostIp": "",
"HostPort": "10443"
}
],
"4443/tcp": [
{
"HostIp": "",
"HostPort": "4443"
}
],
"80/tcp": [
{
"HostIp": "",
"HostPort": "10080"
}
]
},
"SandboxKey": "/run/user/1000/netns/cni-7af42730-4337-9636-2f8d-6984988193be",
"Networks": {
"nextpod_default": {
"EndpointID": "",
"Gateway": "10.89.0.1",
"IPAddress": "10.89.0.2",
"IPPrefixLen": 24,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "6e:ae:eb:dc:54:d3",
"NetworkID": "nextpod_default",
"DriverOpts": null,
"IPAMConfig": null,
"Links": null,
"Aliases": [
"nextcloudpi"
]
}
}
},
"ExitCommand": [
"/usr/bin/podman",
"--root",
"/home/nextpod/.local/share/containers/storage",
"--runroot",
"/run/user/1000/containers",
"--log-level",
"warning",
"--cgroup-manager",
"cgroupfs",
"--tmpdir",
"/run/user/1000/libpod/tmp",
"--runtime",
"runc",
"--storage-driver",
"overlay",
"--events-backend",
"file",
"container",
"cleanup",
"f2048cffee02d25b61d83e7062d91c8d30d6570a33c23f92ee941ffdae055402"
],
"Namespace": "",
"IsInfra": false,
"Config": {
"Hostname": "nextpod",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"TERM=xterm",
"container=podman",
"DOCKERBUILD=1",
"HOSTNAME=nextpod",
"HOME=/root"
],
"Cmd": [
"nextpod.***removed***.tld"
],
"Image": "docker.io/ownyourbits/nextcloudpi:v1.47.1",
"Volumes": null,
"WorkingDir": "/",
"Entrypoint": "/run-parts.sh",
"OnBuild": null,
"Labels": {
"com.docker.compose.container-number": "1",
"com.docker.compose.project": "nextpod",
"com.docker.compose.project.config_files": "docker-compose.yml",
"com.docker.compose.project.working_dir": "/home/nextpod/nextpod",
"com.docker.compose.service": "nextcloudpi",
"io.podman.compose.config-hash": "123",
"io.podman.compose.project": "nextpod",
"io.podman.compose.version": "0.0.1",
"maintainer": "Ignacio Núñez Hernanz \[email protected]\u003e"
},
"Annotations": {
"io.container.manager": "libpod",
"io.kubernetes.cri-o.Created": "2022-05-12T15:04:53.197300469-06:00",
"io.kubernetes.cri-o.TTY": "false",
"io.podman.annotations.autoremove": "FALSE",
"io.podman.annotations.init": "FALSE",
"io.podman.annotations.privileged": "FALSE",
"io.podman.annotations.publish-all": "FALSE",
"org.opencontainers.image.stopSignal": "15"
},
"StopSignal": 15,
"CreateCommand": [
"podman",
"run",
"--name=nextcloudpi",
"-d",
"--label",
"io.podman.compose.config-hash=123",
"--label",
"io.podman.compose.project=nextpod",
"--label",
"io.podman.compose.version=0.0.1",
"--label",
"com.docker.compose.project=nextpod",
"--label",
"com.docker.compose.project.working_dir=/home/nextpod/nextpod",
"--label",
"com.docker.compose.project.config_files=docker-compose.yml",
"--label",
"com.docker.compose.container-number=1",
"--label",
"com.docker.compose.service=nextcloudpi",
"-v",
"/usr/share/zoneinfo/***removed***:/etc/localtime:ro",
"-v",
"nextpod_ncp_data:/data:Z",
"--net",
"nextpod_default",
"--network-alias",
"nextcloudpi",
"-p",
"4443:4443/tcp",
"-p",
"10080:80/tcp",
"-p",
"10443:443/tcp",
"--hostname",
"nextpod",
"--restart",
"unless-stopped",
"docker.io/ownyourbits/nextcloudpi:v1.47.1",
"nextpod.***removed***.tld"
],
"Umask": "0022",
"Timeout": 0,
"StopTimeout": 10
},
"HostConfig": {
"Binds": [
"nextpod_ncp_data:/data:Z,rw,rprivate,nosuid,nodev,rbind",
"/usr/share/zoneinfo/***removed***:/etc/localtime:ro,rprivate,rbind"
],
"CgroupManager": "cgroupfs",
"CgroupMode": "host",
"ContainerIDFile": "",
"LogConfig": {
"Type": "k8s-file",
"Config": null,
"Path": "/home/nextpod/.local/share/containers/storage/overlay-containers/f2048cffee02d25b61d83e7062d91c8d30d6570a33c23f92ee941ffdae055402/userdata/ctr.log",
"Tag": "",
"Size": "0B"
},
"NetworkMode": "bridge",
"PortBindings": {
"443/tcp": [
{
"HostIp": "",
"HostPort": "10443"
}
],
"4443/tcp": [
{
"HostIp": "",
"HostPort": "4443"
}
],
"80/tcp": [
{
"HostIp": "",
"HostPort": "10080"
}
]
},
"RestartPolicy": {
"Name": "unless-stopped",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": [],
"CapDrop": [
"CAP_AUDIT_WRITE",
"CAP_MKNOD"
],
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": [],
"GroupAdd": [],
"IpcMode": "private",
"Cgroup": "",
"Cgroups": "default",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "private",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": [],
"Tmpfs": {},
"UTSMode": "private",
"UsernsMode": "",
"ShmSize": 65536000,
"Runtime": "oci",
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [],
"DiskQuota": 0,
"KernelMemory": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": 0,
"OomKillDisable": false,
"PidsLimit": 0,
"Ulimits": [],
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"CgroupConf": null
}
}
]
Full log:
[ nc-update ] (Fri May 13 08:55:06 MDT 2022)
Downloading updates
Performing updates
Installing NFS
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB]
Fetched 39.4 kB in 1s (72.7 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
dmsetup keyutils libdevmapper1.02.1 libevent-2.1-7 libnfsidmap2 nfs-common
rpcbind
Suggested packages:
open-iscsi watchdog
The following NEW packages will be installed:
dmsetup keyutils libdevmapper1.02.1 libevent-2.1-7 libnfsidmap2 nfs-common
nfs-kernel-server rpcbind
0 upgraded, 8 newly installed, 0 to remove and 1 not upgraded.
Need to get 917 kB of archives.
After this operation, 2779 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 rpcbind amd64 1.2.5-9 [51.4 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 libdevmapper1.02.1 amd64 2:1.02.175-2.1 [143 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 dmsetup amd64 2:1.02.175-2.1 [92.1 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 keyutils amd64 1.6.1-2 [52.8 kB]
Get:5 http://deb.debian.org/debian bullseye/main amd64 libevent-2.1-7 amd64 2.1.12-stable-1 [188 kB]
Get:6 http://deb.debian.org/debian bullseye/main amd64 libnfsidmap2 amd64 0.25-6 [32.6 kB]
Get:7 http://deb.debian.org/debian bullseye/main amd64 nfs-common amd64 1:1.3.4-6 [232 kB]
Get:8 http://deb.debian.org/debian bullseye/main amd64 nfs-kernel-server amd64 1:1.3.4-6 [125 kB]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 917 kB in 0s (2775 kB/s)
Selecting previously unselected package rpcbind.
(Reading database ...
Preparing to unpack .../0-rpcbind_1.2.5-9_amd64.deb ...
Unpacking rpcbind (1.2.5-9) ...
Selecting previously unselected package libdevmapper1.02.1:amd64.
Preparing to unpack .../1-libdevmapper1.02.1_2%3a1.02.175-2.1_amd64.deb ...
Unpacking libdevmapper1.02.1:amd64 (2:1.02.175-2.1) ...
Selecting previously unselected package dmsetup.
Preparing to unpack .../2-dmsetup_2%3a1.02.175-2.1_amd64.deb ...
Unpacking dmsetup (2:1.02.175-2.1) ...
Selecting previously unselected package keyutils.
Preparing to unpack .../3-keyutils_1.6.1-2_amd64.deb ...
Unpacking keyutils (1.6.1-2) ...
Selecting previously unselected package libevent-2.1-7:amd64.
Preparing to unpack .../4-libevent-2.1-7_2.1.12-stable-1_amd64.deb ...
Unpacking libevent-2.1-7:amd64 (2.1.12-stable-1) ...
Selecting previously unselected package libnfsidmap2:amd64.
Preparing to unpack .../5-libnfsidmap2_0.25-6_amd64.deb ...
Unpacking libnfsidmap2:amd64 (0.25-6) ...
Selecting previously unselected package nfs-common.
Preparing to unpack .../6-nfs-common_1%3a1.3.4-6_amd64.deb ...
Unpacking nfs-common (1:1.3.4-6) ...
Selecting previously unselected package nfs-kernel-server.
Preparing to unpack .../7-nfs-kernel-server_1%3a1.3.4-6_amd64.deb ...
Unpacking nfs-kernel-server (1:1.3.4-6) ...
Setting up rpcbind (1.2.5-9) ...
useradd: cannot open /etc/shadow
adduser: `/usr/sbin/useradd -d /run/rpcbind -g nogroup -s /usr/sbin/nologin -u 105 _rpc' returned error code 1. Exiting.
dpkg: error processing package rpcbind (--configure):
installed rpcbind package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of nfs-common:
nfs-common depends on rpcbind; however:
Package rpcbind is not configured yet.
dpkg: error processing package nfs-common (--configure):
dependency problems - leaving unconfigured
Setting up libevent-2.1-7:amd64 (2.1.12-stable-1) ...
Setting up keyutils (1.6.1-2) ...
Setting up libnfsidmap2:amd64 (0.25-6) ...
dpkg: dependency problems prevent configuration of nfs-kernel-server:
nfs-kernel-server depends on nfs-common (= 1:1.3.4-6); however:
Package nfs-common is not configured yet.
dpkg: error processing package nfs-kernel-server (--configure):
dependency problems - leaving unconfigured
Setting up libdevmapper1.02.1:amd64 (2:1.02.175-2.1) ...
Setting up dmsetup (2:1.02.175-2.1) ...
Processing triggers for libc-bin (2.31-13+deb11u3) ...
Errors were encountered while processing:
rpcbind
nfs-common
nfs-kernel-server
E: Sub-process /usr/bin/dpkg returned an error code (1)