NCP Upgrade from 1.45.0 to 1.46.7 does not work

Hi,

I am running NextCloudPi on Docker on a Debian 10 system. I am trying to upgrade from 1.45.0 to 1.46.7. However, it fails with an error. Attach see the ncp logs.

Can anyone help?

/bin/sh: 1: /usr/local/bin/ncp-backup-auto: not found
Wed Dec 15 06:39:55 UTC 2021 - Running /etc/cron.daily/ncp-autoupdate...
Downloading updates
Performing updates
Nextcloud is already latest version
NextCloudPi updated to version v1.45.0
Error while applying update 1.46.0. Exiting...
[ nc-update-nc-apps-auto ]
checking for updates...
bruteforcesettings new version available: 2.3.0
bruteforcesettings updated
[ nc-update ] (Wed Dec 15 18:51:06 UTC 2021)
Downloading updates
Performing updates
Error while applying update 1.46.0. Exiting...

[ nc-update ] (Wed Dec 15 18:51:28 UTC 2021)
Downloading updates
Performing updates
Error while applying update 1.46.0. Exiting...

[ nc-update ] (Wed Dec 15 18:52:44 UTC 2021)
Downloading updates
Performing updates
Error while applying update 1.46.0. Exiting...

[ nc-update-nextcloud ] (Wed Dec 15 18:55:20 UTC 2021)
Current   Nextcloud version 22.2.2.0
Available Nextcloud version 22.2.2
Nothing to update

[ nc-limits ] (Wed Dec 15 19:03:21 UTC 2021)
Using 12476150784B for PHP
Using 8 PHP threads
Using 4108385280 memory for the database
Stopping redis-server: redis-server.
Starting redis-server: redis-server.

System config value trusted_domains => 3 set to string YYYYYYYYYYYYYYYYYY
System config value overwrite.cli.url set to string https://YYYYYYYYYYYYYYY/
System config value trusted_proxies => 11 set to string 127.0.0.1
System config value trusted_proxies => 12 set to string ::1
System config value trusted_proxies => 13 set to string XXXXXXXXXXXXXXXXX
System config value trusted_proxies => 14 set to string XXXXXXXXXXXXXXXXXXX.
IP
βœ“ redis is configured
βœ“ push server is receiving redis messages
βœ“ push server can load mount info from database
βœ“ push server can connect to the Nextcloud server
βœ“ push server is a trusted proxy
βœ“ push server is running the same version as the app
  configuration saved
[ nc-update ] (Wed Dec 15 19:03:58 UTC 2021)
Downloading updates
Performing updates
Error while applying update 1.46.0. Exiting...

[ nc-limits ] (Wed Dec 15 19:11:56 UTC 2021)
Using 12476150784B for PHP
Using 8 PHP threads
Using 4108385280 memory for the database
Stopping redis-server: redis-server.
Starting redis-server: redis-server.

System config value trusted_domains => 3 set to string YYYYYYYYYYYYYYYYYY
System config value overwrite.cli.url set to string https://YYYYYYYYYYYYYYYYYY/
System config value trusted_proxies => 11 set to string 127.0.0.1
System config value trusted_proxies => 12 set to string ::1
System config value trusted_proxies => 13 set to string XXXXXXXXXXXXXXXXX
System config value trusted_proxies => 14 set to string XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.
XXXXXXXXXXXXXXXXX
βœ“ redis is configured
βœ“ push server is receiving redis messages
βœ“ push server can load mount info from database
βœ“ push server can connect to the Nextcloud server
βœ“ push server is a trusted proxy
βœ“ push server is running the same version as the app
  configuration saved
[ nc-update ] (Wed Dec 15 19:12:28 UTC 2021)
Downloading updates
Performing updates
Error while applying update 1.46.0. Exiting...

[ nc-update ] (Wed Dec 15 19:21:08 UTC 2021)
Downloading updates
Performing updates
Error while applying update 1.46.0. Exiting...

bump, I’m having the exact same problem, docker running on unraid host (which is based on slackware)

NextCloudPi updated to version v1.43.0
Nextcloud is already latest version
NextCloudPi updated to version v1.45.0
Error while applying update 1.46.0. Exiting...

[ nc-update ] (Thu Dec 16 15:24:09 CET 2021)
Downloading updates
Performing updates
Error while applying update 1.46.0. Exiting...

Hi,

same here. Auto updater or manually triggered. Strange is, Notification states 1.46.7. Updater says 1.46.0.

Can only confirm:

docker exec -it ncp ncp-update
Downloading updates
Performing updates
Nextcloud is already latest version
NextCloudPi updated to version v1.45.0
Error while applying update 1.46.0. Exiting…

This only concerns ncp docker containers afaik

Suspect it has to do with fact that there will be fresh images sometime soon, as NCP is moving to Bullseye.

Created Github issue

Hello,

did a code view on this as I use ownyourbits/nextcloudpi-arm64. Some things are hard coded in docker.

I will try to build on my own like described in the readme.md

I had to instal jq before:

apt update
apt install jq
git clone https://github.com/nextcloud/nextcloudpi.git
cd nextcloudpi
build/build-docker.sh x86
build/build-docker.sh armhf
build/build-docker.sh arm64 <--  I took this as I am on bullseye with 64 bit kernel

To list Kernel you are using (aarch is 32 bit):

