NCP upgrade to Debian Bullseye thread

Yes, I did exactly that, which led to the first error message. When I try to upgrade again using the same command it just ends without any output.
An on the web GUI it just says “Internal Server Error” now.

How can I do that?

I tried docker exec -it nextcloudpi ncp-diag and got this error:
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "ncp-diag": executable file not found in $PATH: unknown

hi @furkan189, @nachoparker
i am in the exact same boat (pulled docker image v1.47.1, removed old container, spinned the new image and get 503 on both ncp and nc pages).
i get the same error as you when trying to run ncp-diag, so here is what i did :

docker exec -ti nextcloudpi bash
ncp-diag

i get an error here because there is no execute permission on /usr/local/bin/ncp-diag

chmod 744 /usr/local/bin/ncp-diag
ncpdiag

Here is the output of mine :

NextCloudPi version|v1.47.1
NextCloudPi image|NextCloudPi_docker_03-01-22
OS|Debian GNU/Linux 11. 5.10.92-v8+ (aarch64)
automount|no
USB devices|sda 
datadir|/data/nextcloud/data
data in SD|no
data filesystem|ext2/ext3
data disk usage|1.1T/3.6T
rootfs usage|8.7G/59G
swapfile|/var/swap
dbdir|/data/database
Nextcloud check|ok
Nextcloud version|22.2.2.0
HTTPD service|up
PHP service|up
MariaDB service|up
Redis service|up
HPB service|down
Postfix service|up
internet check|ok
port check 80|open
port check 443|open
IP|172.25.0.5
gateway|172.25.0.1
interface|eth0
certificates|none
NAT loopback|no
uptime|29min

1 Like

I run the upgrade to “bullseye” on a RPI 4, 8GB without problems. NCP is v1.46.8 , NC 23.0.2
A few weeks ago i upgraded to PHP 8.0 . After the upgrade to “bullseye” PHP still is on v8.0
Maybee this is interessting to some others.

here is the output of docker logs nextcloudpi (raspberry pi 4 4 GB ram, raspberry pi os 64bits bullseye, container image v1.47.1, removed all previous containers, empty volume for storage) :

Making /usr/local/etc/ncp-config.d persistent ...
Making /etc/services-enabled.d persistent ...
Making /etc/letsencrypt persistent ...
Making /etc/shadow persistent ...
Making /etc/cron.d persistent ...
Making /etc/cron.daily persistent ...
Making /etc/cron.hourly persistent ...
Making /etc/cron.weekly persistent ...
Making /usr/local/bin persistent ...
Making /etc/apache2 persistent ...
Starting PHP-fpm
Starting Apache
Starting mariaDB
2022-03-07 11:17:54 0 [Note] mysqld (mysqld 10.5.12-MariaDB-0+deb11u1) starting as process 147 ...
2022-03-07 11:17:54 0 [Warning] Can't create test file /data/database/nextcloudpi.lower-test
mysqld: Can't change dir to '/data/database/' (Errcode: 2 "No such file or directory")
2022-03-07 11:17:54 0 [ERROR] Aborting

it looks like a dir/file permission issue but i don’t know what i should do to resolve it. anyone knows ? thanks.

A fix has been pushed. See

1 Like

Hi,
Any workaround for “Wrong salt length” when trying to activate ssh?

Thank you,
Martin

EDIT: Well, upgrading ncp allowed me to change the password!

1 Like

i’plan this Weekend this update at my proxmox lxe container. Was there some Things to prepare? (Snapshot off course i’will do before)

or run only the command ncp-dist-upgrade as root? or better little bit more wait, maybe the devs there still are fixing issues … ?

A post was split to a new topic: Armbian has Discontinued Support for some older devices

I’m running Armbian. Is it recommended to upgrade to bullseye by means of sudo ncp-dist-upgrade, or rather the Armbian-way (which I didn’t sort out yet)?

