Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 Internal Server Error #325

Closed
markuman opened this issue Nov 14, 2022 · 1 comment
Closed

500 Internal Server Error #325

markuman opened this issue Nov 14, 2022 · 1 comment
Labels

Comments

@markuman
Copy link

I don't know who to blame, but the previewgenerator produces 500 Internal Server Error when trying to generate previews for docs, pdf etc. All what's thrown against the office setup of the nextcloud. In my case, onlyoffice with it's built-in documentserver.

  • Nextcloud 25.0.1
  • documentserver_community: 0.1.13
  • previewgenerator: 5.1.1
  • onlyoffice: 7.6.8

Server Log

{
  "level": "error",
  "ts": 1668425667.9303558,
  "logger": "http.log.access.log0",
  "msg": "handled request",
  "request": {
    "remote_ip": "127.0.0.1",
    "remote_port": "48882",
    "proto": "HTTP/1.1",
    "method": "POST",
    "host": "nextcloud.tld",
    "uri": "/apps/documentserver_community/ConvertService.ashx",
    "headers": {
      "Content-Type": [
        "application/json"
      ],
      "User-Agent": [
        "Nextcloud Server Crawler"
      ],
      "Accept-Encoding": [
        "gzip"
      ],
      "Content-Length": [
        "314"
      ]
    },
    "tls": {
      "resumed": false,
      "version": 772,
      "cipher_suite": 4865,
      "proto": "http/1.1",
      "server_name": "nextcloud.tld"
    }
  },
  "user_id": "",
  "duration": 0.988457621,
  "size": 1313,
  "status": 500,
  "resp_headers": {
    "X-Robots-Tag": [
      "none"
    ],
    "Cache-Control": [
      "no-store, no-cache, must-revalidate"
    ],
    "Referrer-Policy": [
      "no-referrer"
    ],
    "X-Content-Type-Options": [
      "nosniff"
    ],
    "Content-Encoding": [
      "gzip"
    ],
    "Vary": [
      "Accept-Encoding"
    ],
    "Content-Security-Policy": [
      "default-src 'self'; script-src 'self' 'nonce-blhVK2dBcG1CR3QyUitrU1RSRmdER1lmcdQUdVWkl6OWp4MkQwMFpyQUVasD06OGc5VTF6bE5VeU1FRjZNbUtYHWJAdlVDk3V2k1cmV3Y0F0aUtTaHRPS2FRWT0='; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';"
    ],
    "Set-Cookie": [],
    "X-Xss-Protection": [
      "1; mode=block"
    ],
    "Pragma": [
      "no-cache"
    ],
    "Content-Type": [
      "text/html; charset=UTF-8"
    ],
    "X-Permitted-Cross-Domain-Policies": [
      "none"
    ],
    "Expires": [
      "Thu, 19 Nov 1981 08:52:00 GMT"
    ],
    "Server": [
      "Caddy"
    ],
    "Alt-Svc": [
      "h3=\":443\"; ma=2592000"
    ],
    "Strict-Transport-Security": [
      "max-age=31536000;"
    ],
    "Status": [
      "500 Internal Server Error"
    ],
    "X-Frame-Options": [
      "SAMEORIGIN"
    ]
  }
}

Nextcloud Log

[index] Error: OCA\DocumentServer\Document\DocumentConversionException: Segmentation fault (core dumped)
 at <<closure>>

 0. /var/www/nextcloud/apps/documentserver_community/lib/DocumentConverter.php line 125
    OCA\DocumentServer\Document\ConverterBinary->run()
 1. /var/www/nextcloud/apps/documentserver_community/lib/DocumentConverter.php line 113
    OCA\DocumentServer\DocumentConverter->runCommand()
 2. /var/www/nextcloud/apps/documentserver_community/lib/DocumentConverter.php line 49
    OCA\DocumentServer\DocumentConverter->convertFiles()
 3. /var/www/nextcloud/apps/documentserver_community/lib/Document/DocumentStore.php line 98
    OCA\DocumentServer\DocumentConverter->getEditorBinary()
 4. /var/www/nextcloud/apps/documentserver_community/lib/LocalAppData.php line 102
    OCA\DocumentServer\Document\DocumentStore->OCA\DocumentServer\Document\{closure}("*** sensitive parameters replaced ***")
 5. /var/www/nextcloud/apps/documentserver_community/lib/Document/DocumentStore.php line 99
    OCA\DocumentServer\LocalAppData->getReadWriteLocalPath()
 6. /var/www/nextcloud/apps/documentserver_community/lib/Controller/ConvertController.php line 59
    OCA\DocumentServer\Document\DocumentStore->getDocumentForEditor()
 7. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 225
    OCA\DocumentServer\Controller\ConvertController->convert()
 8. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 133
    OC\AppFramework\Http\Dispatcher->executeController()
 9. /var/www/nextcloud/lib/private/AppFramework/App.php line 172
    OC\AppFramework\Http\Dispatcher->dispatch()
