NextcloudPI error update NC

I’ve been using Nextcloudpi in a VM for years, as it was updating itself I didn’t worry much, until the other day I realized that it wasn’t updating NC and it was stuck in version 27, I was still receiving emails of apps and NCPI updates so I didn’t notice I guess.
One of the things I noticed is that I still had Debian 11 so I upgraded to Debian 12, Nextcloudpi is also at the latest version, just like the NC apps I use, but the NC version is still at 27.1.6.2.
When I use the NCPI web panel to upgrade, either to 28 or whatever he decides, I get this error.

Running as unit: ncp-update-nc.service
Failed to start ncp-update-nc
Nextcloud backup directory found. Interrupted or already running installation?
× ncp-update-nc.service - /usr/bin/bash -c set -o pipefail; DBG='' /usr/local/bin/ncp-update-nc.d/update-nc.sh '28' |& tee /var/log/ncp-update-nc.log
Loaded: loaded (/run/systemd/transient/ncp-update-nc.service; transient)
Transient: yes
Active: failed (Result: exit-code) since Tue 2025-05-27 17:25:22 CEST; 237ms ago
Process: 92079 ExecStart=/usr/bin/bash -c set -o pipefail; DBG='' /usr/local/bin/ncp-update-nc.d/update-nc.sh '28' |& tee /var/log/ncp-update-nc.log (code=exited, status=1/FAILURE)
Main PID: 92079 (code=exited, status=1/FAILURE)
CPU: 770ms

may 27 17:25:22 minube sudo[92106]: root : PWD=/var/www ; USER=www-data ; COMMAND=/usr/bin/php -r 'include("/var/www/nextcloud/config/config.php"); echo($CONFIG["datadirectory"]);'
may 27 17:25:22 minube sudo[92106]: pam_unix(sudo:session): session opened for user www-data(uid=33) by (uid=0)
may 27 17:25:22 minube sudo[92106]: pam_unix(sudo:session): session closed for user www-data
may 27 17:25:22 minube sudo[92109]: root : PWD=/var/www ; USER=www-data ; COMMAND=/usr/bin/php /var/www/nextcloud/occ status
may 27 17:25:22 minube sudo[92109]: pam_unix(sudo:session): session opened for user www-data(uid=33) by (uid=0)
may 27 17:25:22 minube sudo[92109]: pam_unix(sudo:session): session closed for user www-data
may 27 17:25:22 minube bash[92081]: Nextcloud backup directory found. Interrupted or already running installation?
may 27 17:25:22 minube systemd[1]: ncp-update-nc.service: Main process exited, code=exited, status=1/FAILURE
may 27 17:25:22 minube systemd[1]: ncp-update-nc.service: Failed with result 'exit-code'.
may 27 17:25:22 minube systemd[1]: Failed to start ncp-update-nc.service - /usr/bin/bash -c set -o pipefail; DBG='' /usr/local/bin/ncp-update-nc.d/update-nc.sh '28' |& tee /var/log/ncp-update-nc.log.

My system data is Debian 12, NCpi v1.55.4, PHP 8.1.32, VM with 4 cores and 16Gb RAM.


<details>
<summary>NextcloudPi diagnostics</summary>



NextcloudPi version  v1.55.4
OS                   Debian GNU/Linux 12. 4.19.0-21-amd64 (x86_64)
automount            no
USB devices          none
datadir              /var/www/nextcloud/data
data in SD           yes
data filesystem      ext2/ext3
data disk usage      111G/195G
rootfs usage         111G/195G
swapfile             /var/swap
dbdir                /var/lib/mysql
Nextcloud check      ok
Nextcloud version    27.1.6.2
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
HPB service          down
Postfix service      up
Internet check       ok
Public IPv4          ***REMOVED SENSITIVE VALUE***
Public IPv6          ***REMOVED SENSITIVE VALUE***
Port 80              open
Port 443             open
IP                   ***REMOVED SENSITIVE VALUE***
Gateway              ***REMOVED SENSITIVE VALUE***
Interface            ens18
Certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
Uptime               1:28

Nextcloud configuration

{
“system”: {
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: {
“0”: “localhost”,
“11”: “x.x.211.62”,
“1”: “192.168.x.x”,
“5”: “nextcloudpi.local”,
“7”: “nextcloudpi”,
“8”: “nextcloudpi.lan”,
“12”: “minube.domain.es”,
“3”: “minube.domain.es”,
“14”: “minube.domain.es”
},
“datadirectory”: “REMOVED SENSITIVE VALUE”,
“dbtype”: “mysql”,
“version”: “27.1.6.2”,
“overwrite.cli.url”: “https://minube.domain.es/”,
“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”: “/var/www/nextcloud/data/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”,
“has_rebuilt_cache”: true,
“mail_sendmailmode”: “smtp”,
“maintenance”: false,
“loglevel”: 0,
“theme”: “”,
“trusted_proxies”: “REMOVED SENSITIVE VALUE”,
“logfile”: “/var/www/nextcloud/data/nextcloud.log”,
“data-fingerprint”: “994fc54a46e963c896991badc3b4fb42”
}
}

