Thu Vo
07/17/2025, 4:04 AMWrite to disk failed. Will restore old document
Does this mean our collection schema data/structure is wrong, or this is failed to indeces in mem in startup? https://github.com/typesense/typesense/blob/v29.0/src/collection.cpp#L738-L744Thu Vo
07/17/2025, 5:52 AMStack trace
point seem cant get the store store
DEFAULT 2025-07-17T05:49:43.080379Z E20250717 05:49:43.079523 14 backward.hpp:4200] Stack trace (most recent call last):
DEFAULT 2025-07-17T05:49:43.080395Z E20250717 05:49:43.079578 14 backward.hpp:4200] #7 Object "/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2", at 0xffffffffffffffff, in
DEFAULT 2025-07-17T05:49:43.080399Z E20250717 05:49:43.079586 14 backward.hpp:4200] #6 Object "/opt/typesense-server", at 0x55941e7d002d, in _start
DEFAULT 2025-07-17T05:49:43.080403Z E20250717 05:49:43.079591 14 backward.hpp:4200] #5 Object "/usr/lib/x86_64-linux-gnu/libc.so.6", at 0x7f1edd100e3f, in __libc_start_main
DEFAULT 2025-07-17T05:49:43.080407Z E20250717 05:49:43.079596 14 backward.hpp:4200] #4 Object "/usr/lib/x86_64-linux-gnu/libc.so.6", at 0x7f1edd100d8f, in
DEFAULT 2025-07-17T05:49:43.080411Z E20250717 05:49:43.079602 14 backward.hpp:4200] #3 Source "src/main/typesense_server.cpp", line 224, in main [0x55941e7db1bd]
DEFAULT 2025-07-17T05:49:43.080415Z E20250717 05:49:43.079608 14 backward.hpp:4200] #2 Source "src/typesense_server_utils.cpp", line 506, in run_server [0x55941ec943cf]
DEFAULT 2025-07-17T05:49:43.080419Z E20250717 05:49:43.079613 14 backward.hpp:4200] #1 Source "src/ratelimit_manager.cpp", line 498, in init [0x55941ec0a447]
DEFAULT 2025-07-17T05:49:43.080422Z E20250717 05:49:43.079618 14 backward.hpp:4200] #0 Source "src/store.cpp", line 101, in get [0x55941ec3302f]
DEFAULT 2025-07-17T05:49:43.080426Z Segmentation fault (Address not mapped to object [(nil)])
Thu Vo
07/17/2025, 7:17 AMThu Vo
07/17/2025, 7:18 AMWrite to disk failed. Will restore old document
each rebootFanis Tharropoulos
07/17/2025, 7:19 AMFanis Tharropoulos
07/17/2025, 7:21 AMFanis Tharropoulos
07/17/2025, 7:21 AMThu Vo
07/17/2025, 7:21 AMThu Vo
07/17/2025, 7:21 AMFanis Tharropoulos
07/17/2025, 7:22 AMThu Vo
07/17/2025, 7:25 AMTry dropping the index and re-indexingFor now it's testing, so would I snapshot and backup from snapshot or should I crawl all data again?
Fanis Tharropoulos
07/17/2025, 7:32 AMgrep "Initializing DB by opening state dir"
grep "Error while initializing store"
Thu Vo
07/17/2025, 7:37 AMThu Vo
07/17/2025, 7:38 AMFanis Tharropoulos
07/17/2025, 7:41 AM/usr/
. You should have it under the home directory insteadThu Vo
07/17/2025, 7:49 AMconsumers:
- name: application
mountPath: /usr/share/typesense/data
Thu Vo
07/17/2025, 7:52 AMFanis Tharropoulos
07/17/2025, 8:07 AMThu Vo
07/17/2025, 8:41 AMThu Vo
07/17/2025, 8:53 AMError while initializing store: IO error: Stale file handle
Error while initializing store: IO error: No such file or directory: While opening a file for sequentially reading: /root/lib/typesense/data/db/MANIFEST-000035: No such file or directory
Thu Vo
07/17/2025, 8:53 AMThu Vo
07/17/2025, 8:54 AMThu Vo
07/17/2025, 8:57 AMThu Vo
07/17/2025, 8:59 AMIt seems like the data directory /root/lib/typesense/data/meta is already being used by another Typesense server.
But i didnt clear why it's ccausing a stack trace error and container was force exit because of this
DEFAULT 2025-07-17T08:45:56.169490Z E20250717 08:45:56.168789 13 typesense_server.cpp:159] Typesense 29.0 is terminating abruptly.
DEFAULT 2025-07-17T08:45:56.178313Z Segmentation fault
WARNING 2025-07-17T08:45:56.190706Z Container called exit(139).
Thu Vo
07/17/2025, 9:02 AM] Error while initializing store: IO error: No such file or directory: While opening a file for sequentially reading: /root/lib/typesense/data/db/MANIFEST-000020: No such file or directory
Thu Vo
07/17/2025, 10:54 AMFanis Tharropoulos
07/17/2025, 10:58 AMThu Vo
07/17/2025, 11:00 AM--nodes
or peering-address
Fanis Tharropoulos
07/17/2025, 11:16 AMThu Vo
07/17/2025, 11:18 AMFanis Tharropoulos
07/17/2025, 11:26 AMnodes
file, which is needed for High Availability. May I know the reason for running multiple Typesense Processes under the same machine that don't interact in HA?Thu Vo
07/17/2025, 11:32 AM--nodes
parameter, assuming it wouldn’t attempt any automatic node_peer
resolution.
However, based on the logs I’ve reviewed so far, it still seems to attempt auto-resolution by default, and in my case, it always resolves to 127.0.0.1
.Thu Vo
07/17/2025, 11:37 AMThu Vo
07/18/2025, 4:18 AM8108
for the API address, we can't also expose 8107
for peering
• I*nstance-to-instance communication* isn’t possible in Cloud Run natively
My workaround was to deploy two separate Cloud Run services:
• One Cloud Run service acts as the leader, handling write requests. It's configured to run as a single instance.
• Another Cloud Run service handles read-only requests, using the --skip-write
argument. This one can scale out to multiple instances.Thu Vo
07/30/2025, 5:12 AMraft_server.cpp:692] Term: 3, pending_queue: 0, last_index: 243, committed: 243, known_applied: 243, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 15364
Since I start up a read-only server. and have external mount - that shared w other TS server (read-write)Fanis Tharropoulos
07/30/2025, 8:55 AMKishore Nallan
07/30/2025, 9:06 AM