nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.65k stars 3.99k forks source link

Bug in DnsPinMiddleware.php, "DNS Query failed" #28105

Closed moviuro closed 1 year ago

moviuro commented 3 years ago

How to use GitHub

Steps to reproduce

  1. Hand-patch /usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php according to #27922
  2. Navigate to the Dashboard page

Expected behaviour

Beautiful wallpaper

Actual behaviour

No wallpaper, error in log.

Server configuration

Operating system: FreeBSD 12.2

Web server: nginx

Database: postgre

PHP version: 8.0.8

Nextcloud version: 22.0.0 + manual patch /usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php according to #27922

Updated from an older Nextcloud/ownCloud or fresh install: updated

Where did you install Nextcloud from: pkg repositories

Signing status:

Signing status ``` Technical information ===================== The following list covers which files have failed the integrity check. Please read the previous linked documentation to learn more about the errors and how to fix them. Results ======= - core - INVALID_HASH - lib/private/Http/Client/DnsPinMiddleware.php - EXTRA_FILE - .well-known/security.txt - bandwidth.jpg Raw output ========== Array ( [core] => Array ( [INVALID_HASH] => Array ( [lib/private/Http/Client/DnsPinMiddleware.php] => Array ( [expected] => 881f287a6f87290c844e5fc75302af235ab1abd0fa1345c876f3897b03a2063ac112786e40ea7c74981241d7efcf88a89b9c1a0bcfad672a65c9fc8998929cce [current] => 5263329ee8cf2c3deb5f5d764f11324f9af80752828ca32e45bf2263db04c52b14389ab876d556d162b717f4e9cd67dd12fedc472546bf066d817c72ab49b3c2 ) ) [EXTRA_FILE] => Array ( [.well-known/security.txt] => Array ( [expected] => [current] => d872b4772cb6fa731d1cce15e12f77f4a04b86529ed97d9f35effc32e83b28ec251b8cded5d3afd804078b0a7ef63f128272a731e4b795412a3bc027b3a3db4b ) [bandwidth.jpg] => Array ( [expected] => [current] => dd66d8b17693ad507037db328e3c1cbc912a00770a8f8c1b625e8e27b71ab753317787da1da974ef6d250596e95e5a72d80f20d7878fa3496799ced77a60e4df ) ) ) ) ```

List of activated apps:

App list ``` Enabled: - accessibility: 1.7.0 - activity: 2.15.0 - circles: 22.0.0 - cloud_federation_api: 1.4.0 - comments: 1.11.0 - contactsinteraction: 1.2.0 - cospend: 1.3.7 - dashboard: 7.1.0 - dav: 1.18.0 - federatedfilesharing: 1.11.0 - federation: 1.11.0 - files: 1.16.0 - files_pdfviewer: 2.3.0 - files_rightclick: 1.1.0 - files_sharing: 1.13.2 - files_trashbin: 1.11.0 - files_versions: 1.14.0 - files_videoplayer: 1.11.0 - firstrunwizard: 2.11.0 - logreader: 2.7.0 - lookup_server_connector: 1.9.0 - music: 1.2.1 - nextcloud_announcements: 1.11.0 - notifications: 2.10.1 - oauth2: 1.9.0 - password_policy: 1.12.0 - photos: 1.4.0 - privacy: 1.6.0 - provisioning_api: 1.11.0 - recommendations: 1.1.0 - serverinfo: 1.12.0 - settings: 1.3.0 - sharebymail: 1.11.0 - support: 1.5.0 - survey_client: 1.10.0 - systemtags: 1.11.0 - text: 3.3.0 - theming: 1.12.0 - twofactor_backupcodes: 1.10.1 - twofactor_totp: 6.1.0 - updatenotification: 1.11.0 - user_status: 1.1.1 - viewer: 1.6.0 - weather_status: 1.1.0 - workflowengine: 2.3.0 Disabled: - admin_audit - encryption - files_external - ocdownloader - previewgenerator - user_ldap ```

Nextcloud configuration:

Config report ``` { "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "SECRETVALUE" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "overwrite.cli.url": "https:\/\/SECRETVALUE", "dbtype": "pgsql", "version": "22.0.0.11", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "default_phone_region": "FR", "installed": true, "mail_smtpmode": "smtp", "mail_smtpauthtype": "LOGIN", "mail_smtpsecure": "ssl", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauth": 1, "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "465", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "theme": "", "loglevel": 2, "log_type": "syslog", "maintenance": false, "apps_paths": [ { "path": "\/usr\/local\/www\/nextcloud\/apps", "url": "\/apps", "writable": true }, { "path": "\/usr\/local\/www\/nextcloud\/apps-pkg", "url": "\/apps-pkg", "writable": false } ], "memcache.local": "\\OC\\Memcache\\APCu", "mail_sendmailmode": "smtp", "app_install_overwrite": [ "ocdownloader", "previewgenerator" ] } } ```

Are you using external storage, if yes which one: no

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: Firefox 90.0.1

Operating system: Archlinux

Logs

Web server error log

Web server error log ``` ```

Nextcloud log (data/nextcloud.log)

Nextcloud log ```json {"reqId":"0yEG9SEo7MCCiVjQwIwM","level":3,"time":"2021-07-22T07:20:41+00:00","remoteAddr":"10.21.10.12","user":"moviuro","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/weather_status/api/v1/forecast","message":"dns_get_record(): DNS Query failed at /usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#66","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0","version":"22.0.0.11","exception":{"Exception":"Error","Message":"dns_get_record(): DNS Query failed at /usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#66","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"dns_get_record(): DNS Query failed","/usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php",66]},{"file":"/usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php","line":66,"function":"dns_get_record","args":["api.met.no",16]},{"file":"/usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php","line":113,"function":"dnsResolve","class":"OC\\Http\\Client\\DnsPinMiddleware","type":"->","args":["api.met.no",0]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":35,"function":"OC\\Http\\Client\\{closure}","class":"OC\\Http\\Client\\DnsPinMiddleware","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":31,"function":"__invoke","class":"GuzzleHttp\\PrepareBodyMiddleware","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":71,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":63,"function":"__invoke","class":"GuzzleHttp\\RedirectMiddleware","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php","line":75,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":331,"function":"__invoke","class":"GuzzleHttp\\HandlerStack","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":168,"function":"transfer","class":"GuzzleHttp\\Client","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":187,"function":"requestAsync","class":"GuzzleHttp\\Client","type":"->","args":["get",{"__class__":"GuzzleHttp\\Psr7\\Uri"},{"verify":"/usr/local/www/nextcloud/resources/config/ca-bundle.crt","timeout":30,"allow_redirects":{"on_redirect":{"__class__":"Closure"}},"nextcloud":{"allow_local_address":false},"synchronous":true,"0":"And 6 more entries, set log level to debug to see all entries"}]},{"file":"/usr/local/www/nextcloud/lib/private/Http/Client/Client.php","line":223,"function":"request","class":"GuzzleHttp\\Client","type":"->","args":["get","https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=XXX&lon=XXX&altitude=XXX",{"verify":"/usr/local/www/nextcloud/resources/config/ca-bundle.crt","timeout":30,"allow_redirects":{"on_redirect":{"__class__":"Closure"}},"headers":{"User-Agent":"NextcloudWeatherStatus/1.1.0 nextcloud.com","Accept-Encoding":"gzip"},"nextcloud":{"allow_local_address":false},"0":"And 1 more entries, set log level to debug to see all entries"}]},{"file":"/usr/local/www/nextcloud/apps-pkg/weather_status/lib/Service/WeatherStatusService.php","line":415,"function":"get","class":"OC\\Http\\Client\\Client","type":"->","args":["https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=XXX&lon=XXX&altitude=XXX",{"headers":{"User-Agent":"NextcloudWeatherStatus/1.1.0 nextcloud.com"}}]},{"file":"/usr/local/www/nextcloud/apps-pkg/weather_status/lib/Service/WeatherStatusService.php","line":380,"function":"requestJSON","class":"OCA\\WeatherStatus\\Service\\WeatherStatusService","type":"->","args":["https://api.met.no/weatherapi/locationforecast/2.0/compact",{"lat":"45.76","lon":"4.83","altitude":175}]},{"file":"/usr/local/www/nextcloud/apps-pkg/weather_status/lib/Service/WeatherStatusService.php","line":358,"function":"forecastRequest","class":"OCA\\WeatherStatus\\Service\\WeatherStatusService","type":"->","args":[45.7578137,4.8320114,175]},{"file":"/usr/local/www/nextcloud/apps-pkg/weather_status/lib/Controller/WeatherStatusController.php","line":118,"function":"getForecast","class":"OCA\\WeatherStatus\\Service\\WeatherStatusService","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"getForecast","class":"OCA\\WeatherStatus\\Controller\\WeatherStatusController","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\WeatherStatus\\Controller\\WeatherStatusController"},"getForecast"]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/App.php","line":156,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\WeatherStatus\\Controller\\WeatherStatusController"},"getForecast"]},{"file":"/usr/local/www/nextcloud/lib/private/Route/Router.php","line":301,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\WeatherStatus\\Controller\\WeatherStatusController","getForecast",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"ocs.weather_status.WeatherStatus.getForecast"}]},{"file":"/usr/local/www/nextcloud/ocs/v1.php","line":62,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocsapp/apps/weather_status/api/v1/forecast"]},{"file":"/usr/local/www/nextcloud/ocs/v2.php","line":23,"args":["/usr/local/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/usr/local/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}} {"reqId":"MjfUCzjGgB1QnN0igWer","level":3,"time":"2021-07-22T07:29:18+00:00","remoteAddr":"10.21.10.12","user":"moviuro","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/weather_status/api/v1/forecast","message":"dns_get_record(): DNS Query failed at /usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#66","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0","version":"22.0.0.11","exception":{"Exception":"Error","Message":"dns_get_record(): DNS Query failed at /usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#66","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"dns_get_record(): DNS Query failed","/usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php",66]},{"file":"/usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php","line":66,"function":"dns_get_record","args":["api.met.no",16]},{"file":"/usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php","line":113,"function":"dnsResolve","class":"OC\\Http\\Client\\DnsPinMiddleware","type":"->","args":["api.met.no",0]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":35,"function":"OC\\Http\\Client\\{closure}","class":"OC\\Http\\Client\\DnsPinMiddleware","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":31,"function":"__invoke","class":"GuzzleHttp\\PrepareBodyMiddleware","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":71,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":63,"function":"__invoke","class":"GuzzleHttp\\RedirectMiddleware","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php","line":75,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":331,"function":"__invoke","class":"GuzzleHttp\\HandlerStack","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":168,"function":"transfer","class":"GuzzleHttp\\Client","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":187,"function":"requestAsync","class":"GuzzleHttp\\Client","type":"->","args":["get",{"__class__":"GuzzleHttp\\Psr7\\Uri"},{"verify":"/usr/local/www/nextcloud/resources/config/ca-bundle.crt","timeout":30,"allow_redirects":{"on_redirect":{"__class__":"Closure"}},"nextcloud":{"allow_local_address":false},"synchronous":true,"0":"And 6 more entries, set log level to debug to see all entries"}]},{"file":"/usr/local/www/nextcloud/lib/private/Http/Client/Client.php","line":223,"function":"request","class":"GuzzleHttp\\Client","type":"->","args":["get","https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=XXX&lon=XXX&altitude=XXX",{"verify":"/usr/local/www/nextcloud/resources/config/ca-bundle.crt","timeout":30,"allow_redirects":{"on_redirect":{"__class__":"Closure"}},"headers":{"User-Agent":"NextcloudWeatherStatus/1.1.0 nextcloud.com","Accept-Encoding":"gzip"},"nextcloud":{"allow_local_address":false},"0":"And 1 more entries, set log level to debug to see all entries"}]},{"file":"/usr/local/www/nextcloud/apps-pkg/weather_status/lib/Service/WeatherStatusService.php","line":415,"function":"get","class":"OC\\Http\\Client\\Client","type":"->","args":["https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=XXX&lon=XXX&altitude=XXX",{"headers":{"User-Agent":"NextcloudWeatherStatus/1.1.0 nextcloud.com"}}]},{"file":"/usr/local/www/nextcloud/apps-pkg/weather_status/lib/Service/WeatherStatusService.php","line":380,"function":"requestJSON","class":"OCA\\WeatherStatus\\Service\\WeatherStatusService","type":"->","args":["https://api.met.no/weatherapi/locationforecast/2.0/compact",{"lat":"47.22","lon":"2.07","altitude":108}]},{"file":"/usr/local/www/nextcloud/apps-pkg/weather_status/lib/Service/WeatherStatusService.php","line":358,"function":"forecastRequest","class":"OCA\\WeatherStatus\\Service\\WeatherStatusService","type":"->","args":[47.2217489,2.0691421,108]},{"file":"/usr/local/www/nextcloud/apps-pkg/weather_status/lib/Controller/WeatherStatusController.php","line":118,"function":"getForecast","class":"OCA\\WeatherStatus\\Service\\WeatherStatusService","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"getForecast","class":"OCA\\WeatherStatus\\Controller\\WeatherStatusController","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\WeatherStatus\\Controller\\WeatherStatusController"},"getForecast"]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/App.php","line":156,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\WeatherStatus\\Controller\\WeatherStatusController"},"getForecast"]},{"file":"/usr/local/www/nextcloud/lib/private/Route/Router.php","line":301,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\WeatherStatus\\Controller\\WeatherStatusController","getForecast",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"ocs.weather_status.WeatherStatus.getForecast"}]},{"file":"/usr/local/www/nextcloud/ocs/v1.php","line":62,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocsapp/apps/weather_status/api/v1/forecast"]},{"file":"/usr/local/www/nextcloud/ocs/v2.php","line":23,"args":["/usr/local/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/usr/local/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}} ```