HTTPd logs

[Tue May 27 11:34:56.160455 2025] [core:warn] [pid 1328:tid 1328] AH00045: child process 1330 still did not exit, sending a SIGTERM
[Tue May 27 11:34:58.162868 2025] [core:warn] [pid 1328:tid 1328] AH00045: child process 1330 still did not exit, sending a SIGTERM
[Tue May 27 11:35:00.165296 2025] [core:warn] [pid 1328:tid 1328] AH00045: child process 1330 still did not exit, sending a SIGTERM
[Tue May 27 11:35:02.167603 2025] [core:error] [pid 1328:tid 1328] AH00046: child process 1330 still did not exit, sending a SIGKILL
[Tue May 27 11:35:15.246852 2025] [ssl:warn] [pid 1222:tid 1222] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue May 27 11:35:15.250773 2025] [ssl:error] [pid 1222:tid 1222] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: CN=minube.domain.es / issuer: CN=minube.domain.es / serial: 3DD46A9583A6B1EA9C16E32B082F77BFF780A4D4 / notbefore: Dec 17 19:23:37 2020 GMT / notafter: Dec 15 19:23:37 2030 GMT]
[Tue May 27 11:35:15.250788 2025] [ssl:error] [pid 1222:tid 1222] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Tue May 27 11:35:15.261844 2025] [ssl:warn] [pid 1283:tid 1283] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue May 27 11:35:15.262246 2025] [ssl:error] [pid 1283:tid 1283] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: CN=minube.domain.es / issuer: CN=minube.domain.es / serial: 3DD46A9583A6B1EA9C16E32B082F77BFF780A4D4 / notbefore: Dec 17 19:23:37 2020 GMT / notafter: Dec 15 19:23:37 2030 GMT]
[Tue May 27 11:35:15.262254 2025] [ssl:error] [pid 1283:tid 1283] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Tue May 27 11:35:15.265591 2025] [mpm_event:notice] [pid 1283:tid 1283] AH00489: Apache/2.4.62 (Debian) OpenSSL/3.0.16 configured – resuming normal operations
[Tue May 27 11:35:15.265612 2025] [core:notice] [pid 1283:tid 1283] AH00094: Command line: ‘/usr/sbin/apache2’
[Tue May 27 11:35:15.323191 2025] [authz_host:error] [pid 1286:tid 1309] [remote 192.168.x.111:54074] AH01753: access check of ‘localhost’ to /ncp-output.php failed, reason: unable to get the remote host name
[Tue May 27 11:37:56.148589 2025] [authz_host:error] [pid 1286:tid 1305] [remote 192.168.x.111:54074] AH01753: access check of ‘localhost’ to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue May 27 11:44:16.944685 2025] [authz_host:error] [pid 1286:tid 1301] [remote 192.168.x.111:54074] AH01753: access check of ‘localhost’ to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue May 27 11:44:22.621599 2025] [authz_host:error] [pid 1286:tid 1297] [remote 192.168.x.111:54074] AH01753: access check of ‘localhost’ to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue May 27 11:44:26.547052 2025] [authz_host:error] [pid 1286:tid 1291] [remote 192.168.x.111:54074] AH01753: access check of ‘localhost’ to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue May 27 11:44:59.812672 2025] [authz_host:error] [pid 1286:tid 1296] [remote 192.168.x.111:54074] AH01753: access check of ‘localhost’ to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue May 27 11:45:00.486769 2025] [authz_host:error] [pid 1286:tid 1293] [remote 192.168.x.111:54074] AH01753: access check of ‘localhost’ to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue May 27 11:45:11.672986 2025] [authz_host:error] [pid 1286:tid 1306] [remote 192.168.x.111:54074] AH01753: access check of ‘localhost’ to /ncp-launcher.php failed, reason: unable to get the remote host name

Database logs

