nextcloud / nextcloudpi

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

ncp-check-version: Zeile 9: is_docker: Kommando nicht gefunden #1805

Closed Npi4 closed 1 year ago

Npi4 commented 1 year ago

Looking at the mails produced by Cron root@nextcloudpi test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )

I found: /etc/cron.daily/ncp-check-version: /usr/local/bin/ncp-check-version: Zeile 9: is_docker: Kommando nicht gefunden.

After editing the file by adding this line: source /usr/local/etc/library.sh at the beginning after #!/bin/bash

it is working now.

memo: ncp-report should remove the trusted-domain data!

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

NextcloudPi diagnostics ``` NextcloudPi version v1.52.3 OS Debian GNU/Linux 12. 6.1.41-v8+ (aarch64) automount no USB devices sda sdb datadir /media/USBdrive/ncdata data in SD no data filesystem ext2/ext3 data disk usage 1,4T/1,8T rootfs usage 9,5G/29G swapfile /dev/zram0 dbdir /var/lib/mysql Nextcloud check ok Nextcloud version 26.0.4.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 closed Port 443 closed IP ***REMOVED SENSITIVE VALUE*** Gateway ***REMOVED SENSITIVE VALUE*** Interface eth0 Certificates ***REMOVED SENSITIVE VALUE*** NAT loopback no Uptime 11:38 ```
Nextcloud configuration ``` { "system": { "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": { "0": "localhost", "1": "192.168.222.100", "3": "nextcloudpi.fritz.box", "5": "nextcloudpi.fritz.box", "6": "nextcloudpi", "7": "127.0.0.1", "14": "nextcloudpi.fritz.box", }, "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "26.0.4.2", "overwrite.cli.url": "https:\/\/nextcloudpi.fritz.box\/", "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***" }, "mail_smtpmode": "smtp", "mail_smtpauthtype": "LOGIN", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "preview_max_x": "1024", "preview_max_y": "1024", "jpeg_quality": "60", "overwriteprotocol": "https", "maintenance": false, "tempdirectory": "\/media\/USBstick\/nctmp", "logfile": "\/media\/USBdrive\/ncdata\/nextcloud.log", "loglevel": "2", "log_type": "file", "mail_sendmailmode": "smtp", "theme": "", "htaccess.RewriteBase": "\/", "auth.bruteforce.protection.enabled": true, "versions_retention_obligation": "auto, 7", "trashbin_retention_obligation": "auto, 7", "app_install_overwrite": [ "previewgenerator" ], "preview_max_memory": 512, "enable_previews": true, "enabledPreviewProviders": [ "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\\JPG", "OC\\Preview\\Movie" ], "mail_smtpauth": 1, "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "465", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "mail_smtpsecure": "ssl", "data-fingerprint": "5913584d3c94bc238e42bd7cedff515f", "default_phone_region": "DE", "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "updater.release.channel": "stable" } } ```
HTTPd logs ``` [Fri Jul 28 00:00:02.531463 2023] [ssl:warn] [pid 1369:tid 548413874208] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name [Fri Jul 28 00:00:02.535446 2023] [mpm_event:notice] [pid 1369:tid 548413874208] AH00489: Apache/2.4.57 (Debian) mod_fcgid/2.3.9 OpenSSL/3.0.9 configured -- resuming normal operations [Fri Jul 28 00:00:02.535509 2023] [core:notice] [pid 1369:tid 548413874208] 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 ``` ```
theCalcaholic commented 1 year ago

Thanks for reporting. Fixed in v1.52.4