Browser log

Browser log ``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```
szaimen commented 3 years ago

I think this was fixed with NC22.1.0. Please reopen if you can still reproduce the issue with that version. Thanks!

moviuro commented 3 years ago

@szaimen I have upgraded to 22.1.0 (from freebsd pkg repo)

The logging tab says:

[PHP] Error: dns_get_record(): DNS Query failed at /usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#83

POST /ocs/v2.php/apps/survey_client/api/v1/report?format=json
from 10.21.10.12 by nextcloud-administrator at 2021-08-23T13:01:09+00:00
{"reqId":"oHG890RuGDEgS59KjvD6","level":3,"time":"2021-08-23T13:01:09+00:00","remoteAddr":"10.21.10.12","user":"nextcloud-administrator","app":"PHP","method":"POST","url":"/ocs/v2.php/apps/survey_client/api/v1/report?format=json","message":"dns_get_record(): DNS Query failed at /usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#83","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0","version":"22.1.0.1","exception":{"Exception":"Error","Message":"dns_get_record(): DNS Query failed at /usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#83","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"dns_get_record(): DNS Query failed","/usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php",83]},{"file":"/usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php","line":83,"function":"dns_get_record","args":["surveyserver.nextcloud.com",16]},{"file":"/usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php","line":128,"function":"dnsResolve","class":"OC\\Http\\Client\\DnsPinMiddleware","type":"->","args":["surveyserver.nextcloud.com",1]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":35,"function":"OC\\Http\\Client\\{closure}","class":"OC\\Http\\Client\\DnsPinMiddleware","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":31,"function":"__invoke","class":"GuzzleHttp\\PrepareBodyMiddleware","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":71,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":63,"function":"__invoke","class":"GuzzleHttp\\RedirectMiddleware","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php","line":75,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":331,"function":"__invoke","class":"GuzzleHttp\\HandlerStack","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":168,"function":"transfer","class":"GuzzleHttp\\Client","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":187,"function":"requestAsync","class":"GuzzleHttp\\Client","type":"->","args":["post",{"__class__":"GuzzleHttp\\Psr7\\Uri"},{"0":"And 7 more entries, set log level to debug to see all entries","verify":"/usr/local/www/nextcloud/resources/config/ca-bundle.crt","timeout":5,"allow_redirects":{"on_redirect":{"__class__":"Closure"}},"query":{"data":"{\"id\":\"ocbu7gdy84us\",\"items\":[[\"server\",\"version\",\"22.1.0.1\"],[\"server\",\"code\",\"other\"],[\"server\",\"enable_avatars\",\"yes\"],[\"server\",\"enable_previews\",\"yes\"],[\"server\",\"memcache.local\",\"\\\\OC\\\\Memcache\\\\APCu\"],[\"server\",\"memcache.distributed\",\"none\"],[\"server\",\"asset-pipeline.enabled\",\"no\"],[\"server\",\"filelocking.enabled\",\"yes\"],[\"server\",\"memcache.locking\",\"none\"],[\"server\",\"debug\",\"no\"],[\"server\",\"cron\",\"cron\"],[\"php\",\"version\",\"8.0.9\"],[\"php\",\"memory_limit\",536870912],[\"php\",\"max_execution_time\",3600],[\"php\",\"upload_max_filesize\",2097152],[\"database\",\"type\",\"pgsql\"],[\"database\",\"version\",\"PostgreSQL 9.6.22 on amd64-portbld-freebsd12.2, compiled by FreeBSD clang version 10.0.1 (git@github.com:llvm\\/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2), 64-bit\"],[\"database\",\"size\",1700649496],[\"apps\",\"provisioning_api\",\"1.11.0\"],[\"apps\",\"firstrunwizard\",\"2.11.0\"],[\"apps\",\"federation\",\"1.11.0\"],[\"apps\",\"password_policy\",\"1.12.0\"],[\"apps\",\"photos\",\"1.4.0\"],[\"apps\",\"oauth2\",\"1.9.0\"],[\"apps\",\"serverinfo\",\"1.12.0\"],[\"apps\",\"files_sharing\",\"1.13.2\"],[\"apps\",\"activity\",\"2.15.0\"],[\"apps\",\"files\",\"1.16.0\"],[\"apps\",\"bruteforcesettings\",\"disabled\"],[\"apps\",\"comments\",\"1.11.0\"],[\"apps\",\"gallery\",\"disabled\"],[\"apps\",\"nextcloud_announcements\",\"1.11.0\"],[\"apps\",\"notifications\",\"2.10.1\"],[\"apps\",\"files_texteditor\",\"disabled\"],[\"apps\",\"files_pdfviewer\",\"2.3.0\"],[\"apps\",\"systemtags\",\"1.11.0\"],[\"apps\",\"theming\",\"1.12.0\"],[\"apps\",\"ocdownloader\",\"disabled\"],[\"apps\",\"dashboard\",\"7.1.0\"],[\"apps\",\"files_versions\",\"1.14.0\"],[\"apps\",\"sharebymail\",\"1.11.0\"],[\"apps\",\"files_trashbin\",\"1.11.0\"],[\"apps\",\"survey_client\",\"1.10.0\"],[\"apps\",\"logreader\",\"2.7.0\"],[\"apps\",\"settings\",\"1.3.0\"],[\"apps\",\"twofactor_backupcodes\",\"1.10.1\"],[\"apps\",\"workflowengine\",\"2.3.0\"],[\"apps\",\"updatenotification\",\"1.11.0\"],[\"apps\",\"weather_status\",\"1.1.0\"],[\"apps\",\"lookup_server_connector\",\"1.9.0\"],[\"apps\",\"dav\",\"1.18.0\"],[\"apps\",\"federatedfilesharing\",\"1.11.0\"],[\"apps\",\"files_videoplayer\",\"1.11.0\"],[\"apps\",\"cospend\",\"1.3.12\"],[\"apps\",\"contactsinteraction\",\"1.2.0\"],[\"apps\",\"user_status\",\"1.1.1\"],[\"apps\",\"music\",\"1.2.1\"],[\"apps\",\"circles\",\"22.1.0\"],[\"apps\",\"files_rightclick\",\"1.1.0\"],[\"apps\",\"privacy\",\"1.6.0\"],[\"apps\",\"previewgenerator\",\"3.1.1\"],[\"apps\",\"cloud_federation_api\",\"1.4.0\"],[\"apps\",\"accessibility\",\"1.7.0\"],[\"apps\",\"recommendations\",\"1.1.0\"],[\"apps\",\"support\",\"1.5.0\"],[\"apps\",\"text\",\"3.3.0\"],[\"apps\",\"viewer\",\"1.6.0\"],[\"apps\",\"twofactor_totp\",\"6.1.0\"],[\"stats\",\"num_files\",1801384],[\"stats\",\"num_users\",7],[\"stats\",\"num_storages\",9],[\"stats\",\"num_storages_local\",1],[\"stats\",\"num_storages_home\",8],[\"stats\",\"num_storages_other\",0],[\"stats\",\"num_comments\",0],[\"stats\",\"num_comment_markers\",0],[\"stats\",\"num_systemtags\",0],[\"stats\",\"num_systemtags_mappings\",0],[\"files_sharing\",\"num_shares\",39],[\"files_sharing\",\"num_shares_user\",15],[\"files_sharing\",\"num_shares_groups\",9],[\"files_sharing\",\"num_shares_link\",2],[\"files_sharing\",\"num_shares_link_no_password\",2],[\"files_sharing\",\"num_fed_shares_sent\",0],[\"files_sharing\",\"num_fed_shares_received\",0],[\"files_sharing\",\"permissions_0_31\",5],[\"files_sharing\",\"permissions_1_31\",6],[\"files_sharing\",\"permissions_2_31\",13],[\"files_sharing\",\"permissions_0_19\",8],[\"files_sharing\",\"permissions_0_17\",2],[\"files_sharing\",\"permissions_3_17\",2],[\"files_sharing\",\"permissions_1_17\",3],[\"encryption\",\"enabled\",\"no\"],[\"encryption\",\"default_module\",\"no\"]]}"},"nextcloud":{"allow_local_address":false}}]},{"file":"/usr/local/www/nextcloud/lib/private/Http/Client/Client.php","line":294,"function":"request","class":"GuzzleHttp\\Client","type":"->","args":["post","https://surveyserver.nextcloud.com/ocs/v2.php/apps/survey_server/api/v1/survey",{"0":"And 2 more entries, set log level to debug to see all entries","verify":"/usr/local/www/nextcloud/resources/config/ca-bundle.crt","timeout":5,"allow_redirects":{"on_redirect":{"__class__":"Closure"}},"query":{"data":"{\"id\":\"ocbu7gdy84us\",\"items\":[[\"server\",\"version\",\"22.1.0.1\"],[\"server\",\"code\",\"other\"],[\"server\",\"enable_avatars\",\"yes\"],[\"server\",\"enable_previews\",\"yes\"],[\"server\",\"memcache.local\",\"\\\\OC\\\\Memcache\\\\APCu\"],[\"server\",\"memcache.distributed\",\"none\"],[\"server\",\"asset-pipeline.enabled\",\"no\"],[\"server\",\"filelocking.enabled\",\"yes\"],[\"server\",\"memcache.locking\",\"none\"],[\"server\",\"debug\",\"no\"],[\"server\",\"cron\",\"cron\"],[\"php\",\"version\",\"8.0.9\"],[\"php\",\"memory_limit\",536870912],[\"php\",\"max_execution_time\",3600],[\"php\",\"upload_max_filesize\",2097152],[\"database\",\"type\",\"pgsql\"],[\"database\",\"version\",\"PostgreSQL 9.6.22 on amd64-portbld-freebsd12.2, compiled by FreeBSD clang version 10.0.1 (git@github.com:llvm\\/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2), 64-bit\"],[\"database\",\"size\",1700649496],[\"apps\",\"provisioning_api\",\"1.11.0\"],[\"apps\",\"firstrunwizard\",\"2.11.0\"],[\"apps\",\"federation\",\"1.11.0\"],[\"apps\",\"password_policy\",\"1.12.0\"],[\"apps\",\"photos\",\"1.4.0\"],[\"apps\",\"oauth2\",\"1.9.0\"],[\"apps\",\"serverinfo\",\"1.12.0\"],[\"apps\",\"files_sharing\",\"1.13.2\"],[\"apps\",\"activity\",\"2.15.0\"],[\"apps\",\"files\",\"1.16.0\"],[\"apps\",\"bruteforcesettings\",\"disabled\"],[\"apps\",\"comments\",\"1.11.0\"],[\"apps\",\"gallery\",\"disabled\"],[\"apps\",\"nextcloud_announcements\",\"1.11.0\"],[\"apps\",\"notifications\",\"2.10.1\"],[\"apps\",\"files_texteditor\",\"disabled\"],[\"apps\",\"files_pdfviewer\",\"2.3.0\"],[\"apps\",\"systemtags\",\"1.11.0\"],[\"apps\",\"theming\",\"1.12.0\"],[\"apps\",\"ocdownloader\",\"disabled\"],[\"apps\",\"dashboard\",\"7.1.0\"],[\"apps\",\"files_versions\",\"1.14.0\"],[\"apps\",\"sharebymail\",\"1.11.0\"],[\"apps\",\"files_trashbin\",\"1.11.0\"],[\"apps\",\"survey_client\",\"1.10.0\"],[\"apps\",\"logreader\",\"2.7.0\"],[\"apps\",\"settings\",\"1.3.0\"],[\"apps\",\"twofactor_backupcodes\",\"1.10.1\"],[\"apps\",\"workflowengine\",\"2.3.0\"],[\"apps\",\"updatenotification\",\"1.11.0\"],[\"apps\",\"weather_status\",\"1.1.0\"],[\"apps\",\"lookup_server_connector\",\"1.9.0\"],[\"apps\",\"dav\",\"1.18.0\"],[\"apps\",\"federatedfilesharing\",\"1.11.0\"],[\"apps\",\"files_videoplayer\",\"1.11.0\"],[\"apps\",\"cospend\",\"1.3.12\"],[\"apps\",\"contactsinteraction\",\"1.2.0\"],[\"apps\",\"user_status\",\"1.1.1\"],[\"apps\",\"music\",\"1.2.1\"],[\"apps\",\"circles\",\"22.1.0\"],[\"apps\",\"files_rightclick\",\"1.1.0\"],[\"apps\",\"privacy\",\"1.6.0\"],[\"apps\",\"previewgenerator\",\"3.1.1\"],[\"apps\",\"cloud_federation_api\",\"1.4.0\"],[\"apps\",\"accessibility\",\"1.7.0\"],[\"apps\",\"recommendations\",\"1.1.0\"],[\"apps\",\"support\",\"1.5.0\"],[\"apps\",\"text\",\"3.3.0\"],[\"apps\",\"viewer\",\"1.6.0\"],[\"apps\",\"twofactor_totp\",\"6.1.0\"],[\"stats\",\"num_files\",1801384],[\"stats\",\"num_users\",7],[\"stats\",\"num_storages\",9],[\"stats\",\"num_storages_local\",1],[\"stats\",\"num_storages_home\",8],[\"stats\",\"num_storages_other\",0],[\"stats\",\"num_comments\",0],[\"stats\",\"num_comment_markers\",0],[\"stats\",\"num_systemtags\",0],[\"stats\",\"num_systemtags_mappings\",0],[\"files_sharing\",\"num_shares\",39],[\"files_sharing\",\"num_shares_user\",15],[\"files_sharing\",\"num_shares_groups\",9],[\"files_sharing\",\"num_shares_link\",2],[\"files_sharing\",\"num_shares_link_no_password\",2],[\"files_sharing\",\"num_fed_shares_sent\",0],[\"files_sharing\",\"num_fed_shares_received\",0],[\"files_sharing\",\"permissions_0_31\",5],[\"files_sharing\",\"permissions_1_31\",6],[\"files_sharing\",\"permissions_2_31\",13],[\"files_sharing\",\"permissions_0_19\",8],[\"files_sharing\",\"permissions_0_17\",2],[\"files_sharing\",\"permissions_3_17\",2],[\"files_sharing\",\"permissions_1_17\",3],[\"encryption\",\"enabled\",\"no\"],[\"encryption\",\"default_module\",\"no\"]]}"},"nextcloud":{"allow_local_address":false}}]},{"file":"/usr/local/www/nextcloud/apps-pkg/survey_client/lib/Collector.php","line":166,"function":"post","class":"OC\\Http\\Client\\Client","type":"->","args":["https://surveyserver.nextcloud.com/ocs/v2.php/apps/survey_server/api/v1/survey",{"timeout":5,"query":{"data":"{\"id\":\"ocbu7gdy84us\",\"items\":[[\"server\",\"version\",\"22.1.0.1\"],[\"server\",\"code\",\"other\"],[\"server\",\"enable_avatars\",\"yes\"],[\"server\",\"enable_previews\",\"yes\"],[\"server\",\"memcache.local\",\"\\\\OC\\\\Memcache\\\\APCu\"],[\"server\",\"memcache.distributed\",\"none\"],[\"server\",\"asset-pipeline.enabled\",\"no\"],[\"server\",\"filelocking.enabled\",\"yes\"],[\"server\",\"memcache.locking\",\"none\"],[\"server\",\"debug\",\"no\"],[\"server\",\"cron\",\"cron\"],[\"php\",\"version\",\"8.0.9\"],[\"php\",\"memory_limit\",536870912],[\"php\",\"max_execution_time\",3600],[\"php\",\"upload_max_filesize\",2097152],[\"database\",\"type\",\"pgsql\"],[\"database\",\"version\",\"PostgreSQL 9.6.22 on amd64-portbld-freebsd12.2, compiled by FreeBSD clang version 10.0.1 (git@github.com:llvm\\/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2), 64-bit\"],[\"database\",\"size\",1700649496],[\"apps\",\"provisioning_api\",\"1.11.0\"],[\"apps\",\"firstrunwizard\",\"2.11.0\"],[\"apps\",\"federation\",\"1.11.0\"],[\"apps\",\"password_policy\",\"1.12.0\"],[\"apps\",\"photos\",\"1.4.0\"],[\"apps\",\"oauth2\",\"1.9.0\"],[\"apps\",\"serverinfo\",\"1.12.0\"],[\"apps\",\"files_sharing\",\"1.13.2\"],[\"apps\",\"activity\",\"2.15.0\"],[\"apps\",\"files\",\"1.16.0\"],[\"apps\",\"bruteforcesettings\",\"disabled\"],[\"apps\",\"comments\",\"1.11.0\"],[\"apps\",\"gallery\",\"disabled\"],[\"apps\",\"nextcloud_announcements\",\"1.11.0\"],[\"apps\",\"notifications\",\"2.10.1\"],[\"apps\",\"files_texteditor\",\"disabled\"],[\"apps\",\"files_pdfviewer\",\"2.3.0\"],[\"apps\",\"systemtags\",\"1.11.0\"],[\"apps\",\"theming\",\"1.12.0\"],[\"apps\",\"ocdownloader\",\"disabled\"],[\"apps\",\"dashboard\",\"7.1.0\"],[\"apps\",\"files_versions\",\"1.14.0\"],[\"apps\",\"sharebymail\",\"1.11.0\"],[\"apps\",\"files_trashbin\",\"1.11.0\"],[\"apps\",\"survey_client\",\"1.10.0\"],[\"apps\",\"logreader\",\"2.7.0\"],[\"apps\",\"settings\",\"1.3.0\"],[\"apps\",\"twofactor_backupcodes\",\"1.10.1\"],[\"apps\",\"workflowengine\",\"2.3.0\"],[\"apps\",\"updatenotification\",\"1.11.0\"],[\"apps\",\"weather_status\",\"1.1.0\"],[\"apps\",\"lookup_server_connector\",\"1.9.0\"],[\"apps\",\"dav\",\"1.18.0\"],[\"apps\",\"federatedfilesharing\",\"1.11.0\"],[\"apps\",\"files_videoplayer\",\"1.11.0\"],[\"apps\",\"cospend\",\"1.3.12\"],[\"apps\",\"contactsinteraction\",\"1.2.0\"],[\"apps\",\"user_status\",\"1.1.1\"],[\"apps\",\"music\",\"1.2.1\"],[\"apps\",\"circles\",\"22.1.0\"],[\"apps\",\"files_rightclick\",\"1.1.0\"],[\"apps\",\"privacy\",\"1.6.0\"],[\"apps\",\"previewgenerator\",\"3.1.1\"],[\"apps\",\"cloud_federation_api\",\"1.4.0\"],[\"apps\",\"accessibility\",\"1.7.0\"],[\"apps\",\"recommendations\",\"1.1.0\"],[\"apps\",\"support\",\"1.5.0\"],[\"apps\",\"text\",\"3.3.0\"],[\"apps\",\"viewer\",\"1.6.0\"],[\"apps\",\"twofactor_totp\",\"6.1.0\"],[\"stats\",\"num_files\",1801384],[\"stats\",\"num_users\",7],[\"stats\",\"num_storages\",9],[\"stats\",\"num_storages_local\",1],[\"stats\",\"num_storages_home\",8],[\"stats\",\"num_storages_other\",0],[\"stats\",\"num_comments\",0],[\"stats\",\"num_comment_markers\",0],[\"stats\",\"num_systemtags\",0],[\"stats\",\"num_systemtags_mappings\",0],[\"files_sharing\",\"num_shares\",39],[\"files_sharing\",\"num_shares_user\",15],[\"files_sharing\",\"num_shares_groups\",9],[\"files_sharing\",\"num_shares_link\",2],[\"files_sharing\",\"num_shares_link_no_password\",2],[\"files_sharing\",\"num_fed_shares_sent\",0],[\"files_sharing\",\"num_fed_shares_received\",0],[\"files_sharing\",\"permissions_0_31\",5],[\"files_sharing\",\"permissions_1_31\",6],[\"files_sharing\",\"permissions_2_31\",13],[\"files_sharing\",\"permissions_0_19\",8],[\"files_sharing\",\"permissions_0_17\",2],[\"files_sharing\",\"permissions_3_17\",2],[\"files_sharing\",\"permissions_1_17\",3],[\"encryption\",\"enabled\",\"no\"],[\"encryption\",\"default_module\",\"no\"]]}"}}]},{"file":"/usr/local/www/nextcloud/apps-pkg/survey_client/lib/Controller/EndpointController.php","line":94,"function":"sendReport","class":"OCA\\Survey_Client\\Collector","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"sendReport","class":"OCA\\Survey_Client\\Controller\\EndpointController","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Survey_Client\\Controller\\EndpointController"},"sendReport"]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/App.php","line":156,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Survey_Client\\Controller\\EndpointController"},"sendReport"]},{"file":"/usr/local/www/nextcloud/lib/private/Route/Router.php","line":301,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Survey_Client\\Controller\\EndpointController","sendReport",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"ocs.survey_client.Endpoint.sendReport"}]},{"file":"/usr/local/www/nextcloud/ocs/v1.php","line":62,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocsapp/apps/survey_client/api/v1/report"]},{"file":"/usr/local/www/nextcloud/ocs/v2.php","line":23,"args":["/usr/local/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/usr/local/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"id":"61239c1c6fe83"}
thijsjek commented 3 years ago

Also running on freebsd 12, same error#83, nextcloud 22.1.1. I suspect it's a soa record related because no issues other than in the log. Same time exactly there are 2 requests (on my DNS server) apps.nextcloud.com a record nextcloud.com SOA: ns.inwx.de. hostmaster.inwx.de. 2021071201 10800 3600 604800 3600 (ttl=32116)

moviuro commented 3 years ago

This is still an issue. Please reopen @szaimen . FreeBSD 12.2, Nextcloud 22.1.1.

{"reqId":"6EdXnzRhj8Vah8JKncx5","level":3,"time":"2021-09-07T20:29:58+00:00","remoteAddr":"10.21.10.12","user":"nextcloud-administrator","app":"PHP","method":"PUT","url":"/ocs/v2.php/apps/weather_status/api/v1/location","message":"dns_get_record(): DNS Query failed at /usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#83","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0","version":"22.1.1.2","exception":{"Exception":"Error","Message":"dns_get_record(): DNS Query failed at /usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#83","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"dns_get_record(): DNS Query failed","/usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php",83]},{"file":"/usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php","line":83,"function":"dns_get_record","args":["api.opentopodata.org",16]},{"file":"/usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php","line":128,"function":"dnsResolve","class":"OC\\Http\\Client\\DnsPinMiddleware","type":"->","args":["api.opentopodata.org",1]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":35,"function":"OC\\Http\\Client\\{closure}","class":"OC\\Http\\Client\\DnsPinMiddleware","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":31,"function":"__invoke","class":"GuzzleHttp\\PrepareBodyMiddleware","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":71,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":63,"function":"__invoke","class":"GuzzleHttp\\RedirectMiddleware","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php","line":75,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":331,"function":"__invoke","class":"GuzzleHttp\\HandlerStack","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":168,"function":"transfer","class":"GuzzleHttp\\Client","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":187,"function":"requestAsync","class":"GuzzleHttp\\Client","type":"->","args":["get",{"__class__":"GuzzleHttp\\Psr7\\Uri"},{"verify":"/usr/local/www/nextcloud/resources/config/ca-bundle.crt","timeout":30,"allow_redirects":{"on_redirect":{"__class__":"Closure"}},"nextcloud":{"allow_local_address":false},"synchronous":true,"0":"And 6 more entries, set log level to debug to see all entries"}]},{"file":"/usr/local/www/nextcloud/lib/private/Http/Client/Client.php","line":223,"function":"request","class":"GuzzleHttp\\Client","type":"->","args":["get","https://api.opentopodata.org/v1/srtm30m?locations=47.2217489%2C2.0691421",{"verify":"/usr/local/www/nextcloud/resources/config/ca-bundle.crt","timeout":30,"allow_redirects":{"on_redirect":{"__class__":"Closure"}},"headers":{"User-Agent":"NextcloudWeatherStatus/1.1.0 nextcloud.com","Accept-Encoding":"gzip"},"nextcloud":{"allow_local_address":false},"0":"And 1 more entries, set log level to debug to see all entries"}]},{"file":"/usr/local/www/nextcloud/apps-pkg/weather_status/lib/Service/WeatherStatusService.php","line":415,"function":"get","class":"OC\\Http\\Client\\Client","type":"->","args":["https://api.opentopodata.org/v1/srtm30m?locations=47.2217489%2C2.0691421",{"headers":{"User-Agent":"NextcloudWeatherStatus/1.1.0 nextcloud.com"}}]},{"file":"/usr/local/www/nextcloud/apps-pkg/weather_status/lib/Service/WeatherStatusService.php","line":232,"function":"requestJSON","class":"OCA\\WeatherStatus\\Service\\WeatherStatusService","type":"->","args":["https://api.opentopodata.org/v1/srtm30m",{"locations":"47.2217489,2.0691421"}]},{"file":"/usr/local/www/nextcloud/apps-pkg/weather_status/lib/Service/WeatherStatusService.php","line":292,"function":"getAltitude","class":"OCA\\WeatherStatus\\Service\\WeatherStatusService","type":"->","args":[47.2217489,2.0691421]},{"file":"/usr/local/www/nextcloud/apps-pkg/weather_status/lib/Service/WeatherStatusService.php","line":196,"function":"setAddress","class":"OCA\\WeatherStatus\\Service\\WeatherStatusService","type":"->","args":["LOCATION"]},{"file":"/usr/local/www/nextcloud/apps-pkg/weather_status/lib/Controller/WeatherStatusController.php","line":94,"function":"setLocation","class":"OCA\\WeatherStatus\\Service\\WeatherStatusService","type":"->","args":["LOCATION",null,null]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"setLocation","class":"OCA\\WeatherStatus\\Controller\\WeatherStatusController","type":"->","args":["LOCATION",null,null]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\WeatherStatus\\Controller\\WeatherStatusController"},"setLocation"]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/App.php","line":156,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\WeatherStatus\\Controller\\WeatherStatusController"},"setLocation"]},{"file":"/usr/local/www/nextcloud/lib/private/Route/Router.php","line":301,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\WeatherStatus\\Controller\\WeatherStatusController","setLocation",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"ocs.weather_status.WeatherStatus.setLocation"}]},{"file":"/usr/local/www/nextcloud/ocs/v1.php","line":62,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocsapp/apps/weather_status/api/v1/location"]},{"file":"/usr/local/www/nextcloud/ocs/v2.php","line":23,"args":["/usr/local/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/usr/local/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
szaimen commented 2 years ago

cc @LukasReschke

LukasReschke commented 2 years ago

I don't have a FreeBSD environment to debug this, neither is it part of our recommended setup environment.

So someone else will have to dive into this as I won't have capacity. :-)

evgenyvasilchenko commented 2 years ago

It's an issue under TrueNAS FreeBSD jail. So far I discovered two issues and I don't know if they're related to the below error or not

root@nextcloud-jail:~ # uname -a
FreeBSD nextcloud-jail 12.2-RELEASE-p9 FreeBSD 12.2-RELEASE-p9 2ee62d665f0(HEAD) TRUENAS  amd64
root@nextcloud-jail:~ # occ status
  - installed: true
  - version: 22.1.1.2
  - versionstring: 22.1.1
  - edition:

The NextCloud log is filling (every ~30min ) with below messages:

Error: dns_get_record(): DNS Query failed at /usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#83

    <<closure>>

    OC\Log\ErrorHandler::onError()

    /usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php - line 83:

    dns_get_record()

    /usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php - line 128:

    OC\Http\Client\DnsPinMiddleware->dnsResolve()

    /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php - line 35:

    OC\Http\Client\DnsPinMiddleware->OC\Http\Client\{closure}("*** sensiti ... *")

    /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php - line 31:

    GuzzleHttp\PrepareBodyMiddleware->__invoke()

    /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php - line 71:

    GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensiti ... *")

    /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php - line 63:

    GuzzleHttp\RedirectMiddleware->__invoke()

    /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php - line 75:

    GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensiti ... *")

    /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 331:

    GuzzleHttp\HandlerStack->__invoke()

    /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 168:

    GuzzleHttp\Client->transfer()

    /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 187:

    GuzzleHttp\Client->requestAsync()

    /usr/local/www/nextcloud/lib/private/Http/Client/Client.php - line 223:

    GuzzleHttp\Client->request()

    /usr/local/www/nextcloud/apps-pkg/settings/lib/BackgroundJobs/VerifyUserData.php - line 226:

    OC\Http\Client\Client->get()

    /usr/local/www/nextcloud/apps-pkg/settings/lib/BackgroundJobs/VerifyUserData.php - line 187:

    OCA\Settings\BackgroundJobs\VerifyUserData->queryLookupServer()

    /usr/local/www/nextcloud/apps-pkg/settings/lib/BackgroundJobs/VerifyUserData.php - line 117:

    OCA\Settings\BackgroundJobs\VerifyUserData->verifyViaLookupServer()

    /usr/local/www/nextcloud/lib/public/BackgroundJob/Job.php - line 79:

    OCA\Settings\BackgroundJobs\VerifyUserData->run()

    /usr/local/www/nextcloud/apps-pkg/settings/lib/BackgroundJobs/VerifyUserData.php - line 98:

    OCP\BackgroundJob\Job->execute()

    /usr/local/www/nextcloud/cron.php - line 127:

    OCA\Settings\BackgroundJobs\VerifyUserData->execute()
gavsiu commented 2 years ago

I don't use LDAP, so I can't speak for that.

I can log into the Android app with no issues as well as the web browser.

I am getting the DNS errors, though. Which is why I'm here.

root@Nextcloud:~ # uname -a
FreeBSD Nextcloud 12.2-RELEASE-p9 FreeBSD 12.2-RELEASE-p9 2ee62d665f0(HEAD) TRUENAS  amd64
root@Nextcloud:~ # occ status
  - installed: true
  - version: 22.1.1.2
  - versionstring: 22.1.1
  - edition:
e-lange commented 2 years ago

I can confirm @gavsiu observations. I can't speak for LDAP neither.

root@services:~ # uname -a
FreeBSD services 12.2-RELEASE-p7 FreeBSD 12.2-RELEASE-p7 GENERIC  amd64

Apache is running in a jail. Issue seems to persist with 22.2.0.2.

root@services:/usr/local/www/apache24/data/nextcloud # sudo -u www php occ status
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see https://www.php.net/manual/en/book.pcntl.php
  - installed: true
  - version: 22.2.0.2
  - versionstring: 22.2.0
  - edition: 

Any ideas where to start?

szaimen commented 2 years ago

cc @artonge

artonge commented 2 years ago

cc @artonge

I'll take a look this week.

GitKalle commented 2 years ago

That problem is not related to FreeBSD. The Problem is that, eg apps.bextcloud.com, does not have a record for CNAME, see DNS Lookup.

image

When you try to get a DNS record via php -r "var_dump(dns_get_record('apps.nextcloud.com', DNS_CNAME));" than the PHP warning occurs:

PHP Warning:  dns_get_record(): DNS Query failed in Command line code on line 1
bool(false)

The question is, how to handle missing records?

Skip75 commented 2 years ago

FYI I just get that error... and it appears issue was in my DNS host configuration (dig google.com was not resolving). I fixed my DNS configuration, and issue disapeared.

nettybun commented 2 years ago

I have reason to believe this is because some of my federated shared have went offline or migrated to a new server (and new domain)

rsimenok commented 2 years ago

Debian 11, Linux 5.10.0-9-686-pae Same issue

Error: dns_get_record(): A temporary server error occurred. at /var/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#83
<<closure>>

OC\Log\ErrorHandler::onError()

/var/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php - line 83:

dns_get_record()

/var/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php - line 128:

OC\Http\Client\DnsPinMiddleware->dnsResolve()

/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php - line 35:

OC\Http\Client\DnsPinMiddleware->OC\Http\Client\{closure}("*** sensiti ... *")

/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php - line 31:

GuzzleHttp\PrepareBodyMiddleware->__invoke()

/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php - line 71:

GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensiti ... *")

/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php - line 63:

GuzzleHttp\RedirectMiddleware->__invoke()

/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php - line 75:

GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensiti ... *")

/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 331:

GuzzleHttp\HandlerStack->__invoke()

/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 168:

GuzzleHttp\Client->transfer()

/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 187:

GuzzleHttp\Client->requestAsync()

/var/www/nextcloud/lib/private/Http/Client/Client.php - line 223:

GuzzleHttp\Client->request()

/var/www/nextcloud/lib/private/legacy/OC_Util.php - line 1214:

OC\Http\Client\Client->get()

/var/www/nextcloud/lib/private/Setup.php - line 229:

OC_Util->isHtaccessWorking()

/var/www/nextcloud/core/Controller/SetupController.php - line 57:

OC\Setup->getSystemInfo()

/var/www/nextcloud/lib/base.php - line 939:

OC\Core\Controller\SetupController->run("*** sensiti ... *")

/var/www/nextcloud/index.php - line 36:

OC::handleRequest()
Tucubanito07 commented 2 years ago

I just did a fresh installation on my unraid server and I am encountering the same issue. Is there any updates on how to fix this?

{"reqId":"RtkwbR2egqa1mmfua41w","level":3,"time":"2021-12-03T00:26:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"dns_get_record(): A temporary server error occurred. at /config/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#83","userAgent":"--","version":"23.0.0.10","exception":{"Exception":"Error","Message":"dns_get_record(): A temporary server error occurred. at /config/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#83","Code":0,"Trace":[{"function":"onError","class":"OC\Log\ErrorHandler","type":"::"},{"file":"/config/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php","line":83,"function":"dns_get_record"},{"file":"/config/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php","line":128,"function":"dnsResolve","class":"OC\Http\Client\DnsPinMiddleware","type":"->"},{"file":"/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":35,"function":"OC\Http\Client\{closure}","class":"OC\Http\Client\DnsPinMiddleware","type":"->","args":[" sensitive parameters replaced "]},{"file":"/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":31,"function":"invoke","class":"GuzzleHttp\PrepareBodyMiddleware","type":"->"},{"file":"/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":71,"function":"GuzzleHttp\{closure}","class":"GuzzleHttp\Middleware","type":"::","args":[" sensitive parameters replaced "]},{"file":"/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":63,"function":"invoke","class":"GuzzleHttp\RedirectMiddleware","type":"->"},{"file":"/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php","line":75,"function":"GuzzleHttp\{closure}","class":"GuzzleHttp\Middleware","type":"::","args":[" sensitive parameters replaced "]},{"file":"/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":331,"function":"__invoke","class":"GuzzleHttp\HandlerStack","type":"->"},{"file":"/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":168,"function":"transfer","class":"GuzzleHttp\Client","type":"->"},{"file":"/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":187,"function":"requestAsync","class":"GuzzleHttp\Client","type":"->"},{"file":"/config/www/nextcloud/lib/private/Http/Client/Client.php","line":223,"function":"request","class":"GuzzleHttp\Client","type":"->"},{"file":"/config/www/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php","line":120,"function":"get","class":"OC\Http\Client\Client","type":"->"},{"file":"/config/www/nextcloud/lib/private/App/AppStore/Fetcher/AppFetcher.php","line":87,"function":"fetch","class":"OC\App\AppStore\Fetcher\Fetcher","type":"->"},{"file":"/config/www/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php","line":192,"function":"fetch","class":"OC\App\AppStore\Fetcher\AppFetcher","type":"->"},{"file":"/config/www/nextcloud/lib/private/App/AppStore/Fetcher/AppFetcher.php","line":186,"function":"get","class":"OC\App\AppStore\Fetcher\Fetcher","type":"->"},{"file":"/config/www/nextcloud/lib/private/Installer.php","line":433,"function":"get","class":"OC\App\AppStore\Fetcher\AppFetcher","type":"->"},{"file":"/config/www/nextcloud/apps/updatenotification/lib/Notification/BackgroundJob.php","line":280,"function":"isUpdateAvailable","class":"OC\Installer","type":"->"},{"file":"/config/www/nextcloud/apps/updatenotification/lib/Notification/BackgroundJob.php","line":168,"function":"isUpdateAvailable","class":"OCA\UpdateNotification\Notification\BackgroundJob","type":"->"},{"file":"/config/www/nextcloud/apps/updatenotification/lib/Notification/BackgroundJob.php","line":92,"function":"checkAppUpdates","class":"OCA\UpdateNotification\Notification\BackgroundJob","type":"->"},{"file":"/config/www/nextcloud/lib/private/BackgroundJob/Job.php","line":51,"function":"run","class":"OCA\UpdateNotification\Notification\BackgroundJob","type":"->"},{"file":"/config/www/nextcloud/lib/private/BackgroundJob/TimedJob.php","line":58,"function":"execute","class":"OC\BackgroundJob\Job","type":"->"},{"file":"/config/www/nextcloud/cron.php","line":128,"function":"execute","class":"OC\BackgroundJob\TimedJob","type":"->"}],"File":"/config/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"id":"61a96f6d08108"}

nettybun commented 2 years ago

Run a tcudump udp port 53 and see who nextcloud is reaching out to. For me it was an old decommissioned federated server that I decided to not renew the domain for. I searched for the domain in a pg_dump of my Postgres database which showed me the rows that had it. I deleted those rows.

Tucubanito07 commented 2 years ago

Run a tcudump udp port 53 and see who nextcloud is reaching out to. For me it was an old decommissioned federated server that I decided to not renew the domain for. I searched for the domain in a pg_dump of my Postgres database which showed me the rows that had it. I deleted those rows.

Thanks for the quick reply. I tried running this in the nextcloud container and command not found. I also ran it inside unraid on the terminal and got the same command not found. Could you share where did you ran the command?

nettybun commented 2 years ago

oh I'm not running in a container but you don't need to run it in the container. you can run it in the host. you're wanting to capture network traffic leaving the machine, and all processes (any container, any vm, any host process) will use port 53 to reach internet. so try installing tcpdump via your package manager

thijsjek commented 2 years ago

Run a tcudump udp port 53 and see who nextcloud is reaching out to. For me it was an old decommissioned federated server that I decided to not renew the domain for. I searched for the domain in a pg_dump of my Postgres database which showed me the rows that had it. I deleted those rows.

I did a TCPdump, and I found out that there were some cname Records that looked quite odd. 06:28:04.576507 IP test.38614 > 192.168.2.241.domain: 57995+ CNAME? nextcloud.com.mydomain.com. (48)

I don't know how to find or delete this in my Mariadb database.

nettybun commented 2 years ago

https://mariadb.com/kb/en/mysqldump/ and then search that file using your tool of choice. Maybe grep. I used VSCode with Ctrl+F. Unfortunately I can't help anymore than that since I don't recognize the .domain.com suffix - my case was for my own domain I recognized.

Tucubanito07 commented 2 years ago

oh I'm not running in a container but you don't need to run it in the container. you can run it in the host. you're wanting to capture network traffic leaving the machine, and all processes (any container, any vm, any host process) will use port 53 to reach internet. so try installing tcpdump via your package manager

I was able to install TCPdump and ran the command and I saw it reaching out to: nextcloud.com, www.nextcloud.com, updates.nextcloud.com, lookup.nextcloud.com, apps.nextcloud.com, usercontent.apps.nextcloud.com. None of those belong to me and belong to nextcloud itself.

I am on version 23.0.0 and I believe there are some errors in GitHub about something similar to this. I just wished I can get it to work, but I guess I will have to wait.

thijsjek commented 2 years ago

https://mariadb.com/kb/en/mysqldump/ and then search that file using your tool of choice. Maybe grep. I used VSCode with Ctrl+F. Unfortunately I can't help anymore than that since I don't recognize the .domain.com suffix - my case was for my own domain I recognized.

I used mysql dump, but it does not show github.com..com test in here is because this is my testing vm.

This is the output of the tcpdump:

12:50:53.280487 IP 192.168.2.241.domain > test.58222: 34920 1/0/0 SOA (93)
12:50:53.280583 IP test.12628 > 192.168.2.241.domain: 39582+ A? github.com. (28)
12:50:53.280698 IP 192.168.2.241.domain > test.12628: 39582 1/0/0 A 140.82.121.3 (44)
12:50:53.280770 IP test.55871 > 192.168.2.241.domain: 46692+ AAAA? github.com. (28)
12:50:53.280848 IP 192.168.2.241.domain > test.55871: 46692 0/1/0 (132)
12:50:53.280868 IP test.64225 > 192.168.2.241.domain: 46529+ AAAA? github.com.<redacted>.com. (45)
12:50:53.280919 IP 192.168.2.241.domain > test.64225: 46529 0/1/0 (183)
12:50:53.281967 IP test.11181 > 192.168.2.241.domain: 62886+ CNAME? github.com. (28)
12:50:53.282106 IP 192.168.2.241.domain > test.11181: 62886 0/1/0 (93)
12:50:53.282130 IP test.21550 > 192.168.2.241.domain: 59261+ CNAME? github.com.<redacted>.com. (45)
12:50:53.282247 IP 192.168.2.241.domain > test.21550: 59261 0/1/0 (108)
12:50:53.339347 IP test.65283 > 192.168.2.241.domain: 4146+ SOA? githubusercontent.com. (39)
12:50:53.339570 IP 192.168.2.241.domain > test.65283: 4146 1/0/0 SOA (121)
12:50:53.339695 IP test.22069 > 192.168.2.241.domain: 7791+ A? objects.githubusercontent.com. (47)
12:50:53.339909 IP 192.168.2.241.domain > test.22069: 7791 4/0/0 A 185.199.111.133, A 185.199.108.133, A 185.199.109.133, A 185.199.110.133 (111)
12:50:53.340009 IP test.10808 > 192.168.2.241.domain: 28539+ AAAA? objects.githubusercontent.com. (47)
12:50:53.340061 IP 192.168.2.241.domain > test.10808: 28539 0/1/0 (189)
12:50:53.340080 IP test.12468 > 192.168.2.241.domain: 58885+ AAAA? objects.githubusercontent.com.<redacted>.com. (64)
12:50:53.340131 IP 192.168.2.241.domain > test.12468: 58885 0/1/0 (240)
12:50:53.340499 IP test.20549 > 192.168.2.241.domain: 60280+ CNAME? objects.githubusercontent.com. (47)
12:50:53.341193 IP 192.168.2.241.domain > test.20549: 60280 0/1/0 (129)
12:50:53.341216 IP test.42666 > 192.168.2.241.domain: 2522+ CNAME? objects.githubusercontent.com.<redacted>.com. (64)
12:50:53.341814 IP 192.168.2.241.domain > test.42666: 2522 0/1/0 (127)

Sometimes it also shows nextcloud..com or nextcloud.cloud..com

cbwoog commented 2 years ago

It's an issue under TrueNAS FreeBSD jail. So far I discovered two issues and I don't know if they're related to the below error or not

* LDAP integration does not work - any attempt to add an otherwise working   LDAP (FreeIPA) ends with NextCloud "freezing"

* Can't connect via NextCloud Android app and application password. Regular logins (web browser) are OK.
root@nextcloud-jail:~ # uname -a
FreeBSD nextcloud-jail 12.2-RELEASE-p9 FreeBSD 12.2-RELEASE-p9 2ee62d665f0(HEAD) TRUENAS  amd64
root@nextcloud-jail:~ # occ status
  - installed: true
  - version: 22.1.1.2
  - versionstring: 22.1.1
  - edition:

The NextCloud log is filling (every ~30min ) with below messages:

Error: dns_get_record(): DNS Query failed at /usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#83

    <<closure>>

    OC\Log\ErrorHandler::onError()

    /usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php - line 83:

    dns_get_record()

    /usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php - line 128:

    OC\Http\Client\DnsPinMiddleware->dnsResolve()

    /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php - line 35:

    OC\Http\Client\DnsPinMiddleware->OC\Http\Client\{closure}("*** sensiti ... *")

    /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php - line 31:

    GuzzleHttp\PrepareBodyMiddleware->__invoke()

    /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php - line 71:

    GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensiti ... *")

    /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php - line 63:

    GuzzleHttp\RedirectMiddleware->__invoke()

    /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php - line 75:

    GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensiti ... *")

    /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 331:

    GuzzleHttp\HandlerStack->__invoke()

    /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 168:

    GuzzleHttp\Client->transfer()

    /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 187:

    GuzzleHttp\Client->requestAsync()

    /usr/local/www/nextcloud/lib/private/Http/Client/Client.php - line 223:

    GuzzleHttp\Client->request()

    /usr/local/www/nextcloud/apps-pkg/settings/lib/BackgroundJobs/VerifyUserData.php - line 226:

    OC\Http\Client\Client->get()

    /usr/local/www/nextcloud/apps-pkg/settings/lib/BackgroundJobs/VerifyUserData.php - line 187:

    OCA\Settings\BackgroundJobs\VerifyUserData->queryLookupServer()

    /usr/local/www/nextcloud/apps-pkg/settings/lib/BackgroundJobs/VerifyUserData.php - line 117:

    OCA\Settings\BackgroundJobs\VerifyUserData->verifyViaLookupServer()

    /usr/local/www/nextcloud/lib/public/BackgroundJob/Job.php - line 79:

    OCA\Settings\BackgroundJobs\VerifyUserData->run()

    /usr/local/www/nextcloud/apps-pkg/settings/lib/BackgroundJobs/VerifyUserData.php - line 98:

    OCP\BackgroundJob\Job->execute()

    /usr/local/www/nextcloud/cron.php - line 127:

    OCA\Settings\BackgroundJobs\VerifyUserData->execute()

root@nextcloud2:/usr/local/www/nextcloud # uname -a FreeBSD nextcloud2 12.2-RELEASE-p11 FreeBSD 12.2-RELEASE-p11 75566f060d4(HEAD) TRUENAS amd64

root@nextcloud2:/usr/local/www/nextcloud # su -m www -c "php ./occ status"

my error message is the same until the error with "line 223". After this line there are different messages

/usr/local/www/nextcloud/lib/private/Http/Client/Client.php - line 223:
GuzzleHttp\Client->request()
/usr/local/www/nextcloud/apps/settings/lib/Controller/CheckSetupController.php - line 179:
OC\Http\Client\Client->get()
/usr/local/www/nextcloud/apps/settings/lib/Controller/CheckSetupController.php - line 162:
OCA\Settings\Controller\CheckSetupController->isSiteReachable()
/usr/local/www/nextcloud/apps/settings/lib/Controller/CheckSetupController.php - line 746:
OCA\Settings\Controller\CheckSetupController->hasInternetConnectivityProblems()
/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 217:
OCA\Settings\Controller\CheckSetupController->check()
/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 126:
OC\AppFramework\Http\Dispatcher->executeController()
/usr/local/www/nextcloud/lib/private/AppFramework/App.php - line 156:
OC\AppFramework\Http\Dispatcher->dispatch()
/usr/local/www/nextcloud/lib/private/Route/Router.php - line 302:
OC\AppFramework\App::main()
/usr/local/www/nextcloud/lib/base.php - line 1006:
OC\Route\Router->match()
/usr/local/www/nextcloud/index.php - line 36:
OC::handleRequest()
thijsjek commented 2 years ago

I didn't spend so much time recently into solving this. But today i noticed, from the logs, there was a failed login attempt, from a while back on top. Which means i had the last error on the 26-12-2021 on production and test server.

Found out that I was receiving strange DNS requests, but it was because of the search domain of the host machine. I am not sure if this was the solution.

example:

nextcloud.com (SOA)
pushfeed.nextcloud.com.lan (cname) 
pushfeed.nextcloud.com (A)
pushfeed.nextcloud.com (cname)
frank42hh commented 2 years ago

I also detected a lot of dns query fails in my nextcloud.log and I tried to narrow down the cause, so I checked this:

# php -r "var_dump(dns_get_record('api.pwnedpasswords.com', DNS_A | DNS_AAAA | DNS_CNAME ));"
PHP Warning:  dns_get_record(): DNS Query failed in Command line code on line 1
bool(false)

This is already mentioned some entries earlier, but since the record does exist, I tried something else:

# php -r "var_dump(dns_get_record('api.pwnedpasswords.com', DNS_A | DNS_AAAA ));"
array(4) {
  [0]=>
  array(5) {
    ["host"]=>
    string(22) "api.pwnedpasswords.com"
    ["class"]=>
    string(2) "IN"
    ["ttl"]=>
    int(24)
    ["type"]=>
    string(1) "A"
    ["ip"]=>
    string(13) "104.18.206.87"
  }
  [1]=>
  array(5) {
    ["host"]=>
    string(22) "api.pwnedpasswords.com"
    ["class"]=>
    string(2) "IN"
    ["ttl"]=>
    int(24)
    ["type"]=>
    string(1) "A"
    ["ip"]=>
    string(14) "104.17.172.102"
  }
  [...]

You see, the problem seems to be that the option "DNS_A | DNS_AAAA | DNS_CNAME" doesn't seem to work as intended, since it fails with DNS_CNAME but it does not when removing it. This happens with nextcloud 22.2.3 on FreeBSD 13.0-RELEASE.

I think the only solution is to remove DNS_CNAME from the $dnsTypes variable in lib/private/Http/Client/DnsPinMiddleware.php, and the cause is probably related to the fact that according to RFC1912 a CNAME record is not allowed to coexist with any other data and dns_get_record() on FreeBSD is more restrictive on that fact.

szaimen commented 2 years ago

Do you mind creating a PR with your solution for discussion? Thank you!

NCC1701G commented 2 years ago

I doesn't think it is a FreeBSD only bug. I have the same bug on Debian.

YouveGotMeowxy commented 2 years ago

I'm getting this with the latest version NC 23.0.4 in the Linuxserver container, which I think is Alpine.

image


Error   PHP Error: dns_get_record(): A temporary server error occurred. at /config/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#83
<<closure>>

OC\Log\ErrorHandler::onError()

/config/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php - line 83:

dns_get_record()

/config/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php - line 128:

OC\Http\Client\DnsPinMiddleware->dnsResolve()

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php - line 64:

OC\Http\Client\DnsPinMiddleware->OC\Http\Client\{closure}("*** sensiti ... *")

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php - line 31:

GuzzleHttp\PrepareBodyMiddleware->__invoke()

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php - line 71:

GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensiti ... *")

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php - line 63:

GuzzleHttp\RedirectMiddleware->__invoke()

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php - line 75:

GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensiti ... *")

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 331:

GuzzleHttp\HandlerStack->__invoke()

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 168:

GuzzleHttp\Client->transfer()

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 187:

GuzzleHttp\Client->requestAsync()

/config/www/nextcloud/lib/private/Http/Client/Client.php - line 294:

GuzzleHttp\Client->request()

/config/www/nextcloud/apps/notifications/lib/Push.php - line 312:

OC\Http\Client\Client->post()

/config/www/nextcloud/apps/notifications/lib/Push.php - line 124:

OCA\Notifications\Push->sendNotificationsToProxies()

/config/www/nextcloud/apps/notifications/lib/App.php - line 98:

OCA\Notifications\Push->flushPayloads()

/config/www/nextcloud/lib/private/Notification/Manager.php - line 294:

OCA\Notifications\App->flush()

/config/www/nextcloud/apps/notifications/lib/Controller/EndpointController.php - line 214:

OC\Notification\Manager->flush()

/config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 217:

OCA\Notifications\Controller\EndpointController->deleteAllNotifications()

/config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 126:

OC\AppFramework\Http\Dispatcher->executeController()

/config/www/nextcloud/lib/private/AppFramework/App.php - line 157:

OC\AppFramework\Http\Dispatcher->dispatch()

/config/www/nextcloud/lib/private/Route/Router.php - line 302:

OC\AppFramework\App::main()

/config/www/nextcloud/ocs/v1.php - line 62:

OC\Route\Router->match()

/config/www/nextcloud/ocs/v2.php - line 23:

require_once("/config/www ... p")
szaimen commented 2 years ago

Hello, I tried to create a fix for this. Can you please try out https://github.com/nextcloud/server/pull/32243 and report back if that fixes the issue? Thank you!

kesselb commented 2 years ago

I guess the error on freebsd was fixed by https://github.com/php/php-src/commit/45f52285f6ee251dc40f31c365b0eb9e6a3e0881.

The fix is released with php 7.4.27, php 8.0.14, php 8.1.0

szaimen commented 2 years ago

I guess the error on freebsd was fixed by php/php-src@45f5228.

The fix is released with php 7.4.27, php 8.0.14, php 8.1.0

Thanks for investigating! I wonder though why this seems to be present in the latest alpine image though... Maybe a different bug?

kesselb commented 2 years ago

latest alpine image though... Maybe a different bug?

I'm not sure. dns_get_record in php is using a function from the c standard library. Linux and FreeBSD (and many others) provide a c standard library implementation. My understand is that the linked commit adds a different error handling when the given c standard library provides HAVE_RES_NSEARCH. This might be the case for Linux as well. Especially because Alpine (musl) uses a different c standard library implementation then Ubuntu/Debian (glibc).

tl;dr should be worth a try if a newer php version already fixes the issue for most ;)

YouveGotMeowxy commented 2 years ago

Hello, I tried to create a fix for this. Can you please try out #32243 and report back if that fixes the issue? Thank you!

Ok, i edited in the changes in the container and didnt restart it so the changes dont get lost. I'll let it run for a while and see how it goes. :)

YouveGotMeowxy commented 2 years ago

7.4.27

The LSIO container uses 7.4.26 (doh! lol)

szaimen commented 2 years ago

Okay, it seems like this is indeed fixed in newer PHP releases. So I vote for closing this. For anyone that has this issue, please upgrade your php version!

See https://github.com/nextcloud/server/issues/28105#issuecomment-1115239607

NCC1701G commented 2 years ago

I use PHP 8.0.16 on a Debian System and I have the same issue. I think the problem isn't fixed.

szaimen commented 2 years ago

In this case, should we suppress the error message? @kesselb @come-nc?

frank42hh commented 2 years ago

"So, you have lots of scars in your face? Well then, we remove your eyes so you don't see them anymore. Problem solved."

Suppressing the error message doesn't fix the issue, so IMHO no.

Edit: Just updated my FreeBSD box to php-7.4.29 and it seems to be fixed now (at least for the 7.4 branch):

root@murphy:~ 0# php -r "var_dump(dns_get_record('api.pwnedpasswords.com', DNS_A | DNS_AAAA | DNS_CNAME ));"
array(4) {
[...]
szaimen commented 2 years ago

Since this seems to be an issue within php-src I am not sure what we can do here except supressing the error message. That is why I supposed this solution. The other way is simply closing this issue because it needs to be fixed in php-src...

frank42hh commented 2 years ago

Well, what about another approach... we could catch the error and output a more reasonable message instead, like Error: dns_get_record(): DNS Query failed at /usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#83. Please upgrade to at least php [insert relevant version here] to get rid of this error ?

szaimen commented 2 years ago

I tried that but it seems like you cannot catch php errors. See https://github.com/nextcloud/server/pull/32243#discussion_r863550908

come-nc commented 2 years ago

I use PHP 8.0.16 on a Debian System and I have the same issue. I think the problem isn't fixed.

@NCC1701G Which issue do you have? Please explain which error you see.

After re-reading the ticket I think this can be closed and people having failures in dns_get_record actually have a different problem.

When you try to get a DNS record via php -r "var_dump(dns_get_record('apps.nextcloud.com', DNS_CNAME));" than the PHP warning occurs:

PHP Warning:  dns_get_record(): DNS Query failed in Command line code on line 1
bool(false)

The question is, how to handle missing records?

@GitKalle I cannot reproduce this problem, if someone can, please share your PHP version?

NCC1701G commented 2 years ago

@come-nc This is the output from my error log:

{"reqId":"bCryT46lgPkdsnMNSItX","level":3,"time":"2022-05-08T23:37:19+02:00","remoteAddr":"192.168.1.102","user":"Unimatrix","app":"PHP","method":"GET","url":"/settings/ajax/checksetup","message":"dns_get_record(): A temporary server error occurred. at /var/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#57","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36","version":"24.0.0.12","exception":{"Exception":"Error","Message":"dns_get_record(): A temporary server error occurred. at /var/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#57","Code":0,"Trace":[{"function":"onError","class":"OC\Log\ErrorHandler","type":"::"},{"file":"/var/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php","line":57,"function":"dns_get_record"},{"file":"/var/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php","line":74,"function":"soaRecord","class":"OC\Http\Client\DnsPinMiddleware","type":"->"},{"file":"/var/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php","line":128,"function":"dnsResolve","class":"OC\Http\Client\DnsPinMiddleware","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":35,"function":"OC\Http\Client\{closure}","class":"OC\Http\Client\DnsPinMiddleware","type":"->","args":[" sensitive parameters replaced "]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":31,"function":"invoke","class":"GuzzleHttp\PrepareBodyMiddleware","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":71,"function":"GuzzleHttp\{closure}","class":"GuzzleHttp\Middleware","type":"::","args":[" sensitive parameters replaced "]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":99,"function":"invoke","class":"GuzzleHttp\RedirectMiddleware","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":73,"function":"checkRedirect","class":"GuzzleHttp\RedirectMiddleware","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/FulfilledPromise.php","line":41,"function":"GuzzleHttp\{closure}","class":"GuzzleHttp\RedirectMiddleware","type":"->","args":[" sensitive parameters replaced "]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php","line":48,"function":"GuzzleHttp\Promise\{closure}","class":"GuzzleHttp\Promise\FulfilledPromise","type":"::","args":[" sensitive parameters replaced "]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":248,"function":"run","class":"GuzzleHttp\Promise\TaskQueue","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":224,"function":"invokeWaitFn","class":"GuzzleHttp\Promise\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":269,"function":"waitIfPending","class":"GuzzleHttp\Promise\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":226,"function":"invokeWaitList","class":"GuzzleHttp\Promise\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":62,"function":"waitIfPending","class":"GuzzleHttp\Promise\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":187,"function":"wait","class":"GuzzleHttp\Promise\Promise","type":"->"},{"file":"/var/www/nextcloud/lib/private/Http/Client/Client.php","line":218,"function":"request","class":"GuzzleHttp\Client","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CheckSetupController.php","line":213,"function":"get","class":"OC\Http\Client\Client","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CheckSetupController.php","line":193,"function":"isSiteReachable","class":"OCA\Settings\Controller\CheckSetupController","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CheckSetupController.php","line":855,"function":"hasInternetConnectivityProblems","class":"OCA\Settings\Controller\CheckSetupController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"check","class":"OCA\Settings\Controller\CheckSetupController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1023,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"id":"62783814accdd"}

come-nc commented 2 years ago

@NCC1701G This may not be the same error as you get "A temporary server error occurred" and not "DNS Query failed".

It happens when trying to get the SOA for the test site. What do you have in connectivity_check_domains, anything special?

NCC1701G commented 2 years ago

I have no "connectivity_check_domains" in my config.php.

come-nc commented 2 years ago

Can you test the following code on your setup and see if any warning is shown:


<?php

    function soaRecord(string $target): ?array {
        echo "$target\n";
        $labels = explode('.', $target);

        $top = count($labels) >= 2 ? array_pop($labels) : '';
        $second = array_pop($labels);

        $hostname = $second . '.' . $top;
        echo "$hostname\n";
        $responses = dns_get_record($hostname, DNS_SOA);

        if ($responses === false || count($responses) === 0) {
            return null;
        }

        return reset($responses);
    }

    $siteArray = [
        'www.nextcloud.com', 'www.startpage.com', 'www.eff.org', 'www.edri.org'
    ];

    foreach ($siteArray as $site) {
        if (preg_match('/^https?:\/\//', $site) !== 1) {
            $httpSite = 'http://' . $site;
            echo(json_encode(soaRecord($httpSite)));
            $httpsSite = 'https://' . $site;
            echo(json_encode(soaRecord($httpSite)));
        } else {
            echo(json_encode(soaRecord($httpSite)));
        }
    }
NCC1701G commented 2 years ago

@come-nc How can I test the code? I'm not a php developer.

come-nc commented 2 years ago

@come-nc How can I test the code? I'm not a php developer.

Save it in a file, ie test.php. Then run it through php with command php ./test.php

You can also save it next to your nextcloud index.php file and open through your browser <nextcloudurl>/test.php

forestvogo commented 2 years ago

@come-nc How can I test the code? I'm not a php developer.

Save it in a file, ie test.php. Then run it through php with command php ./test.php

You can also save it next to your nextcloud index.php file and open through your browser <nextcloudurl>/test.php

Tested your code and receive the following output in latest docker-image of nextcloud, running behind pihole also in docker-image: www-data@nextcloud-app:~/html$ php ./text.php http://www.nextcloud.com nextcloud.com {"host":"nextcloud.com","class":"IN","ttl":49510,"type":"SOA","mname":"ns.inwx.de","rname":"hostmaster.inwx.de","serial":2022050206,"refresh":10800,"retry":3600,"expire":604800,"minimum-ttl":3600}http://www.nextcloud.com nextcloud.com {"host":"nextcloud.com","class":"IN","ttl":49510,"type":"SOA","mname":"ns.inwx.de","rname":"hostmaster.inwx.de","serial":2022050206,"refresh":10800,"retry":3600,"expire":604800,"minimum-ttl":3600}http://www.startpage.com startpage.com {"host":"startpage.com","class":"IN","ttl":3600,"type":"SOA","mname":"dns1.p01.nsone.net","rname":"hostmaster.nsone.net","serial":1650927622,"refresh":3600,"retry":600,"expire":1209600,"minimum-ttl":3600}http://www.startpage.com startpage.com {"host":"startpage.com","class":"IN","ttl":3600,"type":"SOA","mname":"dns1.p01.nsone.net","rname":"hostmaster.nsone.net","serial":1650927622,"refresh":3600,"retry":600,"expire":1209600,"minimum-ttl":3600}http://www.eff.org eff.org {"host":"eff.org","class":"IN","ttl":7200,"type":"SOA","mname":"ns1.eff.org","rname":"hostmaster.eff.org","serial":2022051700,"refresh":600,"retry":1800,"expire":604800,"minimum-ttl":1800}http://www.eff.org eff.org {"host":"eff.org","class":"IN","ttl":7200,"type":"SOA","mname":"ns1.eff.org","rname":"hostmaster.eff.org","serial":2022051700,"refresh":600,"retry":1800,"expire":604800,"minimum-ttl":1800}http://www.edri.org edri.org {"host":"edri.org","class":"IN","ttl":10800,"type":"SOA","mname":"ns1.gandi.net","rname":"hostmaster.gandi.net","serial":1652918400,"refresh":10800,"retry":3600,"expire":604800,"minimum-ttl":10800}http://www.edri.org edri.org {"host":"edri.org","class":"IN","ttl":10800,"type":"SOA","mname":"ns1.gandi.net","rname":"hostmaster.gandi.net","serial":1652918400,"refresh":10800,"retry":3600,"expire":604800,"minimum-ttl":10800}

Hope it helps.