Skip to content

exapp exists #840

@gregoryca

Description

@gregoryca

Hi Guys,

I have been able to install everything, configure everything from Nextcloud. I'm only battling one issue:

{"reqId":"OvsXIHKyP8BAJISkSTYz","level":3,"time":"2026-04-03T11:58:16+00:00","remoteAddr":"","user":"--","app":"app_api","method":"","url":"--","scriptName":"console.php","message":"GuzzleException while trying to remove ExApp container \"context_chat_backend\" (instance \"\"): cURL error 7: Failed to connect to 192.168.2.140 port 8780 after 0 ms: Could not connect to server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://192.168.2.140:8780/exapps/app_api/docker/exapp/exists","userAgent":"--","version":"33.0.2.2","occ_command":["console.php","app_api:app:register"],"exception":{"Exception":"GuzzleHttp\\Exception\\ConnectException","Message":"cURL error 7: Failed to connect to 192.168.2.140 port 8780 after 0 ms: Could not connect to server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://192.168.2.140:8780/exapps/app_api/docker/exapp/exists","Code":0,"Trace":[{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":207,"function":"createRejection","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":159,"function":"finishError","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":[{"__class__":"GuzzleHttp\\Handler\\CurlHandler"},"*** sensitive parameters replaced ***",{"__class__":"GuzzleHttp\\Handler\\CurlFactory"}]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php","line":47,"function":"finish","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":[{"__class__":"GuzzleHttp\\Handler\\CurlHandler"},"*** sensitive parameters replaced ***",{"__class__":"GuzzleHttp\\Handler\\CurlFactory"}]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php","line":28,"function":"__invoke","class":"GuzzleHttp\\Handler\\CurlHandler","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php","line":48,"function":"{closure:GuzzleHttp\\Handler\\Proxy::wrapSync():27}","class":"GuzzleHttp\\Handler\\Proxy","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":64,"function":"{closure:GuzzleHttp\\Handler\\Proxy::wrapStreaming():47}","class":"GuzzleHttp\\Handler\\Proxy","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":31,"function":"__invoke","class":"GuzzleHttp\\PrepareBodyMiddleware","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":71,"function":"{closure:{closure:GuzzleHttp\\Middleware::cookies():28}:29}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":66,"function":"__invoke","class":"GuzzleHttp\\RedirectMiddleware","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php","line":75,"function":"{closure:{closure:GuzzleHttp\\Middleware::httpErrors():60}:61}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php","line":333,"function":"__invoke","class":"GuzzleHttp\\HandlerStack","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php","line":169,"function":"transfer","class":"GuzzleHttp\\Client","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php","line":189,"function":"requestAsync","class":"GuzzleHttp\\Client","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/ClientTrait.php","line":95,"function":"request","class":"GuzzleHttp\\Client","type":"->","args":["*** sensitive parameters replaced ***","http://192.168.2.140:8780/exapps/app_api/docker/exapp/exists",{"json":{"name":"context_chat_backend","instance_id":""},"synchronous":true}]},{"file":"/var/www/html/apps/app_api/lib/DeployActions/DockerActions.php","line":1032,"function":"post","class":"GuzzleHttp\\Client","type":"->","args":["http://192.168.2.140:8780/exapps/app_api/docker/exapp/exists",{"json":{"name":"context_chat_backend","instance_id":""}}]},{"file":"/var/www/html/apps/app_api/lib/DeployActions/DockerActions.php","line":140,"function":"removeExApp","class":"OCA\\AppAPI\\DeployActions\\DockerActions","type":"->","args":["http://192.168.2.140:8780/exapps/app_api","context_chat_backend",false,true]},{"file":"/var/www/html/apps/app_api/lib/Command/ExApp/Register.php","line":172,"function":"deployExAppHarp","class":"OCA\\AppAPI\\DeployActions\\DockerActions","type":"->","args":[{"__class__":"OCA\\AppAPI\\Db\\ExApp","id":7},{"__class__":"OCA\\AppAPI\\Db\\DaemonConfig","id":5},{"image_params":{"image_src":"ghcr.io","image_name":"nextcloud/context_chat_backend","image_tag":"5.3.0"},"container_params":{"0":"And 5 more entries, set log level to debug to see all entries","name":"context_chat_backend","hostname":"context_chat_backend","port":23001,"net":"host","env":["AA_VERSION=33.0.0","APP_SECRET=cC7DTXGzUNwUjvMoflaope9PtMw1PObLqScC0j/NctZyPTetotcBpkAMgxAj3JrqVEPK6xh6SrWHQp90KnJWW9Vh5lN6ozd3KvGRlGL5iOU9ugK+n8tJa+ibZqiKc+Vt","APP_ID=context_chat_backend","APP_DISPLAY_NAME=Context Chat Backend","APP_VERSION=5.3.0","And 8 more entries, set log level to debug to see all entries"]},"deploy_options":{"environment_variables":[],"mounts":[]}}]},{"file":"/var/www/html/3rdparty/symfony/console/Command/Command.php","line":326,"function":"execute","class":"OCA\\AppAPI\\Command\\ExApp\\Register","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/3rdparty/symfony/console/Application.php","line":1083,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/3rdparty/symfony/console/Application.php","line":324,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"OCA\\AppAPI\\Command\\ExApp\\Register"},{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/3rdparty/symfony/console/Application.php","line":175,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/lib/private/Console/Application.php","line":187,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/console.php","line":92,"function":"run","class":"OC\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"}]}],"File":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","Line":277,"message":"GuzzleException while trying to remove ExApp container \"context_chat_backend\" (instance \"\"): cURL error 7: Failed to connect to 192.168.2.140 port 8780 after 0 ms: Could not connect to server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://192.168.2.140:8780/exapps/app_api/docker/exapp/exists","exception":"{\"class\":\"GuzzleHttp\\Exception\\ConnectException\",\"message\":\"cURL error 7: Failed to connect to 192.168.2.140 port 8780 after 0 ms: Could not connect to server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://192.168.2.140:8780/exapps/app_api/docker/exapp/exists\",\"code\":0,\"file\":\"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php:277\",\"trace\":\"#0 /var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php(207): GuzzleHttp\\Handler\\CurlFactory::createRejection(Object(GuzzleHttp\\Handler\\EasyHandle), Array)\\n#1 /var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php(159): GuzzleHttp\\Handler\\CurlFactory::finishError(Object(GuzzleHttp\\Handler\\CurlHandler), Object(GuzzleHttp\\Handler\\EasyHandle), Object(GuzzleHttp\\Handler\\CurlFactory))\\n#2 /var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php(47): GuzzleHttp\\Handler\\CurlFactory::finish(Object(GuzzleHttp\\Handler\\CurlHandler), Object(GuzzleHttp\\Handler\\EasyHandle), Object(GuzzleHttp\\Handler\\CurlFactory))\\n#3 /var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\\Handler\\CurlHandler->__invoke(Object(GuzzleHttp\\Psr7\\Request), Array)\\n#4 /var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php(48): GuzzleHttp\\Handler\\Proxy::{closure:GuzzleHttp\\Handler\\Proxy::wrapSync():27}(Object(GuzzleHttp\\Psr7\\Request), Array)\\n#5 /var/www/html/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(64): GuzzleHttp\\Handler\\Proxy::{closure:GuzzleHttp\\Handler\\Proxy::wrapStreaming():47}(Object(GuzzleHttp\\Psr7\\Request), Array)\\n#6 /var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php(31): GuzzleHttp\\PrepareBodyMiddleware->__invoke(Object(GuzzleHttp\\Psr7\\Request), Array)\\n#7 /var/www/html/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php(71): GuzzleHttp\\Middleware::{closure:{closure:GuzzleHttp\\Middleware::cookies():28}:29}(Object(GuzzleHttp\\Psr7\\Request), Array)\\n#8 /var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php(66): GuzzleHttp\\RedirectMiddleware->__invoke(Object(GuzzleHttp\\Psr7\\Request), Array)\\n#9 /var/www/html/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php(75): GuzzleHttp\\Middleware::{closure:{closure:GuzzleHttp\\Middleware::httpErrors():60}:61}(Object(GuzzleHttp\\Psr7\\Request), Array)\\n#10 /var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php(333): GuzzleHttp\\HandlerStack->__invoke(Object(GuzzleHttp\\Psr7\\Request), Array)\\n#11 /var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php(169): GuzzleHttp\\Client->transfer(Object(GuzzleHttp\\Psr7\\Request), Array)\\n#12 /var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php(189): GuzzleHttp\\Client->requestAsync('POST', Object(GuzzleHttp\\Psr7\\Uri), Array)\\n#13 /var/www/html/3rdparty/guzzlehttp/guzzle/src/ClientTrait.php(95): GuzzleHttp\\Client->request('POST', 'http://192.168....', Array)\\n#14 /var/www/html/apps/app_api/lib/DeployActions/DockerActions.php(1032): GuzzleHttp\\Client->post('http://192.168....', Array)\\n#15 /var/www/html/apps/app_api/lib/DeployActions/DockerActions.php(140): OCA\\AppAPI\\DeployActions\\DockerActions->removeExApp('http://192.168....', 'context_chat_ba...', false, true)\\n#16 /var/www/html/apps/app_api/lib/Command/ExApp/Register.php(172): OCA\\AppAPI\\DeployActions\\DockerActions->deployExAppHarp(Object(OCA\\AppAPI\\Db\\ExApp), Object(OCA\\AppAPI\\Db\\DaemonConfig), Array)\\n#17 /var/www/html/3rdparty/symfony/console/Command/Command.php(326): OCA\\AppAPI\\Command\\ExApp\\Register->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\\n#18 /var/www/html/3rdparty/symfony/console/Application.php(1083): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\\n#19 /var/www/html/3rdparty/symfony/console/Application.php(324): Symfony\\Component\\Console\\Application->doRunCommand(Object(OCA\\AppAPI\\Command\\ExApp\\Register), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\\n#20 /var/www/html/3rdparty/symfony/console/Application.php(175): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\\n#21 /var/www/html/lib/private/Console/Application.php(187): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\\n#22 /var/www/html/console.php(92): OC\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput))\\n#23 {main}\"}","CustomMessage":"GuzzleException while trying to remove ExApp container \"context_chat_backend\" (instance \"\"): cURL error 7: Failed to connect to 192.168.2.140 port 8780 after 0 ms: Could not connect to server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://192.168.2.140:8780/exapps/app_api/docker/exapp/exists"},"id":"69cfae084762c"}

Do i have to remove the daemon configured in nextcloud, reconfigure and then install or are there any other steps i can take ?

I am also running localai locally and nextcloud is connected and the ai assistant works. Could i use that as a alternative to use the context chat backend ? i mainly want to install the context chat backend to enable to MCP server.

If ya'll need more logs or pictures just let me know !

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions