nextcloud / nextcloudpi

📦 Build code for NextcloudPi: Raspberry Pi, Odroid, Rock64, curl installer...
https://nextcloudpi.com
2.57k stars 297 forks source link

ncp-update fails at --fetch-keys https://packages.sury.org/php/apt.gpg #1936

Closed tilleule closed 5 months ago

tilleule commented 5 months ago

I'm stuck on version 1.53.3. NCP-UPDATE fails with this output:

Downloading updates

Performing updates Update root login prevention method... done. Fixing trusted proxies list... done. Updating PHP package signing key... OK:1 http://debian.dynamica.it/debian bookworm InRelease OK:2 http://ftp.nl.debian.org/debian bookworm InRelease
OK:3 http://debian.proxad.net/debian bookworm InRelease
OK:4 http://ftp.si.debian.org/debian bookworm InRelease
OK:5 http://ftp.sk.debian.org/debian bookworm InRelease
OK:6 https://ftp.tu-clausthal.de/debian bookworm InRelease
OK:7 http://packages.prosody.im/debian bookworm InRelease
OK:8 https://debian.mirror.iphh.net/debian bookworm InRelease
OK:9 https://mirror-prg.webglobe.com/debian bookworm InRelease
OK:10 http://archive.raspberrypi.com/debian bookworm InRelease
OK:11 http://deb.debian.org/debian bookworm InRelease
OK:12 http://deb.debian.org/debian-security bookworm-security InRelease
OK:13 http://deb.debian.org/debian bookworm-updates InRelease
Holen:14 http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_12 InRelease [1.556 B]
OK:15 https://packages.sury.org/php bookworm InRelease
OK:16 https://deb.volian.org/volian nala InRelease
OK:17 http://ftp.es.debian.org/debian bookworm InRelease
OK:18 http://ftp.ticklers.org/debian bookworm InRelease Es wurden 1.556 B in 3 s geholt (602 B/s).
Paketlisten werden gelesen… Fertig Paketlisten werden gelesen… Fertig Abhängigkeitsbaum wird aufgebaut… Fertig Statusinformationen werden eingelesen… Fertig gnupg2 ist schon die neueste Version (2.2.40-1.1). 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert. Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). Executing: /tmp/apt-key-gpghome.Ey7I9EIHhp/gpg.1.sh --fetch-keys https://packages.sury.org/php/apt.gpg gpg: fordere Schlüssel von https://packages.sury.org/php/apt.gpg an gpg: WARNUNG: die URI https://packages.sury.org/php/apt.gpg kann nicht geholt werden: Server indicated a failure gpg: key fetch failed: Server indicated a failure Error while applying update 1.54.0. Exiting...`

I manually imported the key, so it should be present, however ncp-update still fails trying to download apt.key.

-->

System information

