Hi,
I am testing Nextcloud Assistant Context Chat in Nextcloud AIO 12.9.1 Beta and I ran into several problems that seem to affect both deployment/runtime stability and indexing behavior.
My setup is:
-
Nextcloud AIO 12.9.1 Beta
-
Nextcloud Hub 25 Autumn / 32.0.8
-
AppAPI 32.0.0
-
Assistant 2.13.0
-
Nextcloud Assistant Context Chat 5.3.1
-
Context Chat Backend 5.3.0
-
Context Agent 2.5.1
-
Assistant Talk Bot 3.1.3
Problem 1 – backend initially got into an inconsistent AppAPI state
At first, Nextcloud Assistant Context Chat showed that the backend was not installed or not responding.
What I observed:
-
context_chat_backendwas not shown properly inphp occ app_api:app:list -
the backend container
nc_app_context_chat_backenddid not exist -
at one point
php occ app_api:app:register context_chat_backendbehaved inconsistently and did not lead to a clean deploy
What recovered that state was:
docker exec --user www-data nextcloud-aio-nextcloud php occ app_api:app:unregister --rm-data --force context_chat_backend
docker exec --user www-data nextcloud-aio-nextcloud php occ app_api:app:register --wait-finish context_chat_backend
After that:
-
context_chat_backendappeared correctly inapp_api:app:list -
nc_app_context_chat_backendwas created -
the admin page changed to show that the backend was installed and responsive
Problem 2 – after full server reboot, backend became unavailable again
After a full reboot of the whole server, Nextcloud Assistant Context Chat again showed the backend as unavailable, even though the container was still running.
At that point:
-
php occ app_api:app:liststill showedcontext_chat_backendas[enabled] -
the container
nc_app_context_chat_backendwas up -
but the GUI showed:
-
The Context Chat Backend app is not installed or not responding
-
CC Backend unavailable
-
Restarting only the backend container:
docker restart nc_app_context_chat_backend
made it responsive again.
So this looked less like a deployment problem and more like some kind of post-boot AppAPI / ExApp init or enable-state issue.
Problem 3 – indexing/statistics state is inconsistent
After the backend became responsive again, I expected indexing to start normally.
For a long time, php occ context_chat:stats showed:
ContextChat statistics:
The indexing is not complete yet.
Total eligible files: 9286
Files in indexing queue: 8258
New files in indexing queue (without updates): 8235
Queued documents (without files):array (
'mail__mail' => 5,
)
Files successfully sent to backend: 0
Indexed documents: array (
)
Actions in queue: 134
File system events in queue: 18
So initially it looked like nothing was being sent to the backend.
Then, after further testing, the backend logs started showing successful embedding activity such as repeated:
POST /v1/embeddings HTTP/1.1" 200 OK
PUT /loadSources HTTP/1.1" 200 OK
That suggests the backend was in fact doing work.
However, at that point php occ context_chat:stats started failing with this error:
Malformed indexed documents count response from Context Chat Backend (ExApp): 'files__default' key is missing, response: {"mail__mail":40}
So now it looks like the backend may already be indexing at least mail__mail, but the stats response is incomplete or inconsistent because files__default is missing.
Current understanding
At this point it looks like there may be more than one issue involved:
-
AppAPI / ExApp registration inconsistency
-
post-boot backend init / enable-state instability
-
malformed or incomplete indexed document count response during indexing
Questions
-
Does this look like one bug or multiple separate bugs?
-
Is the reboot behavior more likely an AppAPI issue than a Nextcloud Assistant Context Chat issue?
-
Is the malformed
context_chat:statsresponse (files__defaultmissing, onlymail__mailreturned) a known bug? -
Is there any recommended AIO-specific way to make Nextcloud Assistant Context Chat survive a full reboot correctly?
-
Would you like these findings split later into GitHub reports for:
-
AppAPI repo
-
Context Chat / backend repo
-