@Uniek Please use ncp-dist-upgrade for upgrading to bullseye

error after performing sudo ncp-dist-upgrade
should I do
sudo apt autoremove
Thanks


edit
my ncp is broken nothing works anymore

Maintenance mode enabled
Atteint :1 http://archive.raspberrypi.org/debian buster InRelease
Réception de :2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
15.0 ko réceptionnés en 1s (19.2 ko/s)
Lecture des listes de paquets… Fait
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances
Lecture des informations d’état… Fait
Calcul de la mise à jour… Fait
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances
Lecture des informations d’état… Fait
Note : sélection de « php7.3-common » au lieu de « php7.3-fileinfo »
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
libzip4 php7.3-readline
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
Les paquets suivants seront ENLEVÉS :
php-igbinary* php-redis* php-smbclient* php7.3* php7.3-bz2* php7.3-cli* php7.3-curl* php7.3-fpm* php7.3-gd* php7.3-intl* php7.3-json* php7.3-ldap*
php7.3-mbstring* php7.3-opcache* php7.3-xml* php7.3-zip*
0 mis à jour, 0 nouvellement installés, 16 à enlever et 0 non mis à jour.
Après cette opération, 10.9 Mo d’espace disque seront libérés.
(Lecture de la base de données… 105762 fichiers et répertoires déjà installés.)
Suppression de php-redis (4.2.0-1) …
Suppression de php-igbinary (3.0.0-1) …
Suppression de php-smbclient (0.9.0-3+b1) …
Suppression de php7.3 (7.3.31-1~deb10u1) …
Suppression de php7.3-bz2 (7.3.31-1~deb10u1) …
Suppression de php7.3-fpm (7.3.31-1~deb10u1) …
Conf php7.3-fpm disabled.
apache2_invoke prerm: Disable configuration php7.3-fpm
Suppression de php7.3-cli (7.3.31-1~deb10u1) …
Suppression de php7.3-curl (7.3.31-1~deb10u1) …
Suppression de php7.3-gd (7.3.31-1~deb10u1) …
Suppression de php7.3-intl (7.3.31-1~deb10u1) …
Suppression de php7.3-json (7.3.31-1~deb10u1) …
Suppression de php7.3-ldap (7.3.31-1~deb10u1) …
Suppression de php7.3-mbstring (7.3.31-1~deb10u1) …
Suppression de php7.3-opcache (7.3.31-1~deb10u1) …
Suppression de php7.3-xml (7.3.31-1~deb10u1) …
Suppression de php7.3-zip (7.3.31-1~deb10u1) …
Traitement des actions différées (« triggers ») pour man-db (2.8.5-2) …
(Lecture de la base de données… 105602 fichiers et répertoires déjà installés.)
Purge des fichiers de configuration de php7.3-mbstring (7.3.31-1~deb10u1) …
Purge des fichiers de configuration de php7.3-fpm (7.3.31-1~deb10u1) …
apache2_invoke postrm: Purging state for php7.3-fpm
dpkg: avertissement: lors de la suppression de php7.3-fpm, le répertoire « /etc/php/7.3/fpm/conf.d » n’était pas vide, donc il n’a pas été supprimé
Purge des fichiers de configuration de php7.3-json (7.3.31-1~deb10u1) …
Purge des fichiers de configuration de php7.3-bz2 (7.3.31-1~deb10u1) …
Purge des fichiers de configuration de php-smbclient (0.9.0-3+b1) …
Purge des fichiers de configuration de php7.3-intl (7.3.31-1~deb10u1) …
Purge des fichiers de configuration de php7.3-xml (7.3.31-1~deb10u1) …
Purge des fichiers de configuration de php7.3-cli (7.3.31-1~deb10u1) …
dpkg: avertissement: lors de la suppression de php7.3-cli, le répertoire « /etc/php/7.3/cli/conf.d » n’était pas vide, donc il n’a pas été supprimé
Purge des fichiers de configuration de php7.3-opcache (7.3.31-1~deb10u1) …
Purge des fichiers de configuration de php-igbinary (3.0.0-1) …
Purge des fichiers de configuration de php7.3-zip (7.3.31-1~deb10u1) …
Purge des fichiers de configuration de php7.3-ldap (7.3.31-1~deb10u1) …
Purge des fichiers de configuration de php7.3-curl (7.3.31-1~deb10u1) …
Purge des fichiers de configuration de php-redis (4.2.0-1) …
Purge des fichiers de configuration de php7.3-gd (7.3.31-1~deb10u1) …
Traitement des actions différées (« triggers ») pour systemd (241-7~deb10u8+rpi1) …
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances
Lecture des informations d’état… Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
libzip4 php7.3-readline
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
Les paquets suivants seront ENLEVÉS :
php7.3-mysql*
0 mis à jour, 0 nouvellement installés, 1 à enlever et 0 non mis à jour.
Après cette opération, 355 ko d’espace disque seront libérés.
(Lecture de la base de données… 105588 fichiers et répertoires déjà installés.)
Suppression de php7.3-mysql (7.3.31-1~deb10u1) …
(Lecture de la base de données… 105575 fichiers et répertoires déjà installés.)
Purge des fichiers de configuration de php7.3-mysql (7.3.31-1~deb10u1) …
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances
Lecture des informations d’état… Fait
Note : sélection de « php-redis » au lieu de « php7.3-redis »
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
libzip4 php7.3-readline
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances
Lecture des informations d’état… Fait
Note : sélection de « php7.3-common » au lieu de « php7.3-exif »
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
libzip4 php7.3-readline
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances
Lecture des informations d’état… Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
libzip4 php7.3-readline
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
Les paquets suivants seront ENLEVÉS :
php-bcmath* php7.3-bcmath*
0 mis à jour, 0 nouvellement installés, 2 à enlever et 0 non mis à jour.
Après cette opération, 68.6 ko d’espace disque seront libérés.
(Lecture de la base de données… 105575 fichiers et répertoires déjà installés.)
Suppression de php-bcmath (2:7.3+69) …
Suppression de php7.3-bcmath (7.3.31-1~deb10u1) …
(Lecture de la base de données… 105563 fichiers et répertoires déjà installés.)
Purge des fichiers de configuration de php7.3-bcmath (7.3.31-1~deb10u1) …
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances
Lecture des informations d’état… Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
libzip4 php7.3-readline
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
Les paquets suivants seront ENLEVÉS :
php7.3-gmp*
0 mis à jour, 0 nouvellement installés, 1 à enlever et 0 non mis à jour.
Après cette opération, 85.0 ko d’espace disque seront libérés.
(Lecture de la base de données… 105563 fichiers et répertoires déjà installés.)
Suppression de php7.3-gmp (7.3.31-1~deb10u1) …
(Lecture de la base de données… 105554 fichiers et répertoires déjà installés.)
Purge des fichiers de configuration de php7.3-gmp (7.3.31-1~deb10u1) …
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances
Lecture des informations d’état… Fait
Note : sélection de « php-imagick » au lieu de « php7.3-imagick »
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
libzip4 php7.3-readline
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
sed: impossible de lire /etc/systemd/system/dhcpcd.service.d/wait.conf: Aucun fichier ou dossier de ce type
Something went wrong. Fix it and try again

