You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please use the 👍 reaction to show that you are affected by the same issue.
Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
Subscribe to receive notifications on status change and new comments.
Expected behaviour
When scanning for files it should correctly read non-remote external storage points, when permissions are correctly configured to www.
Actual behaviour
One of the external storage points seems to be triggering a DNS request on the location directory of the external storage point, despite being configured as a local device, which prompts the DNS query to fail and the directory to not populate. Adding and removing files to the directory works just fine and it will actually show on the external device, suggesting a bug in the files:scan function somewhere.
solracsf
changed the title
Getting DNS Query Failed when running a files:scan --all procedure
Getting DNS Query Failed when running occ files:scan --allOct 3, 2021
Hi, please update to 24.0.9 or better 25.0.3 and report back if it fixes the issue. Thank you!
My goal is to add a label like e.g. 25-feedback to this ticket of an up-to-date major Nextcloud version where the bug could be reproduced. However this is not going to work without your help. So thanks for all your effort!
How to use GitHub
Expected behaviour
When scanning for files it should correctly read non-remote external storage points, when permissions are correctly configured to www.
Actual behaviour
One of the external storage points seems to be triggering a DNS request on the location directory of the external storage point, despite being configured as a local device, which prompts the DNS query to fail and the directory to not populate. Adding and removing files to the directory works just fine and it will actually show on the external device, suggesting a bug in the files:scan function somewhere.
Stack trace:
Stack trace
``` Exception during scan: dns_get_record(): DNS Query failed #0 [internal function]: OCA\Files\Command\Scan->exceptionErrorHandler() #1 /usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php(83): dns_get_record() #2 /usr/local/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php(128): OC\Http\Client\DnsPinMiddleware->dnsResolve() #3 /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(35): OC\Http\Client\DnsPinMiddleware->OC\Http\Client\{closure}() #4 /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php(31): GuzzleHttp\PrepareBodyMiddleware->__invoke() #5 /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php(71): GuzzleHttp\Middleware::GuzzleHttp\{closure}() #6 /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php(63): GuzzleHttp\RedirectMiddleware->__invoke() #7 /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php(75): GuzzleHttp\Middleware::GuzzleHttp\{closure}() #8 /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php(331): GuzzleHttp\HandlerStack->__invoke() #9 /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php(168): GuzzleHttp\Client->transfer() #10 /usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php(187): GuzzleHttp\Client->requestAsync() #11 /usr/local/www/nextcloud/lib/private/Http/Client/Client.php(223): GuzzleHttp\Client->request() #12 /usr/local/www/nextcloud/apps/files_sharing/lib/External/Storage.php(276): OC\Http\Client\Client->get() #13 /usr/local/www/nextcloud/apps/files_sharing/lib/External/Storage.php(300): OCA\Files_Sharing\External\Storage->testRemoteUrl() #14 [internal function]: OCA\Files_Sharing\External\Storage->remoteIsOwnCloud() #15 /usr/local/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(508): call_user_func_array() #16 [internal function]: OC\Files\Storage\Wrapper\Wrapper->__call() #17 /usr/local/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(508): call_user_func_array() #18 [internal function]: OC\Files\Storage\Wrapper\Wrapper->__call() #19 /usr/local/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(508): call_user_func_array() #20 /usr/local/www/nextcloud/apps/files_sharing/lib/External/Scanner.php(39): OC\Files\Storage\Wrapper\Wrapper->__call() #21 /usr/local/www/nextcloud/lib/private/Files/Utils/Scanner.php(259): OCA\Files_Sharing\External\Scanner->scan() #22 /usr/local/www/nextcloud/apps/files/lib/Command/Scan.php(156): OC\Files\Utils\Scanner->scan() #23 /usr/local/www/nextcloud/apps/files/lib/Command/Scan.php(212): OCA\Files\Command\Scan->scanFiles() #24 /usr/local/www/nextcloud/apps/bookmarks/vendor/symfony/console/Command/Command.php(255): OCA\Files\Command\Scan->execute() #25 /usr/local/www/nextcloud/core/Command/Base.php(168): Symfony\Component\Console\Command\Command->run() #26 /usr/local/www/nextcloud/apps/bookmarks/vendor/symfony/console/Application.php(1009): OC\Core\Command\Base->run() #27 /usr/local/www/nextcloud/apps/bookmarks/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand() #28 /usr/local/www/nextcloud/apps/bookmarks/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun() #29 /usr/local/www/nextcloud/lib/private/Console/Application.php(209): Symfony\Component\Console\Application->run() #30 /usr/local/www/nextcloud/console.php(99): OC\Console\Application->run() #31 /usr/local/www/nextcloud/occ(11): require_once('/usr/local/www/...') #32 {main} ```Server configuration
Operating system: FreeBSD 12.2
Web server: NGINX
Database: MySQL
PHP version: 7.4
Nextcloud version: (see Nextcloud admin page) 22.1.1
Updated from an older Nextcloud/ownCloud or fresh install: Updated
Where did you install Nextcloud from: Via TrueNAS plugin installer, updated via updater
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: local/smb/sftp/... Yes, all local
Are you using encryption: yes/no Encryption provided by host machine
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/... No
The text was updated successfully, but these errors were encountered: