Nextcloudpi: nc-update to 1.29.8 from 1.28.1 (via ncp web interface) is stuck

The web page for nc-update is stuck with a lot of messages (quoted further below).

Looks like the php update won’t proceed until a choice is made re config file.
But the message box won’t take input to make that choice.
I’m unsure what would be a safe way out of this situation.
I hesitate to just reboot from an ssh terminal, but hope that would force nc-update to finish cleanly and make ncp revert to v1.28.1
However I lack the confidence/experience to just do this (in case there’s a safer way)

nextcloudpi 1.28.1 is running on
Linux 5.4.51-v7l+ armv7l
Server version: Apache/2.4.38 (Raspbian)
PHP 7.3.19-1~deb10u1

the nc-update messages end with:

...
Setting up php7.3-cli (7.3.19-1~deb10u1) ...
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
Modified configuration file
---------------------------

php.ini: A new version (/usr/lib/php/7.3/php.ini-production.cli) of
configuration file /etc/php/7.3/cli/php.ini is available, but the version
installed currently has been locally modified.

1. install the package maintainer's version
2. keep the local version currently installed
3. show the differences between the versions
4. show a side-by-side difference between the versions
5. start a new shell to examine the situation

What do you want to do about modified configuration file php.ini? 

Could you run from terminal

sudo ncp-report

and post output via pastebin or similar

There is no way to revert back to a lower version of ncp, afaik.

Try runing

sudo ncp-update

from the terminal

Your output looks like output from apt upgrade rather then ncp-update…
When presented with this kind of choice, I usually choose the safe route of keeping the local installed version.

Many thanks for the rapid response!
ncp-report produced 3+MB of ncp logs which I see has had sensitive info removed from the first few lines, but I’ve no idea if the rest is equally safe to share. So I’m copying and pasting the stuff up to where the httpd logs start, below.
(If you do need the rest, via pastebin or wherever, in order to search for specific stuff, I’ll sort out how to do that. In the meantime, thanks again.)

<--! Paste this in GitHub report -->

<details>
<summary>NextCloudPi diagnostics</summary>

NextCloudPi version v1.28.1
NextCloudPi image NextCloudPi_03-28-20
distribution Raspbian GNU/Linux 10 \n \l
automount yes
USB devices none
datadir /media/myCloudDrive/ncdata
data in SD yes
data filesystem ext2/ext3
data disk usage 2.3G/29G
rootfs usage 2.3G/29G
swapfile /var/swap
dbdir /var/lib/mysql
Nextcloud check ok
Nextcloud version 18.0.3.0
HTTPD service up
PHP service up
MariaDB service up
Redis service up
Postfix service up
internet check ok
port check 80 open
port check 443 open
IP REMOVED SENSITIVE VALUE
gateway REMOVED SENSITIVE VALUE
interface eth0
certificates REMOVED SENSITIVE VALUE
NAT loopback no
uptime 2:54

</details>


<details>
<summary>Nextcloud configuration</summary>

{
“system”: {
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: {
“0”: “localhost”,
“5”: “nextcloudpi.local”,
“7”: “nextcloudpi”,
“8”: “nextcloudpi.lan”,
“11”: “90.251.56.32”,
“1”: “192.168.1.92”,
“20”: “duanepi2.hopto.org
},
“datadirectory”: “REMOVED SENSITIVE VALUE”,
“dbtype”: “mysql”,
“version”: “18.0.3.0”,
“overwrite.cli.url”: “https://192.168.1.92/”,
“dbname”: “REMOVED SENSITIVE VALUE”,
“dbhost”: “REMOVED SENSITIVE VALUE”,
“dbport”: “”,
“dbtableprefix”: “oc_”,
“mysql.utf8mb4”: true,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“installed”: true,
“instanceid”: “REMOVED SENSITIVE VALUE”,
“memcache.local”: “\OC\Memcache\Redis”,
“memcache.locking”: “\OC\Memcache\Redis”,
“redis”: {
“host”: “REMOVED SENSITIVE VALUE”,
“port”: 0,
“timeout”: 0,
“password”: “REMOVED SENSITIVE VALUE
},
“tempdirectory”: “/media/myCloudDrive/ncdata/tmp”,
“mail_smtpmode”: “sendmail”,
“mail_smtpauthtype”: “LOGIN”,
“mail_from_address”: “REMOVED SENSITIVE VALUE”,
“mail_domain”: “REMOVED SENSITIVE VALUE”,
“preview_max_x”: “2048”,
“preview_max_y”: “2048”,
“jpeg_quality”: “60”,
“overwriteprotocol”: “https”,
“maintenance”: false,
“data-fingerprint”: “18ef4a4700306f54e212fdc85c064725”,
“logfile”: “/media/myCloudDrive/ncdata/nextcloud.log”
}
}

</details>


<details>
<summary>HTTPd logs</summary>

(etc.)

PS Oh I should have added - I was surprised to find that the server was still running, and my user files are all accessible. FWIW, this is only a trial setup in which I’m running a lot of tests before merging with my 50GB data stored elsewhere. Nevertheless, I did do

  1. upgrade and
  2. test backups

in the wrong order :wink:

Well spotted - what happened when I tried it:

$ sudo ncp-update
Downloading updates
Performing updates
apt is currently running. Try again later

I’m slightly confused - presumably it’s still in the middle of updating, yet is nextcloud is not in maintenance mode, because the web interface shows:

NextCloudPi version	v1.28.1
NextCloudPi image	NextCloudPi_03-28-20
distribution	Raspbian GNU/Linux 10 \n \l
automount	yes
USB devices	none
datadir	/media/myCloudDrive/ncdata
data in SD	yes
data filesystem	ext2/ext3
data disk usage	2.3G/29G
rootfs usage	2.3G/29G
swapfile	/var/swap
dbdir	/var/lib/mysql
Nextcloud check	ok
Nextcloud version	18.0.3.0
HTTPD service	up
PHP service	up
MariaDB service	up
Redis service	up
Postfix service	up
internet check	ok
port check 80	open
port check 443	open
IP	************
gateway	************
interface	eth0
certificates	************
NAT loopback	no
uptime	15days

(15 days? That’s what it says here, cf the 2:54 it said just a few hours ago)

Thanks for your encouragement. All it took was

$ reboot # want to be certain that everything is running ok
$ sudo dpkg --configure -a # to repair/complete the php update
$ sudo ncp-update

and now I’m running ncp 1.29.8

Simon

2 Likes

i had the same Problem. thanks for the solution simond

5 posts were split to a new topic: Slight confusion about NC version an NCP version