Client timeout when connect to server on VM

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via 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:


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


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, 12.0.2): 17.
Operating system and version (eg, Ubuntu 17.04):Ubuntu 18.04.3 LTS
PHP version (eg, 7.1):

The issue you are facing:
cannot login from client to server from a VM (Hyper-V) in Windows 10

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

Steps to replicate it:

  1. download the Windows client
  2. start up the client
    3 . login server … timed out error.

The Nextcloud server was installed within VM Ubuntu via Hyper-V of a Windows 10 PC. After overcoming some issues with initial login (localhost) i.e. database access denied, setting up trusted domains , etc …I started the client from another (Windows) PC but could not log in but got timeout errors. Did I miss anything when installing or configuration of the Nextcloud server on the other PC ? All PCs are on the same LAN (home) network.

The output of your Nextcloud log in Admin > Logging:


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


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


The exact error message is below …

Timeout while trying connect to Nextcloud at https://dzungabc/nextcloud/status.php

Admin Log:
[PHP] Error: Cannot declare class OCA\Talk\Migration\Version2000Date20170707093535, because the name is already in use at /var/www/nextcloud/apps/spreed/lib/Migration/Version2000Date20170707093535.php#127

POST /nextcloud/index.php/settings/apps/enable
from by zung at 2020-03-29T16:02:44+00:00

[PHP] Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 315857416 bytes) at /var/www/nextcloud/lib/private/Installer.php#285

POST /nextcloud/index.php/settings/apps/enable
from by zung at 2020-03-29T16:02:13+00:00

[index] Error: OCP\Files\NotPermittedException: Could not create folder at <>

  1. /var/www/nextcloud/lib/private/Files/AppData/AppData.php line 158
  2. /var/www/nextcloud/apps/theming/lib/ImageManager.php line 158
  3. /var/www/nextcloud/apps/theming/lib/ImageManager.php line 173
  4. /var/www/nextcloud/apps/theming/lib/Controller/IconController.php line 127
  5. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 170
  6. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 99
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Theming\Controller\IconController {}, “getFavicon”)
  7. /var/www/nextcloud/lib/private/AppFramework/App.php line 125
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Theming\Controller\IconController {}, “getFavicon”)
  8. /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main(“OCA\Theming\C … r”, “getFavicon”, OC\AppFramework\ … {}, {app: “core”,_ro … "})
  9. <>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({app: “core”,_ro … "})
  10. /var/www/nextcloud/lib/private/Route/Router.php line 299
    call_user_func(OC\AppFramework\ … {}, {app: “core”,_ro … "})
  11. /var/www/nextcloud/lib/base.php line 1008
  12. /var/www/nextcloud/index.php line 38

GET /nextcloud/index.php/apps/theming/favicon?v=0
from by zung at 2020-03-29T16:00:40+00:100:


<?php $CONFIG = array ( 'instanceid' => 'ocvki0l4q7no', 'passwordsalt' => 'ydt6/RIOf9Gsy+muVHLYktRy/simNu', 'secret' => '3nsW2nKN8foEY6miwHcbCRM4lTOMP03yZvjjZjX//TCssOVh', 'trusted_domains' => array ( 0 => 'localhost', 1 => 'dzungabc', 2 => '', ), 'datadirectory' => '/var/www/nextcloud/data', 'dbtype' => 'mysql', 'version' => '', 'overwrite.cli.url' => 'http://localhost/nextcloud', 'dbname' => 'nextclouddb', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => 'nextcloud', 'dbpassword' => 'passwoed', 'installed' => true, ); /var/log/apache2/error.log [Sun Mar 29 20:48:38.455344 2020] [ssl:warn] [pid 1140] AH01909: localhosto:443:0 server certificate does NOT include an ID which matches the server name [Sun Mar 29 20:48:39.111369 2020] [ssl:warn] [pid 1445] AH01909: localhosto:443:0 server certificate does NOT include an ID which matches the server name [Sun Mar 29 20:48:39.116732 2020] [mpm_prefork:notice] [pid 1445] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations [Sun Mar 29 20:48:39.116778 2020] [core:notice] [pid 1445] AH00094: Command line: '/usr/sbin/apache2'

My mistake. I was using the IP address of the host machine instead of the IP address of the Hyper-V Ubuntu machine. When I used the new IP address I was able to log in the Nextcloud server all right.

Thanks to anybody having spending time on this issue.