NextcloudPi diagnostics ``` grep: /etc/apache2/sites-available/nextcloud.conf: Datei oder Verzeichnis nicht gefunden NextcloudPi version v1.53.3 NextcloudPi image NextcloudPi_11-25-23 OS Debian GNU/Linux 12. 6.6.28+rpt-rpi-2712 (aarch64) automount yes USB devices sda sdb sdc sdd datadir /media/myCloudDrive/ncdata data in SD no data filesystem btrfs data disk usage 614G/932G rootfs usage 29G/117G swapfile /var/swap dbdir /var/lib/mysql Nextcloud check ok Nextcloud version 28.0.4.1 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 closed Port 443 closed IP ***REMOVED SENSITIVE VALUE*** Gateway ***REMOVED SENSITIVE VALUE*** Interface eth0 Certificates ***REMOVED SENSITIVE VALUE*** NAT loopback no Uptime 27min ```
Nextcloud configuration ``` { "system": { "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": { "0": "localhost", "5": "nextcloudpi.local", "7": "nextcloudpi", "8": "nextcloudpi.lan", "1": "192.168.178.75", "13": "quark.kazam.p7.de", "12": "kazam.p7.de", "3": "nextcloudpi", "6": "[fe80::1]", "14": "nextcloudpi", "11": "2001:16b8:acb7:7500:dade:1ab8:b421:d51d" }, "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "28.0.4.1", "overwrite.cli.url": "https:\/\/nextcloudpi\/", "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", "trashbin_retention_obligation": "30, 90", "mail_smtpmode": "smtp", "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, "logfile": "\/media\/myCloudDrive\/ncdata\/nextcloud.log", "loglevel": 2, "log_type": "file", "htaccess.RewriteBase": "\/", "mail_sendmailmode": "smtp", "mail_smtpsecure": "tls", "mail_smtpauth": 1, "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "587", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "default_phone_region": "DE", "app_install_overwrite": [ "previewgenerator", "ocr", "pandoc", "nextcloudpi", "files_markdown", "news" ], "enable_previews": true, "enabledPreviewProviders": [ "OC\\Preview\\Movie", "OC\\Preview\\PNG", "OC\\Preview\\JPEG", "OC\\Preview\\GIF", "OC\\Preview\\BMP", "OC\\Preview\\XBitmap", "OC\\Preview\\MP3", "OC\\Preview\\MP4", "OC\\Preview\\TXT", "OC\\Preview\\MarkDown", "OC\\Preview\\PDF", "OC\\Preview\\Image", "OC\\Preview\\HEIC", "OC\\Preview\\TIFF" ], "theme": "", "data-fingerprint": "97985368476f0d6deeb4e0dc358b3362", "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "memories.exiftool": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/exiftool-aarch64-glibc", "memories.ffmpeg_path": "\/usr\/bin\/ffmpeg", "memories.ffprobe_path": "\/usr\/bin\/ffprobe", "memories.no_transcode": true, "memories.transcoder": "\/var\/www\/nextcloud\/apps\/memories\/exiftool-bin\/go-vod-aarch64", "memories.qsv": true, "memories.vod.path": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/go-vod-aarch64", "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg", "memories.vod.ffprobe": "\/usr\/bin\/ffprobe", "memories.vod.disable": false, "memories.vod.use_transpose": true, "memories.db.triggers.fcu": true, "maintenance_window_start": 1 } } ```
HTTPd logs ``` [Sun May 26 00:00:04.614580 2024] [ssl:warn] [pid 2201:tid 140734915287296] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name [Sun May 26 00:00:04.615232 2024] [ssl:error] [pid 2201:tid 140734915287296] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=arm-build.pitowers.org / issuer: CN=arm-build.pitowers.org / serial: 2EF167974F4D371320B4DE00D1B01F8006747475 / notbefore: Oct 10 03:48:07 2023 GMT / notafter: Oct 7 03:48:07 2033 GMT] [Sun May 26 00:00:04.615241 2024] [ssl:error] [pid 2201:tid 140734915287296] AH02604: Unable to configure certificate localhost:4443:0 for stapling [Sun May 26 00:00:04.624436 2024] [mpm_event:notice] [pid 2201:tid 140734915287296] AH00489: Apache/2.4.59 (Debian) OpenSSL/3.0.11 configured -- resuming normal operations [Sun May 26 00:00:04.624454 2024] [core:notice] [pid 2201:tid 140734915287296] AH00094: Command line: '/usr/sbin/apache2' [Sun May 26 08:50:02.034526 2024] [mpm_event:notice] [pid 2201:tid 140734915287296] AH00492: caught SIGWINCH, shutting down gracefully [Sun May 26 08:50:05.395109 2024] [core:warn] [pid 2201:tid 140734915287296] AH00045: child process 2021812 still did not exit, sending a SIGTERM [Sun May 26 08:50:07.397202 2024] [core:warn] [pid 2201:tid 140734915287296] AH00045: child process 2021812 still did not exit, sending a SIGTERM [Sun May 26 08:50:09.399288 2024] [core:warn] [pid 2201:tid 140734915287296] AH00045: child process 2021812 still did not exit, sending a SIGTERM [Sun May 26 08:50:11.401372 2024] [core:error] [pid 2201:tid 140734915287296] AH00046: child process 2021812 still did not exit, sending a SIGKILL [Sun May 26 08:50:57.182843 2024] [ssl:warn] [pid 2155:tid 140735123626240] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 3.0.13 30 Jan 2024 (OpenSSL 3.0.11 19 Sep 2023), version currently loaded is 0x300000B0) - may result in undefined or erroneous behavior [Sun May 26 08:50:57.208939 2024] [ssl:warn] [pid 2155:tid 140735123626240] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name [Sun May 26 08:50:57.209712 2024] [ssl:error] [pid 2155:tid 140735123626240] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=arm-build.pitowers.org / issuer: CN=arm-build.pitowers.org / serial: 2EF167974F4D371320B4DE00D1B01F8006747475 / notbefore: Oct 10 03:48:07 2023 GMT / notafter: Oct 7 03:48:07 2033 GMT] [Sun May 26 08:50:57.209728 2024] [ssl:error] [pid 2155:tid 140735123626240] AH02604: Unable to configure certificate localhost:4443:0 for stapling [Sun May 26 08:50:57.266398 2024] [ssl:warn] [pid 2200:tid 140735123626240] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 3.0.13 30 Jan 2024 (OpenSSL 3.0.11 19 Sep 2023), version currently loaded is 0x300000B0) - may result in undefined or erroneous behavior [Sun May 26 08:50:57.274657 2024] [ssl:warn] [pid 2200:tid 140735123626240] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name [Sun May 26 08:50:57.275557 2024] [ssl:error] [pid 2200:tid 140735123626240] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=arm-build.pitowers.org / issuer: CN=arm-build.pitowers.org / serial: 2EF167974F4D371320B4DE00D1B01F8006747475 / notbefore: Oct 10 03:48:07 2023 GMT / notafter: Oct 7 03:48:07 2033 GMT] [Sun May 26 08:50:57.275583 2024] [ssl:error] [pid 2200:tid 140735123626240] AH02604: Unable to configure certificate localhost:4443:0 for stapling [Sun May 26 08:50:57.283283 2024] [mpm_event:notice] [pid 2200:tid 140735123626240] AH00489: Apache/2.4.59 (Debian) OpenSSL/3.0.11 configured -- resuming normal operations [Sun May 26 08:50:57.283419 2024] [core:notice] [pid 2200:tid 140735123626240] AH00094: Command line: '/usr/sbin/apache2' ```
Database logs ``` tail: '/var/log/mysql/*.log' kann nicht zum Lesen geöffnet werden: Datei oder Verzeichnis nicht gefunden ```
Nextcloud logs ``` {"reqId":"4yTiFq9n1VAiDGGBuwUO","level":3,"time":"2024-05-26T07:15:09+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"28.0.4.1","data":{"app":"core"}} {"reqId":"4yTiFq9n1VAiDGGBuwUO","level":3,"time":"2024-05-26T07:15:09+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"28.0.4.1","data":{"app":"core"}} {"reqId":"4yTiFq9n1VAiDGGBuwUO","level":3,"time":"2024-05-26T07:15:13+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"28.0.4.1","data":{"app":"core"}} {"reqId":"4yTiFq9n1VAiDGGBuwUO","level":3,"time":"2024-05-26T07:15:13+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"28.0.4.1","data":{"app":"core"}} {"reqId":"4yTiFq9n1VAiDGGBuwUO","level":3,"time":"2024-05-26T07:15:19+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"28.0.4.1","data":{"app":"core"}} {"reqId":"4yTiFq9n1VAiDGGBuwUO","level":3,"time":"2024-05-26T07:15:19+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"28.0.4.1","data":{"app":"core"}} {"reqId":"4yTiFq9n1VAiDGGBuwUO","level":3,"time":"2024-05-26T07:15:24+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"28.0.4.1","data":{"app":"core"}} {"reqId":"4yTiFq9n1VAiDGGBuwUO","level":3,"time":"2024-05-26T07:15:24+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"28.0.4.1","data":{"app":"core"}} {"reqId":"4yTiFq9n1VAiDGGBuwUO","level":3,"time":"2024-05-26T07:15:29+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"28.0.4.1","data":{"app":"core"}} {"reqId":"4yTiFq9n1VAiDGGBuwUO","level":3,"time":"2024-05-26T07:15:29+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"28.0.4.1","data":{"app":"core"}} {"reqId":"4yTiFq9n1VAiDGGBuwUO","level":3,"time":"2024-05-26T07:15:34+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"28.0.4.1","data":{"app":"core"}} {"reqId":"4yTiFq9n1VAiDGGBuwUO","level":3,"time":"2024-05-26T07:15:34+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"28.0.4.1","data":{"app":"core"}} {"reqId":"4yTiFq9n1VAiDGGBuwUO","level":3,"time":"2024-05-26T07:15:43+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"28.0.4.1","data":{"app":"core"}} {"reqId":"4yTiFq9n1VAiDGGBuwUO","level":3,"time":"2024-05-26T07:15:43+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"28.0.4.1","data":{"app":"core"}} {"reqId":"4yTiFq9n1VAiDGGBuwUO","level":3,"time":"2024-05-26T07:15:48+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"28.0.4.1","data":{"app":"core"}} {"reqId":"4yTiFq9n1VAiDGGBuwUO","level":3,"time":"2024-05-26T07:15:48+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"28.0.4.1","data":{"app":"core"}} {"reqId":"4yTiFq9n1VAiDGGBuwUO","level":3,"time":"2024-05-26T07:16:04+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"28.0.4.1","data":{"app":"core"}} {"reqId":"4yTiFq9n1VAiDGGBuwUO","level":3,"time":"2024-05-26T07:16:04+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"28.0.4.1","data":{"app":"core"}} {"reqId":"4yTiFq9n1VAiDGGBuwUO","level":3,"time":"2024-05-26T07:16:09+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"28.0.4.1","data":{"app":"core"}} {"reqId":"4yTiFq9n1VAiDGGBuwUO","level":3,"time":"2024-05-26T07:16:09+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"28.0.4.1","data":{"app":"core"}} ```
tilleule commented 5 months ago

I managed to skip the gpg --fetch-keys ... line in the /tmp download during ncp-update and the update went through.