Curl failures / SSL errors / dashboard never loads

Nextcloud version (eg, 20.0.5): 27.1.3
Operating system and version (eg, Ubuntu 20.04): Debian 12
Apache or nginx version (eg, Apache 2.4.25): 1.22.1-9
PHP version (eg, 7.4): 8.2.7

The issue you are facing: Just installed nextcloud on Debian 12. Seemed to be working fine until I installed the recommended apps that nextcloud suggested I install. Now I get a lot of spinners when the dashboard is trying to load. Error message from the logs is pasted below.

Also getting this response in the network tab of my browser:

This application requires JavaScript for correct operation. Please enable JavaScript and reload the page.

Also just noticed SSL errors in the nginx logs (see below).

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

Steps to replicate it:

  1. go to cloud.atavismxi.com

The output of your Nextcloud log in Admin > Logging:

[richdocuments] Error: GuzzleHttp\Exception\ConnectException: cURL error 28: Operation timed out after 45001 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://cloud.atavismxi.com/apps/richdocumentscode/proxy.php?req=/hosting/capabilities at <<closure>>

 0. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 158
    GuzzleHttp\Handler\CurlFactory::createRejection("*** sensitive parameters replaced ***")
 1. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 110
    GuzzleHttp\Handler\CurlFactory::finishError()
 2. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php line 47
    GuzzleHttp\Handler\CurlFactory::finish()
 3. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 137
    GuzzleHttp\Handler\CurlHandler->__invoke()
 4. /var/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php line 114
    GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensitive parameters replaced ***")
 5. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php line 35
    OC\Http\Client\DnsPinMiddleware->OC\Http\Client\{closure}("*** sensitive parameters replaced ***")
 6. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 31
    GuzzleHttp\PrepareBodyMiddleware->__invoke()
 7. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php line 71
    GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensitive parameters replaced ***")
 8. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 63
    GuzzleHttp\RedirectMiddleware->__invoke()
 9. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php line 75
    GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensitive parameters replaced ***")
10. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 331
    GuzzleHttp\HandlerStack->__invoke()
11. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 168
    GuzzleHttp\Client->transfer()
12. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 187
    GuzzleHttp\Client->requestAsync("*** sensitive parameters replaced ***")
13. /var/www/nextcloud/lib/private/Http/Client/Client.php line 230
    GuzzleHttp\Client->request()
14. /var/www/nextcloud/apps/richdocuments/lib/Service/CapabilitiesService.php line 135
    OC\Http\Client\Client->get()
15. /var/www/nextcloud/apps/richdocuments/lib/Service/CapabilitiesService.php line 73
    OCA\Richdocuments\Service\CapabilitiesService->refetch()
16. /var/www/nextcloud/apps/richdocuments/lib/AppInfo/Application.php line 90
    OCA\Richdocuments\Service\CapabilitiesService->getCapabilities()
17. /var/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php line 45
    OCA\Richdocuments\AppInfo\Application->OCA\Richdocuments\AppInfo\{closure}("*** sensitive parameters replaced ***")
18. /var/www/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php line 50
    OC\AppFramework\Bootstrap\FunctionInjector->injectFn()
19. /var/www/nextcloud/apps/richdocuments/lib/AppInfo/Application.php line 89
    OC\AppFramework\Bootstrap\BootContext->injectFn()
20. /var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php line 200
    OCA\Richdocuments\AppInfo\Application->boot()
21. /var/www/nextcloud/lib/private/App/AppManager.php line 437
    OC\AppFramework\Bootstrap\Coordinator->bootApp()
22. /var/www/nextcloud/lib/private/App/AppManager.php line 216
    OC\App\AppManager->loadApp()
23. /var/www/nextcloud/lib/private/legacy/OC_App.php line 126
    OC\App\AppManager->loadApps()
24. /var/www/nextcloud/lib/base.php line 1048
    OC_App::loadApps()
25. /var/www/nextcloud/index.php line 36
    OC::handleRequest()

PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json
from 192.168.50.1 by grahf at 2023-10-27T19:47:55+00:00

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

<?php
$CONFIG = array (
  'instanceid' => 'ocwc6m2i5lcp',
  'passwordsalt' => '***************',
  'secret' => '*******************',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => 'cloud.atavismxi.com',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '27.1.3.2',
  'overwrite.cli.url' => 'https://cloud.atavismxi.com',
  'dbname' => '********',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '******',
  'dbpassword' => '*******',
  'installed' => true,
  'htaccess.RewriteBase' => '/',
);

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

2023/10/26 23:06:32 [notice] 6832#6832: using inherited sockets from "5;6;"
2023/10/27 11:07:14 [crit] 29569#29569: *52 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 139.59.182.142, server: 0.0.0.0:443
2023/10/27 11:07:24 [crit] 29572#29572: *111 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 169.150.227.203, server: 0.0.0.0:443
2023/10/27 13:37:41 [alert] 55890#55890: *251 open socket #17 left in connection 10
2023/10/27 13:37:41 [alert] 55890#55890: *766 open socket #15 left in connection 13
2023/10/27 13:37:41 [alert] 55890#55890: aborting
2023/10/27 14:41:17 [error] 58947#58947: *707 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "GET /index.php/settings/apps/list HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 14:41:17 [error] 58947#58947: *706 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "GET /index.php/settings/apps/categories HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 14:47:01 [error] 58951#58951: *594 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "GET /index.php/apps/logreader/poll?lastReqId=anwVzXfI94K5aj1BNZXO HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 14:47:58 [error] 58952#58952: *977 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "GET /index.php/apps/files/preview-service-worker.js HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 14:48:03 [error] 58952#58952: *979 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "GET /index.php/settings/apps HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 14:51:20 [error] 58948#58948: *1089 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "GET /index.php/apps/files/preview-service-worker.js HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 14:51:38 [error] 58949#58949: *1101 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "GET /index.php/settings/admin/support HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 14:52:32 [error] 58949#58949: *1113 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 14:52:33 [error] 58949#58949: *1115 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 14:52:39 [error] 58948#58948: *1089 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "GET /index.php/apps/files/preview-service-worker.js HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 14:54:19 [error] 58949#58949: *1149 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "GET /index.php/apps/files/preview-service-worker.js HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 14:55:13 [error] 58950#58950: *1163 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 14:56:14 [error] 58949#58949: *1149 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "GET /index.php/apps/files/preview-service-worker.js HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 14:57:07 [error] 58950#58950: *1163 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 14:57:32 [error] 58951#58951: *1197 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 14:57:33 [error] 58951#58951: *1199 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 14:58:09 [error] 58949#58949: *1149 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "GET /index.php/apps/files/preview-service-worker.js HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 15:01:32 [error] 58953#58953: *1253 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "GET /index.php/csrftoken HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 15:02:33 [error] 58953#58953: *1253 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 15:02:34 [error] 58946#58946: *1276 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 15:07:33 [error] 58947#58947: *1338 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 15:07:34 [error] 58947#58947: *1340 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 15:12:33 [error] 58950#58950: *1414 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 15:12:34 [error] 58950#58950: *1416 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 15:13:33 [error] 58950#58950: *1428 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "GET /index.php/csrftoken HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 15:17:33 [error] 58952#58952: *1494 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"
2023/10/27 15:17:34 [error] 58952#58952: *1496 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.50.1, server: cloud.atavismxi.com, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock", host: "cloud.atavismxi.com"

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

Re did the install while following this tutorial: Nextcloud 27 Installation on Debian - Emanuel Pina

Works fine now. Not sure what the issue was :frowning:

1 Like