do i need to do an ncp restoration?
or
restore the sd card?

please

@Jeano Looks like you’re missing the dhcpcd service for some reason. What’s the output of systemctl status dhcpcd?

Good evening theCalcaholic
Thank you for your help.
Now I have restored my sd card
How can I see where systemctl status dhcpcd is please

Now my nextcloud is too, slow
just to load the page System Info it took 6m and the port check 80 is closed
In the System Info

‣ You should open your ports for Lets Encrypt and external access

NextCloudPi version v1.47.1
OS Raspbian GNU/Linux 10. 5.10.103-v7l+ (armv7l)
automount yes
USB devices sda sdb
datadir /media/myCloudDrive/ncdata
data in SD no
data filesystem btrfs
data disk usage 446G/1.9T
rootfs usage 5.5G/15G
swapfile /var/swap
dbdir /var/lib/mysql
Nextcloud check ok
Nextcloud version 21.0.4.1
HTTPD service up
PHP service up
MariaDB service up
Redis service up
HPB service up
Postfix service up
internet check ok
port check 80 closed
port check 443 open
IP 192.168.1.123
gateway 192.168.1.1
interface eth0
certificates data.********.com
NAT loopback no
uptime 6min

Just made an successful ncp-dist-upgrade to Bullseye on NCP v1.47.2 on Rock64 board. Thanks to all the developers. :slight_smile:
Then I upgraded kernel from legacy(4.4) to current (5.15.35-rockchip64) and that broke booting from USB3-SSD :frowning:

