[NCP] ncp-update issue from 1.52.4 to 1.53.0

Hi to the forum members,

yesterday I wanted to update my NextcloudPi installation (running in a Debian 11 virtualbox VM) from 1.52.4 to 1.53.0. The updater throws an error and exits:

andy@nextcloudpi:~$ sudo ncp-update
[sudo] Passwort für andy: 
Downloading updates
Performing updates
/usr/local/bin/ncp-update: Zeile 45: bin/update.sh: Datei oder Verzeichnis nicht gefunden

I had a look in the “ncp-update” script, it fails after cloning the latest master branch from github trying to find update.sh which isn’t present in the “bin” folder (see picture below).
Fixing this issue the script runs in further issues.

Anybody got the same issue or even a solution for it?

Thanks for your support!

Output of ncp-report (my trusted_domains have duplicates and remainders from restoring a backup I think, cleaning possible??):

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

NextcloudPi version  v1.52.4
NextcloudPi image    NextcloudPi_11-05-23
OS                   Debian GNU/Linux 11. 5.10.0-26-amd64 (x86_64)
automount            no
USB devices          none
datadir              /media/Nextcloud_Data/Data
data in SD           no
data filesystem      btrfs
data disk usage      204G/300G
rootfs usage         11G/19G
swapfile             /var/swap
dbdir                /media/Nextcloud_Database/Database
Nextcloud check      ok
Nextcloud version    27.1.3.2
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
HPB service          up
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            enp0s3
Certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
Uptime               2days

</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",
            "1": "192.168.188.24",
            "12": "mynextcloudpi.feste-ip.net",
            "11": "2001:9e8:afb0:b500:46f7:ae04:134d:44a",
            "20": "mycloudmydata.duckdns.org",
            "21": "192.168.188.22",
            "3": "mynextcloudpi.feste-ip.net",
            "22": "nextcloudpi",
            "": "mynextcloudpi.feste-ip.net",
            "14": "nextcloudpi"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "27.1.3.2",
        "overwrite.cli.url": "https:\/\/mynextcloudpi.feste-ip.net\/",
        "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\/Nextcloud_Data\/Data\/tmp",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "preview_max_x": "2048",
        "preview_max_y": "2048",
        "jpeg_quality": "60",
        "overwriteprotocol": "https",
        "loglevel": "2",
        "log_type": "file",
        "maintenance": false,
        "theme": "",
        "logfile": "\/media\/Nextcloud_Data\/Data\/nextcloud.log",
        "data-fingerprint": "664ddf0e5b5f54adfadd345ac7f85f2e",
        "mail_sendmailmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "default_language": "de",
        "default_phone_region": "DE",
        "app_install_overwrite": [
            "occweb",
            "sensorlogger",
            "riotchat"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***"
    }
}

</details>


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


[Thu Nov 16 00:00:02.129727 2023] [ssl:warn] [pid 957:tid 139751294426432] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Thu Nov 16 00:00:02.129839 2023] [ssl:error] [pid 957:tid 139751294426432] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=Nextcloud / issuer: CN=Nextcloud / serial: 56C1931A8EC5077F964B009BF32C29F938A11F66 / notbefore: Nov  5 10:55:09 2023 GMT / notafter: Nov  2 10:55:09 2033 GMT]
[Thu Nov 16 00:00:02.129848 2023] [ssl:error] [pid 957:tid 139751294426432] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Thu Nov 16 00:00:02.131143 2023] [mpm_event:notice] [pid 957:tid 139751294426432] AH00489: Apache/2.4.56 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations
[Thu Nov 16 00:00:02.131152 2023] [core:notice] [pid 957:tid 139751294426432] AH00094: Command line: '/usr/sbin/apache2'

</details>


<details>
<summary>Database logs</summary>


tail: '/var/log/mysql/*.log' kann nicht zum Lesen geöffnet werden: Datei oder Verzeichnis nicht gefunden

</details>


<details>
<summary>Nextcloud logs</summary>