2022-09-19 13:48:44 0 [Note] InnoDB: 10.3.36 started; log sequence number 16445774052; transaction id 63864063
2022-09-19 13:48:44 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2022-09-19 13:48:44 0 [Note] Plugin ‘FEEDBACK’ is disabled.
2022-09-19 13:48:44 0 [Note] Server socket created on IP: ‘127.0.0.1’.
2022-09-19 13:48:44 0 [Note] Reading of all Master_info entries succeeded
2022-09-19 13:48:44 0 [Note] Added new Master_info ‘’ to hash table
2022-09-19 13:48:44 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: ‘10.3.36-MariaDB-0+deb10u1’ socket: ‘/run/mysqld/mysqld.sock’ port: 3306 Debian 10
2022-09-19 13:48:44 0 [Note] InnoDB: Buffer pool(s) load completed at 220919 13:48:44
2022-09-19 13:48:46 9 [Warning] Aborted connection 9 to db: ‘nextcloud’ user: ‘ncadmin’ host: ‘localhost’ (Got an error reading communication packets)
2022-09-19 13:53:49 0 [Note] /usr/sbin/mysqld (initiated by: unknown): Normal shutdown
2022-09-19 13:53:49 0 [Note] Event Scheduler: Purging the queue. 0 events
2022-09-19 13:53:49 0 [Note] InnoDB: FTS optimize thread exiting.
2022-09-19 13:53:49 0 [Note] InnoDB: Starting shutdown…
2022-09-19 13:53:49 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2022-09-19 13:53:49 0 [Note] InnoDB: Buffer pool(s) dump completed at 220919 13:53:49
2022-09-19 13:53:50 0 [Note] InnoDB: Removed temporary tablespace data file: “ibtmp1”
2022-09-19 13:53:50 0 [Note] InnoDB: Shutdown completed; log sequence number 16445841290; transaction id 63864140
2022-09-19 13:53:50 0 [Note] /usr/sbin/mysqld: Shutdown complete

Nextcloud logs