Error

Begin: Running /scripts/local-block … done.
Begin: Running /scripts/local-block … done.
Gave up waiting for root file system device …
ALERT uuid=… does not exist. Dropping to a shell!

Booting from USB2-attached SSD still works. Plugging device in USB3 after boot also works… Looks like a bug in armbian/kernel/bootloader(?) described here
Be prepared, Rock64 owners.

Hi everyone! little premise, I am really a beginner, but until now for a couple of years I could use Nextcloud on a RaspberryPi 4 with lot of fun :slight_smile:

I tried the update as suggested, with ncp-dist-upgrade to Bullseye, and during the installation process I had the following error:

Calculating upgrade… Error!
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libc6-dev : Breaks: libgcc-8-dev (< 8.4.0-2~) but 8.3.0-6+rpi1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Something went wrong. Fix it and try again

I tried rolling back to Buster and I could run the upgrade succesfully after:

  • apt-get update
  • apt install gcc-8-base (probably useless but I did it…)
  • apt-get remove libc6-dev
  • apt-get remove libgcc-8-dev
  • apt autoremove
    an at the end
  • ncp-dist-upgrade

Maybe this helps somebody else :slight_smile:

thanks to the developers for the incredible work!

1 Like

I just tried to run the ncp-dist-upgrade job. and got the following error:

sed: can’t read /etc/systemd/system/dhcpcd.service.d/wait.conf: No such file or directory
Something went wrong. Fix it and try again

I found out the directory dhcpcd.service.d was missing. i only have a file dhcpcd5.service in the system directory.

I am not really a developer … more an user :). You have a clue how i can solve this? Many thanks in advance

Below the ncp-report output. Report is too big to add in total. I try to cut it in a decent way.

<–! Paste this in GitHub report →

NextCloudPi diagnostics

sudo: php: command not found
NextCloudPi version  v1.47.2
NextCloudPi image    NextCloudPi_02-06-18
OS                   Raspbian GNU/Linux 10. 5.10.103-v7+ (armv7l)
automount            yes
USB devices          sda 
datadir              /media/USBdrive/ncdata
data in SD           no
data filesystem      ext2/ext3
data disk usage      245G/2.7T
rootfs usage         3.2G/15G
swapfile             /media/c9af4f9f-f6c6-4304-b1b9-38c32ac2569a/swap
dbdir                /media/USBdrive/ncdatabase
Nextcloud check      error
HTTPD service        up
PHP service          down
MariaDB service      up
Redis service        up
HPB service          down
Postfix service      up
internet check       ok
port check 80        closed
port check 443       closed
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
interface            enxb827eb818da6
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
uptime               117days

Nextcloud configuration

sudo: php: command not found

HTTPd logs

