Port 80 und 443 closed

Hallo zusammen,
ich habe heute versucht Nextcloud auf meinem RaspberryPi zu installieren. Bis zum Port Forwarding bin ich gekommen. Hab das Forwarding auf meiner Fritzbox eingerichtet und meine noip Daten hinterlegt. Wenn ich den Port Test auf der No-IP Seite mache wird bei beiden Ports aber gesagt das beide Ports zu sind.
Hab jetzt ncp-report laufen lassen und da steht auch das diese geschlossen sind. Wie bekomme ich die auf?

Kann mir jemand weiterhelfen?

Grüße

Flo

Hier der Report:

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

cat: /usr/local/etc/ncp-version: Datei oder Verzeichnis nicht gefunden
NextCloudPi version
distribution         Raspbian GNU/Linux 9 \n \l
automount            yes
USB devices          sda
datadir              /media/USBdrive/ncdata
data in SD           no
data filesystem      btrfs
data disk usage      53M/29G
rootfs usage         2,0G/27G
swapfile             /var/swap
dbdir                /var/lib/mysql
Nextcloud check      ok
Nextcloud version    15.0.8.1
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
Postfix service      up
internet check       ok
port check 80        closed
port check 443       closed
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
interface            wlan0
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
uptime               2:27

Nextcloud configuration

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "11": "2001:16b8:1e60:d600:7e65:8d9b:c766:f6f7",
            "1": "192.168.178.35",
            "5": "nextcloudpi.local",
            "7": "nextcloudpi",
            "8": "nextcloudpi.lan"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "15.0.8.1",
        "overwrite.cli.url": "http:\/\/localhost",
        "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\/USBdrive\/ncdata\/tmp",
        "mail_smtpmode": "sendmail",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "jpeg_quality": "60",
        "overwriteprotocol": "https",
        "maintenance": false,
        "logfile": "\/media\/USBdrive\/ncdata\/nextcloud.log",
        "loglevel": "2",
        "log_type": "file"
    }
}

HTTPd logs

[Sat Jun 08 17:00:34.000939 2019] [:notice] [pid 23090:tid 1996083440] ModSecurity: Status engine is currently disabled, enable it by set SecStatusEngine to On.
[Sat Jun 08 17:00:34.336211 2019] [ssl:warn] [pid 23091:tid 1996083440] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 08 17:00:34.336614 2019] [ssl:error] [pid 23091:tid 1996083440] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=raspberrypi / issuer: CN=raspberrypi / serial: F48CE76B81BC0D57 / notbefore: Jun  8 15:46:31 2019 GMT / notafter: Jun  5 15:46:31 2029 GMT]
[Sat Jun 08 17:00:34.336641 2019] [ssl:error] [pid 23091:tid 1996083440] AH02604: Unable to configure certificate localhost:443:0 for stapling
[Sat Jun 08 17:00:35.011187 2019] [mpm_event:notice] [pid 23091:tid 1996083440] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2r configured -- resuming normal operations
[Sat Jun 08 17:00:35.011658 2019] [core:notice] [pid 23091:tid 1996083440] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jun 08 17:06:22.633944 2019] [mpm_event:notice] [pid 23091:tid 1996083440] AH00493: SIGUSR1 received.  Doing graceful restart
AH00112: Warning: DocumentRoot [/var/www/ncp-web/] does not exist
[Sat Jun 08 17:06:22.708086 2019] [ssl:warn] [pid 23091:tid 1996083440] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 08 17:06:22.708496 2019] [ssl:error] [pid 23091:tid 1996083440] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=raspberrypi / issuer: CN=raspberrypi / serial: F48CE76B81BC0D57 / notbefore: Jun  8 15:46:31 2019 GMT / notafter: Jun  5 15:46:31 2029 GMT]
[Sat Jun 08 17:06:22.708522 2019] [ssl:error] [pid 23091:tid 1996083440] AH02604: Unable to configure certificate localhost:443:0 for stapling
[Sat Jun 08 17:06:23.000525 2019] [mpm_event:notice] [pid 23091:tid 1996083440] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2r configured -- resuming normal operations
[Sat Jun 08 17:06:23.000611 2019] [core:notice] [pid 23091:tid 1996083440] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jun 08 18:19:25.160690 2019] [mpm_event:notice] [pid 23091:tid 1996083440] AH00493: SIGUSR1 received.  Doing graceful restart
[Sat Jun 08 18:19:29.180493 2019] [ssl:warn] [pid 23091:tid 1996083440] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 08 18:19:29.181108 2019] [ssl:error] [pid 23091:tid 1996083440] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=raspberrypi / issuer: CN=raspberrypi / serial: F48CE76B81BC0D57 / notbefore: Jun  8 15:46:31 2019 GMT / notafter: Jun  5 15:46:31 2029 GMT]
[Sat Jun 08 18:19:29.181157 2019] [ssl:error] [pid 23091:tid 1996083440] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sat Jun 08 18:19:30.001192 2019] [mpm_event:notice] [pid 23091:tid 1996083440] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2r configured -- resuming normal operations
[Sat Jun 08 18:19:30.001333 2019] [core:notice] [pid 23091:tid 1996083440] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jun 08 18:19:54.600059 2019] [proxy_fcgi:error] [pid 2523:tid 1659167792] [client 192.168.178.21:53771] AH01071: Got error 'PHP message: PHP Notice:  Undefined index: app in /var/www/ncp-web/index.php on line 238\nPHP message: PHP Notice:  Undefined index: app in /var/www/ncp-web/index.php on line 244\n'

