next cloud crashes when working with the web interface.

next cloud crashes when working with the web interface. We solve the problem by restarting the virtual machine.
I’m attaching the report.

Server configuration detail

Operating system: Linux 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64

Webserver: Apache/2.4.54 (Debian) (fpm-fcgi)

Database: pgsql PostgreSQL 15.2 (Debian 15.2-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit

PHP version: 8.1.17

Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, intl, ldap, exif, msgpack, mysqli, pdo_mysql, pdo_pgsql, pgsql, Phar, posix, readline, shmop, SimpleXML, soap, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, memcached, Zend OPcache

Nextcloud version: 28.0.3 - 28.0.3.2

[richdocuments] Ошибка: Failed to fetch the Collabora capabilities endpoint: 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.belcs.by/apps/richdocumentscode/proxy.php?req=/hosting/capabilities
GET /index.php/204
на 192.168.101.211 от – в 2 апр. 2024 г., 12:41:16

ConnectExceptioncURL error 28: Operation timed out after 45001 milliseconds with 0 bytes received (see libcurl - Error Codes) for https://cloud.belcs.by/apps/richdocumentscode/proxy.php?req=/hosting/capabilities

  1. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.phpстрока 158
GuzzleHttp\Handler\CurlFactory::createRejection
(
  "*** sensitive parameters replaced ***"
)
  1. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.phpстрока 110
GuzzleHttp\Handler\CurlFactory::finishError
()
  1. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.phpстрока 47
GuzzleHttp\Handler\CurlFactory::finish
()
  1. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.phpстрока 137
GuzzleHttp\Handler\CurlHandler->__invoke
()
  1. /var/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.phpстрока 121
GuzzleHttp\Middleware::GuzzleHttp\{closure}
(
  "*** sensitive parameters replaced ***"
)
  1. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.phpстрока 35
OC\Http\Client\DnsPinMiddleware->OC\Http\Client\{closure}
(
  "*** sensitive parameters replaced ***"
)
  1. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.phpстрока 31
GuzzleHttp\PrepareBodyMiddleware->__invoke
()
  1. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.phpстрока 71
GuzzleHttp\Middleware::GuzzleHttp\{closure}
(
  "*** sensitive parameters replaced ***"
)
  1. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.phpстрока 63
GuzzleHttp\RedirectMiddleware->__invoke
()
  1. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.phpстрока 75
GuzzleHttp\Middleware::GuzzleHttp\{closure}
(
  "*** sensitive parameters replaced ***"
)
  1. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.phpстрока 331
GuzzleHttp\HandlerStack->__invoke
()
  1. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.phpстрока 168
GuzzleHttp\Client->transfer
()
  1. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.phpстрока 187
GuzzleHttp\Client->requestAsync
(
  "*** sensitive parameters replaced ***"
)
  1. /var/www/nextcloud/lib/private/Http/Client/Client.phpстрока 230
GuzzleHttp\Client->request
()
  1. /var/www/nextcloud/apps/richdocuments/lib/Service/CapabilitiesService.phpстрока 165
OC\Http\Client\Client->get
()
  1. /var/www/nextcloud/apps/richdocuments/lib/Service/CapabilitiesService.phpстрока 73
OCA\Richdocuments\Service\CapabilitiesService->fetchFromRemote
()
  1. /var/www/nextcloud/apps/richdocuments/lib/AppInfo/Application.phpстрока 96
OCA\Richdocuments\Service\CapabilitiesService->getCapabilities
()
  1. /var/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.phpстрока 66
OCA\Richdocuments\AppInfo\Application->OCA\Richdocuments\AppInfo\{closure}
(
  "*** sensitive parameters replaced ***"
)
  1. /var/www/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.phpстрока 50
OC\AppFramework\Bootstrap\FunctionInjector->injectFn
()
  1. /var/www/nextcloud/apps/richdocuments/lib/AppInfo/Application.phpстрока 151
OC\AppFramework\Bootstrap\BootContext->injectFn
()
  1. /var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.phpстрока 200
OCA\Richdocuments\AppInfo\Application->boot
()
  1. /var/www/nextcloud/lib/private/App/AppManager.phpстрока 434
OC\AppFramework\Bootstrap\Coordinator->bootApp
()
  1. /var/www/nextcloud/lib/private/App/AppManager.phpстрока 213
OC\App\AppManager->loadApp
()
  1. /var/www/nextcloud/lib/private/legacy/OC_App.phpстрока 125
OC\App\AppManager->loadApps
()
  1. /var/www/nextcloud/ocs/v1.phpстрока 59
OC_App::loadApps
()
  1. /var/www/nextcloud/ocs/v2.phpстрока 23
undefinedundefinedrequire_once
(
  "/var/www/nextcloud/ocs/v1.php"
)

Необработанная запись в журнале

{
  "reqId": "6o26pUaoXffZXeTCaGUg",
  "level": 3,
  "time": "2024-04-02T11:13:11+00:00",
  "remoteAddr": "192.168.101.211",
  "user": "e.shahan",
  "app": "richdocuments",
  "method": "PUT",
  "url": "/ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json",
  "message": "Failed to fetch the Collabora capabilities endpoint: 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.belcs.by/apps/richdocumentscode/proxy.php?req=/hosting/capabilities",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 OPR/110.0.0.0 (Edition developer)",
  "version": "28.0.3.2",
  "exception": {
    "Exception": "GuzzleHttp\\Exception\\ConnectException",
    "Message": "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.belcs.by/apps/richdocumentscode/proxy.php?req=/hosting/capabilities",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php",
        "line": 158,
        "function": "createRejection",
        "class": "GuzzleHttp\\Handler\\CurlFactory",
        "type": "::",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php",
        "line": 110,
        "function": "finishError",
        "class": "GuzzleHttp\\Handler\\CurlFactory",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php",
        "line": 47,
        "function": "finish",
        "class": "GuzzleHttp\\Handler\\CurlFactory",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php",
        "line": 137,
        "function": "__invoke",
        "class": "GuzzleHttp\\Handler\\CurlHandler",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php",
        "line": 121,
        "function": "GuzzleHttp\\{closure}",
        "class": "GuzzleHttp\\Middleware",
        "type": "::",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "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/Middleware.php",
        "line": 63,
        "function": "__invoke",
        "class": "GuzzleHttp\\RedirectMiddleware",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php",
        "line": 75,
        "function": "GuzzleHttp\\{closure}",
        "class": "GuzzleHttp\\Middleware",
        "type": "::",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php",
        "line": 331,
        "function": "__invoke",
        "class": "GuzzleHttp\\HandlerStack",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php",
        "line": 168,
        "function": "transfer",
        "class": "GuzzleHttp\\Client",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php",
        "line": 187,
        "function": "requestAsync",
        "class": "GuzzleHttp\\Client",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/Http/Client/Client.php",
        "line": 230,
        "function": "request",
        "class": "GuzzleHttp\\Client",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/richdocuments/lib/Service/CapabilitiesService.php",
        "line": 165,
        "function": "get",
        "class": "OC\\Http\\Client\\Client",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/richdocuments/lib/Service/CapabilitiesService.php",
        "line": 73,
        "function": "fetchFromRemote",
        "class": "OCA\\Richdocuments\\Service\\CapabilitiesService",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/richdocuments/lib/AppInfo/Application.php",
        "line": 96,
        "function": "getCapabilities",
        "class": "OCA\\Richdocuments\\Service\\CapabilitiesService",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php",
        "line": 66,
        "function": "OCA\\Richdocuments\\AppInfo\\{closure}",
        "class": "OCA\\Richdocuments\\AppInfo\\Application",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php",
        "line": 50,
        "function": "injectFn",
        "class": "OC\\AppFramework\\Bootstrap\\FunctionInjector",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/richdocuments/lib/AppInfo/Application.php",
        "line": 151,
        "function": "injectFn",
        "class": "OC\\AppFramework\\Bootstrap\\BootContext",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php",
        "line": 200,
        "function": "boot",
        "class": "OCA\\Richdocuments\\AppInfo\\Application",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/App/AppManager.php",
        "line": 434,
        "function": "bootApp",
        "class": "OC\\AppFramework\\Bootstrap\\Coordinator",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/App/AppManager.php",
        "line": 213,
        "function": "loadApp",
        "class": "OC\\App\\AppManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/legacy/OC_App.php",
        "line": 125,
        "function": "loadApps",
        "class": "OC\\App\\AppManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/ocs/v1.php",
        "line": 59,
        "function": "loadApps",
        "class": "OC_App",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/ocs/v2.php",
        "line": 23,
        "args": [
          "/var/www/nextcloud/ocs/v1.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php",
    "Line": 210,
    "message": "Failed to fetch the Collabora capabilities endpoint: 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.belcs.by/apps/richdocumentscode/proxy.php?req=/hosting/capabilities",
    "exception": [],
    "CustomMessage": "Failed to fetch the Collabora capabilities endpoint: 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.belcs.by/apps/richdocumentscode/proxy.php?req=/hosting/capabilities"
  },
  "id": "660c55884df8b"
}

welcome to the community @asbc :handshake:

as many others - use search :wink: you hit the problem your system can not reach CODE capabilities endpoint. There are many reasons but in your case it must be some generic issue with webserver or reverse proxy as I can’t access the URL as well.

the correct link https://cloud.belcs.by I modified it deliberately so as not to show the real address. corrected it back if it interferes with the diagnosis
of the total original address from the error log https://cloud .belcs.by/apps/richdocumentscode/proxy.php?req=/hosting/capabilities

using the right URL both /hosting/capabilities and /hosting/discovery are accessible from the internet and discovery shows valid XML docs… if your cloud now tries to connect with the right URL and fails the problem must be local - DNS, routing or firewall…

next cloud is currently running. sometimes, when adding files via the web interface, it crashes. When next cloud crashes, the error that was posted above is displayed in the log. I’m attaching a screenshot

I’m not sure I get the meaning of “it crashes” but definitely you should fix the error. The problem is you server can not reach the URL and you should look there…