Nextcloud 16 auf ubuntu 18.04 - ios-app

Nextcloud version : 16.0.4.1
Operating system and version: ubuntu 18.04 lts
Apache or nginx version : Apache 2.4.29
PHP version : PHP 7.2.19-0ubuntu0.18.04.2 (cli) (built: Aug 12 2019 19:34:28) ( NTS )

The issue you are facing:
all o.k in own lan; https access via ios-app running

the problem is: if trying to connect from outside via the app (LTE-connection) the app opens, for a short time it the tom of the app-form there is a message “Fehler”, dte nextcloud-icon gets greyed and obvoiusly no connection is established; no ability of browsing of contents , …
port-forwarding in Fritzbox 9490 to the hosting NAS is done (ports 80, 443, both IP4 and IP6)

Steps to replicate it:
I don’t know

The output of your Nextcloud log in Admin > Logging:

[core] Warning: Login failed: 'klaus5000' (Remote IP: '80.187.97.168')

POST /index.php/login
from 80.187.97.168 at 2019-09-03T15:52:29+00:00

The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):

PASTE HERE


The output of your Apache/nginx/system log in `/var/log/____`:

91.2.27.130 - klaus5000 [05/Sep/2019:12:02:23 +0200] “HEAD /remote.php/webdav HTTP/1.1” 200 4323 “-” “Mozilla/5.0 (iOS) Nextcloud-iOS/2.23.8”
91.2.27.130 - - [05/Sep/2019:12:02:25 +0200] “GET /status.php HTTP/1.1” 200 4661 “-” “Mozilla/5.0 (iOS) Nextcloud-iOS/2.23.8”
91.2.27.130 - klaus5000 [05/Sep/2019:12:02:25 +0200] “PROPFIND /remote.php/webdav HTTP/1.1” 207 2385 “-” “Mozilla/5.0 (iOS) Nextcloud-iOS/2.23.8”
91.2.27.130 - klaus5000 [05/Sep/2019:12:02:25 +0200] “GET /ocs/v2.php/cloud/user?format=json HTTP/1.1” 200 1854 “-” “Mozilla/5.0 (iOS) Nextcloud-iOS/2.23.8”
91.2.27.130 - klaus5000 [05/Sep/2019:12:02:25 +0200] "POST /ocs/v2.php/apps/notifications/api/v2/push?format=json&pushTokenHash=22bfa2b2b51070809270f0c1e9f0$
91.2.27.130 - klaus5000 [05/Sep/2019:12:02:25 +0200] “PROPFIND /remote.php/webdav HTTP/1.1” 207 7650 “-” “Mozilla/5.0 (iOS) Nextcloud-iOS/2.23.8”
91.2.27.130 - - [05/Sep/2019:12:02:25 +0200] “GET /index.php/avatar/klaus5000/128 HTTP/1.1” 201 6233 “-” “Mozilla/5.0 (iOS) Nextcloud-iOS/2.23.8”
91.2.27.130 - klaus5000 [05/Sep/2019:12:02:25 +0200] “REPORT /remote.php/dav/files/klaus5000 HTTP/1.1” 207 1467 “-” “Mozilla/5.0 (iOS) Nextcloud-iOS/2.23.8”
91.2.27.130 - klaus5000 [05/Sep/2019:12:02:25 +0200] “GET /ocs/v1.php/cloud/capabilities?format=json HTTP/1.1” 200 3541 “-” "Mozilla/5.0 (iOS) Nextcloud-iOS$
91.2.27.130 - - [05/Sep/2019:12:02:26 +0200] “GET /core/img/logo/logo.svg?v=0 HTTP/1.1” 200 3903 “-” “Mozilla/5.0 (iOS) Nextcloud-iOS/2.23.8”
91.2.27.130 - - [05/Sep/2019:12:02:26 +0200] “GET /core/img/background.png?v=0 HTTP/1.1” 200 106489 “-” “Mozilla/5.0 (iOS) Nextcloud-iOS/2.23.8”
91.2.27.130 - klaus5000 [05/Sep/2019:12:02:25 +0200] “SEARCH /remote.php/dav HTTP/1.1” 207 5922 “-” “Mozilla/5.0 (iOS) Nextcloud-iOS/2.23.8”
91.2.27.130 - klaus5000 [05/Sep/2019:12:02:25 +0200] “GET /ocs/v2.php/apps/notifications/api/v2/notifications?format=json HTTP/1.1” 200 1452 “-” "Mozilla/5.$
91.2.27.130 - klaus5000 [05/Sep/2019:12:02:25 +0200] “GET /ocs/v2.php/apps/external/api/v1?format=json HTTP/1.1” 200 1444 “-” "Mozilla/5.0 (iOS) Nextcloud-i$
91.2.27.130 - klaus5000 [05/Sep/2019:12:02:25 +0200] “GET /ocs/v2.php/apps/files_sharing/api/v1/shares HTTP/1.1” 200 1495 “-” "Mozilla/5.0 (iOS) Nextcloud-i$
91.2.27.130 - - [05/Sep/2019:12:02:26 +0200] “GET /status.php HTTP/1.1” 200 4657 “-” “Mozilla/5.0 (iOS) Nextcloud-iOS/2.23.8”
91.2.27.130 - klaus5000 [05/Sep/2019:12:02:26 +0200] “GET /index.php/core/preview.png?file=Nextcloud.png&x=281&y=500&a=1&mode=cover HTTP/1.1” 200 66711 “-” $
91.2.27.130 - klaus5000 [05/Sep/2019:12:02:26 +0200] "GET /ocs/v2.php/apps/activity/api/v2/activity/all?format=json&since=0&limit=100&previews=true HTTP/1.1$
91.2.27.130 - klaus5000 [05/Sep/2019:12:02:27 +0200] “PROPFIND /remote.php/webdav HTTP/1.1” 207 2245 “-” “Mozilla/5.0 (iOS) Nextcloud-iOS/2.23.8”
91.2.27.130 - klaus5000 [05/Sep/2019:12:02:26 +0200] “SEARCH /remote.php/dav HTTP/1.1” 207 664110 “-” “Mozilla/5.0 (iOS) Nextcloud-iOS/2.23.8”
::1 - - [05/Sep/2019:12:02:30 +0200] “OPTIONS * HTTP/1.0” 200 126 “-” “Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 (internal dummy connection)”
91.2.27.130 - klaus5000 [05/Sep/2019:12:02:29 +0200] “PROPFIND /remote.php/webdav/Fotos HTTP/1.1” 207 2210 “-” “Mozilla/5.0 (iOS) Nextcloud-iOS/2.23.8”
::1 - - [05/Sep/2019:12:02:31 +0200] “OPTIONS * HTTP/1.0” 200 126 “-” “Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 (internal dummy connection)”
::1 - - [05/Sep/2019:12:02:32 +0200] “OPTIONS * HTTP/1.0” 200 126 “-” “Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 (internal dummy connection)”
91.2.27.130 - klaus5000 [05/Sep/2019:12:02:31 +0200] “PROPFIND /remote.php/webdav/Fotos HTTP/1.1” 207 48125 “-” “Mozilla/5.0 (iOS) Nextcloud-iOS/2.23.8”
::1 - - [05/Sep/2019:12:02:33 +0200] “OPTIONS * HTTP/1.0” 200 126 “-” “Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 (internal dummy connection)”
::1 - - [05/Sep/2019:12:02:34 +0200] “OPTIONS * HTTP/1.0” 200 126 “-” “Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 (internal dummy connection)”
::1 - - [05/Sep/2019:12:02:35 +0200] “OPTIONS * HTTP/1.0” 200 126 “-” “Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 (internal dummy connection)”
::1 - - [05/Sep/2019:12:02:36 +0200] “OPTIONS * HTTP/1.0” 200 126 “-” “Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 (internal dummy connection)”
::1 - - [05/Sep/2019:12:02:37 +0200] “OPTIONS * HTTP/1.0” 200 126 “-” “Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 (internal dummy connection)”
::1 - - [05/Sep/2019:12:02:38 +0200] “OPTIONS * HTTP/1.0” 200 126 “-” “Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 (internal dummy connection)”
::1 - - [05/Sep/2019:12:02:39 +0200] “OPTIONS * HTTP/1.0” 200 126 “-” “Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 (internal dummy connection)”

