Failed to connect to pipeline

Hi there,

I’m trying to use the recognize app to classify my photos & videos. The tensorflow classification seems to be working well, but preview generator is spamming errors, and all photos seem to never complete their classification. When running occ recognize:recrawl then occ recognize:classify manually from the terminal, things seem to run cleanly (including a backlog of classifications showing up in the admin panel), but when I check logs I get lots of this:

[no app in context] Error: GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to 127.0.0.1 port 9090: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://127.0.0.1:9090/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%22jpeg%22%2C%22norotation%22%3A%22true%22%7D%7D%5D at <<closure>>

 0. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 158
    GuzzleHttp\Handler\CurlFactory::createRejection(GuzzleHttp\Handl ... l}, [7,"Failed to co ... "])
 1. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 110
    GuzzleHttp\Handler\CurlFactory::finishError(GuzzleHttp\Handler\CurlHandler {}, GuzzleHttp\Handl ... l}, GuzzleHttp\Handler\CurlFactory {})
 2. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php line 47
    GuzzleHttp\Handler\CurlFactory::finish(GuzzleHttp\Handler\CurlHandler {}, GuzzleHttp\Handl ... l}, GuzzleHttp\Handler\CurlFactory {})
 3. /var/www/html/lib/private/Http/Client/DnsPinMiddleware.php line 113
    GuzzleHttp\Handler\CurlHandler->__invoke("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***")
 4. /var/www/html/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php line 64
    OC\Http\Client\DnsPinMiddleware->OC\Http\Client\{closure}("*** sensitive parameters replaced ***")
 5. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 31
    GuzzleHttp\PrepareBodyMiddleware->__invoke("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***")
 6. /var/www/html/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php line 71
    GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensitive parameters replaced ***")
 7. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 63
    GuzzleHttp\RedirectMiddleware->__invoke("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***")
 8. /var/www/html/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php line 75
    GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensitive parameters replaced ***")
 9. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php line 331
    GuzzleHttp\HandlerStack->__invoke("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***")
10. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php line 168
    GuzzleHttp\Client->transfer("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***")
11. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php line 187
    GuzzleHttp\Client->requestAsync("post", GuzzleHttp\Psr7\Uri {}, ["/var/www/html/ ... "])
12. /var/www/html/lib/private/Http/Client/Client.php line 289
    GuzzleHttp\Client->request("post", "http://127.0.0.1:9090/pipeline", ["/var/www/html/ ... "])
13. /var/www/html/lib/private/Preview/Imaginary.php line 112
    OC\Http\Client\Client->post("http://127.0.0.1:9090/pipeline", [["[{\"operation ... ]])
14. /var/www/html/lib/private/Preview/GeneratorHelper.php line 63
    OC\Preview\Imaginary->getCroppedThumbnail(OC\Files\Node\File {}, 2048, 2048, false)
15. /var/www/html/lib/private/Preview/Generator.php line 343
    OC\Preview\GeneratorHelper->getThumbnail(OC\Preview\Imaginary {}, OC\Files\Node\File {}, 2048, 2048)
16. /var/www/html/lib/private/Preview/Generator.php line 162
    OC\Preview\Generator->getMaxPreview(OC\Files\SimpleFS\SimpleFolder {}, OC\Files\Node\File {}, "image/jpeg", "")
17. /var/www/html/lib/private/PreviewManager.php line 200
    OC\Preview\Generator->generatePreviews(OC\Files\Node\File {}, [[32,32,true],[6 ... "], "image/jpeg")
18. /var/www/html/custom_apps/previewgenerator/lib/Command/PreGenerate.php line 205
    OC\PreviewManager->generatePreviews(OC\Files\Node\File {}, [[32,32,true],[6 ... "])
19. /var/www/html/custom_apps/previewgenerator/lib/Command/PreGenerate.php line 183
    OCA\PreviewGenerator\Command\PreGenerate->processFile(OC\Files\Node\File {})
20. /var/www/html/custom_apps/previewgenerator/lib/Command/PreGenerate.php line 151
    OCA\PreviewGenerator\Command\PreGenerate->processRow([1552,"john",15376])
21. /var/www/html/custom_apps/previewgenerator/lib/Command/PreGenerate.php line 119
    OCA\PreviewGenerator\Command\PreGenerate->startProcessing()
22. /var/www/html/3rdparty/symfony/console/Command/Command.php line 255
    OCA\PreviewGenerator\Command\PreGenerate->execute(Symfony\Componen ... {}, Symfony\Componen ... {})
23. /var/www/html/3rdparty/symfony/console/Application.php line 1009
    Symfony\Component\Console\Command\Command->run(Symfony\Componen ... {}, Symfony\Componen ... {})
24. /var/www/html/3rdparty/symfony/console/Application.php line 273
    Symfony\Component\Console\Application->doRunCommand(OCA\PreviewGener ... {}, Symfony\Componen ... {}, Symfony\Componen ... {})
25. /var/www/html/3rdparty/symfony/console/Application.php line 149
    Symfony\Component\Console\Application->doRun(Symfony\Componen ... {}, Symfony\Componen ... {})
26. /var/www/html/lib/private/Console/Application.php line 213
    Symfony\Component\Console\Application->run(Symfony\Componen ... {}, Symfony\Componen ... {})
27. /var/www/html/console.php line 100
    OC\Console\Application->run()
28. /var/www/html/occ line 11
    require_once("/var/www/html/console.php")

at 2022-12-22T15:49:57+00:00

When I look at apps/photos/tags, only the “Tagged by recognize v3.0.0” tag is created, with only videos inside and no thumbnails.

If there’s any other info that would be helpful, do let me know.

Any help would be very much appreciated! Thank you!

Update: It seems that human action tagging is now happening for videos only.

This seems more related to the previewgenerator app rather than recognize, I believe, at least based on the error you posted. I don’t know what’s going on there, though

1 Like

Pardon me if I’ve categorised this post incorrectly, I used recognize-app and previewgenerator when I created the post thinking it would cover the intersection between both?

Either way, do let me know if this post needs to be re-filed!

Not at all, I think you posted in the right spot. I just wanted to mention that it doesn’t seem related to recognize

1 Like

Hey! Did you find out the problem? I have the same error:

GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to 127.0.0.1 port 9090: Connection refused (see libcurl - Error Codes) for http://127.0.0.1:9090/pipeline?operations=[{"operation"%3A"autorotate