You are not logged in.

#1 2021-12-14 16:11:03

coolion
Member
Registered: 2019-11-02
Posts: 12

[SOLVED] Warning in Nextcloud about no internet connection

I have installed a Nextcloud, nginx and php-fpm as suggested on the arch-wiki. First, it works! Very good tutorial. If I login to Nextcloud I find a strange warning under "/settings/admin/overview". I would be in German so I don't post the text, but it basically says something like "Cannot connect to the internet". However I can post the messages from the "settings/admin/logging" page:

Fehler	internet_connection_check	GuzzleHttp\Exception\RequestException: cURL error 49: Couldn't parse CURLOPT_RESOLVE entry 'www.edri.org:80:'! (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://www.edri.org/
Fehler	PHP	Error: dns_get_record(): A temporary server error occurred. at /usr/share/webapps/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#83
Fehler	PHP	Error: dns_get_record(): A temporary server error occurred. at /usr/share/webapps/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#83	
Fehler	PHP	Error: dns_get_record(): A temporary server error occurred. at /usr/share/webapps/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#83	
Fehler	PHP	Error: dns_get_record(): A temporary server error occurred. at /usr/share/webapps/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#57	
...

I see this message also with different URLs e.g. "http://www.eff.org/" and "http://www.startpage.com/".
At first I thought it has something to do with the PHP extension for curl. But curl is installed and "php -m | grep curl" shows it is there.

Any ideas what this might be?

Last edited by coolion (2021-12-15 18:09:35)

Offline

#2 2021-12-15 18:08:19

coolion
Member
Registered: 2019-11-02
Posts: 12

Re: [SOLVED] Warning in Nextcloud about no internet connection

I got the solution. I have posted in parallel to the nextcloud forum and it turns out it is a problem with systemd-resolved. Have a look at [https://wiki.archlinux.org/title/Systemd-resolved#DNS]. Linking the /etc/resolve.conf to the mentioned location makes nextcloud's error disappear.

Offline

#3 2022-01-16 13:16:18

tobsen
Member
Registered: 2011-10-13
Posts: 37

Re: [SOLVED] Warning in Nextcloud about no internet connection

Hi coolion,

I see the same error in my log and it is associated with frequent unresponsiveness and 504 gateway time-outs. In contrast to your installation, I am working with docker-compose (Nextcloud 23 + nginx reverse proxy + lets encrypt companion, etc.).Enabling systemd-resolved in stub mode did not solve the issue. I am not sure if a recent systemd, docker, docker-compose or nextcloud update caused the issue. Do you have any suggestions?

Best,
tobsen

Offline

Board footer

Powered by FluxBB