to change:

…top of the app-form

Ftitzbox is 7490

to add from outside using dyndns

addendum:

when trying to connect via ios-app, using dyndns-adress and going over LTE
there is no entry written to /var/log/apache2/access.log.
Seems to be apache2 is’nt invoked

the /var/www/html/nextcloud/config/config.php is

<?php $CONFIG = array ( 'instanceid' => '---------------------', 'passwordsalt' => '------------------------', 'secret' => '-----------------------------', 'trusted_domains' => array ( 0 => 'local_address_of_server', 1 => 'localhost', 2 => 'dyndns-name_of_server', ), 'datadirectory' => '/mnt/r1p1/nextcloud', 'dbtype' => 'mysql', 'version' => '16.0.4.1', 'overwrite.cli.url' => 'https://dyndns-address_of_server', 'dbname' => 'nextcloud', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => 'the_user', 'dbpassword' => 'the_users_pw', 'installed' => true, 'maintenance' => false, 'forcessl' => true, 'overwriteprotocol' => 'https', ); Please excuse that I give the information in slices.

That’s impossible, because CalDAV/CardDAV are based on the http protocol which is in the responsibility of the web server. I’m using https to connect to my server, what you should do too, and therefore the log file is e.g. named access_log.ssl.

@kmichna Are you able to load the HTTPS page from any device at all outside your network? Try using the IP address instead of DDNS. You should be able to access it, although you may get an error about an untrusted name, and this is fine.

If you don’t get any entry at all in the Apache access log, then most likely the connection is never reaching your server. If your DDNS shows the correct public IP, then in all likelihood the problem is in your router.