10. /var/www/nextcloud/lib/private/Route/Router.php line 298
    OC\AppFramework\App::main()
11. /var/www/nextcloud/lib/base.php line 1047
    OC\Route\Router->match()
12. /var/www/nextcloud/index.php line 36
    OC::handleRequest()

POST /apps/documentserver_community/ConvertService.ashx
from 127.0.0.1 at 2022-11-14T11:34:26+00:00
[onlyoffice] Error: GuzzleHttp\Exception\ServerException: Server error: `POST https://nextcloud.tld/apps/documentserver_community/ConvertService.ashx` resulted in a `500 Internal Server Error` response:
<!DOCTYPE html>
<html class="ng-csp" data-placeholder-focus="false" lang="en" data-locale="en" >
	<head
 data-requesttok (truncated...)
 at <<closure>>

 0. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 69
    GuzzleHttp\Exception\RequestException::create()
 1. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 204
    GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensitive parameters replaced ***")
 2. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 153
    GuzzleHttp\Promise\Promise::callHandler()
 3. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php line 48
    GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}("*** sensitive parameters replaced ***")
 4. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 248
    GuzzleHttp\Promise\TaskQueue->run()
 5. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 224
    GuzzleHttp\Promise\Promise->invokeWaitFn()
 6. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 269
    GuzzleHttp\Promise\Promise->waitIfPending()
 7. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 226
    GuzzleHttp\Promise\Promise->invokeWaitList()
 8. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 62
    GuzzleHttp\Promise\Promise->waitIfPending()
 9. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 187
    GuzzleHttp\Promise\Promise->wait()
10. /var/www/nextcloud/lib/private/Http/Client/Client.php line 289
    GuzzleHttp\Client->request()
11. /var/www/nextcloud/apps/onlyoffice/lib/documentservice.php line 372
    OC\Http\Client\Client->post()
12. /var/www/nextcloud/apps/onlyoffice/lib/documentservice.php line 177
    OCA\Onlyoffice\DocumentService->Request()
13. /var/www/nextcloud/apps/onlyoffice/lib/documentservice.php line 91
    OCA\Onlyoffice\DocumentService->SendRequestToConvertService()
14. /var/www/nextcloud/apps/onlyoffice/lib/preview.php line 269
    OCA\Onlyoffice\DocumentService->GetConvertedUri()
15. /var/www/nextcloud/lib/private/Preview/ProviderV1Adapter.php line 53
    OCA\Onlyoffice\Preview->getThumbnail()
16. /var/www/nextcloud/lib/private/Preview/GeneratorHelper.php line 65
    OC\Preview\ProviderV1Adapter->getThumbnail()
17. /var/www/nextcloud/lib/private/Preview/Generator.php line 343
    OC\Preview\GeneratorHelper->getThumbnail()
18. /var/www/nextcloud/lib/private/Preview/Generator.php line 162
    OC\Preview\Generator->getMaxPreview()
19. /var/www/nextcloud/lib/private/PreviewManager.php line 200
    OC\Preview\Generator->generatePreviews()
20. /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php line 234
    OC\PreviewManager->generatePreviews()
21. /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php line 216
    OCA\PreviewGenerator\Command\Generate->parseFile()
22. /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php line 214
    OCA\PreviewGenerator\Command\Generate->parseFolder()
23. /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php line 214
    OCA\PreviewGenerator\Command\Generate->parseFolder()
24. /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php line 194
    OCA\PreviewGenerator\Command\Generate->parseFolder()
25. /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php line 146
    OCA\PreviewGenerator\Command\Generate->generateUserPreviews()
26. /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php line 255
    OCA\PreviewGenerator\Command\Generate->execute()
27. /var/www/nextcloud/3rdparty/symfony/console/Application.php line 1009
    Symfony\Component\Console\Command\Command->run()
28. /var/www/nextcloud/3rdparty/symfony/console/Application.php line 273
    Symfony\Component\Console\Application->doRunCommand()
29. /var/www/nextcloud/3rdparty/symfony/console/Application.php line 149
    Symfony\Component\Console\Application->doRun()
30. /var/www/nextcloud/lib/private/Console/Application.php line 213
    Symfony\Component\Console\Application->run()
31. /var/www/nextcloud/console.php line 100
    OC\Console\Application->run()
32. /var/www/nextcloud/occ line 11
    require_once("/var/www/nextcloud/console.php")

at 2022-11-14T11:34:24+00:00
@st3iny
Copy link
Member

st3iny commented Dec 2, 2022

This seems to be a bug in https://github.com/nextcloud/documentserver_community.

Here are some related tickets:

Unfortunately, the app doesn't seem to be maintained at the moment.

@st3iny st3iny added the wontfix label Dec 2, 2022
@st3iny st3iny closed this as not planned Won't fix, can't repro, duplicate, stale Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants