Multiple endpoints could not be reached - Curl is working

Nextcloud version: 11.0.1
Operating system: arch linux
Apache or nginx version: nginx 1.10.3-1
PHP version: 7.1.1-1

Hi,
since I installed Nextcloud I get the following message in the Admin-Panel:

This server has no working Internet connection: Multiple endpoints could not be reached. This means that some of the features like mounting external storage, notifications about updates or installation of third-party apps will not work. Accessing files remotely and sending of notification emails might not work, either. We suggest to enable Internet connection for this server if you want to have all features.

Curl seems working and I really don’t have any clue for the reason of this problem :frowning:

Can it be that the connection conflicts with the openvpn which I is running on the same Raspi?

I would be really happy if you could give me any hints or instructions :slight_smile:
nginx.conf

events{}

#upstream php-handler {
    #server unix:/var/run/php-fpm/php-fpm.sock
    #server 127.0.0.1:9000;
    #server unix:/var/run/php5-fpm.sock;
#}

http{
include /etc/nginx/mime.types;

server {
    listen 80;
    server_name XXXXX.happyforever.com;
    # enforce https
    return 301 https://$server_name$request_uri;
}

server {
    listen 443 ssl http2;
    server_name XXXXX.happyforever.com;

    ssl_certificate ssl/server.crt;
    ssl_certificate_key ssl/server.key;

    # Add headers to serve security related headers
    # Before enabling Strict-Transport-Security headers please read into this
    # topic first.
    # add_header Strict-Transport-Security "max-age=15768000;
    # includeSubDomains; preload;";
    add_header X-Content-Type-Options nosniff;
    add_header X-Frame-Options "SAMEORIGIN";
    add_header X-XSS-Protection "1; mode=block";
    add_header X-Robots-Tag none;
    add_header X-Download-Options noopen;
    add_header X-Permitted-Cross-Domain-Policies none;

    # Path to the root of your installation
    root /usr/share/webapps/nextcloud/;

    location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
    }

    # The following 2 rules are only needed for the user_webfinger app.
    # Uncomment it if you're planning to use this app.
    #rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
    #rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json
    # last;

    location = /.well-known/carddav {
      return 301 $scheme://$host/remote.php/dav;
    }
    location = /.well-known/caldav {
      return 301 $scheme://$host/remote.php/dav;
    }

    # set max upload size
    client_max_body_size 512M;
    fastcgi_buffers 64 4K;

    # Disable gzip to avoid the removal of the ETag header
    gzip off;

    # Uncomment if your server is build with the ngx_pagespeed module
    # This module is currently not supported.
    #pagespeed off;

    error_page 403 /core/templates/403.php;
    error_page 404 /core/templates/404.php;

    location / {
        rewrite ^ /index.php$uri;
    }

    location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
        deny all;
    }
    location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) {
        deny all;
    }

    location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|core/templates/40[34])\.php(?:$|/) {
        include fastcgi_params;
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;
        fastcgi_param HTTPS on;
        #Avoid sending the security headers twice
        fastcgi_param modHeadersAvailable true;
        fastcgi_param front_controller_active true;
        #fastcgi_pass php-handler;
        fastcgi_intercept_errors on;
        fastcgi_request_buffering off;
        fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
    }

    location ~ ^/(?:updater|ocs-provider)(?:$|/) {
        try_files $uri/ =404;
        index index.php;
    }

    # Adding the cache control header for js and css files
    # Make sure it is BELOW the PHP block
    location ~* \.(?:css|js|woff|svg|gif)$ {
        try_files $uri /index.php$uri$is_args$args;
        add_header Cache-Control "public, max-age=7200";
        # Add headers to serve security related headers (It is intended to
        # have those duplicated to the ones above)
        # Before enabling Strict-Transport-Security headers please read into
        # this topic first.
        # add_header Strict-Transport-Security "max-age=15768000;
        #  includeSubDomains; preload;";
        add_header X-Content-Type-Options nosniff;
        add_header X-Frame-Options "SAMEORIGIN";
        add_header X-XSS-Protection "1; mode=block";
        add_header X-Robots-Tag none;
        add_header X-Download-Options noopen;
        add_header X-Permitted-Cross-Domain-Policies none;
        # Optional: Don't log access to assets
        access_log off;
    }

    location ~* \.(?:png|html|ttf|ico|jpg|jpeg)$ {
        try_files $uri /index.php$uri$is_args$args;
        # Optional: Don't log access to other assets
        access_log off;
    }
}
}

/etc/hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomain localhost

/etc/systemd/network/eth0.network
[Match]
Name=eth0

[Network]
DHCP=yes
Address=192.168.178.5/24
Gateway=192.168.178.1
DNS=192.168.178.1

Output of Nextcloud log in Admin > Logging:

No server logs
Everything is working fine

Config.php
<?php
$CONFIG = array (
‘instanceid’ => ‘XXXXXXXX’,
‘passwordsalt’ => ‘XXXXXXXXXXXXXXX’,
‘secret’ => ‘XXXXXXXXXXXXXXXXXXXXXX’,
‘trusted_domains’ =>
array (
0 => ‘XXXXXXXXXXXXXXXX.com’,
),
‘datadirectory’ => ‘/media/adata/nextcloud/data’,
‘overwrite.cli.url’ => ‘https://XXXXXXXX.com’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘11.0.1.2’,
‘dbname’ => ‘nextcloud’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘XXXXXXXXXXXXXXX’,
‘dbpassword’ => ‘XXXXXXXXXXXXXXXXXXXX’,
‘logtimezone’ => ‘UTC’,
‘installed’ => true,
‘has_internet_connection’ => true,
‘check_for_working_webdav’ => true,
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘theme’ => ‘’,
‘loglevel’ => 0,
‘enable_avatars’ => false,
‘maintenance’ => false,
);


nginx-log:

93.193.80.22 - - [10/Feb/2017:19:37:04 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 902 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
93.193.80.22 - KevinFrantz [10/Feb/2017:19:37:18 +0100] "GET /ocs/v2.php/apps/notifications/api/v1/notifications?format=json HTTP/1.1" 200 438 "-" "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
93.193.80.22 - KevinFrantz [10/Feb/2017:19:37:18 +0100] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 401 "-" "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
93.193.80.22 - - [10/Feb/2017:19:37:34 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 902 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
93.193.80.22 - KevinFrantz [10/Feb/2017:19:37:47 +0100] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 401 "-" "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
93.193.80.22 - - [10/Feb/2017:19:38:03 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 902 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
93.193.80.22 - KevinFrantz [10/Feb/2017:19:38:18 +0100] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 401 "-" "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
93.193.80.22 - - [10/Feb/2017:19:38:34 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 902 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
93.193.80.22 - KevinFrantz [10/Feb/2017:19:38:47 +0100] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 401 "-" "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
93.193.80.22 - - [10/Feb/2017:19:39:04 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 902 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
93.193.80.22 - KevinFrantz [10/Feb/2017:19:39:17 +0100] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 401 "-" "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
93.193.80.22 - - [10/Feb/2017:19:39:34 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 902 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
93.193.80.22 - KevinFrantz [10/Feb/2017:19:39:48 +0100] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 401 "-" "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
93.193.80.22 - - [10/Feb/2017:19:40:03 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 902 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
93.193.80.22 - KevinFrantz [10/Feb/2017:19:40:17 +0100] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 401 "-" "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"

Top result for “Multiple endpoints could not be reached”.

I resolved this issue by activating the encryption module.

While I’m at it. I was blown away a few years back by installing Owncloud on my server, Nextcloud take everything at another level. Thanks to everyone contributing to the project.