GoogleCloudPlatform / GoogleCloudPlatform/firebase-extensions
ext-firestore-semantic-search never finished deplying the index?
- Dominant language
- TypeScript
- Stars
- 124
- Forks
- 67
- Avg merge
- 5d 5h
- Merged PRs (30d)
- 5
Description
### Describe your configuration
- Extension name: firestore-semantic-search
- Extension version: 0.1.7
I have installed this extension, but I don't seem to be able to get anything out of it, and I am not sure where to look.
Whenever I insert a new document into DB, which is supposed to be indexed with a backfill trigger, I then can see on the log the following error.
```json
{
"textPayload": "Error: Queue does not exist.\n at FunctionsApiClient.toFirebaseError (/workspace/node_modules/firebase-admin/lib/functions/functions-api-client-internal.js:305:16)\n at FunctionsApiClient.enqueue (/workspace/node_modules/firebase-admin/lib/functions/functions-api-client-internal.js:146:32)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async streamUpdateDatapointHandler (/workspace/lib/functions/stream_update_datapoint.js:34:9)",
"insertId": "65c3a6b7000e922b5d1da738",
"resource": {
"type": "cloud_function",
"labels": {
"region": "europe-west1",
"function_name": "ext-firestore-semantic-search-streamUpdateDatapoint",
"project_id": "..."
}
},
"timestamp": "2024-02-07T15:50:15.954923Z",
"severity": "ERROR",
"labels": {
"runtime_version": "nodejs18_20240128_18_19_0_RC00",
"instance_id": "0087599d42edfa70f394c3040b4c3f8d626b6c6535e565b62cb4ef75f8b7bfba726bfee1d143c4566ab596b41a7b094ed7c665295191f0275e570f63320eda3307d3",
"execution_id": "9bn3cx0fh2w9"
},
"logName": "projects//logs/cloudfunctions.googleapis.com%2Fcloud-functions",
"trace": "projects//traces/c3281ec1ba9e02526f23b88e4fcf62fa",
"receiveTimestamp": "2024-02-07T15:50:16.256618357Z",
"errorGroups": [
{
"id": "CPTJ2fj3s5D8zwE"
}
]
}
```
Also, some log earlier I can spot and entry saying
```json
{
"textPayload": "Index not deployed yet, skipping...",
"insertId": "65c3a6b6000993c36cddc8c1",
"resource": {
"type": "cloud_function",
"labels": {
"region": "europe-west1",
"project_id": "...",
"function_name": "ext-firestore-semantic-search-streamUpdateDatapoint"
}
},
"timestamp": "2024-02-07T15:50:14.627651Z",
"severity": "INFO",
"labels": {
"instance_id": "0087599d42edfa70f394c3040b4c3f8d626b6c6535e565b62cb4ef75f8b7bfba726bfee1d143c4566ab596b41a7b094ed7c665295191f0275e570f63320eda3307d3",
"runtime_version": "nodejs18_20240128_18_19_0_RC00",
"execution_id": "9bn3cx0fh2w9"
},
"logName": "projects//logs/cloudfunctions.googleapis.com%2Fcloud-functions",
"trace": "projects//traces/c3281ec1ba9e02526f23b88e4fcf62fa",
"receiveTimestamp": "2024-02-07T15:50:14.922855876Z"
}
```
But has been more than 5 hours now, so I am not sure the issue is the index has not be built, or somehow that building task failed. The collection it watches is very small so far, 10 documents only.
Also, trying the queryIndex call I get this error
```json
{
"textPayload": "Function execution took 4271 ms, finished with status code: 404",
"insertId": "tow4ugfdsx96s",
"resource": {
"type": "cloud_function",
"labels": {
"function_name": "ext-firestore-semantic-search-queryIndex",
"region": "europe-west1",
"project_id": "..."
}
},
"timestamp": "2024-02-07T15:45:25.594660766Z",
"severity": "DEBUG",
"labels": {
"runtime_version": "nodejs18_20240128_18_19_0_RC00",
"execution_id": "in40qx2h2rdz"
},
"logName": "projects//logs/cloudfunctions.googleapis.com%2Fcloud-functions",
"trace": "projects//traces/2f0a1d082dd270bbe5fd0421a56db792",
"receiveTimestamp": "2024-02-07T15:45:25.682539320Z"
}
```
The function is there so I am not sure what it is failing on.
The metadata status field on my DB says **INDEX_BUILDING**, but I am not sure this is really doing anything at this point.
Can anyone help me figure what's possibly going wrong?
Contributor guide
Assessment
This issue has not been assessed yet.