GuzzleHttp Errors in Log

I installed Nextcloud AIO on a Linux based x64 system running a I5-5600t with 16gb RAM. AIO was installed using a stack in Portainer. I’ve been noticing several errors in the Logs that pertain to GuzzleHttp which from what I can tell has to do with Imaginary, but other than that I have no idea. I can’t tell what exactly is causing the issue as the timestamps seem to be relatively random as far as I can tell. Any help would be greatly appreciated.

Robert

[no app in context] Error: GuzzleHttp\Exception\ClientException: Client error: POST http://nextcloud-aio-imaginary:9000/pipeline?operations=%5B%7B%22operation%22%3A%22autorotate%22%7D%2C%7B%22operation%22%3A%22fit%22%2C%22params%22%3A%7B%22width%22%3A2048%2C%22height%22%3A2048%2C%22stripmeta%22%3A%22true%22%2C%22type%22%3A%22png%22%2C%22norotation%22%3A%22true%22%2C%22quality%22%3A%2260%22%7D%7D%5D resulted in a 400 Bad Request response:
{“message”:“Error while processing the image: Unsupported image output type”,“status”:400}
at <>

  1. /var/www/html/custom_apps/fulltextsearch_elasticsearch/vendor/guzzlehttp/guzzle/src/Middleware.php line 69
    GuzzleHttp\Exception\RequestException::create(“*** sensitive parameters replaced ***”)
  2. /var/www/html/custom_apps/fulltextsearch_elasticsearch/vendor/guzzlehttp/promises/src/Promise.php line 204
    GuzzleHttp\Middleware::GuzzleHttp{closure}(“*** sensitive parameters replaced ***”)
  3. /var/www/html/custom_apps/fulltextsearch_elasticsearch/vendor/guzzlehttp/promises/src/Promise.php line 153
    GuzzleHttp\Promise\Promise::callHandler(1, “*** sensitive parameters replaced ", " sensitive parameters replaced ***”)
  4. /var/www/html/custom_apps/fulltextsearch_elasticsearch/vendor/guzzlehttp/promises/src/TaskQueue.php line 48
    GuzzleHttp\Promise\Promise::GuzzleHttp\Promise{closure}(“*** sensitive parameters replaced ***”)
  5. /var/www/html/custom_apps/fulltextsearch_elasticsearch/vendor/guzzlehttp/promises/src/Promise.php line 248
    GuzzleHttp\Promise\TaskQueue->run(true)
  6. /var/www/html/custom_apps/fulltextsearch_elasticsearch/vendor/guzzlehttp/promises/src/Promise.php line 224
    GuzzleHttp\Promise\Promise->invokeWaitFn()
  7. /var/www/html/custom_apps/fulltextsearch_elasticsearch/vendor/guzzlehttp/promises/src/Promise.php line 269
    GuzzleHttp\Promise\Promise->waitIfPending()
  8. /var/www/html/custom_apps/fulltextsearch_elasticsearch/vendor/guzzlehttp/promises/src/Promise.php line 226
    GuzzleHttp\Promise\Promise->invokeWaitList()
  9. /var/www/html/custom_apps/fulltextsearch_elasticsearch/vendor/guzzlehttp/promises/src/Promise.php line 62
    GuzzleHttp\Promise\Promise->waitIfPending()
  10. /var/www/html/custom_apps/fulltextsearch_elasticsearch/vendor/guzzlehttp/guzzle/src/Client.php line 187
    GuzzleHttp\Promise\Promise->wait()
  11. /var/www/html/lib/private/Http/Client/Client.php line 297
    GuzzleHttp\Client->request(“post”, “http://nextclou … e”, ["/mnt/ncdata/fi … "])
  12. /var/www/html/lib/private/Preview/Imaginary.php line 147
    OC\Http\Client\Client->post(“http://nextclou … e”, [["[{"operation … "])
  13. /var/www/html/lib/private/Preview/GeneratorHelper.php line 62
    OC\Preview\Imaginary->getCroppedThumbnail([“OC\Files\Node\File”], 2048, 2048, false)
  14. /var/www/html/lib/private/Preview/Generator.php line 440
    OC\Preview\GeneratorHelper->getThumbnail([“OC\Preview\Imaginary”], [“OC\Files\Node\File”], 2048, 2048)
  15. /var/www/html/lib/private/Preview/Generator.php line 164
    OC\Preview\Generator->getMaxPreview([“OC\Files\SimpleFS\SimpleFolder”], [“OC\Files\Node\File”], “image/gif”, “”)
  16. /var/www/html/lib/private/PreviewManager.php line 212
    OC\Preview\Generator->generatePreviews([“OC\Files\Node\File”], [[64,64,true],[2 … "], “image/gif”)
  17. /var/www/html/custom_apps/previewgenerator/lib/Command/Generate.php line 230
    OC\PreviewManager->generatePreviews([“OC\Files\Node\File”], [[64,64,true],[2 … "])
  18. /var/www/html/custom_apps/previewgenerator/lib/Command/Generate.php line 212
    OCA\PreviewGenerator\Command\Generate->parseFile([“OC\Files\Node\File”])
  19. /var/www/html/custom_apps/previewgenerator/lib/Command/Generate.php line 210
    OCA\PreviewGenerator\Command\Generate->parseFolder([“OC\Files\Node\Folder”], “*** sensitive parameters replaced ***”)
  20. /var/www/html/custom_apps/previewgenerator/lib/Command/Generate.php line 210
    OCA\PreviewGenerator\Command\Generate->parseFolder([“OC\Files\Node\Folder”], “*** sensitive parameters replaced ***”)
  21. /var/www/html/custom_apps/previewgenerator/lib/Command/Generate.php line 210
    OCA\PreviewGenerator\Command\Generate->parseFolder([“OC\Files\Node\Folder”], “*** sensitive parameters replaced ***”)
  22. /var/www/html/custom_apps/previewgenerator/lib/Command/Generate.php line 190
    OCA\PreviewGenerator\Command\Generate->parseFolder([“OC\Files\Node\Folder”], “*** sensitive parameters replaced ***”)
  23. /var/www/html/custom_apps/previewgenerator/lib/Command/Generate.php line 136
    OCA\PreviewGenerator\Command\Generate->generateUserPreviews(“*** sensitive parameters replaced ***”)
  24. /var/www/html/lib/private/User/Manager.php line 639
    OCA\PreviewGenerator\Command\Generate->OCA\PreviewGenerator\Command{closure}(“*** sensitive parameters replaced ***”)
  25. /var/www/html/custom_apps/previewgenerator/lib/Command/Generate.php line 137
    OC\User\Manager->callForSeenUsers([“Closure”])
  26. /var/www/html/3rdparty/symfony/console/Command/Command.php line 255
    OCA\PreviewGenerator\Command\Generate->execute(["Symfony\Compo … "], ["Symfony\Compo … "])
  27. /var/www/html/3rdparty/symfony/console/Application.php line 1009
    Symfony\Component\Console\Command\Command->run(["Symfony\Compo … "], ["Symfony\Compo … "])
  28. /var/www/html/3rdparty/symfony/console/Application.php line 273
    Symfony\Component\Console\Application->doRunCommand(["OCA\PreviewGe … "], ["Symfony\Compo … "], ["Symfony\Compo … "])
  29. /var/www/html/3rdparty/symfony/console/Application.php line 149
    Symfony\Component\Console\Application->doRun(["Symfony\Compo … "], ["Symfony\Compo … "])
  30. /var/www/html/lib/private/Console/Application.php line 211
    Symfony\Component\Console\Application->run(["Symfony\Compo … "], ["Symfony\Compo … "])
  31. /var/www/html/console.php line 100
    OC\Console\Application->run()
  32. /var/www/html/occ line 11
    require_once(“/var/www/html/console.php”)

at 2023-07-18T12:33:05+00:00

Same, I installed via a VM, I believe it has to do with installing and enabling php-imagick ImageMagick
sudo apt-get install php-imagick in console to install that service, I was reading it also creates a security risk lolz

I will give it a try and report back

Hi @Robert_Spierenburg - If you look at the raw stack trace (the one you provided is the abbreviated one) I think you’ll find full file paths (probably about steps 10 or 11). Additionally the request in your log immediately before I think will be an image preview request. It’s probably just bombing on an image.

Are image previews otherwise generally working for you? How frequent are these log messages?

It was rather random errors, in any case it seems to have resolved itself after a full reboot of the server.