uname -a
Linux raspberrypi 5.10.63-v8+ #1488 SMP PREEMPT Thu Nov 18 16:16:16 GMT 2021 aarch64 GNU/Linux

From the log during build:

#17 373.6 Unattended upgrades active: yes (autoreboot true)
#17 375.6 NextCloudPi updated to version v1.46.7 <-- looks good
#17 377.7 Running nc-init
.
.   and many lines more
.
#19 writing image sha256:804b6ce2cf59be01c0c9a7f8d23a38f69b3d2bf63690e8ea1614f3ea80df13ab 0.0s done
#19 naming to docker.io/ownyourbits/nextcloudpi-arm64:latest 0.1s done
#19 DONE 40.4s <-- So whole build took 40 minutes on Raspi 4 4G

After build images:

docker images ls -a
REPOSITORY   TAG       IMAGE ID   CREATED   SIZE
root@raspberrypi:/media/home/nextcloudpi/nextcloudpi# docker image ls -a
REPOSITORY                      TAG       IMAGE ID       CREATED          SIZE
ownyourbits/nextcloudpi-arm64   latest    804b6ce2cf59   6 minutes ago    1.46GB <-- see time the new one
ownyourbits/nextcloudpi-arm64   v1.46.7   804b6ce2cf59   6 minutes ago    1.46GB
ownyourbits/nextcloud-arm64     latest    846ab3364471   26 minutes ago   930MB
ownyourbits/nextcloud-arm64     v1.46.7   846ab3364471   26 minutes ago   930MB
ownyourbits/lamp-arm64          latest    ff68213e3021   31 minutes ago   383MB
ownyourbits/lamp-arm64          v1.46.7   ff68213e3021   31 minutes ago   383MB
ownyourbits/debian-ncp-arm64    latest    925264bab5a4   35 minutes ago   69.7MB
ownyourbits/debian-ncp-arm64    v1.46.7   925264bab5a4   35 minutes ago   69.7MB
ownyourbits/nextcloudpi-arm64   <none>    d74e5de2d674   2 months ago     1.46GB my old once from docker HUB

So I have to rm old container and Image and start with the new generated image:

root@raspberrypi:/media/home/nextcloudpi/nextcloudpi# docker container ls -a
CONTAINER ID   IMAGE          COMMAND                  CREATED       STATUS                        PORTS     NAMES
b6458515d91b   d74e5de2d674   "/run-parts.sh 192.1…"   10 days ago   Exited (137) 34 minutes ago             nextcloudpi
root@raspberrypi:/media/home/nextcloudpi/nextcloudpi# docker container rm b6458515d91b
b6458515d91b
root@raspberrypi:/media/home/nextcloudpi/nextcloudpi# docker image rm d74e5de2d674
Untagged: ownyourbits/nextcloudpi-arm64@sha256:0a325e11b14db5bba6d52458f5cd9ca8fee51965656651c87c7d8adcb5d89ecc
Deleted: sha256:d74e5de2d674533fad59d6cc177a2822bdae29545007f58264b06c42f4d29482
Deleted: sha256:d9460961a9703f07e8943ce6f1daae88a28e5afb36cfe125eb81bf8fd814b166
... and a few more startinf with Deleted
Deleted: sha256:39f4200bbf1b4926487d2918038599b30a567a657770ff1f35de49d3a8e11b71
Deleted: sha256:d5a85137bc144efbbda21afa021fd4d06d5eb64f9335cb8685e3f89a77cc929c

root@raspberrypi:/media/home/nextcloudpi/nextcloudpi# docker run -d -p 4443:4443 -p 443:443 -p 80:80 -v /media/ncdata/nc/data:/data -v /media/backup:/backup --name nextcloudpi ownyourbits/nextcloudpi-arm64 192.168.178.22
6855cf76f8f0e5dae76b991a65d33053754dac88aa6211346cdacb570705e865
root@raspberrypi:/media/home/nextcloudpi/nextcloudpi# docker logs -f 6855cf76f8f0e5dae76b991a65d33053754dac88aa6211346cdacb570705e865
Making /usr/local/bin persistent ...
Starting PHP-fpm
Starting Apache
Starting mariaDB
2021-12-25 10:02:27 0 [Note] mysqld (mysqld 10.3.31-MariaDB-0+deb10u1) starting as process 255 ...
Starting Redis
Starting Cron
Starting Postfix
Provisioning
Provisioning Redis password
Updating NextCloud config with Redis password
Provisioning MariaDB password
Updating NextCloud config with MariaDB password
Running nc-limits
Using 2842460160B for PHP
Using 6 PHP threads
Using 897155072 memory for the database
Stopping MariaDB database server: mysqld.
Starting MariaDB database server: mysqld.
Stopping redis-server: redis-server.
Starting redis-server: redis-server.
Starting notify_push daemon
Configuring Domain
System config value trusted_domains => 11 set to string 85.212.82.29
System config value trusted_domains => 1 set to string 172.17.0.2
System config value trusted_domains => 14 set to string 6855cf76f8f0
System config value trusted_domains => 6 set to string 192.168.178.22
Nextcloud version 23.0.0.10. NextCloudPi version v1.46.7
Init done

First access seems fine. If I encounter problems I will let you know.
This was my first docker build fully written by nachoparker thx :wink:
I don’t know why this one is not on the docker HUP but it was fun to see the build process.

KR Gerd

should be fixed now, thanks