Unable to connect Windows client

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 21.0.2
Operating system and version (eg, Ubuntu 20.04): Debian 10 (Proxmox, Linux 5.10.0-0.bpo.5-amd64 x86_64)
Apache or nginx version (eg, Apache 2.4.25): nginx/1.14.2
PHP version (eg, 7.4): 7.4.20

The issue you are facing: trying to connect Nextcloud Win10 sync client to my own self-hosted NC server, client reaches the proper URL in my DNS, bounces to my proxy server which routes to the NC service, opens browser to login page, requests to grant access rights but clicking OK button leads to infinite loop. Seems the Grant acknowledge doesn’t return to the client…

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Same config required : Nextcloud as a Docker container in Open Media Vault.

The output of your Nextcloud log in Admin > Logging:

{"reqId":"qjvppDIOHbDnuXkzg0r5","level":3,"time":"2021-06-25T15:01:56+00:00","remoteAddr":"192.168.1.11","user":"jladmin","app":"core","method":"GET","url":"/settings/apps/update/electronicsignatures","message":{"Exception":"GuzzleHttp\\Exception\\ConnectException","Message":"cURL error 28: Operation timed out after 120000 milliseconds with 17699067 out of 19135331 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://github-releases.githubusercontent.com/357654968/13225a80-d2ee-11eb-9d93-4cdb02183ca8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210625%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210625T145949Z&X-Amz-Expires=300&X-Amz-Signature=73460fcfa56195d234f1319c01a883627658b25baf1732630108adfd6bea3697&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=357654968&response-content-disposition=attachment%3B%20filename%3Dv1.0.1.tar.gz&response-content-type=application%2Foctet-stream","Code":0,"Trace":[{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":158,"function":"createRejection","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":[{"sink":{"stream":{"__class__":"GuzzleHttp\\Psr7\\Stream"},"__class__":"GuzzleHttp\\Psr7\\LazyOpenStream"},"headers":["Connection: keep-alive","Content-Length: 19135331","x-amz-id-2: GAa9KheaaUBB9b1Q/0HKphQP/ECAu59MZ9/QANaqr5BRlyWWkg92u9x+h31kV3kHvVhN2DMEtbo=","x-amz-request-id: RDHM1SCJF1F5KRHJ","Last-Modified: Mon, 21 Jun 2021 21:09:15 GMT","And 13 more entries, set log level to debug to see all entries"],"response":{"__class__":"GuzzleHttp\\Psr7\\Response"},"request":{"__class__":"GuzzleHttp\\Psr7\\Request"},"options":{"verify":"/var/www/html/resources/config/ca-bundle.crt","timeout":120,"sink":"/tmp/oc_tmp_e4zKaf-.tar.gz","synchronous":true,"handler":{"__class__":"GuzzleHttp\\HandlerStack"},"0":"And 6 more entries, set log level to debug to see all entries"},"errno":28,"onHeadersException":null,"createResponseException":null,"__class__":"GuzzleHttp\\Handler\\EasyHandle"},{"errno":28,"error":"Operation timed out after 120000 milliseconds with 17699067 out of 19135331 bytes received","appconnect_time":0.127807,"url":"https://github-releases.githubusercontent.com/357654968/13225a80-d2ee-11eb-9d93-4cdb02183ca8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210625%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210625T145949Z&X-Amz-Expires=300&X-Amz-Signature=73460fcfa56195d234f1319c01a883627658b25baf1732630108adfd6bea3697&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=357654968&response-content-disposition=attachment%3B%20filename%3Dv1.0.1.tar.gz&response-content-type=application%2Foctet-stream","content_type":"application/octet-stream","0":"And 36 more entries, set log level to debug to see all entries"}]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":110,"function":"finishError","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":[{"__class__":"GuzzleHttp\\Handler\\CurlHandler"},{"sink":{"stream":{"__class__":"GuzzleHttp\\Psr7\\Stream"},"__class__":"GuzzleHttp\\Psr7\\LazyOpenStream"},"headers":["Connection: keep-alive","Content-Length: 19135331","x-amz-id-2: GAa9KheaaUBB9b1Q/0HKphQP/ECAu59MZ9/QANaqr5BRlyWWkg92u9x+h31kV3kHvVhN2DMEtbo=","x-amz-request-id: RDHM1SCJF1F5KRHJ","Last-Modified: Mon, 21 Jun 2021 21:09:15 GMT","And 13 more entries, set log level to debug to see all entries"],"response":{"__class__":"GuzzleHttp\\Psr7\\Response"},"request":{"__class__":"GuzzleHttp\\Psr7\\Request"},"options":{"verify":"/var/www/html/resources/config/ca-bundle.crt","timeout":120,"sink":"/tmp/oc_tmp_e4zKaf-.tar.gz","synchronous":true,"handler":{"__class__":"GuzzleHttp\\HandlerStack"},"0":"And 6 more entries, set log level to debug to see all entries"},"errno":28,"onHeadersException":null,"createResponseException":null,"__class__":"GuzzleHttp\\Handler\\EasyHandle"},{"__class__":"GuzzleHttp\\Handler\\CurlFactory"}]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php","line":47,"function":"finish","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":[{"__class__":"GuzzleHttp\\Handler\\CurlHandler"},{"sink":{"stream":{"__class__":"GuzzleHttp\\Psr7\\Stream"},"__class__":"GuzzleHttp\\Psr7\\LazyOpenStream"},"headers":["Connection: keep-alive","Content-Length: 19135331","x-amz-id-2: GAa9KheaaUBB9b1Q/0HKphQP/ECAu59MZ9/QANaqr5BRlyWWkg92u9x+h31kV3kHvVhN2DMEtbo=","x-amz-request-id: RDHM1SCJF1F5KRHJ","Last-Modified: Mon, 21 Jun 2021 21:09:15 GMT","And 13 more entries, set log level to debug to see all entries"],"response":{"__class__":"GuzzleHttp\\Psr7\\Response"},"request":{"__class__":"GuzzleHttp\\Psr7\\Request"},"options":{"verify":"/var/www/html/resources/config/ca-bundle.crt","timeout":120,"sink":"/tmp/oc_tmp_e4zKaf-.tar.gz","synchronous":true,"handler":{"__class__":"GuzzleHttp\\HandlerStack"},"0":"And 6 more entries, set log level to debug to see all entries"},"errno":28,"onHeadersException":null,"createResponseException":null,"__class__":"GuzzleHttp\\Handler\\EasyHandle"},{"__class__":"GuzzleHttp\\Handler\\CurlFactory"}]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php","line":28,"function":"__invoke","class":"GuzzleHttp\\Handler\\CurlHandler","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php","line":48,"function":"GuzzleHttp\\Handler\\{closure}","class":"GuzzleHttp\\Handler\\Proxy","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":35,"function":"GuzzleHttp\\Handler\\{closure}","class":"GuzzleHttp\\Handler\\Proxy","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":31,"function":"__invoke","class":"GuzzleHttp\\PrepareBodyMiddleware","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":71,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":99,"function":"__invoke","class":"GuzzleHttp\\RedirectMiddleware","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":73,"function":"checkRedirect","class":"GuzzleHttp\\RedirectMiddleware","type":"->","args":[{"__class__":"GuzzleHttp\\Psr7\\Request"},"*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/FulfilledPromise.php","line":41,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\RedirectMiddleware","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/TaskQueue.php","line":48,"function":"GuzzleHttp\\Promise\\{closure}","class":"GuzzleHttp\\Promise\\FulfilledPromise","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":248,"function":"run","class":"GuzzleHttp\\Promise\\TaskQueue","type":"->","args":[true]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":224,"function":"invokeWaitFn","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":269,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":226,"function":"invokeWaitList","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":62,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php","line":187,"function":"wait","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"/var/www/html/lib/private/Http/Client/Client.php","line":236,"function":"request","class":"GuzzleHttp\\Client","type":"->","args":["get","https://github.com/eideasy/nextcloud-electronic-signatures-plugin/releases/download/v1.0.1/v1.0.1.tar.gz",{"verify":"/var/www/html/resources/config/ca-bundle.crt","timeout":120,"sink":"/tmp/oc_tmp_e4zKaf-.tar.gz","headers":{"User-Agent":"Nextcloud Server Crawler","Accept-Encoding":"gzip"},"synchronous":true}]},{"file":"/var/www/html/lib/private/Installer.php","line":307,"function":"get","class":"OC\\Http\\Client\\Client","type":"->","args":["https://github.com/eideasy/nextcloud-electronic-signatures-plugin/releases/download/v1.0.1/v1.0.1.tar.gz",{"sink":"/tmp/oc_tmp_e4zKaf-.tar.gz","timeout":120}]},{"file":"/var/www/html/lib/private/Installer.php","line":204,"function":"downloadApp","class":"OC\\Installer","type":"->","args":["*** sensitive parameter replaced ***",false]},{"file":"/var/www/html/apps/settings/lib/Controller/AppSettingsController.php","line":532,"function":"updateAppstoreApp","class":"OC\\Installer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"updateApp","class":"OCA\\Settings\\Controller\\AppSettingsController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Settings\\Controller\\AppSettingsController"},"updateApp"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Settings\\Controller\\AppSettingsController"},"updateApp"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Settings\\Controller\\AppSettingsController","updateApp",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"appId":"*** sensitive parameter replaced ***","_route":"settings.AppSettings.updateApp"}]},{"file":"/var/www/html/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/settings/apps/update/electronicsignatures"]},{"file":"/var/www/html/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","Line":210,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","version":"21.0.2.1"}
{"reqId":"OAqHhPN0bIASBVsRlKoW","level":3,"time":"2021-06-28T14:16:50+00:00","remoteAddr":"172.18.0.1","user":"jeanluc","app":"files_antivirus","method":"POST","url":"/login","message":{"Exception":"RuntimeException","Message":"The antivirus executable could not be found at /usr/bin/clamscan","Code":0,"Trace":[{"function":"__construct","class":"OCA\\Files_Antivirus\\Scanner\\LocalClam","type":"->","args":[{"__class__":"OCA\\Files_Antivirus\\AppConfig"},{"__class__":"OC\\AppFramework\\Logger"},{"__class__":"OCA\\Files_Antivirus\\StatusFactory"}]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":101,"function":"newInstanceArgs","class":"ReflectionClass","type":"->","args":[[{"__class__":"OCA\\Files_Antivirus\\AppConfig"},{"__class__":"OC\\AppFramework\\Logger"},{"__class__":"OCA\\Files_Antivirus\\StatusFactory"}]]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":109,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[{"name":"OCA\\Files_Antivirus\\Scanner\\LocalClam","__class__":"ReflectionClass"}]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":126,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Files_Antivirus\\Scanner\\LocalClam"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":459,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Files_Antivirus\\Scanner\\LocalClam"]},{"file":"/var/www/html/lib/private/ServerContainer.php","line":146,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Files_Antivirus\\Scanner\\LocalClam"]},{"file":"/var/www/html/custom_apps/files_antivirus/lib/Scanner/ScannerFactory.php","line":45,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OCA\\Files_Antivirus\\Scanner\\LocalClam"]},{"file":"/var/www/html/custom_apps/files_antivirus/lib/AvirWrapper.php","line":107,"function":"getScanner","class":"OCA\\Files_Antivirus\\Scanner\\ScannerFactory","type":"->","args":[]},{"file":"/var/www/html/custom_apps/files_antivirus/lib/AvirWrapper.php","line":85,"function":"wrapSteam","class":"OCA\\Files_Antivirus\\AvirWrapper","type":"->","args":["files/Nextcloud Manual.pdf",null]},{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php","line":302,"function":"fopen","class":"OCA\\Files_Antivirus\\AvirWrapper","type":"->","args":["files/Nextcloud Manual.pdf","w"]},{"file":"/var/www/html/custom_apps/files_accesscontrol/lib/StorageWrapper.php","line":236,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files/Nextcloud Manual.pdf","w"]},{"file":"/var/www/html/custom_apps/ransomware_protection/lib/StorageWrapper.php","line":317,"function":"fopen","class":"OCA\\FilesAccessControl\\StorageWrapper","type":"->","args":["files/Nextcloud Manual.pdf","w"]},{"file":"/var/www/html/lib/private/Files/View.php","line":1166,"function":"fopen","class":"OCA\\RansomwareProtection\\StorageWrapper","type":"->","args":["files/Nextcloud Manual.pdf","w"]},{"file":"/var/www/html/lib/private/Files/View.php","line":1002,"function":"basicOperation","class":"OC\\Files\\View","type":"->","args":["fopen","/jeanluc/files/Nextcloud Manual.pdf",["write"],"w"]},{"file":"/var/www/html/lib/private/Files/Node/File.php","line":115,"function":"fopen","class":"OC\\Files\\View","type":"->","args":["/jeanluc/files/Nextcloud Manual.pdf","w"]},{"file":"/var/www/html/lib/private/legacy/OC_Util.php","line":489,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->","args":["w"]},{"file":"/var/www/html/lib/private/legacy/OC_Util.php","line":448,"function":"copyr","class":"OC_Util","type":"::","args":["/var/www/html/core/skeleton",{"__class__":"OC\\Files\\Node\\Folder"}]},{"file":"/var/www/html/lib/private/User/Session.php","line":563,"function":"copySkeleton","class":"OC_Util","type":"::","args":["*** sensitive parameter replaced ***",{"__class__":"OC\\Files\\Node\\Folder"}]},{"file":"/var/www/html/lib/private/User/Session.php","line":415,"function":"prepareUserLogin","class":"OC\\User\\Session","type":"->","args":[true,true]},{"file":"/var/www/html/lib/private/Authentication/Login/CompleteLoginCommand.php","line":44,"function":"completeLogin","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/Authentication/Login/ALoginCommand.php","line":40,"function":"process","class":"OC\\Authentication\\Login\\CompleteLoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/html/lib/private/Authentication/Login/LoggedInCheckCommand.php","line":60,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/html/lib/private/Authentication/Login/ALoginCommand.php","line":40,"function":"process","class":"OC\\Authentication\\Login\\LoggedInCheckCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/html/lib/private/Authentication/Login/EmailLoginCommand.php","line":58,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/html/lib/private/Authentication/Login/ALoginCommand.php","line":40,"function":"process","class":"OC\\Authentication\\Login\\EmailLoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/html/lib/private/Authentication/Login/UidLoginCommand.php","line":54,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/html/lib/private/Authentication/Login/ALoginCommand.php","line":40,"function":"process","class":"OC\\Authentication\\Login\\UidLoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/html/lib/private/Authentication/Login/UserDisabledCheckCommand.php","line":58,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/html/lib/private/Authentication/Login/ALoginCommand.php","line":40,"function":"process","class":"OC\\Authentication\\Login\\UserDisabledCheckCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/html/lib/private/Authentication/Login/PreLoginHookCommand.php","line":53,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/html/lib/private/Authentication/Login/Chain.php","line":108,"function":"process","class":"OC\\Authentication\\Login\\PreLoginHookCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/html/core/Controller/LoginController.php","line":310,"function":"process","class":"OC\\Authentication\\Login\\Chain","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"tryLogin","class":"OC\\Core\\Controller\\LoginController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\LoginController"},"tryLogin"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\LoginController"},"tryLogin"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\LoginController","tryLogin",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"core.login.tryLogin"}]},{"file":"/var/www/html/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/login"]},{"file":"/var/www/html/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/files_antivirus/lib/Scanner/LocalClam.php","Line":43,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","version":"21.0.2.1"}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'instanceid' => 'oc7ahdu6c6ph',
  'passwordsalt' => 'mysalt',
  'secret' => 'mysecret',
  'trusted_domains' => 
  array (
    0 => 'internalIP',
    1 => 'files.mydomain.fr',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '21.0.2.1',
  'overwrite.cli.url' => 'internalIP:8080',
  'dbname' => 'nextcloud',
  'dbhost' => 'db',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'dbuser',
  'dbpassword' => 'my.dbpassword',
  'installed' => true,
  'default_phone_region' => 'fr_FR',
  'mail_from_address' => 'sysadmin',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'mydomain.fr',
  'mail_smtphost' => 'ssl0.ovh.net',
  'mail_smtpport' => '465',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'my.email.address',
  'mail_smtppassword' => 'my.email.password',
  'mail_smtpsecure' => 'ssl',
  'maintenance' => false,
);

The output of your Apache/nginx/system log in /var/log/____:

error.log is empty

I think you should or must use also in your internal network
https://files.mydomain.fr

Sometimes this is not possible. Search e.g. NAT loopback and/or Hairpinning.
Please do not use internal ip address if possible.

Can you connect your server from inside your network with a browser (pc) with
https://files.mydomain.fr

Also there is mostly a problem with tls/ssl certificates and local ip addresses.

Thanks for your quick answer! I’ve indeed configured the sync client with the canonical URL https://files.mydomain.fr, which is also accessible from a browser (this is how I’ve used it until now, but need to sync some files automatically).

As you mention, I suspect there’s some issue with the following route:
Windows laptop (internal network) → my DNS (WAN, hosting provider) → my router (fixed IP address) → Nginx Proxy Manager (Docker container, Let’s Encrypt certificate, internal network) → Nextcloud (internal IP address) even though it looks pretty straightforward.

What do you mean by “there is mostly a problem with tls/ssl certificates and local ip addresses”?

Thanks again for your help!

If you also use a browser in the same local network and there is no problem with the connection and the tls/ssl certificate (look in the browsers ssl lock icon) than i think there is another problem and not a problem with tls/ssl.

         {
            "file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php",
            "line":158,
            "function":"createRejection",
            "class":"GuzzleHttp\\Handler\\CurlFactory",
            "type":"::",

Perhaps this helps:

edit: I tried some more things and noticed that my local DNS server (AdGuardHome) seems to have blocked/discarded some local DNS queries… I disabled that and now everything is back to normal.

Thanks for the link! Unfortunately, I don’t have any local DNS server as it’s part of my hosting provider’s offer. I’ve checked Nginx Proxy Manager and the related proxy to Nextcloud but there’s no setting I could tweak. Therefore, I’m a bit lost with no clue…

Thanks again!

Trying to revive this post… :wink:

I’m still unable to connect to my NC instance, as the Windows client doesn’t receive the access token, which could potentially be blocked by my proxy. However this proxy hasn’t any setting for this and should forward data back and forth to the client until it uses the proper URL.

Has anyone experienced the same issue?

Thanks in advance for any help!

Hi all,
Trying several keywords, I eventually stumbled upon the solution here. Thanks a lot @Raijin for sharing!