{"reqId":"WvPblLRFOPE9EP7Gu91k","level":2,"time":"2023-11-16T15:45:08+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https://www.pcwelt.de/rss/hardware.xml read error : Client error: `GET https://www.pcwelt.de/rss/hardware.xml` resulted in a `404 Not Found` response:\n\n<!doctype html>\n<html >\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scal (truncated...)\n","userAgent":"--","version":"27.1.3.2","data":{"app":"news"}}
{"reqId":"WvPblLRFOPE9EP7Gu91k","level":2,"time":"2023-11-16T15:45:08+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https://www.pcwelt.de/rss/ratgeberfeed.xml read error : Client error: `GET https://www.pcwelt.de/rss/ratgeberfeed.xml` resulted in a `404 Not Found` response:\n\n<!doctype html>\n<html >\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scal (truncated...)\n","userAgent":"--","version":"27.1.3.2","data":{"app":"news"}}
{"reqId":"X6hRV2hsVrSg8l5rAxQP","level":2,"time":"2023-11-16T16:00:06+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https://www.pcwelt.de/rss/software.xml read error : Client error: `GET https://www.pcwelt.de/rss/software.xml` resulted in a `404 Not Found` response:\n\n<!doctype html>\n<html >\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scal (truncated...)\n","userAgent":"--","version":"27.1.3.2","data":{"app":"news"}}
{"reqId":"X6hRV2hsVrSg8l5rAxQP","level":2,"time":"2023-11-16T16:00:08+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https://www.pcwelt.de/rss/hardware.xml read error : Client error: `GET https://www.pcwelt.de/rss/hardware.xml` resulted in a `404 Not Found` response:\n\n<!doctype html>\n<html >\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scal (truncated...)\n","userAgent":"--","version":"27.1.3.2","data":{"app":"news"}}
{"reqId":"X6hRV2hsVrSg8l5rAxQP","level":2,"time":"2023-11-16T16:00:08+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https://www.pcwelt.de/rss/ratgeberfeed.xml read error : Client error: `GET https://www.pcwelt.de/rss/ratgeberfeed.xml` resulted in a `404 Not Found` response:\n\n<!doctype html>\n<html >\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scal (truncated...)\n","userAgent":"--","version":"27.1.3.2","data":{"app":"news"}}
{"reqId":"YvxYLzF4HeJCyTgJV9fE","level":2,"time":"2023-11-16T16:10:08+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https://www.pcwelt.de/rss/software.xml read error : Client error: `GET https://www.pcwelt.de/rss/software.xml` resulted in a `404 Not Found` response:\n\n<!doctype html>\n<html >\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scal (truncated...)\n","userAgent":"--","version":"27.1.3.2","data":{"app":"news"}}
{"reqId":"YvxYLzF4HeJCyTgJV9fE","level":2,"time":"2023-11-16T16:10:10+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https://www.pcwelt.de/rss/hardware.xml read error : Client error: `GET https://www.pcwelt.de/rss/hardware.xml` resulted in a `404 Not Found` response:\n\n<!doctype html>\n<html >\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scal (truncated...)\n","userAgent":"--","version":"27.1.3.2","data":{"app":"news"}}
{"reqId":"YvxYLzF4HeJCyTgJV9fE","level":2,"time":"2023-11-16T16:10:10+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https://www.pcwelt.de/rss/ratgeberfeed.xml read error : Client error: `GET https://www.pcwelt.de/rss/ratgeberfeed.xml` resulted in a `404 Not Found` response:\n\n<!doctype html>\n<html >\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scal (truncated...)\n","userAgent":"--","version":"27.1.3.2","data":{"app":"news"}}
{"reqId":"As0o0EHmUtBwGuv1dpyH","level":2,"time":"2023-11-16T16:25:07+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https://www.pcwelt.de/rss/software.xml read error : Client error: `GET https://www.pcwelt.de/rss/software.xml` resulted in a `404 Not Found` response:\n\n<!doctype html>\n<html >\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scal (truncated...)\n","userAgent":"--","version":"27.1.3.2","data":{"app":"news"}}
{"reqId":"As0o0EHmUtBwGuv1dpyH","level":2,"time":"2023-11-16T16:25:09+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https://www.pcwelt.de/rss/hardware.xml read error : Client error: `GET https://www.pcwelt.de/rss/hardware.xml` resulted in a `404 Not Found` response:\n\n<!doctype html>\n<html >\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scal (truncated...)\n","userAgent":"--","version":"27.1.3.2","data":{"app":"news"}}
{"reqId":"As0o0EHmUtBwGuv1dpyH","level":2,"time":"2023-11-16T16:25:09+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https://www.pcwelt.de/rss/ratgeberfeed.xml read error : Client error: `GET https://www.pcwelt.de/rss/ratgeberfeed.xml` resulted in a `404 Not Found` response:\n\n<!doctype html>\n<html >\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scal (truncated...)\n","userAgent":"--","version":"27.1.3.2","data":{"app":"news"}}
{"reqId":"oBMybZ9KVEdGI5Kop6SY","level":2,"time":"2023-11-16T16:35:09+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https://www.pcwelt.de/rss/software.xml read error : Client error: `GET https://www.pcwelt.de/rss/software.xml` resulted in a `404 Not Found` response:\n\n<!doctype html>\n<html >\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scal (truncated...)\n","userAgent":"--","version":"27.1.3.2","data":{"app":"news"}}
{"reqId":"oBMybZ9KVEdGI5Kop6SY","level":2,"time":"2023-11-16T16:35:11+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https://www.pcwelt.de/rss/hardware.xml read error : Client error: `GET https://www.pcwelt.de/rss/hardware.xml` resulted in a `404 Not Found` response:\n\n<!doctype html>\n<html >\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scal (truncated...)\n","userAgent":"--","version":"27.1.3.2","data":{"app":"news"}}
{"reqId":"oBMybZ9KVEdGI5Kop6SY","level":2,"time":"2023-11-16T16:35:11+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https://www.pcwelt.de/rss/ratgeberfeed.xml read error : Client error: `GET https://www.pcwelt.de/rss/ratgeberfeed.xml` resulted in a `404 Not Found` response:\n\n<!doctype html>\n<html >\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scal (truncated...)\n","userAgent":"--","version":"27.1.3.2","data":{"app":"news"}}
{"reqId":"s5ClXAXLkb23py9SpJzi","level":2,"time":"2023-11-16T16:50:11+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https://www.pcwelt.de/rss/software.xml read error : Client error: `GET https://www.pcwelt.de/rss/software.xml` resulted in a `404 Not Found` response:\n\n<!doctype html>\n<html >\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scal (truncated...)\n","userAgent":"--","version":"27.1.3.2","data":{"app":"news"}}
{"reqId":"s5ClXAXLkb23py9SpJzi","level":2,"time":"2023-11-16T16:50:13+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https://www.pcwelt.de/rss/hardware.xml read error : Client error: `GET https://www.pcwelt.de/rss/hardware.xml` resulted in a `404 Not Found` response:\n\n<!doctype html>\n<html >\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scal (truncated...)\n","userAgent":"--","version":"27.1.3.2","data":{"app":"news"}}
{"reqId":"s5ClXAXLkb23py9SpJzi","level":2,"time":"2023-11-16T16:50:15+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https://www.pcwelt.de/rss/ratgeberfeed.xml read error : Client error: `GET https://www.pcwelt.de/rss/ratgeberfeed.xml` resulted in a `404 Not Found` response:\n\n<!doctype html>\n<html >\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scal (truncated...)\n","userAgent":"--","version":"27.1.3.2","data":{"app":"news"}}
{"reqId":"IKB75XOpPqx7P9wK1WEw","level":2,"time":"2023-11-16T17:05:07+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https://www.pcwelt.de/rss/software.xml read error : Client error: `GET https://www.pcwelt.de/rss/software.xml` resulted in a `404 Not Found` response:\n\n<!doctype html>\n<html >\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scal (truncated...)\n","userAgent":"--","version":"27.1.3.2","data":{"app":"news"}}
{"reqId":"IKB75XOpPqx7P9wK1WEw","level":2,"time":"2023-11-16T17:05:09+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https://www.pcwelt.de/rss/hardware.xml read error : Client error: `GET https://www.pcwelt.de/rss/hardware.xml` resulted in a `404 Not Found` response:\n\n<!doctype html>\n<html >\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scal (truncated...)\n","userAgent":"--","version":"27.1.3.2","data":{"app":"news"}}
{"reqId":"IKB75XOpPqx7P9wK1WEw","level":2,"time":"2023-11-16T17:05:09+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https://www.pcwelt.de/rss/ratgeberfeed.xml read error : Client error: `GET https://www.pcwelt.de/rss/ratgeberfeed.xml` resulted in a `404 Not Found` response:\n\n<!doctype html>\n<html >\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scal (truncated...)\n","userAgent":"--","version":"27.1.3.2","data":{"app":"news"}}

</details>

Got it. The solution is to get the latest bin/ncp-update from Github and replace the local version located at /usr/local/bin. Also install.sh needs to be moved from /usr/local/bin to /usr/local.

That should be everything necessary to get it working.

I don’t know how or when the file install.sh moved on my disk or when the ncp-update script changed. Perhaps this was related to a restore from a previous backup.

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