Nextcloud complains about no internet access

Hi

I have installed nextcloud on an arch-linux with nginx and php-fpm according to the arch-linux-wiki tutorial. So far nextcloud works, I can login and have a peek around as admin. I noticed the following in settings/logging:

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/	
2021-12-15T13:47:41+0100
Fehler	PHP	Error: dns_get_record(): A temporary server error occurred. at /usr/share/webapps/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#83	
2021-12-15T13:47:41+0100
Fehler	PHP	Error: dns_get_record(): A temporary server error occurred. at /usr/share/webapps/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#83	
2021-12-15T13:47:41+0100
Fehler	PHP	Error: dns_get_record(): A temporary server error occurred. at /usr/share/webapps/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#83	
2021-12-15T13:47:41+0100
Fehler	PHP	Error: dns_get_record(): A temporary server error occurred. at /usr/share/webapps/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#57	
2021-12-15T13:47:41+0100
Fehler	internet_connection_check	GuzzleHttp\Exception\RequestException: cURL error 49: Couldn't parse CURLOPT_RESOLVE entry 'www.eff.org:80:'! (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://www.eff.org/	
2021-12-15T13:47:41+0100

in settings/overview nextcloud complains that is does not have internet access. I am wondering what this means? At first I tought the error in the log looks like curl is somehow missing but the curl tool is installed on the server and ‘php -m | grep curl’ also says it is available. If any of you has an idea what is going on, help would be appreciated.

best regards

I would assume that you haven’t correctly set the DNS name resolution on your server because of an “PHP Error: dns_get_record()” error.

This might also help you to understand what need to be done:

Hi j-ed,

you are my hero. Now I feel ashamed that I asked an arch-linux question in the nextcloud forum. It was the systemd-resolved that wasnt properly using the /etc/resolve.conf. The link to github was linking back to the arch-linux forum.

In case other people have similar issues. Check your resolve.conf! https://wiki.archlinux.org/title/Systemd-resolved#DNS

Thank you for your help.

1 Like