{“reqId”:“tmz2NgHw47D5y1AJWe5u”,“level”:0,“time”:“2025-05-27T11:00:01+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“cron”,“method”:“”,“url”:“–”,“message”:“CLI cron call has selected job with ID 2979”,“userAgent”:“–”,“version”:“27.1.6.2”,“data”:{“app”:“cron”}}
{“reqId”:“tmz2NgHw47D5y1AJWe5u”,“level”:0,“time”:“2025-05-27T11:00:01+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“cron”,“method”:“”,“url”:“–”,“message”:“Run OCA\Talk\BackgroundJob\ExpireChatMessages job with ID 2979”,“userAgent”:“–”,“version”:“27.1.6.2”,“data”:{“app”:“cron”}}
{“reqId”:“tmz2NgHw47D5y1AJWe5u”,“level”:0,“time”:“2025-05-27T11:00:01+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“cron”,“method”:“”,“url”:“–”,“message”:“Finished OCA\Talk\BackgroundJob\ExpireChatMessages job with ID 2979 in 0 seconds”,“userAgent”:“–”,“version”:“27.1.6.2”,“data”:{“app”:“cron”}}
{“reqId”:“tmz2NgHw47D5y1AJWe5u”,“level”:0,“time”:“2025-05-27T11:00:01+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“cron”,“method”:“”,“url”:“–”,“message”:“CLI cron call has selected job with ID 2980”,“userAgent”:“–”,“version”:“27.1.6.2”,“data”:{“app”:“cron”}}
{“reqId”:“tmz2NgHw47D5y1AJWe5u”,“level”:0,“time”:“2025-05-27T11:00:01+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“cron”,“method”:“”,“url”:“–”,“message”:“Run OCA\Talk\BackgroundJob\ExpireSignalingMessage job with ID 2980”,“userAgent”:“–”,“version”:“27.1.6.2”,“data”:{“app”:“cron”}}
{“reqId”:“tmz2NgHw47D5y1AJWe5u”,“level”:0,“time”:“2025-05-27T11:00:01+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“cron”,“method”:“”,“url”:“–”,“message”:“Finished OCA\Talk\BackgroundJob\ExpireSignalingMessage job with ID 2980 in 0 seconds”,“userAgent”:“–”,“version”:“27.1.6.2”,“data”:{“app”:“cron”}}
{“reqId”:“tmz2NgHw47D5y1AJWe5u”,“level”:0,“time”:“2025-05-27T11:00:01+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“cron”,“method”:“”,“url”:“–”,“message”:“CLI cron call has selected job with ID 2981”,“userAgent”:“–”,“version”:“27.1.6.2”,“data”:{“app”:“cron”}}
{“reqId”:“tmz2NgHw47D5y1AJWe5u”,“level”:0,“time”:“2025-05-27T11:00:01+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“cron”,“method”:“”,“url”:“–”,“message”:“Run OCA\Talk\BackgroundJob\Reminder job with ID 2981”,“userAgent”:“–”,“version”:“27.1.6.2”,“data”:{“app”:“cron”}}
{“reqId”:“tmz2NgHw47D5y1AJWe5u”,“level”:0,“time”:“2025-05-27T11:00:01+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“cron”,“method”:“”,“url”:“–”,“message”:“Finished OCA\Talk\BackgroundJob\Reminder job with ID 2981 in 0 seconds”,“userAgent”:“–”,“version”:“27.1.6.2”,“data”:{“app”:“cron”}}
{“reqId”:“tmz2NgHw47D5y1AJWe5u”,“level”:0,“time”:“2025-05-27T11:00:01+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“cron”,“method”:“”,“url”:“–”,“message”:“CLI cron call has selected job with ID 2982”,“userAgent”:“–”,“version”:“27.1.6.2”,“data”:{“app”:“cron”}}
{“reqId”:“tmz2NgHw47D5y1AJWe5u”,“level”:0,“time”:“2025-05-27T11:00:01+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“cron”,“method”:“”,“url”:“–”,“message”:“Run OCA\Talk\BackgroundJob\RemoveEmptyRooms job with ID 2982”,“userAgent”:“–”,“version”:“27.1.6.2”,“data”:{“app”:“cron”}}
{“reqId”:“tmz2NgHw47D5y1AJWe5u”,“level”:0,“time”:“2025-05-27T11:00:01+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“cron”,“method”:“”,“url”:“–”,“message”:“Finished OCA\Talk\BackgroundJob\RemoveEmptyRooms job with ID 2982 in 0 seconds”,“userAgent”:“–”,“version”:“27.1.6.2”,“data”:{“app”:“cron”}}
{“reqId”:“tmz2NgHw47D5y1AJWe5u”,“level”:0,“time”:“2025-05-27T11:00:01+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“cron”,“method”:“”,“url”:“–”,“message”:“CLI cron call has selected job with ID 2983”,“userAgent”:“–”,“version”:“27.1.6.2”,“data”:{“app”:“cron”}}
{“reqId”:“tmz2NgHw47D5y1AJWe5u”,“level”:0,“time”:“2025-05-27T11:00:01+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“cron”,“method”:“”,“url”:“–”,“message”:“Run OCA\Talk\BackgroundJob\ResetAssignedSignalingServer job with ID 2983”,“userAgent”:“–”,“version”:“27.1.6.2”,“data”:{“app”:“cron”}}
{“reqId”:“tmz2NgHw47D5y1AJWe5u”,“level”:0,“time”:“2025-05-27T11:00:01+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“cron”,“method”:“”,“url”:“–”,“message”:“Finished OCA\Talk\BackgroundJob\ResetAssignedSignalingServer job with ID 2983 in 0 seconds”,“userAgent”:“–”,“version”:“27.1.6.2”,“data”:{“app”:“cron”}}
{“reqId”:“tmz2NgHw47D5y1AJWe5u”,“level”:0,“time”:“2025-05-27T11:00:01+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“cron”,“method”:“”,“url”:“–”,“message”:“CLI cron call has selected job with ID 3101”,“userAgent”:“–”,“version”:“27.1.6.2”,“data”:{“app”:“cron”}}
{“reqId”:“5dS1kAWWRYpDSIKpTDop”,“level”:0,“time”:“2025-05-27T11:03:48+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“serverDI”,“method”:“”,“url”:“–”,“message”:“The requested alias "SystemConfig" is deprecated. Please request "OC\SystemConfig" directly. This alias will be removed in a future Nextcloud version.”,“userAgent”:“–”,“version”:“27.1.6.2”,“data”:{“app”:“serverDI”}}
{“reqId”:“zZLU98xNM1T0gIVVfTtY”,“level”:0,“time”:“2025-05-27T11:03:48+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“serverDI”,“method”:“”,“url”:“–”,“message”:“The requested alias "SystemConfig" is deprecated. Please request "OC\SystemConfig" directly. This alias will be removed in a future Nextcloud version.”,“userAgent”:“–”,“version”:“27.1.6.2”,“data”:{“app”:“serverDI”}}
{“reqId”:“atCOgxn8s0iNqO2BmByc”,“level”:0,“time”:“2025-05-27T11:03:48+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“serverDI”,“method”:“”,“url”:“–”,“message”:“The requested alias "SystemConfig" is deprecated. Please request "OC\SystemConfig" directly. This alias will be removed in a future Nextcloud version.”,“userAgent”:“–”,“version”:“27.1.6.2”,“data”:{“app”:“serverDI”}}
{“reqId”:“Aa4AeGjDtGkkx04WWt6A”,“level”:0,“time”:“2025-05-27T11:03:50+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“serverDI”,“method”:“”,“url”:“–”,“message”:“The requested alias "SystemConfig" is deprecated. Please request "OC\SystemConfig" directly. This alias will be removed in a future Nextcloud version.”,“userAgent”:“–”,“version”:“27.1.6.2”,“data”:{“app”:“serverDI”}}

``` ```

Finally i find a post that say delete or rename /var/www/nextcloud_old folder and after this I have been able to make one by one the updates until I reached the current 31

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.