Database logs

2019-06-08 17:23:03 1970701120 [Note] /usr/sbin/mysqld: Shutdown complete

2019-06-08 17:23:19 1995919152 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2019-06-08 17:23:19 1995919152 [Note] InnoDB: The InnoDB memory heap is disabled
2019-06-08 17:23:19 1995919152 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-06-08 17:23:19 1995919152 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2019-06-08 17:23:19 1995919152 [Note] InnoDB: Compressed tables use zlib 1.2.8
2019-06-08 17:23:19 1995919152 [Note] InnoDB: Using Linux native AIO
2019-06-08 17:23:19 1995919152 [Note] InnoDB: Using generic crc32 instructions
2019-06-08 17:23:19 1995919152 [Note] InnoDB: Initializing buffer pool, size = 370.0M
2019-06-08 17:23:19 1995919152 [Note] InnoDB: Completed initialization of buffer pool
2019-06-08 17:23:19 1995919152 [Note] InnoDB: Highest supported file format is Barracuda.
2019-06-08 17:23:19 1995919152 [Note] InnoDB: 128 rollback segment(s) are active.
2019-06-08 17:23:19 1995919152 [Note] InnoDB: Waiting for purge to start
2019-06-08 17:23:19 1995919152 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.42-84.2 started; log sequence number 3883249
2019-06-08 17:23:19 1107292992 [Note] InnoDB: Dumping buffer pool(s) not yet started
2019-06-08 17:23:19 1995919152 [Note] Plugin 'FEEDBACK' is disabled.
2019-06-08 17:23:27 1995919152 [Note] Server socket created on IP: '127.0.0.1'.
2019-06-08 17:23:31 1995919152 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.1.38-MariaDB-0+deb9u1'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Raspbian 9.0

Nextcloud logs

{"reqId":"8S7fjX160tAAnK3K60qK","level":3,"time":"2019-06-08T16:00:31+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/var\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/var\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/var\/www\/nextcloud\/cron.php","line":41,"args":["\/var\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/var\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"ge57TfUdHbPN6iV3sJTH","level":3,"time":"2019-06-08T16:15:16+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/var\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/var\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/var\/www\/nextcloud\/cron.php","line":41,"args":["\/var\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/var\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}

Niemand einen Vorschlag? :frowning:

Hallo,

ich hatte ein ähnliches Problem, außerdem gab es hier: https://www.computerbase.de/forum/threads/nextcloudpi-und-portfreigabe.1859739/ eine ähnliche Beschreibung.
Mir fehlt das technische Hintergrundwissen um beurteilen zu können, ob es sich um die gleichen Probleme (und Lösungsmöglichkeiten) handelt oder nicht, aber bei mir hat folgendes geholfen:

  1. Ich habe zuerst bei meinem Provider (vodafone kabel deutschland) angerufen und freundlich nachgefragt, ob ich wohl dyndns nutzen könnte. Da wurde festgestellt, dass ich keine öffentliche IPv4-Adresse habe. Die wurde mir innerhalb kürzester Zeit kostenlos freigeschaltet.

  2. Als mir trotz des Portforwardings in meiner Fritzbox (7170) immer noch auf der Übersicht-Seite des NCP angezeigt wurde, die Ports seien geschlossen, habe ich nach vielen Foren-Suchen und Rumprobieren nochmal bei v.k.d. angerufen und die Mitarbeiterin hat festgestellt, dass ich (fälschlicherweise) die Fritzbox hinter einem Kabelmodem nutze, über das ich eigentlich ins Netz gehe (die Fritzbox war über LAN1-Schnittstelle angesteckt). Ich weiß nicht (mehr), warum ich das irgendwann mal gemacht hab (oder mir gemacht wurde), als ich den Anschluss vor ner halben Ewigkeit bekommen habe, aber das Abklemmen der Fritzbox (Internetzugang nur noch über das Modem - ein cbn CH6640E) war tatsächlich die Lösung! Auf der Übersicht-Seite des ncp wurden mir die Ports sofort als “open” angezeigt, letsencrypt hat sofort funktioniert (das ging vorher nicht und so stieß ich auf das Problem mit den Ports) und auch sonst läuft nun alles einwandfrei - Zugriff von unterwegs aus ohne Weiteres möglich. Die Konfiguration des Modems ist nicht so komfortabel wie über die Fritzbox (zum Beispiel kann man keine statischen IP-Adressen vergeben, das lässt sich ja aber auch bei ncp einstellen), aber es läuft nun endlich alles wie gewünscht!

Hoffe, das hilft?!?

Schöne Grüße!