Support intro
Sorry to hear you’re facing problems
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
Nextcloud version (eg, 20.0.5): Nextcloud Hub 6 (27.1.1) AIO with OnlyOffice
Operating system and version (eg, Ubuntu 20.04): 22.04
Apache or nginx version (eg, Apache 2.4.25): nginx' PHP version _(eg, 7.4)_:
8.1.10`
The issue you are facing: [onlyoffice] Error: GuzzleHttp\Exception\ServerException: Server error:
Error code below when opening file on external storage using OnlyOffice. File will initially open fine, but after a while the browser locks up and I receive the error below. I’ve tried adding trusted domains, trusted proxies, JWT secret to config.php, JWT header “Authorization” to config.php. Even tried proxy through Nginx Proxy Manager.
Is this the first time you’ve seen this error? (Y/N): N
Steps to replicate it:
- Running Nextcloud AIO w/OnlyOffice using Cloudflare Tunnel
- Accessing files on NAS using external storage
- Files will open up fine for a while, then start receiving the error below.
The output of your Nextcloud log in Admin > Logging:
[onlyoffice] Error: GuzzleHttp\Exception\ServerException: Server error: `POST http://onlyoffice-document-server/ConvertService.ashx` resulted in a `504 Gateway Time-out` response:
<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><c (truncated...)
at <<closure>>
0. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 69
GuzzleHttp\Exception\RequestException::create("*** sensitive parameters replaced ***")
1. /var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php line 204
GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensitive parameters replaced ***")
2. /var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php line 153
GuzzleHttp\Promise\Promise::callHandler(1, "*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***")
3. /var/www/html/3rdparty/guzzlehttp/promises/src/TaskQueue.php line 48
GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}("*** sensitive parameters replaced ***")
4. /var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php line 248
GuzzleHttp\Promise\TaskQueue->run(true)
5. /var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php line 224
GuzzleHttp\Promise\Promise->invokeWaitFn()
6. /var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php line 269
GuzzleHttp\Promise\Promise->waitIfPending()
7. /var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php line 226
GuzzleHttp\Promise\Promise->invokeWaitList()
8. /var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php line 62
GuzzleHttp\Promise\Promise->waitIfPending()
9. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php line 187
GuzzleHttp\Promise\Promise->wait()
10. /var/www/html/lib/private/Http/Client/Client.php line 301
GuzzleHttp\Client->request("post", "http://onlyoffi ... x", ["/var/www/html/ ... "])
11. /var/www/html/custom_apps/onlyoffice/lib/DocumentService.php line 372
OC\Http\Client\Client->post("http://onlyoffi ... x", ["120",["applica ... ]])
12. /var/www/html/custom_apps/onlyoffice/lib/DocumentService.php line 177
OCA\Onlyoffice\DocumentService->Request("http://onlyoffi ... x", "post", ["120",["applica ... ]])
13. /var/www/html/custom_apps/onlyoffice/lib/DocumentService.php line 91
OCA\Onlyoffice\DocumentService->SendRequestToConvertService("http://nginx-se ... I", "xlsx", "jpeg", "3846367549", false, "*** sensitive parameters replaced ***")
14. /var/www/html/custom_apps/onlyoffice/lib/Preview.php line 269
OCA\Onlyoffice\DocumentService->GetConvertedUri("http://nginx-se ... I", "xlsx", "jpeg", "3846367549")
15. /var/www/html/lib/private/Preview/ProviderV1Adapter.php line 53
OCA\Onlyoffice\Preview->getThumbnail("Applications (1).xlsx", 4096, 4096, false, ["OC\\Files\\View"])
16. /var/www/html/lib/private/Preview/GeneratorHelper.php line 64
OC\Preview\ProviderV1Adapter->getThumbnail(["OC\\Files\\Node\\File"], 4096, 4096)
17. /var/www/html/lib/private/Preview/Generator.php line 397
OC\Preview\GeneratorHelper->getThumbnail(["OC\\Preview\\ProviderV1Adapter"], ["OC\\Files\\Node\\File"], 4096, 4096)
18. /var/www/html/lib/private/Preview/Generator.php line 373
OC\Preview\Generator->generateProviderPreview(["OC\\Files\\SimpleFS\\SimpleFolder"], ["OC\\Files\\Node\\File"], 4096, 4096, false, true, "application/vnd ... t", "")
19. /var/www/html/lib/private/Preview/Generator.php line 166
OC\Preview\Generator->getMaxPreview(["OC\\Files\\SimpleFS\\SimpleFolder"], "*** sensitive parameters replaced ***", ["OC\\Files\\Node\\File"], "application/vnd ... t", "")
20. /var/www/html/lib/private/Preview/Generator.php line 116
OC\Preview\Generator->generatePreviews(["OC\\Files\\Node\\File"], [[250,250,false,"fill"]], "application/vnd ... t")
21. /var/www/html/lib/private/PreviewManager.php line 192
OC\Preview\Generator->getPreview(["OC\\Files\\Node\\File"], 250, 250, false, "fill", "*** sensitive parameters replaced ***")
22. /var/www/html/core/Controller/PreviewController.php line 144
OC\PreviewManager->getPreview(["OC\\Files\\Node\\File"], 250, 250, false, "fill")
23. /var/www/html/core/Controller/PreviewController.php line 113
OC\Core\Controller\PreviewController->fetchPreview(["OC\\Files\\Node\\File"], 250, 250, true, false, "fill")
24. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 230
OC\Core\Controller\PreviewController->getPreviewByFileId(73273, 250, 250, true, false, "fill")
25. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 137
OC\AppFramework\Http\Dispatcher->executeController(["OC\\Core\\Cont ... "], "getPreviewByFileId")
26. /var/www/html/lib/private/AppFramework/App.php line 183
OC\AppFramework\Http\Dispatcher->dispatch(["OC\\Core\\Cont ... "], "getPreviewByFileId")
27. /var/www/html/lib/private/Route/Router.php line 315
OC\AppFramework\App::main("OC\\Core\\Controller\\PreviewController", "getPreviewByFileId", ["OC\\AppFramewo ... "], ["core.Preview.getPreviewByFileId"])
28. /var/www/html/lib/base.php line 1068
OC\Route\Router->match("/core/preview")
29. /var/www/html/index.php line 36
OC::handleRequest()
GET /index.php/core/preview?fileId=73273&c=6518c4e77d605&x=250&y=250&forceIcon=0&a=1
from 50.38.62.102 by shaywood at 2023-10-01T21:51:45+00:00
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'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' => 'oc296bbaq13g',
'passwordsalt' => 'PASSWORD',
'secret' => 'SECRET',
'trusted_domains' =>
array (
0 => '192.168.1.123',
1 => 'nginx-server',
2 => 'homeoffice.mydomain.com',
),
'trusted_proxies' =>
array (
0 => '192.168.1.123',
1 => 'nginx-server',
2 => 'homeoffice.mydomain.com',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'sqlite3',
'version' => '27.1.1.0',
'overwrite.cli.url' => 'https://homeoffice.mydomain.com',
'overwriteprotocol' => 'https',
'overwritehost' => 'homeoffice.mydomain.com',
'default_phone_region' => 'US',
'installed' => true,
'onlyoffice' =>
array (
'DocumentServerUrl' => '/ds-vpath/',
'DocumentServerInternalUrl' => 'http://onlyoffice-document-server/',
'StorageUrl' => 'http://nginx-server/',
'jwt_secret' => 'PASSWORD',
'jwt_header' => "Authorization",
),
'mail_from_address' => 'USER',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'gmail.com',
'mail_smtphost' => 'smtp.gmail.com',
'mail_smtpport' => '587',
'mail_smtpauth' => 1,
'mail_smtpname' => 'USER',
'mail_smtppassword' => 'PASSWORD',
);
The output of your Apache/nginx/system log in /var/log/____
:
PASTE HERE
PASTE HERE
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