[Thu Jul 07 13:11:01.233734 2022] [authz_host:error] [pid 12507:tid 1766253568] [client 192.168.2.55:52522] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Thu Jul 07 13:11:01.383267 2022] [authz_host:error] [pid 12507:tid 1766253568] [client 192.168.2.55:52522] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Thu Jul 07 13:11:01.383753 2022] [authz_host:error] [pid 12507:tid 1766253568] [client 192.168.2.55:52522] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Thu Jul 07 13:11:01.469134 2022] [authz_host:error] [pid 12507:tid 1766253568] [client 192.168.2.55:52522] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Thu Jul 07 13:11:05.420397 2022] [authz_host:error] [pid 12507:tid 1766253568] [client 192.168.2.55:52522] AH01753: access check of 'localhost' to /css/ncp.css failed, reason: unable to get the remote host name, referer: https://192.168.2.15:4443/?app=nc-previews-auto
[Thu Jul 07 13:11:07.183711 2022] [authz_host:error] [pid 12507:tid 1749468160] [client 192.168.2.55:52522] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Thu Jul 07 13:11:07.514724 2022] [authz_host:error] [pid 12507:tid 1766253568] [client 192.168.2.55:52522] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Thu Jul 07 13:11:07.599604 2022] [authz_host:error] [pid 12507:tid 1858573312] [client 192.168.2.55:52522] AH01753: access check of 'localhost' to /img/favicon.png failed, reason: unable to get the remote host name
[Thu Jul 07 13:11:18.052571 2022] [authz_host:error] [pid 12507:tid 1774646272] [client 192.168.2.55:52522] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Thu Jul 07 13:11:19.687274 2022] [authz_host:error] [pid 12507:tid 1749468160] [client 192.168.2.55:52522] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Thu Jul 07 13:11:21.430283 2022] [authz_host:error] [pid 12507:tid 1749468160] [client 192.168.2.55:52522] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Thu Jul 07 13:11:21.430311 2022] [authz_host:error] [pid 12507:tid 1774646272] [client 192.168.2.55:52522] AH01753: access check of 'localhost' to /img/green-circle.svg failed, reason: unable to get the remote host name, referer: https://192.168.2.15:4443/css/ncp.css
[Thu Jul 07 13:11:21.502004 2022] [authz_host:error] [pid 12507:tid 1749468160] [client 192.168.2.55:52522] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Thu Jul 07 13:26:38.204978 2022] [proxy_fcgi:error] [pid 12507:tid 1766253568] [client 192.168.2.55:52522] AH01067: Failed to read FastCGI header
[Thu Jul 07 13:26:38.208786 2022] [proxy_fcgi:error] [pid 12507:tid 1766253568] (104)Connection reset by peer: [client 192.168.2.55:52522] AH01075: Error dispatching request to :4443: 
[Thu Jul 07 13:26:40.269050 2022] [mpm_event:notice] [pid 875:tid 1996238272] AH00493: SIGUSR1 received.  Doing graceful restart
[Thu Jul 07 13:26:40.401350 2022] [ssl:warn] [pid 875:tid 1996238272] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Thu Jul 07 13:26:40.407900 2022] [mpm_event:notice] [pid 875:tid 1996238272] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured -- resuming normal operations
[Thu Jul 07 13:26:40.407957 2022] [core:notice] [pid 875:tid 1996238272] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jul 07 13:26:41.315982 2022] [authz_host:error] [pid 24006:tid 1682277376] [client 192.168.2.55:54908] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name

Database logs


I saw something similar above. My output for systemctl status dhcpcd

\u25cf dhcpcd.service - dhcpcd on all interfaces
Loaded: loaded (/lib/systemd/system/dhcpcd.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2022-03-12 04:00:20 CET; 3 months 26 days ago
Main PID: 416 (dhcpcd)
Tasks: 2 (limit: 2178)
CGroup: /system.slice/dhcpcd.service
\u251c\u2500416 /sbin/dhcpcd -q -b
\u2514\u2500583 wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211,wext